You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using these in my sample work:
"botkit": "^0.5.8",
"botkit-middleware-watson": "^1.4.0"
My conversation is very simple, it asks three questions of the user to collect enough data to run a query. The conversation starts fine, goes to the Billing branch and then to the Aggregate branch just like it should, but then it falls out to 'Anything Else' instead of staying in the conversation path to the end - please see attached diagram below.
My agent code is down below. Please advise what is missing, I can see the conversation counter advancing each time.... why does the conversation end abruptly?
Here is my agent code:
require('dotenv').load();varBotkit=require('botkit');varexpress=require('express');// Configure your bot.varslackController=Botkit.slackbot();varslackBot=slackController.spawn({token: process.env.SLACK_TOKEN});// Create the middleware object - for connecting with conv.varwatsonMiddleware=require('botkit-middleware-watson')({username: process.env.CONVERSATION_USERNAME,password: process.env.CONVERSATION_PASSWORD,workspace_id: process.env.WORKSPACE_ID,url: process.env.CONVERSATION_URL||'https://gateway.watsonplatform.net/conversation/api',version_date: '2017-05-26'});// This declares the watsonMiddleware as the handler for the receive methodslackController.middleware.receive.use(watsonMiddleware.receive);slackController.hears(['.*'],['direct_message'],function(bot,message){watsonMiddleware.interpret(bot,message,function(){if(message.watsonError){bot.reply(message,"I'm sorry, but for technical reasons I can't respond to your message");}else{console.log("\nsprint-bot-slack.js > to the bot with message.context: "+JSON.stringify(message.watsonData.context,2,null)+"\n");bot.reply(message,message.watsonData.output.text.join('\n'));}});});// Start the bot using Real Time Messaging APIsslackBot.startRTM();
The text was updated successfully, but these errors were encountered:
Your screenshot makes an impression that Aggregate is the last node in the chain and the next message sent by the user triggers top level recognition again. It is a normal behaviour.
If you don't want to go back to beginning at the end of the chain, you have to change the action from Wait for user input to Jump to ...
I'm using these in my sample work:
"botkit": "^0.5.8",
"botkit-middleware-watson": "^1.4.0"
My conversation is very simple, it asks three questions of the user to collect enough data to run a query. The conversation starts fine, goes to the Billing branch and then to the Aggregate branch just like it should, but then it falls out to 'Anything Else' instead of staying in the conversation path to the end - please see attached diagram below.
My agent code is down below. Please advise what is missing, I can see the conversation counter advancing each time.... why does the conversation end abruptly?
Here is my agent code:
The text was updated successfully, but these errors were encountered: