Ownlayer
  • 👋Welcome
  • Getting Started
    • 💫Quickstart
  • Iterate
    • 💡Prompt
    • 📃Dataset
      • Dataset Creation
      • Data point Evaluation
      • Dataset Evaluation
  • Monitor
    • 🔬Evaluators
      • 🖌️Create Evaluators
      • 🔌Smart Trigger an online Evaluator
      • 🎛️Evaluator Playground
    • 🧐Analyzers
  • Integrations
    • Segment
    • Amplitude
    • Posthog
  • REST API
  • Python SDK
Powered by GitBook
On this page
  1. Integrations

Segment

PreviousAnalyzersNextAmplitude

Last updated 7 months ago

Configuring Segment Integration

  • Navigate to your organization's integration settings.

  • Select the Segment integration option.

  • Enter your Segment Write Key.

  • Choose the specific events you want to send to Segment.

  • Save your configuration.

When creating an inference, add a segment attribute to the additional_metadata field with the following structure:

{
    additional_metadata:{
        segment:{
            user_id:"82az9ddoi34fski29375fjnafd",
            event:"Evaluation Pass",
            properties: {
            },
            integrations: {    
            }
        }
    }
}

The segment object should include a user_id which is required and represents the ID of the user you're tracking.

You can optionally specify an event name (if not provided, it uses the default event names).

The properties object can contain any additional properties you want to track.

The integrations object allows you to specify which integrations to send this event to.

Refer to Segment documentation for more details on properties and integrations.