Actions21
- Assistant Actions
- Callback Actions
- Chat Actions
- File Actions
- Message Actions
- Peer Agent Actions
Message → Send and Wait for Reply
AI-generatedSummary
Posts a message to a Home of Agents chat, then polls chat history until it finds a later message with text and returns it as the reply. Choose Sender=User or System to trigger the receiving assistant; Sender=Assistant does not trigger it.
Inputs
- Assistant Name or ID (required) — Assistant to message. Select one or use a dynamic value; if empty, the node uses assistantId or assistant_id from input data, or assistant.id.
- Chat Name or ID (required) — Chat to post to and poll. If empty, the node uses chatId or chat_id from input data, chat.id, or message.chatId.
- Text (required) — Outgoing message text. If blank, the node uses text from input data or message.text; one of these must provide text.
- Sender — Assistant (default) posts without triggering the receiving AI; User triggers it as a user message; System sends a system notification and wakes it.
- File ID — ID of a previously uploaded file to attach.
- User ID (required) — Chat owner ID required for polling. If blank, the node uses user_id or userId from input data.
- Timeout (Seconds) — Maximum wait before the node fails; defaults to 600 seconds.
- Poll Interval (Ms) — Time between chat history checks; defaults to 2000 ms and is clamped to a minimum of 1000 ms.
- Agent Identity (Advanced) — Optional legacy identity override fields such as Peer ID, External ID, and Agent Type. This affects the outgoing message identity but not which chat reply is polled.
Output shape
A single n8n item containing the input JSON merged with the operation result.
The result includes success, sentMessageId, replyMessageId, replyText, and raw (the matching chat-history entry). It returns the first message with an ID greater than the sent message ID and non-empty text; it does not filter by sender. Polling errors are retried until timeout, after which the node fails.