# Integrate WhatsApp API

Make your customer communication easier by integrating D7 WhatsApp API from ActiveCampign.

## How to Use the D7-WhatsApp Extension on ActiveCampaign

Follow these steps to integrate and use the D7-WhatsApp extension within ActiveCampaign

1. **Add Action in Automations**

Navigate to the Automations section. Click on Add Actions

<figure><img src="https://1617928555-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F56vP61LHDfGd4HenwKbH%2Fuploads%2FhgFTbC8c2J8eMIvwSgFg%2F1.png?alt=media&#x26;token=9bf7238a-8d84-41f0-9337-c051d55efc53" alt=""><figcaption></figcaption></figure>

2. **Select D7-WhatsApp Endpoint**

In the search bar, type "D7". Select the desired WhatsApp endpoint you want to use.

<figure><img src="https://1617928555-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F56vP61LHDfGd4HenwKbH%2Fuploads%2FdRQhL8xpDFCTcuI37awV%2F2.png?alt=media&#x26;token=e49a17d4-46fa-46aa-8002-1014bef35b29" alt=""><figcaption></figcaption></figure>

3. **Generate and Add API Token**

You will be redirected to a window asking for an API token.&#x20;

<figure><img src="https://1617928555-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F56vP61LHDfGd4HenwKbH%2Fuploads%2FjoV0Amn0W3luz1V0T679%2F3.png?alt=media&#x26;token=5be42459-4e68-4cd4-a0a0-76b1e15276af" alt=""><figcaption></figcaption></figure>

&#x20;To generate a token, navigate to: <https://app.d7networks.com/api-tokens>. Create a new application named "ActiveCampaign".

<figure><img src="https://1617928555-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F56vP61LHDfGd4HenwKbH%2Fuploads%2FWHjOncNBuTiNq0DxxQ92%2F4.png?alt=media&#x26;token=c593dd3b-6370-4982-b0c0-097ba91737de" alt=""><figcaption></figcaption></figure>

&#x20;Click on Generate Token and copy it

<figure><img src="https://1617928555-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F56vP61LHDfGd4HenwKbH%2Fuploads%2FW6rV5x2OmggtGU72ww55%2F5.png?alt=media&#x26;token=32ba6804-12d5-4f82-8e48-99d7f9eec682" alt=""><figcaption></figcaption></figure>

Paste the token into the ActiveCampaign Automation window.

4. **Configure WhatsApp Message Details**

Click Next, and you will be prompted to enter the required details:&#x20;

Originator: Get it from <https://app.d7networks.com/whatsapp-meta/registered-numbers>.

<figure><img src="https://1617928555-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F56vP61LHDfGd4HenwKbH%2Fuploads%2FVSYAtue7FctZ2qP6oBKn%2F6.png?alt=media&#x26;token=ae803138-9923-4a75-9b41-32e2c8978ef1" alt=""><figcaption></figcaption></figure>

Language & Template ID: Retrieve from <https://app.d7networks.com/whatsapp-meta/whatsapp-meta-template>.

<figure><img src="https://1617928555-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F56vP61LHDfGd4HenwKbH%2Fuploads%2FEpK6p9fFMMYMPItP0WOU%2F7.png?alt=media&#x26;token=c123d339-dfd5-466e-bbc7-0602e6bdac1d" alt=""><figcaption></figcaption></figure>

Fill in the remaining details.

<div><figure><img src="https://1617928555-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F56vP61LHDfGd4HenwKbH%2Fuploads%2FPYy4Q1v5ZUbO4Bi6AQcU%2F8.png?alt=media&#x26;token=d506ba4f-b87f-43e4-a31f-bad8ad128be9" alt=""><figcaption></figcaption></figure> <figure><img src="https://1617928555-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F56vP61LHDfGd4HenwKbH%2Fuploads%2FjNREWbhwwQZkwfnzKzXv%2F9.png?alt=media&#x26;token=6f62d804-a0bb-4848-bf2e-0148d50d5e23" alt=""><figcaption></figcaption></figure></div>

5. **Activate the Automation**

Once the setup is complete, activate the automation.

<figure><img src="https://1617928555-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F56vP61LHDfGd4HenwKbH%2Fuploads%2FNeT4V2q8QSuCl33xuGqw%2F10.png?alt=media&#x26;token=71227ee3-fb1f-4427-962e-a8c355c50e96" alt=""><figcaption></figcaption></figure>

6. **Monitor Automation Logs**

After a trigger is initiated, you can find the automation log under each contact’s Recent Activities section.

<figure><img src="https://1617928555-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F56vP61LHDfGd4HenwKbH%2Fuploads%2Fj5PPkDbGCmWTlbVivXSy%2F11.png?alt=media&#x26;token=2f47f044-0754-49b3-9108-2c1c190ab7a9" alt=""><figcaption></figcaption></figure>
