export const headerBackground = '/docs/images/headers/header_background.webp'
export const bentoLogoImg = '/docs/images/logos/bento-text-logo.svg'
export const LogoImg = '/docs/images/logos/segment.svg'


export const segmentImg = '/docs/images/integrations/segment.webp'

export const exampleFile = 'segment-example'
# Bento Segment Integration


<p />


## Overview

The Bento Segment Integration offers three core functionalities:
- **Event Tracking**: Track events for your subscribers
- **Data Management**: Update user data and record lifetime value (LTV) metrics
- **Flow Triggers**: Trigger workflows based on events

## Requirements

1. Active Bento account with a site created
2. Active Segment account
3. Bento Segment Function Code
4. Bento API keys


<hr />

## Installation Steps


  
**1. Bento API keys**

  
    
  

  
**2. On Segment**

  
    Navigate to the `Connections -> Functions` page in your Segment account. Then click the `New Function`.
  

  
**3. Configure Function**

  
    You must choose between a source or destination function. For Bento we will be using a destination function to send data to Bento.
    Give the function a name and description.
  

  
**4. Configure Required Settings**

  
    We must add the following settings:
    - 1. publishable key `publishableKey`
    - 2. secret key `secretKey`
    - 3. site uuid `siteUuid`

    
  

  
**5. Provide the Bento Function Code**

  
    Copy and paste this code into the `Source Code` field.

    


  

  
**3. Save & Use**

  
   You can optionally click `test` to test the function. Once you are happy with the function, click `Save` and then `Deploy`.
    You can now use the function in your Segment account, the bento destination will be an option under `Custom Destinations`.
  


<hr />

## How the connection works
When you connect this custom destination to Bento, events sent from your Segment source—such as page views, purchases, or custom user actions—are automatically forwarded in real time.
Using the bento integration, these events can trigger workflows that track and tag subscribers based on their behavior.
You can enrich the events with custom data like purchase details, which Bento uses to calculate lifetime value (LTV), trigger automations, launch drip campaigns, and more.
This seamless connection allows you to bridge user activity from your app or site directly into powerful, personalized marketing flows.