Docs for respond-to-chat (#3339)

Co-authored-by: Justin Ellingwood <justin@n8n.io>
This commit is contained in:
David Arens 2025-07-28 14:21:42 +02:00 committed by GitHub
parent dfb9fe25a1
commit 897f93fa37
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 57 additions and 2 deletions

View File

@ -80,7 +80,11 @@ If you select any option other than **Off**, you must connect the Chat trigger a
Use this option when building a workflow with steps after the agent or chain that's handling the chat. Choose from:
* **When Last Node Finishes**: The Chat Trigger node returns the response code and the data output from the last node executed in the workflow.
* **Using 'Respond to Webhook' Node**: The Chat Trigger node responds as defined in the [Respond to Webhook](/integrations/builtin/core-nodes/n8n-nodes-base.respondtowebhook.md) node.
* **Using Response Nodes**: The Chat Trigger node responds as defined in a [Respond to Chat](/integrations/builtin/core-nodes/n8n-nodes-langchain.respondtochat.md) node or [Respond to Webhook](/integrations/builtin/core-nodes/n8n-nodes-base.respondtowebhook.md) node. In this response mode, the Chat Trigger will solely show messages as defined in these nodes and not output the data from the last node executed in the workflow.
/// note | Using Response Nodes
This mode replaces the 'Using Respond to Webhook Node' mode from version 1.2 of the Chat Trigger node.
///
#### Require Button Click to Start Chat
@ -112,7 +116,11 @@ If you select any option other than **Off**, you must connect the Chat trigger a
Use this option when building a workflow with steps after the agent or chain that's handling the chat. Choose from:
* **When Last Node Finishes**: The Chat Trigger node returns the response code and the data output from the last node executed in the workflow.
* **Using 'Respond to Webhook' Node**: The Chat Trigger node responds as defined in the [Respond to Webhook](/integrations/builtin/core-nodes/n8n-nodes-base.respondtowebhook.md) node.
* **Using Response Nodes**: The Chat Trigger node responds as defined in a [Respond to Chat](/integrations/builtin/core-nodes/n8n-nodes-langchain.respondtochat.md) node or [Respond to Webhook](/integrations/builtin/core-nodes/n8n-nodes-base.respondtowebhook.md) node. In this response mode, the Chat Trigger will solely show messages as defined in these nodes and not output the data from the last node executed in the workflow.
/// note | Using Response Nodes
This mode replaces the 'Using Respond to Webhook Node' mode from version 1.2 of the Chat Trigger node.
///
## Templates and examples
@ -131,6 +139,10 @@ In a basic workflow, the Agent and Chain nodes output a parameter named either `
If you need to manually create the response sent to the user, you must create a parameter named either `text` or `output`. If you use a different parameter name, the Chat trigger sends the entire object as its response, not just the value.
/// note | Respond to Chat node
When you are using a [Respond to Chat](/integrations/builtin/core-nodes/n8n-nodes-langchain.respondtochat.md) node to manually create the response sent to the user, you must set the Chat Trigger response mode to 'Using Response Nodes'.
///
## Common issues
For common questions or issues and suggested solutions, refer to [Common Issues](/integrations/builtin/core-nodes/n8n-nodes-langchain.chattrigger/common-issues.md).

View File

@ -0,0 +1,42 @@
---
#https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4
title: Respond to Chat node documentation
description: Learn how to use the Respond to Chat node in n8n. Follow technical documentation to integrate the Respond to Chat node into your workflows.
priority: critical
---
# Respond to Chat node
Use the Respond to Chat node in correspondence with the [Chat Trigger](/integrations/builtin/core-nodes/n8n-nodes-langchain.chattrigger/index.md) node to send a response into the chat and optionally wait for a response from the user. This allows you to have multiple chat interactions within a single execution and enables human-in-the-loop use cases in the chat.
/// note | Chat Trigger node
The Respond to Chat node requires a [Chat Trigger](/integrations/builtin/core-nodes/n8n-nodes-langchain.chattrigger/index.md) node to be present in the workflow, with the [Response Mode](/integrations/builtin/core-nodes/n8n-nodes-langchain.chattrigger/index.md#response-mode) set to 'Using Response Nodes'.
///
## Node parameters
### Message
The message to send to the chat.
### Wait for User Reply
Set whether the workflow execution should wait for a response from the user (enabled) or continue immediately after sending the message (disabled).
## Node options
### Add Memory Input Connection
Choose whether you want to commit the messages from the Respond to Chat node to a connected memory. Using a shared memory between an agent or chain [root node](/integrations/builtin/cluster-nodes/root-nodes/index.md) and the Respond to Chat node attaches the same session key to these messages and lets you capture the full message history.
### Limit Wait Time
When you enable **Wait for User Reply**, this option decides whether the workflow automatically resumes execution after a specific limit (enabled) or not (disabled).
## Related resources
--8<-- "_snippets/integrations/builtin/cluster-nodes/langchain-overview-link.md"
## Common issues
For common questions or issues and suggested solutions, refer to [Common Issues](/integrations/builtin/core-nodes/n8n-nodes-langchain.chattrigger/common-issues.md).

View File

@ -230,6 +230,7 @@ nav:
- integrations/builtin/core-nodes/n8n-nodes-base.removeduplicates/index.md
- Templates and examples: integrations/builtin/core-nodes/n8n-nodes-base.removeduplicates/templates-and-examples.md
- integrations/builtin/core-nodes/n8n-nodes-base.renamekeys.md
- Respond to Chat: integrations/builtin/core-nodes/n8n-nodes-langchain.respondtochat.md
- integrations/builtin/core-nodes/n8n-nodes-base.respondtowebhook.md
- integrations/builtin/core-nodes/n8n-nodes-base.rssfeedread.md
- RSS Feed Trigger: integrations/builtin/core-nodes/n8n-nodes-base.rssfeedreadtrigger.md