Hello callin.io community,
I'm encountering an issue with a webhook-triggered workflow that is intended to pause for a complete execution before sending a response. However, it appears to be responding immediately, with only the initial node (the Webhook trigger) executing.
My Objective:
I have a React frontend featuring a chatbot component. When a user sends a message, it initiates a POST request with a JSON body to a callin.io webhook. The callin.io workflow should then:
-
Process the message using an AI Agent node (leveraging Gemini and a Supabase tool).
-
Await the AI Agent's generated response.
-
Transmit the AI Agent's final text response back to my React application via a Respond to Webhook node.
The Issue:
When I access the production URL of my active workflow , the execution log indicates that only the Webhook node runs successfully (“Success in 1ms”). The subsequent nodes in the workflow (the AI Agent and Respond to Webhook nodes) do not execute at all.
My frontend receives an empty response, leading to a client-side error (Unexpected end of JSON input) because it anticipates a JSON object containing the AI's answer.
My Workflow Setup:
The workflow is configured as follows:
Webhook → AI Agent → Respond to Webhook
Webhook Node Configuration:
-
HTTP Method: POST
-
Response Mode: Utilizing the ‘Respond to Webhook’ Node (this has been explicitly set).
-
Path: bott
Troubleshooting Steps Taken:
-
Production URL & Active Workflow: I have verified that I am using the production URL (not the test URL) and that the workflow is indeed active .
-
Simplified Test Workflow: I constructed a minimal test workflow: Webhook → Set → Respond to Webhook. This straightforward workflow demonstrates the identical problem : only the Webhook node executes, and an empty response is sent. This suggests the issue might not be related to the AI Agent node itself.
-
Frontend Code: My React fetch call is standard:
await fetch(“ http://localhost:5678/webhook/bott ”, {
method: ‘POST’,
headers: { ‘Content-Type’: ‘application/json’ },
body: JSON.stringify({ message: “Hello” }),
});
Could someone please advise on what might be causing this behavior?