r
if there will be this option that will work all over the conversation like i want to talk to human and etc, can be amazing!
b
Hooks are global
r
how?
b
"before incoming message" hooks are executed before the bot processes any incoming message. You can intercept a message and handle it before the bot's normal logic kicks in. This is useful if you want to stop further processing of the message after receiving the hook. For instance if you want to create a "/startover" command, you'd do it in a "before incoming message" hook so it'll stop processing through the normal logical flow of the bot and start from the beginning. "After incoming message" hooks are executed after the bot processes a message. This hook would trigger other actions or flows before the incoming message is handled. "Before outgoing message" hooks run before the bot sends a message to the user. Which can allow you to modify or log the outgoing message before sending. You can add hooks on the left of the web UI under the Hooks section. Sounds like you'd probably want to use "before incoming message hooks" if you're trying to catch commands like 'i want to talk to a human' from anywhere in the flow.
r
why is there not even one video about that feature? 🫠
f
There isn't really a great way of doing it. As of my knowledge you can't programmatically choose where the flow you should and start and jump to.
I know that Botpress is working a solution, and they have been for a while, but I am not sure when its stable enough to release
b
yes, I am now writing the same actions in each node. global will be very convenient
technically it could be like this: add Global Intents feature to agent summary. agent already does chat analysis and so it can easily detect Global Intents in conversation at any point.
r
hope it will be soon