Botkit: bot.reply doesn't working with Bot Framework

Created on 14 Sep 2017  路  5Comments  路  Source: howdyai/botkit

I'm having an issue using Botkit with BotFramework. When I send a message to my bot It's responding nothing back. Someone knows what is wrong?

var Botkit = require('../lib/Botkit.js');
const apiaibotkit = require('../lib/api-ai-botkit');
var builder = require('botbuilder');
var controller = Botkit.botframeworkbot({
    debug: true
});

var bot = controller.spawn({
    appId: process.env.MICROSOFT_APP_ID,
    appPassword: process.env.MICROSOFT_APP_PASSWORD
});

controller.setupWebserver(process.env.port || 3000, function(err, webserver) {
    controller.createWebhookEndpoints(controller.webserver, bot, function() {
        console.log('ONLINE!');        
    });
});

controller.hears(['hello', 'hi'], 'message_received', function(bot, message) {

    controller.storage.users.get(message.user, function(err, user) {
        if (user && user.name) {
            console.log('Hello com nome ' + user.name);
            bot.reply(message, 'Hello ' + user.name + '!!');
        } else {
            console.log('Hello sem nome');
            bot.reply(message, 'Hello.', function(err) {
              console.error(err);
            });
        }
    });
});
Microsoft-Bot Framework-related bug help wanted

All 5 comments

I found, the problem is happening just on last botkit version(0.0.6) I tried using 0.5.8 and it works.

This might be related to recent pipeline changes. I would stick with 0.5.8 until we've had a chance to take a look.

https://github.com/howdyai/botkit/blob/master/docs/readme-pipeline.md

@SilvaLA59 This has been fixed in version 0.6.1! Sorry for the trouble.

Hello Team,
I tried to connect with botframework but no success. bot.reply not returning result back to skype. Please find below my debug log,(botkit version 0.6.3)
user: 'skype:29:1nw5d7Lk_jhkjMo1Uvz-doUxDLxKaE2T7y45Z6mWe17A', channel: 'skype:29:1nw5d7Lk_jhkjMo1Uvz-doUxDLxKaE2T7y45Z6mWe17A', address: { id: '1507023405050', channelId: 'skype', user: { id: '29:1nw5d7Lk_jhkjMo1Uvz-doUxDLxKaE2T7y45Z6mWe17A', name: 'chetan mekha' }, conversation: { id: '29:1nw5d7Lk_jhkjMo1Uvz-doUxDLxKaE2T7y45Z6mWe17A' }, bot: { id: '28:8c5962e2-c87f-4cba-8cfa-9c96437d9a21', name: 'SBIG_Insurance' }, serviceUrl: 'https://smba.trafficmanager.net/apis/' }, to: 'skype:29:1nw5d7Lk_jhkjMo1Uvz-doUxDLxKaE2T7y45Z6mWe17A' } SENDING VIA BOT FRAMEWORK { text: 'Hello.', address: { id: '1507023405050', channelId: 'skype', user: { id: '29:1nw5d7Lk_jhkjMo1Uvz-doUxDLxKaE2T7y45Z6mWe17A', name: 'chetan mekha' }, conversation: { id: '29:1nw5d7Lk_jhkjMo1Uvz-doUxDLxKaE2T7y45Z6mWe17A' }, bot: { id: '28:8c5962e2-c87f-4cba-8cfa-9c96437d9a21', name: 'SBIG_Insurance' }, serviceUrl: 'https://smba.trafficmanager.net/apis/' }, to: 'skype:29:1nw5d7Lk_jhkjMo1Uvz-doUxDLxKaE2T7y45Z6mWe17A', type: 'message' } null
@benbrown @peterswimm @teerapat2539 Please help me out over this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fieldcorbett picture fieldcorbett  路  4Comments

dfischer picture dfischer  路  4Comments

seriousssam picture seriousssam  路  3Comments

matueranet picture matueranet  路  4Comments

JonnyBoy333 picture JonnyBoy333  路  3Comments