Connecting WhatsApp Flows to an Endpoint

Connecting WhatsApp Flows to an Endpoint

How to Connect WhatsApp Flows to an Endpoint

Overview of the Appointment Booking Flow

  • The video demonstrates how to connect WhatsApp flows to an endpoint, specifically using the appointment booking flows template. This allows for dynamic population of appointment locations and times based on availability.
  • A fully working example of the endpoint code is available on GitHub, with options to fork and edit it directly in Glitch.

Setting Up the Endpoint

  • The main file controlling user interactions is flows.js, which manages screen displays and data responses. Mock data for each screen is generated from the Flows Builder interface.
  • The function getNextScreen determines which screen appears next, while the init action indicates initial requests when users open flows.

Connecting Endpoint to Flows

  • After running the endpoint and obtaining a public URL, users return to Flows Builder to connect their endpoint by entering this URL.
  • Users must select a metadata developer app linked to their flows after uploading their public key. A health check request verifies that the endpoint is operational and encryption is correctly implemented.

Previewing Flows with Endpoint

  • To preview flows connected with the endpoint, users enable interactive preview mode in settings and select their desired phone number.
Video description

In this tutorial video, we show you how to connect WhatsApp Flows to an endpoint used for an appointment booking journey. Integration with endpoints enables you to populate data like appointment locations and times dynamically based on availability and save the user appointments in your database. Want to learn more about WhatsApp Flows and how to build powerful, interactive experiences on our platform? Check out the helpful resources below! Builder Docs: https://bit.ly/3WICAmn Flow JSON: https://bit.ly/4d4n9KZ Endpoint Docs: https://bit.ly/3yhGXvo Appointment Booking Endpoint Code on Glitch: https://bit.ly/3yi9e50 Appointment Booking Endpoint Code on Github: https://bit.ly/4frrCco Setup Business Encryption Key: https://bit.ly/4dnw61J See how WhatsApp Flows can help you build powerful, interactive experiences. Check out these use cases and get inspired! Pre-Approved Loans: https://bit.ly/3Yw4aop Insurance: https://bit.ly/46tY8Xl Personalized Offers: https://bit.ly/3A1HX7j Purchase Intent: https://bit.ly/3YsIxoK