I've developed an "ask to user" tool that utilizes another callin.io workflow as its tool. This tool is designed to perform a human-in-the-loop function, sending messages to Discord and awaiting a response. However, it currently proceeds without waiting for the response to complete.
I'm looking for solutions to this issue. I consulted the thread How do we wait for response from workflow called by the AI Agent, but I couldn't locate the timeout extension option that was mentioned. I'm curious if the default behavior for handling sub-workflows is inherently asynchronous. If so, how can I configure it to process synchronously?
Information on your callin.io setup
- callin.io version: 1.10
- Database (default: SQLite):
- callin.io EXECUTIONS_PROCESS setting (default: own, main):
- Running callin.io via (Docker, npm, callin.io cloud, desktop app): Docker
- Operating system: MacOS
Could you please share your "ask to user" workflow as well?
Take a look at this example. You might need to include a system message in your agent to guide it to await a response from the tool.
Thanks!
I've implemented the "ask to user" workflow, and it seems quite straightforward.
You're correct, I'm aiming to achieve a similar outcome to what you shared. However, my "ask to user" workflow appears almost identical to the one in your link, which leaves me puzzled as to why my AI Agent continues to advance instead of waiting for the Tool Calling to conclude.
Could the issue perhaps be related to the Discord response node?
Why are you utilizing it as a tool? I understand the link I shared employs a similar concept, but I previously tested this with Telegram, and the "Send and wait" node was appended to the AI Agent rather than being integrated as a tool, which was functional.