Hi,
In my conversation, I want to show a webpage to the user, so that he can check items he wants to order. I need to go back to the conversation afterward. When I try to spawn an instance of the bot, I'm having an error in bot.createconversation.
It use " let bot = controller.spawn({}); " which works well with facebook bot but does not seems to be enough for web bot.
I'm having the following error 👍
"info: An error occurred while sending a message: TypeError: Cannot read property 'json' of undefined"
When I look at the code, it's bot.http_response that is undefined.
Here is the code :
goto_checkout: function (controller, message) {
let bot = controller.spawn({});
bot.createConversation(message, this.checkout);
},
Hi, In my conversation, I want to show a webpage to the user, so that he can check items he wants to order. I need to go back to the conversation afterward. When I try to spawn an instance of the bot, I'm having an error in bot.createconversation.
It use " let bot = controller.spawn({}); " which works well with facebook bot but does not seems to be enough for web bot.
I'm having the following error 👍 "info: An error occurred while sending a message: TypeError: Cannot read property 'json' of undefined"
When I look at the code, it's bot.http_response that is undefined.
Here is the code :
Many thanks !