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


## Overview

The Bento Segment integration uses a Segment destination function to forward events to Bento. You can use it to track events for your subscribers, update user data, record lifetime value (LTV), and trigger workflows from events.

## Requirements

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


---


## 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.

    


  

  
**6. Save & Use**

  
   You can optionally click `test` to test the function. Once you are happy with the function, click `Save` and then `Deploy`.
    You should now see the Bento destination as an option under `Custom Destinations` in your Segment account.
  


---


## How the connection works
Once the custom destination is connected, events from your Segment source (page views, purchases, or custom user actions) are forwarded to Bento in real time.
These events can trigger workflows that track and tag subscribers based on their behavior.
You can also enrich events with custom data like purchase details, which Bento uses to calculate lifetime value (LTV), trigger automations, and start drip campaigns.