Ich versuche, Midi-API-Plugin mit Botkit-sms API, ich versuche, den Quellcode zu debuggen, warum dies nicht funktioniert, aber hilfreich sein wird, wenn Sie bereitstellen können einige Eingangsbotkit-sms: Integration Middleware-Plugin
Quellcode der Bibliothek https://github.com/krismuniz/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')
})