Segment
Analytics & DataConnect AI agents to Segment's Public and Tracking APIs. Agents provision sources and destinations, build and activate Engage audiences, govern data and IAM, monitor delivery and usage, and send live customer events.
What This Integration Enables
Agents provision sources and connect them to destinations, warehouses, and Reverse ETL models, build, schedule, preview, and activate Engage audiences and Unify computed traits, govern data by running deletion and suppression regulations and managing IAM users, groups, and roles, monitor delivery, API-call usage, and the audit trail, and react when new audit events occur. On the data plane, agents send live events to the Tracking API: Track to record an action, Identify to set a user's traits, Group, Page, Screen, Alias, and Batch. Some actions require the matching Segment plan or feature entitlement (Protocols, Functions, Engage, Unify, Reverse ETL, and others), and calls without the entitlement return a permission error. Regulation runs and user or invite deletes are destructive. The connector covers Segment's management and tracking surface; the surrounding flow decides which configuration and event calls run automatically and where a data owner confirms a destructive governance action.
Without FlowRunner
With FlowRunner
Use Case Scenarios
Live governance feed from the audit trail
The New Audit Event trigger fires on a workspace configuration change. The agent reads the actor, resource, and action, classifies the change, and posts each event to a governance channel with [Slack](/integrations/slack) so the data team has a live audit feed. A destructive change, like a source deletion, stands out in the feed immediately rather than being discovered when a downstream report goes empty.
Usage reporting on a routine
On a schedule, the agent pulls usage with Get Daily Workspace API Calls (or Get Daily Per Source API Calls) and appends the numbers to a tracking sheet with [Google Sheets](/integrations/google-sheets) for month-over-month reporting. The team watches API-call volume trend over time without exporting it by hand, and a spike surfaces as an exception.
Profile enrichment on a new lead
When a new lead is captured, the agent calls Identify User to set the lead's traits and Track Event to record the signup, feeding the customer profile that downstream destinations consume. The lead's profile is populated at the moment of capture, so every tool connected to Segment sees a complete record instead of a stub.
Human-in-Loop Highlight
Running a deletion or suppression regulation is the moment to stop and ask, because it removes customer data or suppresses future collection in ways that are hard to reverse and carry compliance weight. The agent handles the safe work on its own: it watches the audit trail, provisions sources, activates audiences, and sends events. When a flow would run a deletion or suppression regulation, or delete a source, it pauses and asks the data owner through Slack: "Requested: [regulation type] scoped to [source or workspace], affecting [subject]. This is destructive. Approve the run, narrow the scope, or cancel?" The data owner decides. The agent runs the everyday configuration and event work; the person owns the action that deletes data or breaks a pipeline.
Agent Capabilities
23 actionsSources and Destinations
6- Create Source Provisions a new Segment source.
- List Sources Lists the workspace's sources.
- Update Source Updates a source's configuration.
- Delete Source Deletes a source. Destructive, so typically human-gated.
- Create Destination Connects a destination to a source.
- Create Warehouse Provisions a warehouse destination.
Audiences and Traits
5- Create Audience Builds an Engage audience (requires the Engage entitlement).
- Execute Audience Run Runs an Engage audience computation.
- Create Computed Trait Builds a Unify computed trait (requires the Unify entitlement).
- Create Reverse ETL Model Creates a Reverse ETL model to push warehouse data to destinations.
- Create Tracking Plan Creates a Protocols tracking plan (requires the entitlement).
Governance and Usage
5- Create Deletion & Suppression Regulation Runs a data-governance deletion or suppression regulation. Destructive, so typically human-gated.
- List Audit Events Lists audit-trail events for governance review.
- List IAM Users Lists workspace IAM users.
- Get Daily Workspace API Calls Reads daily workspace API-call usage for reporting.
- Get Daily Per Source API Calls Reads daily per-source API-call usage.
Tracking (data plane)
7- Track Event Sends a Track event to record a user action.
- Identify User Sends an Identify call to set a user's traits on their customer profile.
- Group User Sends a Group call to associate a user with an account or organization.
- Track Page View Sends a Page event recording a page view.
- Track Screen View Sends a Screen event recording a screen view.
- Alias User Sends an Alias call to merge two user identities.
- Send Batch Events Sends a batch of tracking events in a single call.
Triggers
1 triggersEvent Triggers
1- New Audit Event Polls the Segment audit trail and fires when a new audit-trail event occurs in the workspace, such as a destructive configuration change. This is the hook for a live governance feed: a source deletion, a permission change, or a regulation run can start a review flow the moment Segment records it.
Start building with Segment
$100 in credits. No card required. Connect in minutes.