Actions21
- Add Chat State
- Close Chat
- Collect Input
- Go To Step
- Go To Substep
- Mark Read & Show Typing
- Register Disposition
- Register Transaction
- Request Human
- Send Button
- Send Catalog Message
- Send Document
- Send List
- Send Product Carousel
- Send Product List
- Send Single Product Message
- Send Text
- Send WhatsApp Flow
- Set Flow State
- Start Survey
- Transfer Department
Transfer Department
AI-generatedSummary
Transfers the chat to a department by POSTing a TRANSFER_DEPARTMENT action to the RAW callback endpoint. Uses the input item’s meta.callbackUrl by default in version 2, or lets you select a RAW environment or provide a custom callback URL; version 1 uses the required Callback URL field.
Inputs
- Callback URL / Environment (required) — For version 1, provide the RAW callback URL (defaults to
$json.meta.callbackUrl). For version 2, choose Automatic (uses the input item’smeta.callbackUrl), Homologation, Production, or Custom; Custom requires a full callback URL. - Client ID (required) — Identifies the RAW client; defaults to
$json.meta.clientId. - Chat ID (required) — Identifies the chat to transfer; defaults to
$json.meta.chatId. - Bot ID — Optional bot identifier; defaults to
$json.meta.botId. When supplied, RAW uses that bot’s configuration. - Department ID — Optional target department identifier.
- Escalation Reason Code — Optional code for an escalation reason, such as
fora_autoagendamento. - Message — Optional message to include with the transfer.
- Next Step — Optionally updates the session’s step along with the action; it does not navigate to that step.
- Next Sub Step — Optionally updates the session’s subStep along with the action.
Output shape
One output item per input item, containing { ok: true, operation, response } on success.
The node sends a POST request with the client ID, chat ID, optional bot ID and session updates, and a
TRANSFER_DEPARTMENTaction. The response field contains the callback response, ornullif none is returned. With Continue On Fail enabled, failed items contain{ error }; otherwise an item error is thrown.