# Send WhatsApp notifications using the BotPenguin APIs

Before we start, Let's understand the basic workflow.

## Workflow for sending WhatsApp notifications

<img src="https://1745791824-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAPDb8cKQtGlIAfgHjcsQ%2Fuploads%2FZvGm35sl9foia6oHPQwl%2Ffile.excalidraw.svg?alt=media&#x26;token=b241d8f9-691c-4d3e-800c-c5f644ddab72" alt="Workflow for sending WhatsApp notifications" class="gitbook-drawing">

## Setting up WhatsApp Notifications

To create a notification bot with BotPenguin, follow these steps:

**Step 1: Get Your API Key**

* Start by obtaining your API key for integration. Refer to the below doc for more details&#x20;

**Step 2: Setup the WebHook Endpoint**

* Configure the WebHook endpoint where your bot will send and receive messages. Refer to the below doc for more details&#x20;

**Step 3: Create Notification Templates**

* Ensure you've created the required notification templates that your bot will use for messaging.

**Step 4: Retrieve Notification Templates**

* Call the "Get Template API" to retrieve all the templates you've created. Refer to the below doc for more details&#x20;

**Step 5: Send Messages**

* Utilize the "POST WhatsApp Template API" to send messages using the templates. Refer to the below doc for more details&#x20;

**Step 6: Configure Webhook Handling**

* Implement the necessary code to handle the webhook on the configured endpoint. This is where your bot will receive and process incoming messages and notifications.

**Step 7: You're Done!**

* With these steps completed, your notification bot is ready to send and receive messages using your templates, ensuring efficient and effective communication with your audience.
