0
votes

Needing help for passing the context to the Watson conversation at any point in the conversation, without influencing the flow. it's possible?

Example: API integration fetches the data and set to the conversation context. Two dialog boxes after I am use the context variable.

Thanks very much

1
Not sure what you are looking for, but you can pass in user-defined context any time. - data_henrik
Welcome to Stack Overflow! Please edit your question to show the code you have so far. You should include at least an outline (but preferably a minimal reproducible example) of the code that you are having problems with, then we can try to help with the specific problem. You should also read How to Ask. - Toby Speight
Thanks @data_henrik. I needed to pass parameters to the context outside the moment of the conversation; But it is not possible. The alternative was to create an empty node that accepts the user input and a jump to the next node with the conversation continuing. - Gustavo Montenegro

1 Answers

0
votes

Like @data_henrik said you can pass the context anytime. To take the user input:

{
"context":{
"time":"@sys-time"
},

To use it anywhere use the symbol $. Ex:

condition: if bot recognize $time
Then respond with: The time is @sys-time.