Basic information

Repository
openclaw
Skill
segment

About segment

Track events and manage customer data via Segment API. Route data to destinations.

segment is an agent skill listed in the AddMCP.net directory, published by openclaw. Source code is hosted on github.com.

Overview

What is segment?


name: segment description: Track events and manage customer data via Segment API. Route data to destinations. metadata: {"clawdbot":{"emoji":"📊","requires":{"env":["SEGMENT_WRITE_KEY"]}}}


Segment

Customer data platform.

Environment

export SEGMENT_WRITE_KEY="xxxxxxxxxx"

Track Event

curl -X POST "https://api.segment.io/v1/track" \
  -u "$SEGMENT_WRITE_KEY:" \
  -H "Content-Type: application/json" \
  -d '{"userId": "user123", "event": "Order Completed", "properties": {"revenue": 99.99}}'

Identify User

curl -X POST "https://api.segment.io/v1/identify" \
  -u "$SEGMENT_WRITE_KEY:" \
  -H "Content-Type: application/json" \
  -d '{"userId": "user123", "traits": {"email": "[email protected]", "plan": "premium"}}'

Page View

curl -X POST "https://api.segment.io/v1/page" \
  -u "$SEGMENT_WRITE_KEY:" \
  -H "Content-Type: application/json" \
  -d '{"userId": "user123", "name": "Home", "properties": {"url": "https://example.com"}}'

Links

  • Dashboard: https://app.segment.com
  • Docs: https://segment.com/docs/connections/sources/catalog/libraries/server/http-api/

31

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