RAW Action icon

RAW Action

Envia actions de volta para o RAW via callbackUrl.

Send Text

AI-generated

Summary

Send a text action to a RAW chat by POSTing it to the selected callback endpoint. Set the required Client ID, Chat ID, and Text; the IDs default to values from the incoming item’s meta object, and you can optionally include a Bot ID or update the session’s step and substep with Next Step and Next Sub Step.

Inputs

  • Callback URL / Environment — For node version 1, provide the required Callback URL, which defaults to {{$json.meta.callbackUrl}}. Version 2 defaults to Auto, which reads meta.callbackUrl from each input item; alternatively select Homologação or Produção to use the corresponding RAW endpoint, or Custom and provide a required callback URL.
  • Client ID (required) — Identifies the RAW client; defaults to {{$json.meta.clientId}}.
  • Chat ID (required) — Identifies the chat receiving the text; defaults to {{$json.meta.chatId}}.
  • Bot ID — Optional bot identifier; defaults to {{$json.meta.botId}}. When provided, the server uses that bot’s configuration.
  • Text (required) — Text content sent in the SEND_TEXT action’s fallbackText field.
  • Next Step — Optionally updates the session step alongside the action; it does not navigate to that step.
  • Next Sub Step — Optionally updates the session substep alongside the action.

Output shape

One output item per input item, containing { "ok": true, "operation": "sendText", "response": ... } on success.

The node POSTs a JSON body with the client and chat IDs, optional bot ID and session updates, and a SEND_TEXT action. The response field contains the callback response or null if none is returned. With Continue On Fail enabled, failed items return { "error": ... }; otherwise an item error is thrown.

Links

Discussion