Use Dynamic Lists in Interactive WhatsApp message

Learn how to use Sendwo's dynamic lists to create personalized and interactive WhatsApp messages. Easily populate rows with product details, prices, and more.

Quick summary

Learn how to use Sendwo's dynamic lists to create personalized and interactive WhatsApp messages. Easily populate rows with product details, prices, and more.

Sendwo's dynamic lists revolutionize your WhatsApp interactions. By leveraging data from custom fields, you can create interactive messages with rows that dynamically populate with relevant information.

These lists are powered by JSON objects, where each row's details (title, description, values) are determined by specifying the corresponding keys (e.g., product_name, price).

This guide will provide a step-by-step walkthrough on configuring and utilizing this powerful feature, using a product catalog example for practical understanding.

What Are Dynamic Lists?

Dynamic lists revolutionize your WhatsApp messages by automatically generating rows based on JSON data stored in a custom field. Simply specify the relevant keys within your JSON object, and the system effortlessly creates personalized rows for each subscriber.

By leveraging dynamic lists, you can effortlessly display relevant information, making your WhatsApp messages more engaging and personalized. For a practical demonstration of how to utilize dynamic lists with WooCommerce products, explore our comprehensive guide: How to Display WooCommerce Products Inside WhatsApp.

Example Use Case:

Suppose you want to send a product catalog to a user. Your data (API response) might look like this:

Using this feature, each product dynamically generates a row with its respective title, description, and action buttons.

Sendwo Free Plan

Turn this learning into your next WhatsApp campaign.

Start with Sendwo’s free plan, explore WhatsApp broadcasts, automation, AI chatbot flows, and upgrade only when your business needs more power.

Start Free Sendwo Plan

Step 1: Fetch Data Using HTTP API

1. Set Up the API Request:

  • Navigate to HTTP API Integration in Sendwo.
  • Configure the API to fetch your data (e.g., product catalog).

Example API Response:

2. Save API Response to a Custom Field:

  • Assign the API response to a custom field.(e.g., ProductCatalog). And map value will be List Items
  • The response must be in JSON format containing an array of objects.

Step 2: Configure Dynamic Rows in the Flow Builder

To populate your interactive message with dynamic rows, follow these steps:

  1. Row Generation Method: Choose Dynamic to enable rows based on the custom field data.
  2. Custom Field for Dynamic Rows: Select the custom field containing the JSON data (e.g., ProductCatalog).
  3. Key/Index for Dynamic Row Title: Specify the key from the JSON object to be used as the row title.
    • Example: Use product_name to dynamically display values like "Apple iPhone 15 Pro" or "Samsung Galaxy S24 Ultra".
  4. Row Description Format: Define the row description using multiple keys from the JSON object.
    • Format: #custom_field->key#Example: #ProductCatalog->price# - #ProductCatalog->description# will display:
  1. Save Selection to Custom Field: Choose a custom field where the user’s selection will be stored (e.g., SelectedProduct).
  2. Key/Index for Saved Value: Specify the key from the JSON object whose value should be saved to the custom field.
    • Example: Use buy_link to save the product’s purchase link (e.g., https://www.apple.com/iphone-15-pro/).

image 5
image 6

Step 3: Test Your Dynamic List

1. Preview the Message:

  • Access the Flow Builder and preview the dynamic list within your message.
  • Carefully examine the generated rows to ensure they accurately reflect the data received from the API.

2. Simulate User Interaction:

  • Interact with the message as if you were a user, selecting one of the dynamically generated rows.
  • Verify that the selected value is correctly saved to the specified custom field.

Real-Life Examples

1. Product Catalog

API Response:

Dynamic Configuration:

  • Row Description: #ProductCatalog->price# - #ProductCatalog->description#
  • Saved Value (Key): buy_link

Best Practices

  • Ensure API Responses Are Well-Formatted: The API response must be a JSON array of objects.
  • Use Clear Keys and Descriptions: Keep your keys intuitive and descriptions user-friendly.
  • Test Before Deploying: Verify that rows are dynamically generated and selections are saved correctly.

Conclusion

Effortlessly create personalized WhatsApp messages with Sendwo's dynamic lists. Simply reference keys within your JSON data to populate rows with product names, descriptions, and more. It's easy to use and delivers a truly interactive experience for your customers. Start using dynamic lists today!

Aditi Kamini
Written and reviewed by

Aditi Kamini

Aditi, a content marketer at SendWo, is a passionate writer and marketing enthusiast. She excels in driving revenue campaigns, building client relationships, and mastering content creation, SEO, customer service, and project management.