My webhook response node is set up tp output a JSON in the structure I defined in the response body expression. But the output is a JSON response from the previous node, a chatgpt node output JSON.
What’s the issue here? Am I not using the respond to webhook node correctly? PLEASE. HELP ME OUT!
Just change the response fields from Immediately
to Using Respond to Webhook Node
options
I think you can safely ignore the output portion of the “respond to webhook” node, the actual response should only contain the specified JSON.
I tried reproducing your example with code node instead of the chatgpt and I see the problem you are describing
the output of the webhook looks just like in your example:
[
{
"index": 0,
"message": {
"role": "assistant",
"content": "{ \"toolCallId\": \"call_JPsxWHavjiydB9vnCoSFOrCd\", \"summary\": \"Customer Arvind Mankani wants to reschedule appointment to 10th July. Email: [email protected]\" }",
"refusal": null,
"annotations": []
},
"logprobs": null,
"finish_reason": "stop"
}
]
but the actual response is exactly what was specified in the JSON field:
Thanks jabbson! i see what the issue is now, the webhook node is sending the exact JSON I defined, the output is there so that it can be used in the next nodes, right? But anyway I see that it is sending over the json I want. Thanks!
You are correct. Feel free to mark the answer as solution if you’ve confirmed that the actual response is correct and it helped.