Skip to main content

Carousel node

Carousel node is used to display a series of interactive cards with images, titles, descriptions, and buttons. It helps to display the multiple options or the information in a visually appealing and organized format for showcasing products, services, or other interactive content.

Carousel node is used to showcase products or services with details like images, titles, and descriptions to guide users with actionable buttons for navigation or performing specific actions. For example, on a travel website, a carousel node can be used to showcase destinations with images and descriptions. Users can scroll through the cards and use buttons to perform actions like selecting travel dates or exploring package details.

Limitations

  • Image size restrictions: Images must be under 10MB and the recommended dimensions: Width 248px, Height 164.2px.
  • WhatsApp: a carousel with 2 to 10 cards is sent as a swipeable carousel only when it follows the WhatsApp rules. See Carousel on WhatsApp below.
  • Carousels without buttons will function as messages instead of interactive prompts.

Configure Carousel node

To configure Carousel node, follow these steps:

  1. Drag and drop the carousel node in the flow editor.

  2. Add an image less than 10 MB, then enter a title and description.

  3. Click the default Button #1 option to add a button.

  4. Enter the following details:

    • Button name: Enter a name for the button.
    • Select button type: select the button type from the available options:
      • Text message: Sends a text response.
      • Go to flow: Navigates to another flow.
      • Open URL: Opens a specified web link.
      • Send Phone number: Captures and sends the user's phone number.
    • Text message: Enter the text message for the button.
    • Analytics: Enter a keyword to track button clicks. This will help you track how many users have clicked this button. You can view this status in Insights > Data Explorer > Custom Tables > Analytics.

  5. Click Save.

  6. Connect the Success and Fallback cases of the node to other nodes in the flow to ensure the conversation continues smoothly

Carousel on WhatsApp

On a WhatsApp number connected through the WhatsApp Cloud API, the Carousel node sends all its cards in one message. The user swipes through the cards and taps a button on any of them.

A three-card carousel with an Open link button on each card

The cards are sent as a carousel only when all of these are true:

RuleWhat to do
Number of cardsAdd 2 to 10 cards.
MediaAdd an image or a video to every card.
TitleGive the first card a title. It is also shown as the message above the cards.
Same buttons on every cardEvery card has the same button type and the same number of buttons.
Button typeEither one Open URL button per card, or one or two Text message buttons per card.
Text lengthKeep a card's title and description within 160 characters together, and each button name within 20 characters. Longer text is cut.

If any rule is not met, WhatsApp shows only the first card, and its Open URL, Go to flow and Send phone number buttons become plain reply buttons. Go to flow and Send phone number buttons are not supported in a WhatsApp carousel.

To send a carousel with a link on every card:

  1. Add a Carousel node to the flow.

    Flow with a Start node connected to a Carousel node
  2. In the first card, add an image, a title and a description.

    Carousel node panel showing the first card
  3. Click + next to the last card to add another card. Repeat until you have all the cards, with an image on each.

    The plus button next to the last card adds a card
  4. On each card, click Add new button and select Open URL as the button type.

    Button type list with Text message, Go to flow, Open URL and Send phone number
  5. Enter a button name and the link, then click Save. Each card can have its own link.

    Open URL button with a button name and a link
  6. Repeat steps 4 and 5 on every card, so each card has exactly one Open URL button.

  7. Connect the Success and Fallback cases, then publish the flow.

To let the user pick an option instead, give every card one or two Text message buttons. When the user taps one, the flow continues the same way as a tap on a carousel button on the website.

note

Add the buttons in the flow's default channel view. When the flow editor is switched to the WhatsApp channel view, the button type list shows only Text message.

Dynamic carousel on WhatsApp

A dynamic carousel (cards from a variable, see Configure dynamic carousel options below) follows the same rules. Each card in the array is one object:

FieldWhat to put in it
titleCard title. The first card's title is also shown as the message above the cards.
textCard description.
image or videoA public link to the media. Required on every card.
actionsThe card's buttons. Use the same button type and count on every card.

For a link on every card, give each card one action with "buttonDefault": "url":

