When I created a function to start a conversation with a user like this:
bot.startConversation({
user: '<number>',
channel: '<number>',
}, function(err, convo) {
if (err){
console.error('Failed to startConversation with user', error);
}
convo.ask(booster.question, function(response, convo){
answer=response.text.body;
});
});
}
I am creating a chat bot using the twilio front end & I am creating conversations with users before they have messaged the bot. The code inside of the call back runs before the user responds. Is there an issue maybe with what triggers the callback if you manually create a conversation?
Using botkit: 0.6.7
When I created a function to start a conversation with a user like this:
I am creating a chat bot using the twilio front end & I am creating conversations with users before they have messaged the bot. The code inside of the call back runs before the user responds. Is there an issue maybe with what triggers the callback if you manually create a conversation?