> ## Documentation Index
> Fetch the complete documentation index at: https://moengage-unity-sdk-initialization-split.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# LiftIgniter

## Introduction

[LiftIgniter](https://www.liftigniter.com/) applies machine learning to first-party behavioral data (without invading privacy) to personalize product and content recommendations on your site.

## MoEngage and LiftIgniter

With the MoEngage and LiftIgniter integration, you can send personalized content recommendations inside MoEngage campaigns to boost adoption and click-through rates.

## Integration

<Info>
  **Prerequisites**

  * Your LiftIgniter API token (required to call their APIs).
  * Your LiftIgniter JavaScript key.
</Info>

Using MoEngage's Content APIs, you can dynamically pull recommendations into MoEngage campaigns for a more personalized experience.

### Step 1: Set up a MoEngage Content API

1. Navigate to **Settings** > **Advanced settings** > **Content API**. Click **+ Add content API** in the upper-right corner of the Content API screen. <img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/8ieyQmP3zeTJ8aWU/images/partner_21979738782100.png?fit=max&auto=format&n=8ieyQmP3zeTJ8aWU&q=85&s=5f85d7bb36e8ed2c7b16d42f9d5ae9a1" alt="MoEngage Content API screen with the Add content API button highlighted" width="2706" height="1344" data-path="images/partner_21979738782100.png" />
2. Add your LiftIgniter API to the endpoint URL. The endpoint changes depending on your use case. <img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/Dl5d9MN7NZbqTivJ/images/partner_20130868953364.png?fit=max&auto=format&n=Dl5d9MN7NZbqTivJ&q=85&s=d9b0fd3e3069b463a8de820420393e56" alt="Content API configuration screen showing the LiftIgniter endpoint URL" width="2870" height="1550" data-path="images/partner_20130868953364.png" /> To display recommendations for your customers, use LiftIgniter's [Model Query API](https://documenter.getpostman.com/view/2166502/liftigniter-api-collection/7TFGvSV#340404f6-68fd-4844-90d9-7b93994440b9). When setting up your Content API, insert the following URL:
   ```text wrap theme={null}
   https://query.petametrics.com/v3/<jsk>/{{UserAttribute['ID']}}/model
   ```
   Replace `<jsk>` with your [JavaScript key](https://console.liftigniter.com/settings/keys). Leave the URL parameters empty.
3. Under **Headers**, add the following:
   * `x-api-key`: Your [LiftIgniter API key](https://documenter.getpostman.com/view/2166502/liftigniter-api-collection/7TFGvSV#intro).
   * `Content-Type`: `application/json`.
4. Click **Save**, then click **Done** once you see a successful response.

<Tip>
  Test the API directly from MoEngage. From the Content API's action menu, click **Test** to see the response and validate your setup.
</Tip>

### Step 2: Display your recommendations inside MoEngage campaigns

To use the API in your MoEngage campaigns:

1. On step 2 of campaign creation, type `@`.
2. In the personalization pop-up, select the LiftIgniter Content API you configured in Step 1.
3. Use the [MoEngage Templating Language](https://www.moengage.com/docs/user-guide/campaigns-and-channels/getting-started/message-personalization/jinja-templating-language) to parse the API response and use the content in your campaign.  <img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/Dl5d9MN7NZbqTivJ/images/partner_20131004588436.png?fit=max&auto=format&n=Dl5d9MN7NZbqTivJ&q=85&s=758210ff11f3565628509df8e50e2171" alt="MoEngage personalization editor with LiftIgniter recommendations being inserted" width="2870" height="1550" data-path="images/partner_20131004588436.png" />
4. Click the **Personalized** tab under **Preview type** to view your campaign with real-time personalization. <img src="https://mintcdn.com/moengage-unity-sdk-initialization-split/Dl5d9MN7NZbqTivJ/images/partner_20131075562004.png?fit=max&auto=format&n=Dl5d9MN7NZbqTivJ&q=85&s=f569b587d1d7926aca47ab0a54609105" alt="Personalized preview tab in MoEngage showing the rendered LiftIgniter recommendations" width="2870" height="1550" data-path="images/partner_20131075562004.png" />
5. Publish the campaign.

<Check>
  Recipients see content blocks rendered with personalized LiftIgniter recommendations matched to their user ID.
</Check>
