# Vonage WhatsApp

{% hint style="info" %}
To connect Vonage WhatsApp, a Vonage WhatsApp API account is required. Read this [guide](https://help.nexmo.com/hc/en-us/articles/360023923712-How-do-I-register-to-send-messages-using-WhatsApp-via-the-Messages-API-) to create a Vonage WhatsApp API account.
{% endhint %}

![Vonage](https://3688769499-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Mbui1HRO4dGghy5ITOz%2F-McsH533mQa-B8KG6Ow4%2F-McsHGkKbSNfkUsRy3im%2Fimage.png?alt=media\&token=58a77398-1287-47a5-9ccb-0278316cf578)

In addition to providing SMS services, Vonage is also an API provider that works directly with WhatsApp as an official partner. Vonage also provides other services such as phone number purchases and WhatsApp Official API account management.‌

By integrating Vonage WhatsApp API, the platform can enable you to respond to WhatsApp messages directly.

{% hint style="warning" %}
This channel has a limited 24-hour messaging window due to WhatsApp regulations. Find out more [here](https://docs.is-messenger.com/ismessenger/messaging-channels/whatsapp/..#messaging-window)!
{% endhint %}

## Connecting Vonage WhatsApp

**Step 1: Navigate to Channel Settings**\
From **Settings** Module, navigate to the menu item, **Channels**

**Step 2: Add Channel**\
Press **Add Channel** and choose **WhatsApp.** Select **Vonage** on the second step

![](https://3688769499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mbui1HRO4dGghy5ITOz%2Fuploads%2Fd8mA0EKExAuG2p8zCYqO%2FScreenshot%202022-06-20%20125918.png?alt=media\&token=159168a4-a431-4007-963d-84dfb02079c4)

![](https://3688769499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mbui1HRO4dGghy5ITOz%2Fuploads%2FfeZdwkUuhSqNcJO33W51%2FScreenshot%202022-06-20%20143829.png?alt=media\&token=0f2afa85-a87f-43a4-b583-4d338de1dd5b)

**Step 3: Sign in to** [**Vonage**](https://dashboard.nexmo.com/sign-in)\
Sign in with your user credentials at Vonage

**Step 4: Locate the API Key & API Secret** \
Find the API Key and API Secret on the Dashboard and add it to the corresponding fields at ISMessenger platform.&#x20;

![Settings Page on Vonage Dashboard](https://3688769499-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Mbui1HRO4dGghy5ITOz%2F-McsH533mQa-B8KG6Ow4%2F-McsHobxW_htV2irgCaf%2Fimage.png?alt=media\&token=f1f5df35-77d6-4f5e-9980-fe967489f300)

**Step 5: Follow through the instructions**

<figure><img src="https://3688769499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mbui1HRO4dGghy5ITOz%2Fuploads%2F1YEUVIKLAsGEkoaI2n3O%2FScreenshot%202023-07-27%20162756.png?alt=media&#x26;token=7f51b020-4288-484a-9c0f-b36fe57a0702" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3688769499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mbui1HRO4dGghy5ITOz%2Fuploads%2FsGioMQJmXjTnL9vcsHqi%2FScreenshot%202022-09-01%20115449.png?alt=media&#x26;token=d6a1f4f2-a0f8-4399-8efd-a3191aa5582c" alt=""><figcaption></figcaption></figure>

**Step 6: Create an Application**

At Vonage, navigate to [Your Applications](https://dashboard.nexmo.com/applications) and create an application. Give the application a suitable name.

**Step 7: Enable Messages**

Enable **Messages** by enabling the toggle and selecting version **v1.0**.

<figure><img src="https://3688769499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mbui1HRO4dGghy5ITOz%2Fuploads%2FUOWZniotnQXdZalO1jtk%2Fvonage-dashboard-application-page.png?alt=media&#x26;token=d44e29ae-064f-477b-82bc-b1e3c63511ee" alt=""><figcaption></figcaption></figure>

**Step 8: Add the Generated URLs**

Add the generated URLs from IS-Messenger to the corresponding fields on Vonage platform.

**Step 9: Generate New Application**

Scroll down and click **Generate New Application**.

**Step 10: Link a Vonage WhatsApp Number**

Open the **Linked External Accounts** tab and click **Link** next to the Nexmo WhatsApp Number.

**Step 11: Follow through the instructions**

Follow through with the instructions by clicking **Next**.

<figure><img src="https://files.helpdocs.io/9e3syfbzn8/articles/67afxn7ezl/1663644438271/connecting-vonage-whats-app-4.png" alt="Connecting Vonage WhatsApp to respond.io dialog"><figcaption></figcaption></figure>

**Step 12: Select the Enabled WhatsApp Number**

On the IS-Messenger platform, select the enabled WhatsApp number from the dropdown.

**Step 13:** On the Vonage platform, navigate to [Applications](https://dashboard.nexmo.com/applications) and select the WhatsApp application to connect.

**Step 14:** Click **Edit** and then click **Generate Public** and **Private Key**.

**Step 15:** Add the **Private Key** field to the corresponding field on the IS-Messenger platform.

**Step 16:** On the Vonage platform, save changes to the dashboard.

**Step 17:** Click **Save Changes** to complete the setup.

Click **Done** to complete the setup.

{% hint style="success" %}
Once you completed the setup, any messages sent to your Vonage WhatsApp Number will now be received in your Space.
{% endhint %}

## Channel Configuration

{% hint style="info" %}
Vonage WhatsApp channel can be configured with a unique channel name.
{% endhint %}

**SStep 1:** Navigate to **Workspace Settings** > Click **Channels**.

**Step 2:** Locate the Vonage WhatsApp Channel > Click **Manage > Configuration.**

**Step 3:** Make the necessary configuration for the following fields

* **Channel Name** - Name used internally to identify the account.
* **WhatsApp Business Account ID** - This is required to sync and submit Message Templates. Contact your Vonage Customer Solution Architect to get this credential.
* **User Access Token** - This is required to sync and submit Message Templates. Contact your Vonage Customer Solution Architect to get this credential.

{% hint style="warning" %}
Take extra caution when updating other credentials as changing these credentials may cause failure in receiving or sending messages from your Vonage WhatsApp account.
{% endhint %}

**Step 4:** Click **Save Changes** to update the Channel configuration.

### Metadata Received by Channel <a href="#metadata_received_by_channel" id="metadata_received_by_channel"></a>

Different channels provide different set of Contact’s metadata to IS-Messenger platform. Here’s the list of Contact’s data you’ll be able to obtain from this channel:

* Phone number
* Profile name

## Managing WhatsApp Message Templates

{% hint style="warning" %}
Before sending a Template Message to a Contact on the respond.io platform, ensure you did the following:

* Submitted the message template for approval

* Added the approved message template to the Space by syncing the message template
  {% endhint %}

* Submitted the message template for approval

* Added the approved message template to space

### Submitting Message Template for Approval

{% hint style="info" %}
If you do not have an approved message template or would like to submit a new message template, please refer to the following guide.&#x20;
{% endhint %}

**Step 1: Navigate to WhatsApp Manager**\
From [Facebook Business Manager](https://business.facebook.com/home/accounts?business_id=2290848174274168), open WhatsApp manager from the drop-down menu.&#x20;

**Step 2: Create Message Template**\
Press on **Message Templates** tab and press **Create Message Template**

<figure><img src="https://3688769499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mbui1HRO4dGghy5ITOz%2Fuploads%2FRvIYzLX7TVkc8UuD4dCs%2F5.gif?alt=media&#x26;token=c6924842-db75-4c86-bdee-b9475ab57a79" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Detailed instruction for submitting Template Messages for approval are available in the [Vonage Documentation](https://help.nexmo.com/hc/en-us/articles/360029517191).
{% endhint %}

### Adding the Approved WhatsApp Message Template to the Space

Once your Message Template has been approved on Vonage, you may proceed to add the message template on the ISMessenger platform.

**Step 1: Navigate to Channel Settings**\
From **Settings** Module, navigate to the menu item, **Channels**

**Step 2: Locate the Vonage WhatsApp channel**\
Once you have located the Vonage WhatsApp channel, press **Templates**

**Step 3: Fill in the required information**

![](https://3688769499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mbui1HRO4dGghy5ITOz%2Fuploads%2FPXfaVvgcIveKUHiGVGnZ%2FScreenshot%202022-06-20%20143530.png?alt=media\&token=ef1ac958-de0c-4fe6-9576-45bcb1865cfa)

| **Fields**       | **Type**      | **Description**                                                         |
| ---------------- | ------------- | ----------------------------------------------------------------------- |
| Template Name    | Text          | A name used to identify the template                                    |
| Template Content | Text          | The message template approved by WhatsApp and to be sent to the contact |
| Namespace        | Text          | The unique identifier provided by the WhatsApp Partner API              |
| Category         | Single select | In which category does this template belong to.                         |
| Language         | Single select | In which language this template is written in                           |

**Step 4: Save changes**\
Review the information and press **SAVE** when it is ready.&#x20;

**Step 5: Start building the message**

Build the message by filling in the necessary components, then review the message in the preview section.

| **Building Block** | **Description**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Header             | <p>The Header is optional and serves as the title or header of your template. It supports the following:</p><ul><li>Text</li><li>Image</li><li>Video</li><li>Document</li></ul>                                                                                                                                                                                                                                                                                                                                                     |
| Body               | <p>The Body should contain the most important text of your template. Only text is supported.</p><p><em>You may use markdown to format the content of this block.</em></p>                                                                                                                                                                                                                                                                                                                                                           |
| Footer             | The Footer only supports text and can be used to provide less relevant information in your template message.                                                                                                                                                                                                                                                                                                                                                                                                                        |
| Button             | <p>The button adds interactivity to your templates. There are two main types.</p><ul><li><p>Quick Reply Button</p><ul><li>Used for getting quick answers from your client</li><li>Max 3 Quick Reply Buttons per Template</li><li>Each Quick Reply cannot have more than 20 characters</li></ul></li><li><p>Call to Action Button</p><ul><li>Used to send your client to a Website or call a Phone Number</li><li>Max one URL and Phone Number per Template</li><li>URL can have a parameter for personalization</li></ul></li></ul> |

**Step 6: Provide sample value**

This is only applicable if you have included any parameters in your message template content.

Providing sample values to the parameter in the message template will assist the review to understand the message you are trying to send to your contacts.

<figure><img src="https://3688769499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mbui1HRO4dGghy5ITOz%2Fuploads%2Fw6AhL8CtjhppCW4Ujlj0%2F5.gif?alt=media&#x26;token=dbba096c-8ba7-46dd-9393-521a3b427148" alt="Submitting Vonage WhatsApp Message Template for approval on respond.io gif"><figcaption></figcaption></figure>

You may use [Dynamic Variables](https://docs.is-messenger.com/ismessenger/contact-and-messages/untitled) to fill in the message template parameter.

**Important Links**

* [Creating message templates](https://help.nexmo.com/hc/en-us/articles/360029517191)
* [Creating message templates by Meta](https://www.facebook.com/business/help/2055875911147364?id=2129163877102343)
* [Message guidelines by WhatsApp](https://developers.facebook.com/docs/whatsapp/message-templates/guidelines)

### **Syncing Message Templates**

{% hint style="warning" %}
Before syncing Template Message on the respond.io platform, ensure you did the following:\
\- Added **WhatsApp Business Account ID** and **User Access Token** in the channel configuration dialog.
{% endhint %}

**Step 1: Navigate to Channel Settings**

From **Settings** module, navigate to the menu item, **Channels**.

**Step 2: Locate the Vonage WhatsApp channel**

Once you've located the Vonage WhatsApp channel, click **Templates**.

**Step 3: Sync Templates**

Click **Sync Templates** to begin the syncing process.

<figure><img src="https://3688769499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mbui1HRO4dGghy5ITOz%2Fuploads%2FYe3hOiIrFzBu06xqC8ju%2F5.gif?alt=media&#x26;token=d6c8f904-abcd-49a5-9b72-12b403e71c45" alt="Syncing WhatsApp Message Template between Vonage and respond.io gif"><figcaption></figcaption></figure>

**Step 4: Syncing Completed**

When the synchronization has been completed, the message templates will be listed with their corresponding status and the last synced date time will be updated. The rejection reason will be displayed underneath the rejected message template.

| **Status** | **Description**                                               |
| ---------- | ------------------------------------------------------------- |
| Submitted  | The message template is submitted and pending approval.       |
| Approved   | The message template is approved and can be sent to contacts. |
| Rejected   | The message template is rejected and cannot be used.          |

{% hint style="info" %}
You may use the search and filter at the top right corner of the listing to find your templates easier.
{% endhint %}

### Rate Limits <a href="#rate_limits" id="rate_limits"></a>

A rate limit is the number of API calls an app or user can make within a given time period defined by the channel. Learn more about the [rate limits for this channel here](https://developer.vonage.com/messages/concepts/whatsapp).

### FAQ and Troubleshooting <a href="#faq_and_troubleshooting" id="faq_and_troubleshooting"></a>

**Inability to Send and Receive Messages**

If you're encountering issues sending and receiving messages, we recommend you to check the application version of your Vonage application.

Step 1: Navigate to [Vonage](https://dashboard.nexmo.com/sign-in) and sign in with your Vonage user credentials.

Step 2: Navigate to your Application and click on edit. Verify if you have selected v1 and Inbound proceed to update it and save changes.

**Message status is not updated**

If you're encountering issues with message status is not updated, we recommend you to check the **Status URL** of your Vonage application.

Step 1: Navigate to [Vonage](https://dashboard.nexmo.com/sign-in) and sign in with your Vonage user credentials.

Step 2: Navigate to your Application and click on edit.&#x20;

### Troubleshooting <a href="#troubleshooting" id="troubleshooting"></a>

**Inability to Send and Receive Messages**

If you're encountering issues sending and receiving messages, we recommend you to check the application version of your Vonage application.

**Step 1: Navigate to** [**Vonage**](https://dashboard.nexmo.com/sign-in)

Sign in with your user credentials in Vonage.

**Step 2: Verify the Messages version**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.is-messenger.com/ismessenger/messaging-channels/whatsapp/vonage-whatsapp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
