> ## Documentation Index
> Fetch the complete documentation index at: https://knowledge.bitbybit.studio/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Create a Message Template for OTP WhatsApp Cloud API

Effortlessly integrate secure OTP (One-Time Password) functionality into your business processes with the WhatsApp Cloud API. This guide will walk you through creating and testing a message template for OTPs, ensuring seamless and reliable communication with your customers.

## Step 1: Connect Your WhatsApp Cloud API

* Go to the [Integration](https://app.bitbybit.studio/integrations) page and connect your “WhatsApp Cloud API”. Read [How to Create and Connect WhatsApp Cloud API with bitbybit](https://www.bitbybit.studio/knowledge-base/how-to-create-and-connect-whatsapp-cloud-api-with-bitbybit) for details.

![](https://cdn.prod.website-files.com/659655f5b20d395a5c69efcf/675946ee33241e9d51917b03_AD_4nXcxzsoE5hh1sVjOcm-2Nco2_ivo7GJbzSJ5CqEQ-tQeLbFUKBAMMRWLkCSpMM8cmbj1GpP5nbGv8xJnRsqwMB_O2IDAIu4T2i7rrmooWBsESUHguNfhEGUo1CAbpBj0bl_ZfxMo.png)

* Click\*\*"Connect."\*\*

## Step 2: Enable WhatsApp Login

* Once your WhatsApp API is successfully connected, go to the [Social Login](https://app.bitbybit.studio/bitlogin/social) dashboard.
* Enable “Login with WhatsApp”. Then click “[Set up OTP settings](https://app.bitbybit.studio/misc/whatsapp-api-settings?section=bitlogin-whatsapp-settings)” to configure OTP.

![](https://cdn.prod.website-files.com/659655f5b20d395a5c69efcf/675946eeeb56aa16931b7278_AD_4nXcMb7SKGEczcEUSGpsERi7on3j0XGHe4fxZ1Z2OR4UNsRfjfwrRXkQ_oagPbxmux33qCkhnNx9AMALdzJEJKwOehBP8b_eUYrLo3cRArdmxzflo2s3YMrvOrd2Iqfj_0vKCn6kaWg.png)

Enable WhatsApp toggle and click "Set up OTP settings"## Step 3: Activate or Create a Message Template

* Click “Active OTP Template”. Choose from the list of existing templates or select “Create new template”.

![](https://cdn.prod.website-files.com/659655f5b20d395a5c69efcf/675946effa1452345277b27a_AD_4nXeczXjKZpBGsU-fOB9TRwQUOr6tFNlkJE1BHeS02RP5LK9MwM3r88iWYVrbNu9eb4NZHgK3p73uduDai2ZBG4cHB42S8inBFXrVA-15kC8bBq-paBt_0jIrViTDLlrabrpW54z8dA.png)

* Choose existing template or click **"Create new template."**

## Step 4: Fill in Template Details

* Enter the required fields.

![\_\_wf\_reserved\_inherit](https://cdn.prod.website-files.com/659655f5b20d395a5c69efcf/67c6760f739e9d8885abcd9c_createtemplate.png)

* You can see a preview of the message template according to the language you selected on the right.

![\_\_wf\_reserved\_inherit](https://cdn.prod.website-files.com/659655f5b20d395a5c69efcf/67c675f81f9a9632dbe7e3f2_otppreviewmessage.png)

**Note:** Template Name: Use only lowercase letters and underscores (e.g. otp\_login\_template)

## Step 5: Save Your Template

* Click Save template.

![](https://cdn.prod.website-files.com/659655f5b20d395a5c69efcf/675946eede7e3fb37d18c0c9_AD_4nXfP_5bj_xdKnn2AkoyeWr-_rMTyCeAPT6Ueyz51KMi4UkRoCPrsjge1mZrHwA0dFOGc1zBXu1dFtBV11C6e9nE-MCmYcocvQr34PDWP_WrFITGQtI2bOumaq5pDvPnGGMTmw3-xXw.png)

Click "Save template"**Note:** Template approval by Meta takes 1–3 days.

## Step 6: Test Your Template

* Log in to your store and select “Continue with WhatsApp”. Enter your number and request an OTP.

![](https://cdn.prod.website-files.com/659655f5b20d395a5c69efcf/675946eeff9dc33c609fb272_AD_4nXc4Hgz0Mm1wkeulcUSDRi0_96GhHs3QW5Ygly8lPX5lkRsI3vA2RN3U2-sPR2VN9S8qdQbb1ri3R3XrX4ytgq_LbBDJtvzCTGtbbuvzV3VRx4piD-ufbecCI10_fzbQDX1yKCObkA.png)

* Enter phone number and click "Request OPT".

Congratulations! 🎉 Your OTP message template is now successfully created and integrated.
