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
Close Chat
AI-generatedSummary
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.callbackUrlfrom the input item. For version 2+, select Auto (the input item'smeta.callbackUrl), Homologação, Produção, or Custom; Custom requires a full callback URL. - Client ID (required) — Client ID, defaulting to
meta.clientIdfrom the input item. - Chat ID (required) — Chat ID to close, defaulting to
meta.chatIdfrom 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_CHATaction to the callback URL.responsecontains the callback response, ornullif it is empty. With Continue On Fail enabled, failed items contain{ error }; otherwise an error stops execution.