Examples

This page contains a variety of examples to help you learn and build WhatsApp Flows.

Use Case Guides

Below you can find the most popular use cases, which we packaged together with templates, step-by-step guides and code for ease of use.

1. Get Leads for Pre-Approved Loans

In this guide, designed for businesses in the Financial Service sector, you will learn to build a Flows powered pre-approved loan experience that simplifies the borrowing process, allowing users to secure funds with just a few clicks.

2. Get Insurance Quote

This guide will help you create a Flow that enables users to seamlessly enroll in and customise their insurance coverage within WhatsApp. This use case is ideal for businesses that want to offer customisable products, particularly where a user’s details and preferences will generate a tailored quote.

3. Collect Purchase Intent

This guide will help you to create a Flow for a business to understand what products or services your customers are interested in. This data can be leveraged in advance of Marketing and Sales campaigns, and to offer personalised promotion.

4. Personalised Offer

This guide will explain how to create a Flow that offers personalised offers to your customers. Users will be able to select products they are interested in, their budget, and receive a specific recommendation on what to purchase. This guide is ideal for engaging users in promotional events.

Tutorials

The following blog articles are provided by the WhatsApp Flows development team and contain step-by-step tutorials for common use cases.

1. Build a Simple WhatsApp Flow

This tutorial explains how to build a simple survey using WhatsApp Flows from the Message Templates page or from Flow Builder.

2. Book Appointments with WhatsApp Flows: Creating a Node.js Back End

This tutorial explains the steps to create a Flow for an appointment booking use case in Flows Builder, and setting up an endpoint server in NodeJS for the Flow using the code example on Github & Glitch.

3. Create Surveys with WhatsApp Flows

This tutorial explains how to build a Python server that uses Flows API to create and publish a Flow, and using the server as a webhook to send the Flow and process its responses.

4. Add WhatsApp Flows to Your Chatbot Experience

This tutorial explains how to build a Python server that sends a Flow, receives the response, and uses a Llama 2 chatbot to answer user queries.

Additional Code Examples

1. Basic Endpoint Example (Glitch)

This is a blank endpoint example in NodeJS that you can use as a starting point for any Flow.

2. Webhook Example to Send Flows (Glitch)

This is an example webhook server to send a Flow message and receive its response.

3. Endpoint encryption/decryption examples in various languages

Examples demonstrating how request encryption/decryption can be implemented in different languages.