把自然语言描述转为结构化 JSON,并由 mcp-diagram-generator MCP 服务生成 Draw.io、Mermaid 或 Excalidraw 图表文件。
数据分析
Segment
试用Segment CDP integration with API key authentication. Manage sources, destinations, contacts, segments, and tracking events for customer data platform operati...
它能做什么
Connect to Segment's Customer Data Platform to manage sources, destinations, contacts, segments, and track user events. Send identity and event data, manage suppression lists, and configure marketing integrations.
技能文档
Segment
Segment
Connect to Segment's Customer Data Platform to manage sources, destinations, contacts, segments, and track user events. Send identity and event data, manage suppression lists, and configure marketing integrations.
This skill uses ClawLink for hosted connection flows and credentials so you do not need to configure Segment API access yourself.
Setup in 3 Steps
| Step 1: Install | Step 2: Pair Account | Step 3: Connect Segment |
|---|---|---|
| Install | Pair | App-specific connection GIF coming soon |
| Run the install command in OpenClaw | Sign in and approve the device | Open the dashboard and connect Segment |
How It Works
┌─────────────────┐ ┌──────────────┐ ┌──────────────────┐
│ OpenClaw │────▶│ ClawLink │────▶│ Segment API │
│ (User Chat) │ │ (Proxy) │ │ (Sources, │
│ │ │ │ │ Destinations) │
└─────────────────┘ └──────────────┘ └──────────────────┘
│ │ │
│ 1. Install Plugin │ │
│ 2. Pair Device │ │
│ 3. Connect Segment │ │
│ │ 4. API Key Proxy │
│ │ 5. Request Forward │
│ │ │
▼ ▼ ▼
┌──────────┐ ┌──────────┐ ┌──────────┐
│ SKILL │ │ Dashboard│ │ Segment │
│ File │ │ Auth │ │ CDP │
└──────────┘ └──────────┘ └──────────┘
Install
Install the verified ClawLink plugin from ClawHub. After the user confirms, complete the full setup so ClawLink tools are visible in the next OpenClaw chat.
openclaw plugins install clawhub:clawlink-plugin
openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json
openclaw gateway restart
Then tell the user: "OpenClaw has been restarted. Send /new as a standalone message to start a fresh chat, then ask for Segment again."
Quick Start
# Get destination details
clawlink_call_tool --tool "segment_get_destination" --params '{"destination_id": "YOUR_DESTINATION_ID"}'
# List warehouses connected to a source
clawlink_call_tool --tool "segment_list_connected_warehouses_from_source" --params '{"source_id": "YOUR_SOURCE_ID"}'
# Identify a user with traits
clawlink_call_tool --tool "segment_identify" --params '{"user_id": "USER123", "traits": {"email": "user@example.com", "name": "Alice"}}'
Authentication
All Segment tool calls are authenticated automatically by ClawLink using your Segment API key stored securely in the dashboard.
No API key is required in chat. ClawLink injects your API key into every Segment API request on your behalf.
Getting Connected
- Install the ClawLink plugin (see Install above).
- Pair the plugin with
clawlink_begin_pairingif it is not configured yet. - Open https://claw-link.dev/dashboard?add=segment and connect Segment with your API key.
- Call
clawlink_list_integrationsto verify the connection is active.
Connection Management
List Connections
clawlink_list_integrations
Response: Returns all connected integrations. Look for segment in the list.
Verify Connection
clawlink_list_tools --integration segment
Response: Returns the live tool catalog for Segment.
Reconnect
If Segment tools are missing or the connection shows an error:
- Direct the user to https://claw-link.dev/dashboard?add=segment
- After they confirm, call
clawlink_list_integrationsto verify - Then call
clawlink_list_tools --integration segment
Security & Permissions
- Access is scoped to the Segment workspace and sources associated with the connected API key.
- All write operations require explicit user confirmation. Before executing any create, update, or delete call, confirm the target resource and intended effect with the user.
- Destructive actions (delete source, remove write key) are marked as high-impact and must be confirmed.
- Write keys for sources should be kept secure — revoke and rotate them if compromised.
Tool Reference
Source Management
| Tool | Description | Mode |
|---|---|---|
segment_add_labels_to_source | Add existing labels to a Source for metadata tagging | Write |
segment_delete_source | Permanently delete a Segment Source by ID | Write |
segment_list_connected_warehouses_from_source | List warehouses connected to a Source | Read |
segment_list_schema_settings_in_source | Retrieve schema configuration settings for a Source | Read |
segment_update_source | Update a Source's metadata and settings | Write |
Destination Operations
| Tool | Description | Mode |
|---|---|---|
segment_get_destination | Retrieve a Destination's full configuration by ID | Read |
segment_list_delivery_metrics_summary_from_destination | Get event delivery metrics summary from a Destination | Read |
User Identification & Tracking
| Tool | Description | Mode |
|---|---|---|
segment_alias | Alias a previous user ID to a new user ID (merge anonymous and known identities) | Write |
segment_group | Associate an identified user with a group via Segment HTTP Tracking API | Write |
segment_identify | Identify a user and set/update traits via Segment HTTP Tracking API | Write |
segment_page | Record a page view via Segment HTTP Tracking API | Write |
segment_screen | Record a mobile app screen view via Segment HTTP Tracking API | Write |
segment_track | Record a custom user event via Segment HTTP Tracking API | Write |
Data Import
| Tool | Description | Mode |
|---|---|---|
segment_batch | Send multiple analytics calls (Identify/Track/Page/Screen/Group) in a single batch request | Write |
segment_import_historical_data | Import historical data in bulk with support for original timestamps | Write |
Keys & Access
| Tool | Description | Mode |
|---|---|---|
segment_remove_source_write_key | Revoke an existing write key for a Source (security rotation) | Write |
Usage & Monitoring
| Tool | Description | Mode |
|---|---|---|
segment_get_daily_per_source_api_calls_usage | Fetch daily API call counts per source for a given period | Read |
Code Examples
Identify a user with traits
clawlink_call_tool --tool "segment_identify" \
--params '{
"user_id": "USER123",
"traits": {
"email": "alice@example.com",
"name": "Alice Smith",
"plan": "pro"
}
}'
Track a custom event
clawlink_call_tool --tool "segment_track" \
--params '{
"user_id": "USER123",
"event": "Purchased",
"properties": {
"product": "Widget",
"price": 29.99,
"currency": "USD"
}
}'
Add labels to a source
clawlink_call_tool --tool "segment_add_labels_to_source" \
--params '{"source_id": "YOUR_SOURCE_ID", "labels": ["production", "web"]}'
Batch multiple calls
clawlink_call_tool --tool "segment_batch" \
--params '{
"batch": [
{"type": "identify", "traits": {"email": "bob@example.com"}},
{"type": "track", "event": "Signed Up", "properties": {"source": "landing-page"}}
]
}'
Discovery Workflow
- Call
clawlink_list_integrationsto confirm Segment is connected. - Call
clawlink_list_tools --integration segmentto see the live catalog. - Treat the returned list as the source of truth. Do not guess or assume what tools exist.
- If the user describes a capability but the exact tool is unclear, call
clawlink_search_toolswith a short query and integrationsegment. - If no Segment tools appear, direct the user to https://claw-link.dev/dashboard?add=segment.
Execution Workflow
┌─────────────────────────────────────────────────────────────┐
│ READ OPERATIONS (Safe) │
│ list → get → describe → call │
│ │
│ Example: List destinations → Get metrics → Show results │
└─────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ WRITE OPERATIONS (Require Confirmation) │
│ describe → preview → confirm → call │
│ │
│ Example: Describe tool → Preview changes → User approves │
│ → Execute track/identify │
└─────────────────────────────────────────────────────────────┘
- For unfamiliar tools, ambiguous requests, or any write action, call
clawlink_describe_toolfirst. - Use the returned guidance, schema,
whenToUse,askBefore,safeDefaults,examples, andfollowupsto shape the call. - Prefer read, list, and get operations before writes when that reduces ambiguity.
- For writes or anything marked as requiring confirmation, call
clawlink_preview_toolfirst. - Execute with
clawlink_call_tool. Pass confirmation only after the preview matches the user's intent. - If the tool call fails, report the real error. Do not invent results or restate the failure as a missing capability unless the live catalog supports that conclusion.
Notes
- Identify and Track calls require a valid identity (
user_idoranonymous_id) — without one, events cannot be associated with users. - Batch operations reduce HTTP overhead when sending multiple events — use them for efficiency when tracking several events at once.
- Historical data imports must include the original timestamp (
timestampfield) to maintain accurate event chronology. - Source write keys are sensitive — only revoke them when rotating or decommissioning a source.
- Delivery metrics provide event-level delivery status to destinations — use them to diagnose destination-level issues.
Error Handling
| Status / Error | Meaning |
|---|---|
| Tool not found | The tool name does not exist in the current catalog. Verify with clawlink_list_tools --integration segment. |
| Missing connection | Segment is not connected. Direct the user to https://claw-link.dev/dashboard?add=segment. |
invalid_source_id | The specified source does not exist or is not accessible with the current API key. |
invalid_destination_id | The specified destination does not exist or is not accessible. |
missing_identity | Track/Page/Screen calls require at least user_id or anonymous_id. |
| Write rejected | User did not confirm a write action. Always confirm before executing writes. |
Troubleshooting: Tools Not Visible
- Check that the ClawLink plugin is installed:
openclaw plugins list - If the plugin is installed but tools are missing, tell the user to send
/newas a standalone message to reload the catalog. - If a fresh chat does not help, run:
openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json openclaw gateway restart - After restart, tell the user to send
/newagain and retry.
Troubleshooting: Invalid Tool Call
- Ensure the integration slug is exactly
segment. - Use
clawlink_describe_toolto verify parameter names and types before calling. - For write operations, always call
clawlink_preview_toolfirst.
Resources
- Segment API Documentation
- Segment Sources
- Segment Destinations
- Segment Identify API
- Segment Track API
- ClawLink: https://claw-link.dev/?utm_source=clawhub&utm_medium=referral&utm_content=segment-cdp
- ClawLink Docs: https://docs.claw-link.dev/openclaw
- ClawLink Verification: https://claw-link.dev/verify
Related Skills
- HubSpot CRM — For CRM and marketing automation
- Salesforce CRM — For enterprise CRM operations
Powered by ClawLink — an integration hub for OpenClaw
ClawLink Logo
相关技能
从 AdMapix API 拉取广告创意、应用、榜单和收入预估等数据,原样返回结构化 JSON。
以 AI 机器人身份加入视频会议,提供语音、虚拟形象与屏幕共享四种模式。
诊断生产力系统反复失效的根因,给出最小干预——容量测算、瓶颈定位、可靠的本地记录。
在本地磁盘以分类纯 Markdown 文件保存需要长期留存的事实,与智能体内置记忆并存。
为自然搜索排名提供站点审计、内容撰写与竞品分析。
hith3sh 的更多技能
浏览全部技能通过 OAuth 认证调用 Google 日历 REST 接口,读写日程与可用时间。
Manage Facebook Pages, posts, comments, messages, and insights via the Facebook Graph API. Use this skill when users want to post content, read engagement metrics, moderate comments, or automate Facebook Page workflows from chat.
Manage Instagram Business and Creator accounts via the Instagram Graph API. Publish posts and carousels, retrieve media and insights, moderate comments, send DMs, and manage story content. Use this skill when users want to manage Instagram content, analyze engagement, or automate social media workflows.
Manage LinkedIn presence via the LinkedIn API. Create posts and articles, manage comments, handle media uploads, search ad targeting entities, and retrieve user profile and image data.
Manage Reddit posts, comments, subreddits, users, moderation, and community workflows via the Reddit API. Use when users want to search subreddits, inspect posts, submit content, manage comments, or automate moderation actions.
Work with GitHub repositories, issues, pull requests, commits, branches, releases, and workflows via the GitHub REST and GraphQL APIs. Use this skill when us...