IBM Watson Dialog node response not coming - ibm-watson

I developed a chatbot which will call an action. That action is returning response and value is there in context variable but the value is not coming in chat dialog box. Instead, when i run again with a different input the previous response is coming in chat box.
Can anyone please help

Related

How can I simulate hitting enter or clicking outside a filled form to send data to server?

I have a Rails app and and a form using React. When a user fills a field, the data is sent the moment they press enter on their keyboard or when they clicks anywhere else on the page.
I'm testing this feature and I'm trying to reproduce the same behavior but what I've tried so far do not work...
I'm using Capybara with Rspec to test features. I've already tried those following:
find('.class').set("text").native.send_keys(:return)
find('.class').set("text\n")
page.execute_script("document.querySelector('.some_other_div').click()")
fill_in "name", with: "text\n"
I have no problem to fill the form but I am not able to send it to the server...
Thank you for your help!

Watson Assistant finds correct Intent and correct Entity but responds from incorrect dialog

I've built a basic music-playing bot with Watson Assistant. I have a parent node for genre and a set of child nodes for artist selection. This all works as expected first time through the dialog. But when I attempt to request a different artist, Watson recognizes the correct Intent and the correct Entity, yet it instead responds from the Anything Else dialog repeatedly. I'm attaching a screen cap to illustrate.
The first time you run through the dialog the context will be clean. On subsequent turns the dialog will have built context. Without seeing the logic around your dialog flow it is difficult to pin down which bit of context, but something in the context will be blocking the flow from going down this dialog leg.

Adding send and microphone buttons to a bot

I'm using reactjs to build a web chat, I'm trying to display microphone and send buttons at the same time but it doesn't work, Only one of them disply, I heard that there's a limitation for doing this but I don't think so, Is there any suggestions?
Unfortunately, Web Chat is not designed for utilizing both the send button and the speak button, simultaneously. That is to say, technically, you can get both to display however if speech is enabled, then the send button will not respond.
This is because certain send elements and classes are replaced when speak is enabled. As such, even though the send button can be hacked back into Web Chat, it won't respond.
If you feel this would be a good feature for Web Chat to include, I would suggest you present it as a feature request here.
Hope of help!

How to have a screen intermittently render in React Native (with Expo)

I'm building a React Native (with Expo) app and have a survey form screen that I want to have appear intermittently for the user to fill out. Let's call it SurveyScreen. I'm doing this by setting a setInterval to poll the backend server hourly for scheduling data to see if the user is due to fill out a survey. This will probably be done in the main App.js in componentDidMount
The above seems straightforward to me. What I'm not clear on is once the polling api determines that the user is due for a survey, how to have the app display SurveyScreen no matter what page the user is on in the app.
One point of clarification is should SurveyScreen appear immediately after receiving a green light api response or should the screen appear after the next user action, e.g. navigation to another page, tap a button, etc? I think either way would be fine at this point. Would love to know both ways if possible.
Any ideas? Thanks.
Update the state.
Example: you subscribe to api => event fires => you update state => survey pops up
You can use portal to easily position survey on top of everything.

How to check if Firebase updated remotely?

I have an app that uses AngularJS and Firebase (with AngularFire API), but I'm getting some problems with the $bindTo service. Sometimes users are loosing data because there is no good connection in my city, our internet is too slow. I was thinking to create an icon in my app that shows the user if its data was updated successfully or not.
How I was thinking to do it?
- Watch the object
- On data changed, the icon becomes red
- When data is saved on Firebase, returns an event that change the icon color to green
How can I do it? Is there a better way to deal with it?
Check out https://www.firebase.com/docs/web/guide/offline-capabilities.html
This gives example of how to check out connection status and event handlers to deal with such situations .

Resources