RAW Action icon

RAW Action

Envia actions de volta para o RAW via callbackUrl.

Send Catalog Message

AI-generated

Summary

Sends a catalog message to the specified RAW chat by POSTing a SEND_CATALOG_MESSAGE action to the callback endpoint. Set the required message body and optionally include a footer and a product retailer ID to feature as the thumbnail.

Inputs

  • Callback URL / Environment (required) — For node version 1, provide the required Callback URL, defaulting to meta.callbackUrl from the input item. For version 2, choose Auto (uses meta.callbackUrl), Homologation, Production, or Custom (requires a full callback URL). Homologation and Production use the node's configured RAW callback endpoints.
  • Client ID (required) — Identifies the RAW client; defaults to meta.clientId from the input item.
  • Chat ID (required) — Identifies the chat receiving the message; defaults to meta.chatId from the input item.
  • Bot ID — Optional bot identifier; defaults to meta.botId and is omitted from the request if empty.
  • Body (required) — Text for the catalog message.
  • Footer — Optional footer text; omitted from the action if blank.
  • Thumbnail Product Retailer ID — Optional catalog product code to use as the featured thumbnail; omitted if blank.
  • Next Step — Optional step value sent with the action to update the session without navigating to that step.
  • Next Sub Step — Optional substep value sent with the action to update the session.

Output shape

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

The request is sent as a JSON POST with a SEND_CATALOG_MESSAGE action containing the chat ID, body, and any nonblank optional catalog fields. With Continue On Fail enabled, a failed item returns { error }; otherwise the node throws an item-indexed error. The node passes through the RAW endpoint response in response, or null if none is returned.

Examples

Example 1: send a catalog message with a short intro and a featured product

Use the callback URL from the RAW webhook payload, set clientId and chatId from that payload, enter the message body, and optionally set the footer and thumbnail product retailer ID.

Links

Discussion