trigger flow from a specific word
# 🤝help
i
is there any way to trigger a workflow no matter the workflow we are currently in?
g
What do you mean by trigger a workflow ?
l
What is the trigger event?
i
like if the user says "Cancel" the session ends for example
l
I don't know if that is possible no matter where the user is in the workflow @botpress.#0000 is it possible
g
By setting an intent manually each time maybe, you can check #1206768095797186562
I would personally use an expression card with the variable in which is stored the answer from the user and check ( === ) if it is equal to the string 'Cancel'
so if you store the answer in workflow.input
Make an expression card with : workflow.input === 'Cancel'
Note that cancel is not the same as Cancel
4 Views