Sign inGet started

Multi-Product Templates

Multi-product templates let you send a curated selection of products from your WhatsApp Commerce catalog. When the user taps the button, they see a product list organized into sections that they can browse and add to cart directly within WhatsApp.

Prerequisites

Before creating multi-product templates, you must:
  1. Set up commerce messaging on your WhatsApp channel -- connect a Facebook catalog to your WhatsApp Business Account. Follow the guide: Set up commerce messaging.
  2. Get your product IDs from the connected catalog in Facebook Commerce Manager. Open your catalog and copy the content IDs of the products you want to feature. These IDs are used as externalProductId values in the template.
A catalog can only be associated with one WhatsApp Business Account at a time, and a WhatsApp Business Account can only be connected to one catalog. The product IDs must come from the catalog connected to the WhatsApp channel you will send the message from.

Block Structure

A multi-product template uses a single whatsapp-multi-product block:
ComponentRequiredDescription
HeaderYesText, image, or file header
Body textYesMain message text (max 1024 characters)
Footer textNoText below the body (max 60 characters)
Multi-product actionYesButton that opens the product selection view

Multi-product templates require a header, which can be text, image, or file.
Text header:
Ejemplo de código
{
  "type": "text",
  "text": {
    "text": "Our Top Picks"
  }
}
Image header:
Ejemplo de código
{
  "type": "image",
  "image": {
    "mediaUrl": "https://example.com/images/deals-banner.jpg"
  }
}
If you need to host media, use the Media Library API to upload files and get a mediaUrl. See Image Template Blocks -- Uploading media for the full upload flow.

Body

The body is mandatory and describes the product selection.
Ejemplo de código
{
  "type": "text",
  "text": {
    "text": "We've curated a selection of products just for you. Tap below to browse and shop!"
  }
}
Optional text footer, max 60 characters.
Ejemplo de código
{
  "type": "text",
  "text": {
    "text": "Free delivery on orders over $30"
  }
}

Multi-Product Action

The multi-product action creates a "View products" button. Products can be organized as a flat list or grouped into sections.

With product sections (static)

Products organized into named sections:
Ejemplo de código
{
  "type": "multi-product-action",
  "multiProductAction": {
    "parameterKey": "products",
    "thumbnailExternalProductId": "SKU-001",
    "productSections": [
      {
        "type": "whatsapp-product-section",
        "whatsappProductSection": {
          "title": "Best Sellers",
          "products": [
            {
              "type": "whatsapp-product-item",
              "whatsappProductItem": {
                "externalProductId": "SKU-001"
              }
            },
            {
              "type": "whatsapp-product-item",
              "whatsappProductItem": {
                "externalProductId": "SKU-002"
              }
            }
          ]
        }
      },
      {
        "type": "whatsapp-product-section",
        "whatsappProductSection": {
          "title": "New Arrivals",
          "products": [
            {
              "type": "whatsapp-product-item",
              "whatsappProductItem": {
                "externalProductId": "SKU-003"
              }
            },
            {
              "type": "whatsapp-product-item",
              "whatsappProductItem": {
                "externalProductId": "SKU-004"
              }
            }
          ]
        }
      }
    ]
  }
}

With a flat product list

Products as a simple list without sections:
Ejemplo de código
{
  "type": "multi-product-action",
  "multiProductAction": {
    "parameterKey": "products",
    "productList": [
      {
        "type": "whatsapp-product-item",
        "whatsappProductItem": {
          "externalProductId": "SKU-001"
        }
      },
      {
        "type": "whatsapp-product-item",
        "whatsappProductItem": {
          "externalProductId": "SKU-002"
        }
      },
      {
        "type": "whatsapp-product-item",
        "whatsappProductItem": {
          "externalProductId": "SKU-003"
        }
      }
    ]
  }
}
PropertyRequiredDescription
parameterKeyYesVariable key for dynamic product data
thumbnailExternalProductIdNoProduct ID to use as the button thumbnail
productSectionsNoProducts organized into named sections (1--10 sections)
productListNoFlat list of products (1--30 products)
Use either productSections or productList, not both. Sections support 1--10 sections with 1--30 products each.

Complete Example

Ejemplo de código
{
  "defaultLocale": "en",
  "deployments": [
    {
      "key": "whatsappTemplateName",
      "platform": "whatsapp",
      "value": "weekly_deals"
    },
    {
      "key": "whatsappCategory",
      "platform": "whatsapp",
      "value": "MARKETING"
    },
    {
      "key": "whatsappAllowCategoryChange",
      "platform": "whatsapp",
      "value": "true"
    }
  ],
  "variables": [
    {
      "key": "products",
      "description": "Product list for multi-product message",
      "type": "whatsappProductSections",
      "format": "none",
      "examplesLocale": {
        "en": {
          "exampleValues": [
            {
              "sections": [
                {
                  "type": "whatsapp-product-section",
                  "whatsappProductSection": {
                    "title": "Deals",
                    "products": [
                      {
                        "type": "whatsapp-product-item",
                        "whatsappProductItem": {
                          "externalProductId": "SKU-001"
                        }
                      }
                    ]
                  }
                }
              ]
            }
          ]
        }
      }
    }
  ],
  "platformContent": [
    {
      "locale": "en",
      "type": "text",
      "platform": "whatsapp",
      "channelGroupIds": [
        "3f979241-dea3-4f55-b7bb-d769eec27e51"
      ],
      "blocks": [
        {
          "type": "whatsapp-multi-product",
          "whatsappMultiProduct": {
            "header": {
              "type": "text",
              "text": {
                "text": "This Week's Deals"
              }
            },
            "body": {
              "type": "text",
              "text": {
                "text": "Check out our handpicked deals for this week! Browse by category and add items to your cart."
              }
            },
            "footer": {
              "type": "text",
              "text": {
                "text": "Deals expire Sunday midnight"
              }
            },
            "action": {
              "type": "multi-product-action",
              "multiProductAction": {
                "parameterKey": "products",
                "thumbnailExternalProductId": "SKU-001",
                "productSections": [
                  {
                    "type": "whatsapp-product-section",
                    "whatsappProductSection": {
                      "title": "Electronics",
                      "products": [
                        {
                          "type": "whatsapp-product-item",
                          "whatsappProductItem": {
                            "externalProductId": "SKU-001"
                          }
                        },
                        {
                          "type": "whatsapp-product-item",
                          "whatsappProductItem": {
                            "externalProductId": "SKU-002"
                          }
                        }
                      ]
                    }
                  },
                  {
                    "type": "whatsapp-product-section",
                    "whatsappProductSection": {
                      "title": "Accessories",
                      "products": [
                        {
                          "type": "whatsapp-product-item",
                          "whatsappProductItem": {
                            "externalProductId": "SKU-010"
                          }
                        },
                        {
                          "type": "whatsapp-product-item",
                          "whatsappProductItem": {
                            "externalProductId": "SKU-011"
                          }
                        },
                        {
                          "type": "whatsapp-product-item",
                          "whatsappProductItem": {
                            "externalProductId": "SKU-012"
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            }
          }
        }
      ]
    }
  ],
  "supportedPlatforms": ["whatsapp"]
}

Constraints

RuleLimit
Product sections1--10
Products per section1--30
Products (flat list)1--30
Header typeText, image, or file