https://discord.gg/botpress logo
#🤝help
trigger flow from a specific word
# 🤝help
i

important-oxygen-28514

02/17/2024, 7:54 PM
is there any way to trigger a workflow no matter the workflow we are currently in?
g

glamorous-guitar-39983

02/18/2024, 12:47 AM
What do you mean by trigger a workflow ?
l

limited-pencil-78283

02/18/2024, 1:51 AM
What is the trigger event?
i

important-oxygen-28514

02/18/2024, 3:46 PM
like if the user says "Cancel" the session ends for example
l

limited-pencil-78283

02/18/2024, 4:04 PM
I don't know if that is possible no matter where the user is in the workflow @botpress.#0000 is it possible
g

glamorous-guitar-39983

02/18/2024, 4:40 PM
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