> ## Documentation Index
> Fetch the complete documentation index at: https://whatsapp-docs.kap.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Examples

# Examples

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

## Video Tutorials

Introductory video tutorials to learn how to build Flows

#### [1. Creating and Sending WhatsApp Flows with Message Templates](https://l.facebook.com/l.php?u=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D0s_0Y843h60\&h=AT322VvAMHSUSEZoNii2XTpozvAfelkrFPbAfS5tg2EsC_NJyH6La7ZWSS_yJS4jSZH0HO3N3T_szatxXBAWLmBeoL33-kBkT6BphMkJYl87QJGVkXjf__KpuJkikCXvz3r_HQspiCZcyw)

#### [2. Create a New WhatsApp Flows Using Flows Builder interface](https://l.facebook.com/l.php?u=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dgx_QGaSLoOA\&h=AT1FSjqJ7Pvj40GOksswGRCvSadOUCyVSfN6dqQP1H58q86vV5RYIEQsDNZMzzLLMtr_UWKsRGqtYHmGTeQSZeHKHZdSlux_LdszGLKXtQfXtoqXTLbhNfRiMMI25dYGflA8hWa4OaEtqA)

#### [3. Connecting WhatsApp Flows to an Endpoint](https://l.facebook.com/l.php?u=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DQO_ngN8H5GU\&h=AT0ixpuL0pDIx0pVfpZBgk4vtTxGdgm4_-BExIMZWXTYLjdJ2p8iinVoWG2tCtKE2-P_2W5mwFM-Q4UOG54qbirLMkh9LwEiWuH5VaLRZQV8DTvwf-jENte4mE8pT0y-Ot5_w46iQprz8g)

## 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](https://developers.facebook.com/docs/whatsapp/flows/gettingstarted/pre-approved-loan)

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](https://developers.facebook.com/docs/whatsapp/flows/gettingstarted/health-insurance)

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](https://developers.facebook.com/docs/whatsapp/flows/gettingstarted/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](https://developers.facebook.com/docs/whatsapp/flows/gettingstarted/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](https://developers.facebook.com/blog/post/2024/02/14/building-a-simple-whats-app-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](https://developers.facebook.com/blog/post/2024/02/27/appointments-with-whatsapp-flows/)

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.

#### 3. [Create Surveys with WhatsApp Flows](https://developers.facebook.com/blog/post/2024/03/06/creating-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](https://developers.facebook.com/blog/post/2024/03/20/adding-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](https://l.facebook.com/l.php?u=https%3A%2F%2Fgithub.com%2FWhatsApp%2FWhatsApp-Flows-Tools%2Ftree%2Fmain%2Fexamples%2Fendpoint%2Fnodejs%2Fbasic\&h=AT2iAng_6R55EGzpsI99CzUIwFxhH6GqqLfVEemPBk5XOwS-JKmjM9R9Z1MKxfX9vvaYQT0cT7nCCEPWvIZ_YB1gudKJ-k1HdOGqtAR6o_7_Ev5rPnnupVoEWoN_aZSFvJpPxPsmO846tg)

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](https://l.facebook.com/l.php?u=https%3A%2F%2Fgithub.com%2FWhatsApp%2FWhatsApp-Flows-Tools%2Ftree%2Fmain%2Fexamples%2Fwebhook%2Fnodejs%2Fflows-webhook\&h=AT3lwa8l_3kkoCna-WDXZyBPXwQucEaZtzJnizwgtmE2PS7s-TZSiilxy7P3KRhpCLaWSuQyNfhnd8TiQRdYD0Mn7dvTjYwN8zLxCYYqv-UGD0oFoOO3y_9aHj3IgSpY9-aKiVQuoROdtA)

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

#### 3. [Endpoint encryption/decryption examples in various languages](https://developers.facebook.com/docs/whatsapp/flows/guides/implementingyourflowendpoint#code-examples)

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

On This Page

[Examples](https://developers.facebook.com/docs/whatsapp/flows/guides/examples#examples)

[Video Tutorials](https://developers.facebook.com/docs/whatsapp/flows/guides/examples#video-tutorials)

[Use Case Guides](https://developers.facebook.com/docs/whatsapp/flows/guides/examples#use-case-guides)

[Tutorials](https://developers.facebook.com/docs/whatsapp/flows/guides/examples#tutorials)

[Additional Code Examples](https://developers.facebook.com/docs/whatsapp/flows/guides/examples#additional-code-examples)
