1
私はbotkit-smsでapi.aiミドルウェアプラグインにしようとしていますが、なぜこれが機能しないのか、ソースコードをデバッグしようとしていますが、ここ聞こえ関数にapiai.hears
を渡すライブラリhttps://github.com/krismuniz/botkit-sms/botkit-sms:ミドルウェアプラグインの統合
var apiai = require('botkit-middleware-apiai')({
token: '...',
skip_bot: true // or false. If true, the middleware don't send the bot reply/says to api.ai
})
controller.middleware.receive.use(apiai.receive)
controller.hears('.*', 'message_received', apiai.hears, function (bot, message) {
console.log('received :: ' + message)
bot.reply(message, 'got the message')
})