Chat Trigger

Written By pvdyck

Last updated About 1 hour ago

Chat Trigger

The Chat Trigger node starts an agent run whenever a chat message is posted to your agent's chat URL. It is ideal for building conversational agents that respond to messages from a chat client you embed in your own app.

indie.money compatibility

FeatureStatus
POST chat messages (embedded mode)Supported
Memory connection (Simple Memory)Supported
loadPreviousSession actionSupported
Streaming responsesSupported β€” connect a Chat Trigger to a Chain LLM or Agent node to stream output back to the caller in real time.
Hosted chat web page (GET URL serves HTML)Not supported β€” agents return 404 on GET. Embed your own chat client instead
Basic Auth authentication modeNot supported β€” choose None and put your own auth in front of the agent URL
n8n User Auth authentication modeNot supported
File uploads in chatNot supported

How it works

  1. Add the Chat Trigger node to your agent.
  2. Set Make Chat Publicly Available = true and Mode = Embedded Chat.
  3. Connect the trigger to an Agent or Chain LLM node downstream.
  4. (Optional) Connect a Simple Memory node to remember conversation history per session.
  5. Publish your agent. Your agent's chat URL accepts POST requests with this body:
{  "chatInput": "Hello, how are you?",  "sessionId": "my-session-123"}

The agent responds with the output of the last node (or with chunks if streaming is enabled).

Loading previous session messages

When Load Previous Session is set to From Memory and a Simple Memory node is connected, sending the special body {"action":"loadPreviousSession","sessionId":"..."} returns the prior messages for that session, without invoking the agent.

Differences from n8n

n8n offers a built-in chat web page that opens automatically when you visit the trigger URL in a browser. indie.money does not host that page. To build a UI, embed any standard chat widget (for example the @n8n/chat npm package) in your own webpage and point its webhookUrl at your agent's chat URL.