RAW Action icon

RAW Action

Envia actions de volta para o RAW via callbackUrl.

Close Chat

AI-generated

Summary

Closes the specified RAW chat by sending a CLOSE_CHAT action to the callback endpoint. Provide the client and chat IDs; optionally provide a bot ID and next step or substep to update the session with the action.

Inputs

  • Callback URL / Environment (required) — For node version 1, provide the callback URL, defaulting to meta.callbackUrl from the input item. For version 2+, select Auto (the input item's meta.callbackUrl), Homologação, Produção, or Custom; Custom requires a full callback URL.
  • Client ID (required) — Client ID, defaulting to meta.clientId from the input item.
  • Chat ID (required) — Chat ID to close, defaulting to meta.chatId from the input item.
  • Bot ID — Optional bot ID; when provided, the server uses that bot's configuration. Defaults to meta.botId.
  • Next Step — Optional step value to update on the session along with the close action; it does not navigate to that step.
  • Next Sub Step — Optional substep value to update on the session along with the close action.

Output shape

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

The node POSTs the client ID, chat ID, optional bot ID and session updates, and a CLOSE_CHAT action to the callback URL. response contains the callback response, or null if it is empty. With Continue On Fail enabled, failed items contain { error }; otherwise an error stops execution.

Links

Discussion