RAW Action icon

RAW Action

Envia actions de volta para o RAW via callbackUrl.

Transfer Department

AI-generated

Summary

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’s meta.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_DEPARTMENT action. The response field contains the callback response, or null if none is returned. With Continue On Fail enabled, failed items contain { error }; otherwise an item error is thrown.

Links

Discussion