A very lightweight and simple artificial intelligence with multi language support
npm install alexa-bot-apijs
const alexa = require("alexa-bot-api");
const ai = new alexa();
ai.getReply("Hello", "spanish").then((reply) => {
console.log(reply);
//Do your stuffs with the reply
});
`
Specific Language:
`
getReply(, )
`
Async / Await
`js
const alexa = require("alexa-bot-api");
const ai = new alexa();
async function main() {
const reply = await ai.getReply("How are you mate?", "tamil");
console.log(reply);
//Do your stuffs with reply
}
main();
``