[
{
"title": "Product 1",
"text": "Short description of product 1",
"image": "https://www.example.com/images/product-1.png",
"actions": [
{ "title": "View details", "buttonDefault": "url", "url": "https://www.example.com/product-1" }
]
},
{
"title": "Product 2",
"text": "Short description of product 2",
"image": "https://www.example.com/images/product-2.png",
"actions": [
{ "title": "View details", "buttonDefault": "url", "url": "https://www.example.com/product-2" }
]
},
{
"title": "Product 3",
"text": "Short description of product 3",
"image": "https://www.example.com/images/product-3.png",
"actions": [
{ "title": "View details", "buttonDefault": "url", "url": "https://www.example.com/product-3" }
]
}
]

For a choice on every card, give each card one or two actions with "buttonDefault": "text". Give each button a different text, so the flow can tell which card was tapped:

[
{
"title": "Product 1",
"text": "Short description of product 1",
"image": "https://www.example.com/images/product-1.png",
"actions": [
{ "title": "Buy", "buttonDefault": "text", "text": "buy-product-1" },
{ "title": "Details", "buttonDefault": "text", "text": "details-product-1" }
]
},
{
"title": "Product 2",
"text": "Short description of product 2",
"image": "https://www.example.com/images/product-2.png",
"actions": [
{ "title": "Buy", "buttonDefault": "text", "text": "buy-product-2" },
{ "title": "Details", "buttonDefault": "text", "text": "details-product-2" }
]
}
]

Build the array in a Function node from your own data, with one object per card (2 to 10). Store the function's response in a variable of type Array, then select that variable in the Carousel node's Fetch from field. A variable of type Object cannot hold a list of cards, and the Carousel node then shows its static card instead.

Carousel settings

You can use carousel settings to customize the carousel cards as per your use case.

  1. Click the settings icon.

    drawing
  2. Enable or disable the following toggles and click Save.

    drawing
FeatureDescription
Hide InputHides the input area for the user in the AI-agent to prevent the user input.
Hide Home ButtonHides the home button from the user interface.
Enable Default FeedbackDisplays like and dislike emojis next to each card for user feedback.
Disable Action after ClickDisables the carousel list after a button is clicked.
Card TypeSelect how carousel options should be displayed based on the intended use case. For exmple, selecting Transaction Status displays the carousel as a transaction status to the user.

Configure dynamic carousel options

To configure the dynamic carousel options, follow these steps:

  1. Go to the Carousel node and click the highlighted icon to copy the sample variable.

Sample Carousel object:

[
{
"title": "Item1",
"text": "Description",
"actions": [
{
"title": "Button #1",
"buttonDefault": "text",
"text": "Message1"
},
{
"title": "Button #2",
"buttonDefault": "triggerJourney",
"analytics": "analytics",
"triggerJourney": "test"
},
{
"title": "Button #3",
"buttonDefault": "url",
"analytics": "analytics",
"url": "https://www.sample-site.com",
"postback": "post-back"
},
{
"title": "Button #4",
"buttonDefault": "phoneNumber",
"analytics": "test-analytics",
"phoneNumber": "9876543210"
}
],
"image": "https://cdn.abc.com/sample-img.jpeg",
"text": "Description for item1"
},
{
"title": "Title",
"description": "Description",
"actions": [
{
"title": "Button #1"
},
{
"title": "Button #2"
}
],
"image": "",
"video": "",
"text": ""
}
]

The actions above describe the card button. You can add multiple actions to a single card in a carousel.

This sample mixes four button types and its second card has no image, so on WhatsApp only its first card is sent. For WhatsApp, use the samples in Dynamic carousel on WhatsApp above.

You can add a URL type action, for example the sample format:

{
"title": "Explore more",
"buttonDefault": "url",
"url": "https://sampleurl.com",
}
  1. Go to the Functions section and paste the sample variable into the Resolve section.

  2. In the flow builder section, add a Function node and select the function name you created in the previous step.

  3. Create a variable of type Array and select it to store the function's response. The function returns a list of cards, which a variable of type Object cannot hold.

  4. Add a promot Carousel node and select the variable created in the previous step

    drawing
  5. Preview the flow to test and view the dynamic Carousel node.

    drawing

Refer to the following GIF to see how the carousel node works: