RAW Action icon

RAW Action

Envia actions de volta para o RAW via callbackUrl.

Send Single Product Message

AI-generated

Summary

Sends a single product message to the RAW chat by POSTing a SEND_SINGLE_PRODUCT_MESSAGE action to the selected callback endpoint. Include the product’s catalog retailer ID and message body; the action targets the supplied chat and can optionally update the session step or substep.

Inputs

  • Callback URL / Environment (required) — For node version 1, provide the callback URL (defaults to meta.callbackUrl from the input item). For version 2 or later, choose Automatic (uses the input item’s meta.callbackUrl), Homologação, Produção, or Custom; Custom requires a callback URL.
  • Client ID (required) — Defaults to meta.clientId from the input item.
  • Chat ID (required) — Defaults to meta.chatId from the input item; the action is sent to this chat.
  • Bot ID — Defaults to meta.botId; when non-empty, it is included in the callback request.
  • Body (required) — Text included in the single-product message.
  • Footer — Optional footer text; blank values are omitted.
  • Product Retailer ID (required) — The product’s catalog retailer ID.
  • Next Step — If provided, updates the session step along with the action without navigating to it.
  • Next Sub Step — If provided, updates the session substep along with the action.

Output shape

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

The node POSTs the action to the resolved callback URL. If Continue On Fail is enabled, a failed item returns { error }; otherwise the node throws an item-indexed operation error. The operation sends a product message and does not define routes.

Examples

Example 1: Send a catalog product in response to a customer message

Set Body and Product Retailer ID, and use the incoming payload defaults for Client ID, Chat ID, and callback routing.

Links

Discussion