Skip to content

[BUG] Webhook variables are not recognized in workspace or during execution #1361

@ryszard-szwajlik-j-labs

Description

Describe the bug
Webhook variable references are not recognized in the workspace:

  1. Variables such as <webhook1.data.firstName> are underlined in red.
  2. 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

  1. Add and configure a Webhook block.
  2. Connect the Webhook block to an Agent block.
  3. In the Agent’s prompt, reference webhook data using a path like <webhook1.data.firstName>.
  4. 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:

Image

Logs:
Image

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions