跳转到内容
Agentic Workflowdocs
v0.9.0免费安装

节点 / builtin / flow

Respond to Chat

Send a message to the chat that started the run

流程 扩展程序网页应用自 0.9.0 起

此内容尚不支持你的语言。

Send a message back to the chat that started the run. Use it to control exactly what the chat shows, or to ask a follow-up question and wait for the answer.

In a workflow started by a Chat Trigger, the reply in the chat comes from a reply step: a Respond to Chat step, or else the last AI step on the trigger’s path. The reply streams into the chat as it is written.

Respond to Chat sends its Message. Then, depending on After sending:

  • Carry on: the run continues straight away.
  • Wait for the reply: the run pauses until the person writes the next chat message. That message becomes this step’s output, and the run continues from here.

With Add to chat memory on (the default), the message is also stored in the Chat Memory connected to the Chat Trigger, so an agent later in the chat remembers it.

When no chat is open for the run (it was started another way), the message is only stored in the chat memory and the run log says so.

In an open chat, the message streams (words appear as they are written, with Draft reply is writing…) only when it is exactly the reply of the AI step linked straight to this step, for example {{ $('Draft reply').response }} or {{ $input.response }}. Otherwise it is sent whole once it is ready: when a step in between (Guardrails, Edit Fields…) can change the text, or when the message is more than one AI step’s reply. The step’s settings say which (Streams into the open chat as Draft reply writes., or Sent whole: … with the reason). Nothing else changes: the run and the stored message are the same either way.

  • A fixed reply: “Got it, your ticket is #1234.”
  • Combining several results into one message, after steps that are not AI steps.
  • A short back-and-forth: ask for a missing detail, wait, then use the answer.
设置项类型作用
Message Long text
After sending ChoiceOptions: Carry on, Wait for the reply. 默认值:Carry on
Add to chat memory ToggleAlso store the message in the Chat Memory connected to the Chat Trigger. 默认值:On

Write the Message with data from earlier steps, for example Done! I added {{ $input.count }} rows.

  • Output

Each output item has these fields:

Field类型What it holds
message TextThe message sent to the chat
chatInput TextThe user’s answer (Wait for the reply)
Shape of an output item
{
"message": "…",
"chatInput": "…"
}
Output
{ "message": "Which project?", "chatInput": "Website redesign" }

chatInput is set only with Wait for the reply: it holds the person’s answer.

None. This node needs no connection and has no slots for other nodes.

  1. Chat Trigger receives “Add a task”.
  2. Respond to Chat: “Which project?”, Wait for the reply.
  3. Todoist creates the task in {{ $input.chatInput }}.
  4. Respond to Chat: Added to {{ $('Respond to Chat').chatInput }}.
  • The chat shows the agent’s text instead: the reply step is the Respond to Chat step only when the run reaches it. Check that it sits on the path the run takes.
  • Stop in the chat: stopping keeps the part of the reply already written and marks it as stopped.
编辑此页

最近更新:

Was this page useful?
向 Aria 询问“Respond to Chat”