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

# Meta Integration

> Connect Totebot with Meta (Facebook & Instagram) for retargeting

The Meta integration is a tracking & analytics integration that enables you to track customer interactions and retarget them on Facebook and Instagram. By connecting your Meta Pixel and Access Token, Totebot can send user activity data from chat conversations back to Meta, helping you reach those same users again through ads.

To access this integration, navigate to **Integrations** → **Meta** in your dashboard.

When customers interact with your agent (e.g., view products, add to cart, or show interest), those actions are tracked as events. These events are then sent to your Meta Ads Manager, where you can:

* **Build retargeting audiences** (show ads to people who are already engaged with your agent).
* **Create lookalike audiences** (find new people similar to your engaged users).

## Connecting Meta

<Steps>
  <Step title="Access Integration Settings">
    Go to **Integrations** → **Meta** and click **Connect**.
  </Step>

  <Step title="Enter Credentials">
    Paste your **Pixel ID** and **Access Token**.

    <img src="https://mintcdn.com/totebot/P4a6-AvDl6xlResY/assets/integrations/meta/totebot-ai-meta-integration.jpg?fit=max&auto=format&n=P4a6-AvDl6xlResY&q=85&s=d3f0e11e16d990daaac5959d27165696" alt="Meta Integration" width="1591" height="655" data-path="assets/integrations/meta/totebot-ai-meta-integration.jpg" />
  </Step>

  <Step title="Connect Meta">
    Click **Connect Meta**.

    <img src="https://mintcdn.com/totebot/P4a6-AvDl6xlResY/assets/integrations/meta/totebot-ai-integrations-meta-connected.jpg?fit=max&auto=format&n=P4a6-AvDl6xlResY&q=85&s=2a0fb6992a497b72ac2fa0eaf85a00b6" alt="Meta Connected" width="1591" height="487" data-path="assets/integrations/meta/totebot-ai-integrations-meta-connected.jpg" />
  </Step>
</Steps>

<Warning>
  Important: Treat the access token like a password and don't share it publicly.
</Warning>

## Configuring Events

Once connected, you can select which events your agent should track and send to Meta. Available options include:

* **View content**: when a user browses or requests product details.
* **Add to cart**: when a product is added to their cart through chat.
* **Remove from cart**: when an item is removed from the cart.
* **Update cart**: when changes are made to the cart (quantity, size, etc.).
* **Initiate checkout**: when the checkout process is started.
* **Lead**: when a user submits contact info (e.g., email, phone, company).

<img src="https://mintcdn.com/totebot/P4a6-AvDl6xlResY/assets/integrations/meta/totebot-ai-integrations-meta-settings.JPG?fit=max&auto=format&n=P4a6-AvDl6xlResY&q=85&s=acad634b6c0934d0905928318516de62" alt="Meta Settings" width="1592" height="653" data-path="assets/integrations/meta/totebot-ai-integrations-meta-settings.JPG" />
