# Loyalty Lion

## Connection <a href="#connect" id="connect"></a>

When you're setting up your first workflow with [LoyaltyLion](https://loyaltylion.com/), you'll need to create a connection through MESA's LoyaltyLion app integration.

Click Connect with Loyalty Lion to begin this process.

<figure><img src="/files/vsGhsA3vrEQrvSquFg2u" alt=""><figcaption></figcaption></figure>

In order to authorize the MESA application, you will need to log into your LoyaltyLion account.

![](/files/3VjhqY8HJVRVD3Hv1vOh)

Next, accept the MESA app permissions by clicking Authorize.

![](/files/o3NXFi8ZLhRnBEEjaFxH)

Now your LoyaltyLion connection has been created.

![](/files/ppog42GyjuU4D2wwWUDr)

### Configure <a href="#configuring" id="configuring"></a>

#### Add Points to a Customer <a href="#add-points" id="add-points"></a>

In order to add points to a customer, you will often first need to locate a customer's Merchant Id. This can normally be found via the LoyaltyLion Get List of Customers action, using the More Options parameter option to search your LoyaltyLion customers by email.

Use the format "email={{variable}}" where {{variable}} would be a customer email found using the [variables menu icon](/workflow-builder/fields/variables.md).

![](/files/q4YZmndkjL8CF1kehucS)

Then, on the LoyaltyLion Add Points Customer action, use the [variables menu icon](/workflow-builder/fields/variables.md) to select the customer's Merchant Id from the LoyaltyLion List Customer step for the action's configuration.

#### Send data to LoyaltyLion <a href="#data" id="data"></a>

In some of the [LoyaltyLion Actions](https://docs.getmesa.com/workflow-builder/actions), there may be a Data Mapping section. If you are not familiar with what data to send, you can click on the [Variables menu icon {+}](/workflow-builder/fields/variables.md) within the Key field and the available variables will appear on the right hand side bar.

![](/files/DwGytwv7G6NZV5o7hans)

### Triggers <a href="#triggers" id="triggers"></a>

There may be a delay of a couple minutes from when a change is made in LoyaltyLion to when it is received by MESA. This is the normal behavior of the [LoyaltyLion](https://loyaltylion.com/) API.


---

# 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.getmesa.com/connect/loyalty-lion.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.
