> ## Documentation Index
> Fetch the complete documentation index at: https://help.chatarmin.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to use Variables from a third-party (webhook) inside your Flows

> Chatarmin guide: How to use Variables from a third-party (webhook) inside your Flows

<iframe src="https://www.loom.com/embed/00231f55eeed4aaebbb587cb105569a8" title="Loom video" width="100%" height="420" allowFullScreen />

You can either watch the [Video-Guide](https://www.loom.com/share/00231f55eeed4aaebbb587cb105569a8?sid=d9920467-81e3-417c-9c96-e4073e0b1b04) above or check-out the steps below!

# Choosing the correct Flow Trigger

When you want to use Variables passed through a third-party, your Flow Trigger has to be of type **POST-Endpoint** or **Klaviyo Webhook.** You can create a new flow [here](https://chatarmin.com/dashboard/flows/create)

<img src="https://mintcdn.com/chatarmin-help-center/FkIbrM1lxMp-fNLL/images/1ede6069-2d5d-42ee-9418-83a05e43bf1c/019b9c80-b3e8-75fd-8352-97bf133930a6.png?fit=max&auto=format&n=FkIbrM1lxMp-fNLL&q=85&s=5ba76b7745967b26769084f72500751e" alt="Chatarmin help center image" width="564" height="190" data-path="images/1ede6069-2d5d-42ee-9418-83a05e43bf1c/019b9c80-b3e8-75fd-8352-97bf133930a6.png" />

<img src="https://mintcdn.com/chatarmin-help-center/FkIbrM1lxMp-fNLL/images/1ede6069-2d5d-42ee-9418-83a05e43bf1c/019b9c80-b403-7672-947d-de63a00f5814.png?fit=max&auto=format&n=FkIbrM1lxMp-fNLL&q=85&s=897f9bd3b4a6aa8aef3232590e0cc021" alt="Chatarmin help center image" width="564" height="190" data-path="images/1ede6069-2d5d-42ee-9418-83a05e43bf1c/019b9c80-b403-7672-947d-de63a00f5814.png" />

After selecting your trigger, you will need to pass in the **Payload Body when configuring your trigger,** so that the Tool (Chatarmin) knows, which Variables will/can be used. An example of that payload would be:

```
&#123;
    "email": "&#123;&#123; person.email &#125;&#125;",
    "phone":"&#123;&#123;person.phone_number&#125;&#125;",
    "tracking_url":"&#123;&#123;event.trackingURL&#125;&#125;"
&#125;
```

# Selecting Variables in Flows

## In Templates

Now, after you have configured your **Trigger** with the correct **Payload Body** and clicked on **Save**, you can add **"Send Campaign"** as the next step and select a Template:

<img src="https://mintcdn.com/chatarmin-help-center/FkIbrM1lxMp-fNLL/images/1ede6069-2d5d-42ee-9418-83a05e43bf1c/019b9c80-b414-706f-bc28-03280c25a9f7.png?fit=max&auto=format&n=FkIbrM1lxMp-fNLL&q=85&s=e80b343b7edc7d56209a9c1041815d76" alt="Chatarmin help center image" width="3444" height="1858" data-path="images/1ede6069-2d5d-42ee-9418-83a05e43bf1c/019b9c80-b414-706f-bc28-03280c25a9f7.png" />

After selecting your Template -> Select your Variables:

<img src="https://mintcdn.com/chatarmin-help-center/FkIbrM1lxMp-fNLL/images/1ede6069-2d5d-42ee-9418-83a05e43bf1c/019b9c80-b411-7348-b1b3-4ae81092a66d.png?fit=max&auto=format&n=FkIbrM1lxMp-fNLL&q=85&s=f8c0d2b96fad0905131f1655aed798fa" alt="Chatarmin help center image" width="3444" height="1858" data-path="images/1ede6069-2d5d-42ee-9418-83a05e43bf1c/019b9c80-b411-7348-b1b3-4ae81092a66d.png" />

Now, after Publishing your Flow, you can test your Flow and see that the passed Variables will be used!

## In normal Messages

You can also use them in "Send message". Just type the key "@" in the Field and you will see all the available Variables:

<img src="https://mintcdn.com/chatarmin-help-center/FkIbrM1lxMp-fNLL/images/1ede6069-2d5d-42ee-9418-83a05e43bf1c/019b9c80-b3f5-72b8-995c-37464174a3f2.png?fit=max&auto=format&n=FkIbrM1lxMp-fNLL&q=85&s=88019bf3acab948bb2cd243c9d659385" alt="Chatarmin help center image" width="1016" height="511" data-path="images/1ede6069-2d5d-42ee-9418-83a05e43bf1c/019b9c80-b3f5-72b8-995c-37464174a3f2.png" />

So you could pass a `"message"` variable in your POST Body and then access just the message!
