# How to trigger a WhatsApp automation - Simio

You will create one API-triggered flow in Simio, add your Simio API key into Batch, and finally configure a Universal step that sends the request.

{% hint style="info" %}
**Note:** If you have an existing Simio connection, you can skip step 2. This step must be done only once.
{% endhint %}

{% stepper %}
{% step %}

## **Step 1 — Create an API-triggered automation in Simio**

Start in Simio.\
You need a WhatsApp automation that begins when it receives an API request — this is what Batch will trigger.

#### **What to do**

1. Open **Automations** in Simio
2. Create a new automation
3. Choose **API** as the trigger
4. Save your automation
5. You can write the WhatsApp message now or add it later

<figure><img src="https://2998247023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbwlQFpRAhaFR79zae6Jf%2Fuploads%2Fs2EHAG3u1x3uktdxwt9m%2Funiversal%20channel%20simio%200.png?alt=media&#x26;token=d526ec19-cc3b-4d69-8b37-6f3030fbc93f" alt="" width="278"><figcaption></figcaption></figure>

This panel also displays the destination URL, API key name, and JSON example you will use later.
{% endstep %}

{% step %}

## **Step 2 — Add your Simio API key into Batch**

Batch needs your Simio API key to authenticate each time it sends a trigger request.

#### **In Simio**

Copy the hidden Value (your actual API key) from the API trigger panel, just below the `SIMIO-API-KEY` field.

<figure><img src="https://2998247023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbwlQFpRAhaFR79zae6Jf%2Fuploads%2FDdFxRARVawroan0FMBaw%2Funiversal%20channel%20simio%201.png?alt=media&#x26;token=a80ff89f-a932-4b35-a528-37b1657b9a9f" alt=""><figcaption></figcaption></figure>

**In Batch**

1. Go to **Settings → Channels → Universal**
2. Click **New Credential Headers**
3. Choose a name (e.g., “SIMIO”)
4. Key → `SIMIO-API-KEY`
5. Value → paste the key from Simio
6. Save

<figure><img src="https://2998247023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbwlQFpRAhaFR79zae6Jf%2Fuploads%2F5mwAm1YQU7Pb7HB95IGE%2Funiversal%20channel%202.png?alt=media&#x26;token=6391d59e-2632-4769-99bf-68ba5e5985df" alt=""><figcaption></figcaption></figure>

> **Note:**\
> If you create multiple automations in Simio, they will all use the same API key.\
> You only need to add the credential once in Batch.
> {% endstep %}

{% step %}

## **Step 3 — Configure the Universal step in Batch**

In this step, you will add the Universal step in your Batch automation and configure it to trigger the Simio automation you created in Step 1.

#### **Add the Universal Step**

1. Open the Batch automation where you want to trigger WhatsApp
2. Click the **+** button
3. Select **Universal**

This opens the Universal step configuration screen.

<div data-full-width="false"><figure><img src="https://2998247023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbwlQFpRAhaFR79zae6Jf%2Fuploads%2FxObMCTr1fbP1eRYixRs8%2Funiversal%20channel%205.png?alt=media&#x26;token=87743033-d6d4-4e95-bcdd-571907dbb37b" alt="" width="314"><figcaption></figcaption></figure></div>

***

#### **Configure the Simio request**

Fill in the fields using the information from Simio:

**1. Destination URL**

Paste the URL shown in Simio’s API trigger (example: `https://app.getsimio.com/api/campaign/9753`)

**3. Headers**

Choose the credential header you created earlier (e.g., **SIMIO**)

**4. JSON Body**

Start with the phone number:

```json
{
  "phone": "{{b.phone_number}}"
}
```

<figure><img src="https://2998247023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbwlQFpRAhaFR79zae6Jf%2Fuploads%2FQp79pQ76n88zLvNkostm%2Funiversal%20channel%204.png?alt=media&#x26;token=baff8cca-d19f-41d3-aef3-f19fb9148b61" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

## **Step 4 — Test the connection**

Once your Universal Step is configured, you can test it directly from Batch to make sure everything is working properly.

#### **How to test**

1. In the Universal Step, click **Test API**.
2. If your JSON body includes personalization (e.g., `{{b.phone_number}}`), choose a **test profile** so Batch can fill in real data.
3. Click to send the test request.

<figure><img src="https://2998247023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbwlQFpRAhaFR79zae6Jf%2Fuploads%2F8W9eHqz2JSQl5uT0Y5E6%2Funiversal%20channel%204%20copie.png?alt=media&#x26;token=d9c9344a-b028-43f8-9296-0b237d5081d8" alt="" width="563"><figcaption></figcaption></figure>

#### **What the test does**

* Batch performs the exact same API call it will make when the automation is live.
* Simio receives the request and triggers the corresponding WhatsApp automation for the selected profile.

#### **What Batch validates**

Batch will display whether the request was **successfully delivered** to Simio or if something needs fixing (e.g., wrong URL, missing key, invalid JSON).

> **Note:** Batch can only confirm that the trigger was correctly called. It does not have visibility on what happens inside Simio afterward (e.g., whether the message was sent or failed).
> {% endstep %}

{% step %}

## **Step 5 — Activate your Batch automation**

When the test is successful, you can turn your Batch automation live.

#### **To activate**

1. Review your workflow, including the Universal step.
2. Run your automation

#### **Once live**

* Every time a profile moves through this step in your automation, Batch will send the API request to Simio.
* Simio will then run the WhatsApp automation linked to the URL you configured.
  {% endstep %}
  {% endstepper %}

#### **Additional Universal steps**

If you want to trigger multiple WhatsApp scenarios (e.g., a follow-up message, or different Simio automations), you can add more Universal Steps within the same Batch automation or in a new one by following these steps again (Step 2 can be skipped).&#x20;
