Webhook configuration (begginer)

EY,

My name is Alejandro, I’m starting to use n8n, and I have a question that I’m not sure if someone has encountered before.

I’m tying to send information from a web with a webhook to integrate with an IA agent. The problem is that the AI the string is not being recognized by the agent.

This is the code on the web:

This is the code on the ia agent:

this is the issue in the memory.

My workflow is:

  • **Running n8n vian 8n cloud
  • **Operating system: windows

Simply Memory needs a sessionId to be defined when no Chat trigger node is connected.
You can simply add a Set node and add e.g. the $workflow.id as sessionId.

2 Likes

Hi,

I don’t want to be annoying but workflow.id would mean 2 non-related requests would share memory? i know it’s an example but …

reg,
J.

1 Like

Yes, exactly.

Alternatively, a sessionId can be passed as a parameter to the webhook. This could also be a customer number, for example.

Using the $execution.id also works. However, this doesn’t offer any advantages since an execution only involves one call from the webhook. This way, the memory can also be cleared.

2 Likes

Thak you very very much.

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