Hello!
I am using botpress cloud – I am trying to write a routing hook that checks for user input ("/end", etc) at any stage of the conversation and then redirects users to a workflow. What is the command to redirect users in a hook?
I have the following in an "After Incoming Message" hook.
if (event.payload.text=="/end") {
/* Redirect code here */
}