# Examples These examples help you learn and build WhatsApp Flows. ## Video tutorials Watch these introductory video tutorials to learn how to build Flows. #### [1. Creating and sending WhatsApp Flows with message templates](https://www.youtube.com/watch?v=0s_0Y843h60) #### [2. Create a new WhatsApp Flow using the Flow Builder interface](https://www.youtube.com/watch?v=gx_QGaSLoOA) #### [3. Connecting WhatsApp Flows to an endpoint](https://www.youtube.com/watch?v=QO_ngN8H5GU) ## Use case guides These popular use cases come bundled with templates, step-by-step guides, and code for ease of use. #### [1. Get leads for pre-approved loans](https://developers.facebook.com/documentation/business-messaging/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 complete a loan application in a few steps. #### [2. Get an insurance quote](https://developers.facebook.com/documentation/business-messaging/whatsapp/flows/gettingstarted/health-insurance) This guide will help you create a Flow that enables users to enroll in and customize their insurance coverage within WhatsApp. This use case is ideal for businesses that want to offer customizable products, particularly where a user's details and preferences will generate a tailored quote. #### [3. Collect purchase intent](https://developers.facebook.com/documentation/business-messaging/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 personalized promotion. #### [4. Personalized offer](https://developers.facebook.com/documentation/business-messaging/whatsapp/flows/gettingstarted/personalised-offer) This guide will explain how to create a Flow that offers personalized 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://github.com/WhatsApp/WhatsApp-Flows-Tools/tree/main/examples/endpoint/nodejs/basic) 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://github.com/WhatsApp/WhatsApp-Flows-Tools/tree/main/examples/webhook/nodejs/flows-webhook) 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/documentation/business-messaging/whatsapp/flows/guides/implementingyourflowendpoint#code-examples) Examples demonstrating how request encryption/decryption can be implemented in different languages.