Chat Trigger
Written By pvdyck
Last updated About 2 hours 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
How it works
- Add the Chat Trigger node to your agent.
- Set Make Chat Publicly Available =
trueand Mode =Embedded Chat. - Connect the trigger to an Agent or Chain LLM node downstream.
- (Optional) Connect a Simple Memory node to remember conversation history per session.
- Publish your agent. Your agent's chat URL accepts
POSTrequests 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.