Product Card Carousel Templates
Last updated
Last updated
Product Card Carousel Templates are only available while using Cloud API.
Product Card Carousel templates allow you to send a single text message (1), accompanied by a set of up to 10 carousel cards (2) in a horizontally scrollable view.
From January 2024, in addition to the mobile device experience, users can now view Carousel messages seamlessly on the WhatsApp Web Client.
You can add the SPM button to your Product Card Carousel Template and users can tap it to see details about the product, and can add or remove the product from the WhatsApp shopping cart.
See more details in Single-Product Message Templates (View Button)
Instead of View buttons you may wish to use URL buttons. When a WhatsApp user taps a URL button to buy a product, the URL is loaded in the device's default web browser, taking the user out of the WhatsApp client experience. This can be useful if, for example, you wish to load the product in your checkout page where users can add promo codes and find related products.
Carousel templates support up to 10 carousel cards. Cards must have a media header (image or video) and can optionally include body text and up to 2 quick reply buttons, phone number buttons, or URL buttons or SPM buttons (button types can be mixed).
The media header format and buttons must be the same across all cards that make up a carousel template. Media assets will be cropped to a wide ratio based on the customer's device.
To use product card carousel templates, you must have an ecommerce product catalog, with inventory, connected to your WhatsApp Business Account.
If you send a carousel template composed of product cards that use a View button, when a customer adds one or more products to their cart and submits an order, you will receive a webhook that describes the order.
With URL button flows, since order placement happens outside of the WhatsApp, webhooks describing the order are not triggered.
Use the create template endpoint to create Product Card Carousel Template.
POST
https://waba-v2.360dialog.io/v1/configs/templates
Headers
D360-API-KEY
string
Once your template is approved, you can send it in a template message.
It is only necessary to define two product cards upon template creation. An approved template with two product cards can be used to send up to 10 cards in a template message.
<MESSAGE_BODY_TEXT>
String
Required.
Message bubble text string. Supports variables.
Maximum 1024 characters.
Summer is here, and we've got the freshest produce around! Use code {{1}} to get {{2}} off your next order.
<MESSAGE_BODY_TEXT_VARIABLE_EXAMPLE>
String
Required if the message body text string uses variables.
Message body text example variable string(s).
Number of strings must match the number of variable placeholders in the message body text string.
If message body text uses a single variable, body_text
value can be a string, otherwise it must be an array containing an array of strings.
"15OFF","15%"
<TEMPLATE_NAME>
String
Required.
Template name.
Maximum 512 characters.
summer_carousel_promo_2023
<URL_BUTTON_LABEL_TEXT>
String
Buy now
<URL_BUTTON_URL>
String
Required if using a URL button.
URL of website that loads in the device's default mobile web browser when the URL button is tapped by the app user.
Supports 1 variable, appended to the end of the URL string.
Maximum 2000 characters.
https://www.luckyshrub.com/shop?promo={{1}}
<URL_BUTTON_VAR_EXAMPLE>
String
Required if using a URL button.
URL of website. Supports 1 variable.
If using a variable, add sample variable property to the end of the URL string. The URL loads in the device's default mobile web browser when the customer taps the URL button.
Maximum 2000 characters.
https://www.luckyshrub.com/shop?promo=summer_lemons_2023
Catalog template messages cannot be sent with the On-Premises API.
Once your carousel template is approved, you can use the Cloud API to send it in a Product Card Carousel Template Message.
POST
https://waba-v2.360dialog.io/messages
messaging_product
string
Required only for Cloud API.
Messaging service used for the request. Use "whatsapp"
.
recipient_type
string
individual
to
string
Recipient phone number
type
string
template
name
string
Template name
language
string
Template language
code
string
Language code
components
Your template components array
Required.
Assemble your payload similar to the structure of the template you created.
It is only possible to send Templates with an Active status. A message template's status can change automatically from Active to Paused or Disabled based on feedback from customers. For this reason, we recommend that you monitor status changes to take appropriate actions whenever a message template that you rely upon becomes, or is in danger of becoming, paused or disabled.