响应聊天节点#
¥Respond to Chat node
将 Respond to Chat 节点与 聊天触发器 节点配合使用,向聊天中发送回复,并可选择等待用户回复。此功能允许你在单次执行中进行多次聊天交互,并支持聊天中的人机协作用例。
¥Use the Respond to Chat node in correspondence with the Chat Trigger 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.
Chat Trigger node
“回复聊天”节点要求工作流中存在一个 聊天触发器 节点,并将 响应模式 设置为 '使用响应节点'。
¥The Respond to Chat node requires a Chat Trigger node to be present in the workflow, with the 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 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
View n8n's Advanced AI documentation.
常见问题#
¥Common issues
有关常见问题或建议的解决方案,请参阅 常见问题。
¥For common questions or issues and suggested solutions, refer to Common Issues.