Skip to content

Instantly share code, notes, and snippets.

@jkeefe
Created March 6, 2017 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkeefe/a89f22da675e2497dc94e5a96554e09c to your computer and use it in GitHub Desktop.
Save jkeefe/a89f22da675e2497dc94e5a96554e09c to your computer and use it in GitHub Desktop.
Example bot.js file for Alexa integration with claudio-bot-builder
// from https://claudiajs.com/news/2016/11/22/claudia-bot-builder-2.7.1-alexa-skills.html
// The list of platform names can include:
// facebook, slackSlashCommand, telegram, skype, twilio, kik, groupme, viber, alexa.
const botBuilder = require('claudia-bot-builder');
module.exports = botBuilder(function (message, originalApiRequest) {
return `I got ${message.text}`;
}, { platforms: ['alexa'] });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment