Segment
Send and manage Segment analytics events and customer data workflows.
Tools
| Name | Description |
|---|---|
identifyUserIdentify a user and set traits in Segment. | Identify a user and set traits in Segment. |
track_eventTrack an event in Segment. | Track an event in Segment. |
group_userAssociate a user with a Segment group. | Associate a user with a Segment group. |
page_viewTrack a page view in Segment. | Track a page view in Segment. |
screen_viewTrack a screen view in Segment. | Track a screen view in Segment. |
alias_userMerge a previous Segment identity into a new user ID. | Merge a previous Segment identity into a new user ID. |
batch_eventsSend a Segment batch of identify, group, track, page, or screen calls. | Send a Segment batch of identify, group, track, page, or screen calls. |
Quick Start
import { WeavzClient } from '@weavz-io/sdk'
const weavz = new WeavzClient({ apiKey: 'wvz_...' })
const result = await weavz.actions.execute('segment', 'identifyUser', {
workspaceId: '550e8400-e29b-41d4-a716-446655440000',
integrationAlias: 'segment',
input: { /* ... */ },
})Related Integrations
Works well with
Frequently Asked Questions
How do I connect Segment to my app?
Use Weavz Hosted Connect for API Key authentication. Install the SDK, create a connection through the connect portal or API, then execute tools programmatically.
What tools does Segment support?
Segment supports 7 tools including Identify User, Track Event, Group User, Page View, Screen View, and more.
Can I use Segment with AI agents?
Yes. Add Segment to an MCP server in Tool Mode or Code Mode. Code Mode provides 3 meta-tools with on-demand API discovery so agents can compose stateful workflows without loading every action schema up front.
How do I connect Segment to ChatGPT or Claude?
Open the Weavz connector setup, sign in, choose a workspace, and add Segment as an approved app. ChatGPT, Claude, and other remote MCP clients can then call the scoped Segment tools exposed by that workspace.
Does Segment work with Claude Code, Cursor, Codex, and local agents?
Yes. Remote and local MCP clients can connect to a Weavz MCP endpoint for the workspace. Local coding agents can also use the Weavz CLI to inspect apps, discover actions, run approved Segment work, and execute Code Mode workflows from a terminal.
What can I ask an AI agent to do with Segment?
Segment exposes 7 tools, including Identify User, Track Event, Group User, Page View, Screen View, and more. Use Weavz to keep credentials scoped, require approval for sensitive work, and audit what the agent did.
Can Segment be used in stateful agent workflows?
Yes. Agents can combine Segment tools with Filesystem, State KV, Human Gates, input partials, and other workspace integrations while keeping execution scoped to the selected workspace or end user.
What authentication does Segment use?
Segment uses API Key. Weavz stores credentials securely and uses them for authorized action execution.
How much does the Segment integration cost?
The Segment integration is included on all Weavz plans including the free tier with 20,000 actions per month. No credit card required.
Connect Segment in minutes
Get 20,000 free action executions every month. No credit card required.