https://discord.gg/botpress logo
How to Force Actions to Always Trigger in Autonomo...
# 🤝help
r
Hi everyone, I've been trying to use Actions in Autonomous Nodes as a way to send the user messages and original LLM generated responses to an external API. The API will then return a new response that will be sent by the autonomous node to the user. However, I can't seem to find a way to force my autonomous node to always trigger the Action. The node either doesn't send the messages to the API, or it does send the messages but doesn't override the response it sends to the user with the value returned by the API. Is there a way to force the autonomous node to always trigger the action and override its response with the value returned by the API? Thank you in advance!
f
Boy I wish that was the case. We've been having issues with "sticky" ANs since they were introduced. ANs do not like to give up control once a free question format is introduced to them, even if explicitly instructed to trigger a transition right after the first response given. It does it sometimes, but without consistency. This has been an issue for close to a year now with no improvement in sight...
l
it is possible - this bot was designed to send messages after random pause between 30 to 90 secs. after every incoming message it calls the action "induce_delay" https://cdn.discordapp.com/attachments/1415554318471532717/1415708440139010100/image.png?ex=68c430ba&is=68c2df3a&hm=b7092cd87e5010cab40412a82a2fddb200b5d811bca2c0f672511c094b8317f2&
r
Hi Lijo, Is there a specific instruction format we have to follow to get this behavior? I tried including something like
Send all user messages to the <Action Name> Action
or
Always override your response with the return value of the <Action Name> Action
in both the autonomous node instruction as well as the Action card itself, but it still doesn't consistently use the Action
l
My instruction set said After receiving an incoming message → call the action induce_delay in your case, i am not sure why are you even using an Autonomous node and Action, you should use a standard node with "Wait for user input" card → Execute code card that uses input.payload.text to call your LLM endpoint, wait for its response → user send text card and loop the node back to itself
r
I'm using an Autonomous Node because I want to send both the original user message as well as the response generated by the Node to the API. I think your suggested method would be suitable if I just wanted to send the user message and reply with the API's response.
l
true
3 Views