Use AlexaSKill Test Framwork in Case of custom webhook (hosted in my server)
saileshemitrr opened this issue · 0 comments
Hello everyone, wanted to know what to pass for index for
alexaTest.initialize(index,
appId, userId, deviceId)`
I am using my custom webhook using NodeJS.
app.js -> router using alexa-verifer-middleware
app.use('/alexa', require('./routes/alexa'));
routes/alexa
router.post('/podcast', function(req, res) { const handlers = require('../handlers/alexaHandler'); if (!skill) { skill = Alexa.SkillBuilders.custom() .addRequestHandlers( handlers.LaunchRequestHandler, handlers.HelpHandler..... ).create();
handler/alexaHandler -> where all the functions are maintained like LaunchRequestHandlers and HelpIntent.
Please advice. Code is working fine but as it is becoming more complex planning to use a testing framework.