# Integrate SMS API

### **Requirements:**

1. ActiveCampaign account
2. D7SMS account (You can also use trial account without a purchase)
3. Positive balance on D7SMS account

#### **Notes:**

● This automation action sends outbound messages only. For tracking, replies, reporting, and billing,\
please check D7SMS account at <https://app.d7networks.com>\
● Messages sent with this automation action will be sent to contacts who (1) reach this step in your\
automation and (2) have a mobile phone number stored in the standard ActiveCampaign phone\
number field.\
● Messages sent with this automation action have a 700 character limit. This includes field values for\
any personalization tags you use in the message.\
● The recipient's phone number should have a country code prefix. You can also set the default\
country here, and all your messages will be prefixed with the selected country code.

### How the D7SMS app works on ActiveCampaign:

❖ Generate D7SMS Token\
❖ Create automation on ActiveCampaign\
❖ Connect to your D7SMS account\
❖ Configure Message Content, Source address and Message encoding\
❖ Enable/Activate Automation

**1.Generate D7SMS token:**

D7SMS connection uses OAuth 2.0 based Bearer token authentication and you can create this token at the\
developer section of <https://app.d7networks.com/>\
Following are the steps by step instructions to create the token:\
a. Signup with <https://app.d7networks.com/>\
b. Navigate to <https://app.d7networks.com/developer/applications>\
c. Click on “Create App”\
d. Enter an Application Name and “Save”

<figure><img src="https://1617928555-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F56vP61LHDfGd4HenwKbH%2Fuploads%2FdtdMekxriQRfpCzPGgT0%2Fimage.png?alt=media&#x26;token=5d3df6dd-9a0b-4f38-92ff-3b2bb186e348" alt=""><figcaption></figcaption></figure>

e. On the next window click on “Generate Token” and copy the token generated.

<figure><img src="https://1617928555-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F56vP61LHDfGd4HenwKbH%2Fuploads%2FVN9JBsKhydWs4XMtdcRF%2Fimage.png?alt=media&#x26;token=8c659a9c-f30e-462d-a19f-3ead1959461d" alt=""><figcaption></figcaption></figure>

**2.Create automation on ActiveCampaign:**

a. Log in to ActiveCampaign account and Navigate to “Automations”\
b. Click on “Create an automation”

<figure><img src="https://1617928555-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F56vP61LHDfGd4HenwKbH%2Fuploads%2F2jwIrgMR42rBzGz3SwO8%2Fimage.png?alt=media&#x26;token=da5b2080-a94d-4f34-aa67-59f5976c8261" alt=""><figcaption></figcaption></figure>

c. Select Triggers as you wish

<figure><img src="https://1617928555-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F56vP61LHDfGd4HenwKbH%2Fuploads%2FdrVhz701tGBpINFQ5PQQ%2Fimage.png?alt=media&#x26;token=5042b1e4-838d-4551-b5d5-9243918375a2" alt=""><figcaption></figcaption></figure>

d. Choose “Action option” ‘s

<figure><img src="https://1617928555-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F56vP61LHDfGd4HenwKbH%2Fuploads%2FtJnZ9DmSZl3OIz631FSC%2Fimage.png?alt=media&#x26;token=a784159d-79eb-413a-b82b-2f4621d9a693" alt=""><figcaption></figcaption></figure>

**3.Connect your D7SMS account:**\
a. From your automation, click "CX Apps" in the right menu and select “Send SMS Message\
using D7SMS” action and drag it to your automation.

<figure><img src="https://1617928555-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F56vP61LHDfGd4HenwKbH%2Fuploads%2FAxlUGnT0nlTJG1W8Gyni%2Fimage.png?alt=media&#x26;token=01999af6-9538-4331-b3e7-f999f0edff76" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1617928555-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F56vP61LHDfGd4HenwKbH%2Fuploads%2FvVBKDH7DcxSpyeMNbJaP%2Fimage.png?alt=media&#x26;token=f946e755-42f4-45b2-8371-d514a96a46ad" alt=""><figcaption></figcaption></figure>

b. Enter D7SMS Token which is generated earlier

<figure><img src="https://1617928555-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F56vP61LHDfGd4HenwKbH%2Fuploads%2FxZQpguFUVLWbH58I1ANT%2Fimage.png?alt=media&#x26;token=230d6283-01e0-4498-b8c1-68922c7625d8" alt=""><figcaption></figcaption></figure>

c. Select the account

<figure><img src="https://1617928555-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F56vP61LHDfGd4HenwKbH%2Fuploads%2Fn2S0Sqz8DeixIHWlw0wy%2Fimage.png?alt=media&#x26;token=5f0d3b57-ee2a-4b32-9d0a-ca431312cc02" alt=""><figcaption></figcaption></figure>

**4.Configure Message Content, Source address and Message encoding:**

a. Configure “Message Content”

<figure><img src="https://1617928555-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F56vP61LHDfGd4HenwKbH%2Fuploads%2Frd9algkKso5dnenqNw8U%2Fimage.png?alt=media&#x26;token=936780e3-c85c-4c08-bcd4-e45ecccd83df" alt=""><figcaption></figcaption></figure>

b. Configure “Originator” and “Data Coding”

<figure><img src="https://1617928555-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F56vP61LHDfGd4HenwKbH%2Fuploads%2FpqwyKw9HBHo4QsDHsdzR%2Fimage.png?alt=media&#x26;token=7f4933bc-d8fd-4f7d-bdee-b2d973220187" alt=""><figcaption></figcaption></figure>

**5.Enable/Activate Automation**

<figure><img src="https://1617928555-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F56vP61LHDfGd4HenwKbH%2Fuploads%2FLkcVE1Y6vkYAsAGhZmKj%2Fimage.png?alt=media&#x26;token=7e271378-6de7-42de-872c-e51927deed1f" alt=""><figcaption></figcaption></figure>


---

# 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://guides.d7networks.com/integrations/active-campaign/integrate-sms-api.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.
