Skip to content
Troubleshooting Age...
 
Notifications
Clear all

Troubleshooting Agent AI webhook handling

15 Posts
6 Users
0 Reactions
5 Views
kapitanoppa
(@kapitanoppa)
Posts: 7
Active Member
Topic starter
 

I've tested with chat, and the built-in app agent AI functions without any problems. However, when data originates from a webhook and you include a response webhook, the AI agent does not execute the node.

Any insights, or could this be a bug?

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your callin.io setup

  • callin.io version:
  • Database (default: SQLite):
  • callin.io EXECUTIONS_PROCESS setting (default: own, main):
  • Running callin.io via (Docker, npm, callin.io cloud, desktop app):
  • Operating system:
 
Posted : 03/03/2025 10:33 pm
ThinkBot
(@thinkbot)
Posts: 26
Eminent Member
 

Hi,

Could you share your workflow so we can understand what's occurring?

 
Posted : 03/03/2025 10:43 pm
kapitanoppa
(@kapitanoppa)
Posts: 7
Active Member
Topic starter
 

Here is the workflow. When I use the webhook, it only executes these nodes:

even though my prompt is:
use book_appointment tool before response to Webhook

Please provide the rewritten markdown content, it should be in markdown format.

 
Posted : 03/03/2025 10:58 pm
solomon
(@solomon)
Posts: 78
Trusted Member
 

Could you please share the workflow code? Simply select all nodes and paste them here within a code block.

 
Posted : 03/03/2025 11:01 pm
kapitanoppa
(@kapitanoppa)
Posts: 7
Active Member
Topic starter
 

All nodes are configured with their default settings.

In the AI agent, I am using the following prompt:

 
Posted : 03/03/2025 11:06 pm
kapitanoppa
(@kapitanoppa)
Posts: 7
Active Member
Topic starter
 

I'm not certain how to accomplish that at the moment.

 
Posted : 03/03/2025 11:07 pm
solomon
(@solomon)
Posts: 78
Trusted Member
 
  1. Select all nodes.
  2. Copy.
  3. Create a code block here:

    This is a code block
  4. Paste inside the code block.
 
Posted : 04/03/2025 2:05 am
sirdavidoff
(@sirdavidoff)
Posts: 13
Active Member
 

The agent is only aware of the nodes directly below it, not those positioned to its right.

If you need the ‘book appointment’ step to execute consistently, it’s advisable to place it as a standard (square) node between the agent and the ‘respond to webhook’ step. You can then extract the booking details from the agent’s output and connect them accordingly.

 
Posted : 04/03/2025 4:47 pm
kapitanoppa
(@kapitanoppa)
Posts: 7
Active Member
Topic starter
 

I could achieve that without any problems, but I'm trying to understand why the AI agent isn't handling that specific part when using a webhook. It functions correctly when I use chat or Telegram, so I find this behavior unusual.

P.S. I am sending the same POST data, which is:

json
{"email": "email@email.com"}

 
Posted : 04/03/2025 6:35 pm
NewWave_Automatix
(@newwave_automatix)
Posts: 2
New Member
 

The problem likely stems from how the AI agent handles and executes tools within callin.io. Since the AI agent is only aware of the nodes directly below it, not those to its right, it might not be properly triggering the book_appointment tool before the Respond to Webhook step.

Fix: Restructuring the Workflow

Steps to Fix It

  1. Move the book_appointment tool into the main execution path

    • Instead of relying on the AI agent to invoke the book_appointment tool, integrate it as a standard node between the AI agent and Respond to Webhook.
    • This ensures that book_appointment will consistently execute prior to the webhook's response.
  1. Modify the AI agent’s output
*   Confirm that the AI agent outputs structured data containing the appointment details.
*   Link the output from the AI agent to the `book_appointment` node.
  1. Ensure Execution Order
*   Connect the output of the `book_appointment` node to `Respond to Webhook`, so it only runs after the appointment has been successfully booked.

Updated Flow Structure

  1. Webhook → 2. AI Agent → 3. Book Appointment Node (Direct Execution, Not via AI Tool Call) → 4. Respond to Webhook

This arrangement guarantees that the appointment booking process is completed before the webhook sends its response.

Would you like assistance in modifying your workflow with step-by-step instructions? This was a ChatGPT reply.

 
Posted : 04/03/2025 7:43 pm
NewWave_Automatix
(@newwave_automatix)
Posts: 2
New Member
 
 
Posted : 04/03/2025 8:01 pm
kapitanoppa
(@kapitanoppa)
Posts: 7
Active Member
Topic starter
 

Thanks, I understand that flow would work, but my concern is the agent not recognizing the tools underneath it when you use the respond webhook.

I also wonder why the Respond webhook cannot be added under the tools of the AI agent.

The AI agent also does not recognize commands like:

e.g.
Use the following hook in order:

  1. use hook_1
  2. use hook_2
  3. use hook_3
 
Posted : 04/03/2025 8:16 pm
sirdavidoff
(@sirdavidoff)
Posts: 13
Active Member
 

Agents can sometimes be unreliable with complex instructions. It's possible that whether your agent calls a tool is not directly tied to the presence of a webhook, but rather to the natural variability in the agent's decision-making process.

As a general guideline, you should aim to simplify instructions given to AI as much as possible. For instance, if you need the AI to call three tools in a specific sequence, consider consolidating them into a single tool that consistently performs those actions.

This can be achieved by creating a sub-workflow using standard (square) nodes to execute your three actions sequentially. You can then add this consolidated workflow as a tool for the agent.

 
Posted : 05/03/2025 7:33 am
kapitanoppa
(@kapitanoppa)
Posts: 7
Active Member
Topic starter
 

Thanks, I actually tried that, but it still didn't trigger the tools when using webhooks. I'll continue experimenting with it.

 
Posted : 05/03/2025 2:30 pm
ARI64
(@ari64)
Posts: 1
New Member
Share: