-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Webhook variable references are not recognized in the workspace:
- Variables such as
<webhook1.data.firstName>are underlined in red. - When blocks referencing these variables are executed, the following error appears:
Error
No value found at path "webhook1.data.firstName" in block "Webhook 1".
To Reproduce
- Add and configure a Webhook block.
- Connect the Webhook block to an Agent block.
- In the Agent’s prompt, reference webhook data using a path like
<webhook1.data.firstName>. - Trigger the webhook via HTTP request.
Example request:
curl --location 'https://www.sim.ai/api/webhooks/trigger/cdcb41a9-38aa-4d73-a302-8a8689195980' \
--header 'Content-Type: application/json' \
--data '{
"event": "user.created",
"id": "evt_1234567890",
"data": {
"firstName": "Adam",
"lastName": "Nowak"
},
"timestamp": "2023-01-01T12:00:00Z"
}'Expected behavior*
- Webhook variables should not appear as errors (i.e., no red underlines).
- Agent blocks should correctly resolve and use data from the webhook payload.
Screenshots
Configuration:
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
