Respond to Webhook "ID" Error

Please help mi ID is failing

Change the reference from .item.json to .first().json. This can happen when debugging and running these workflows manually

Instead of:

{{ $("Webhook').item.json.body.message.toolCalls[0].id }}

Use:

`{{ $("Webhook').first().json.body.message.toolCalls[0].id }}`

I Can’t with that code!

Its right here:

Yes I tried

Try using the same types of quotes around Webhook

{{ $("Webhook").first().json.body.message.toolCalls[0].id }}

1 Like

{
“results”: [
{
“toolCallId”: “{{ $(“Webhook”).first().json.body.message.toolCalls[0].id }}”,
“result”: {{ JSON.stringify($json.output || {}) }}
}
]
}

With your help and chatgpt it has been solved this has been the solution :slight_smile:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.