Adding a variable without using a go-to
Currently you can only add a variable to a flow if you send it somewhere, using Go To, then adding the variable.
Would be nice if we could also do it for static bot dialogs, for example where a question is asked.
Specific case: I'm asking a question that expects yes or no. When someone says something else (not understood), I want to say something and repeat the previous question. that means in the Not Understood I would put a router, and that's where I would use this variable (would also be useful if we could use context in a goto logic btw for the same purpose)
-
Official comment
Hi Ivan,
Could you review this tutorial? I think it might resolve your use case. https://docs.chatlayer.ai/tips-and-best-practices/not-understood-bot-dialog/go-to-previous-bot-dialog
-
I second this, the previous dialogstate is not always the most logical choice. For example, when asking a user's address there are multiple parts of the address to figure out. It could be better to send the user to the beginning of the address flow than to the previous part. The previous dialogstate would send them back to something like their housenumber, while they want to change their streetname.
But this is also effective for different reasons.
- Being able to add or update variables within a bot message without a go to makes it much easier to set things up for later go to's.
- It opens the way for more dynamic content through variables.
- It allows adding custom variables for better data storage outside of Chatlayer.
1
Please sign in to leave a comment.
Comments
2 comments