Use when integrating Outlit tracking into web, server, native, or desktop apps; adding SDK event tracking, identity, consent, activation configuration, billi...
数据分析
outlit
试用Use when accessing Outlit customer intelligence through the `outlit` CLI, Outlit MCP tools, Pi tools, or @outlit/tools, including customer lookups, users, workspace users, timelines, facts, source evidence, semantic search, revenue, churn, SQL analytics, setup, integrations, or troubleshooting agent access.
它能做什么
Use when accessing Outlit customer intelligence through the `outlit` CLI, Outlit MCP tools, Pi tools, or @outlit/tools, including customer lookups, users, workspace users, timelines, facts, source evidence, semantic search, revenue, churn, SQL analytics, setup, integrations, or troubleshooting agent access.
技能文档
Outlit
Use Outlit to ground customer intelligence work in real customer data. Outlit joins product activity, conversations, billing, support, CRM, and web signals into a customer context graph and timeline for agents.
Choose the Interface
Use the highest-level interface already available:
- If
outlit_*MCP or Pi tools are present, use those tools. - Else if the
outlitCLI is installed, use the CLI. - Else guide setup:
- Coding agents: install/use the
outlitCLI, then runoutlit onboard --agent --jsonfirst. It starts browser auth when no API key is present outside CI, installs the Outlit skill, checks integration readiness, and prints next actions. - Agent skills only: run
outlit setup --yesoroutlit setup skills. - MCP clients: use the workspace MCP URL from Settings > CLI & MCP. Remote MCP uses OAuth in the client; do not hardcode shared endpoints, bearer headers, or API keys into remote MCP config.
- Coding agents: install/use the
Use the outlit-sdk skill instead when the user wants to instrument an application with tracking SDKs.
Quick Chooser
| Need | MCP/Pi tool | CLI |
|---|---|---|
| Browse customers | outlit_list_customers | outlit customers list |
| Browse users/contacts | outlit_list_users | outlit users list |
| Browse workspace users | outlit_list_workspace_users | outlit ws-users list |
| Single account profile | outlit_get_customer | outlit customers get |
| Chronology | outlit_get_timeline | outlit customers timeline |
| Known structured signals | outlit_list_facts | outlit facts list |
| Exact fact | outlit_get_fact | outlit facts get |
| Deterministic source enumeration | outlit_list_sources | outlit sources list |
| Exact source artifact | outlit_get_source | outlit sources get |
| Thematic/fuzzy question | outlit_search_customer_context | outlit search |
| Custom analytics | outlit_schema + outlit_query | outlit schema + outlit sql |
| Manage customer ownership/access | outlit_assign_customer_owner, outlit_grant_customer_access, outlit_update_customer_access, outlit_revoke_customer_access | outlit customers owner set, outlit customers grant, outlit customers revoke |
| Integration status/setup | Use CLI unless explicit tools exist | outlit integrations capabilities/setup/status |
Use customer lookups before SQL. SQL is for aggregates, cohorts, joins, time-series checks, and custom reporting.
Working Rules
- Start with the highest-level tool that can answer the question.
- Gather evidence before drawing conclusions.
- Separate evidence from interpretation in the final answer.
- Cite the evidence kind: customer record, user record, workspace-user record, timeline event, fact, search result, source record, or SQL result.
- If data is sparse, stale, or inconsistent, say how that affects confidence.
- Request only the fields or include sections needed.
- Results often include timestamps and source attribution; use them.
- Use customer collaboration actions only when the user explicitly asks to assign an owner or change customer access. CLI
customers grantidempotently grants or changes access;customers revokeremoves access.
Facts vs Search vs Sources vs Timeline
- Use
facts listto browse known structured intelligence for one account. - Use
factTypesfor public customer-memory fact classes such asCHURN_RISK,EXPANSION,SENTIMENT,BUDGET,REQUIREMENTS,PRODUCT_USAGE,CHAMPION_RISK, orCONTACT_INFO. - Do not request anomaly-detector fact types as public filters, such as
CORE_ACTION_DECAY,CADENCE_BREAK,QUIET_ACCOUNT,ACTIVATION_RATE_DROP, orFUNNEL_DROPOFF. - Use
facts getwhen you already have a fact ID and need the canonical payload or best-effortevidence. - Use
searchfor a specific question/theme, including cross-customer questions. Search returns groupedsourceandfactartifacts, not raw vector chunks. - Use
sources listwhen you need deterministic enumeration of emails, calls, calendar events, support tickets, CRM opportunities, or Slack messages. - Use
sources getwhen a fact/search/list result points to a concrete source and you need the exact artifact. - Use
timelinewhen order, recency, or sequence matters.
Supported generic source types are EMAIL, CALL, CALENDAR_EVENT, SUPPORT_TICKET, OPPORTUNITY, and SLACK. CRM and CRM_OPPORTUNITY are accepted aliases for opportunity filters.
SQL Rules
Call schema before writing SQL.
- Use public analytics views, not backend table names:
activity,customers,users,revenue. - Add explicit time filters to event/activity SQL.
- Use
LIMIT. - Divide money fields in cents by
100for display. - Inspect JSON/trait column shapes before filtering nested values.
- Keep SQL read-only.
For ClickHouse syntax and query patterns, read references/sql-reference.md.
CLI Setup
Fast install:
curl -fsSL https://outlit.ai/install.sh | bash
Alternative installs:
npm install -g @outlit/cli
brew install outlitai/tap/outlit
Auth resolution order is --api-key, OUTLIT_API_KEY, then stored credentials.
outlit auth login --browser --json
outlit auth login
outlit auth login --key ok_your_api_key
outlit auth status
outlit auth whoami
Agent onboarding:
outlit onboard --agent codex --json
outlit onboard --agent claude-code --json
outlit onboard --agent gemini --json
outlit onboard --agent droid --json
outlit onboard --agent opencode --json
outlit onboard --agent pi --json
outlit onboard --agent openclaw --json
outlit doctor --json
outlit onboard is the first command for coding agents. It resolves an existing API key, starts browser auth when no key is available outside CI, validates the key, installs the Outlit skill for the named agent, checks integration setup readiness, and returns next actions. It does not connect integrations or ask for third-party credentials by itself; use outlit integrations setup for that. If onboard is missing, run outlit upgrade and fall back to the older agent setup commands:
outlit setup --yes
outlit setup codex
outlit setup claude-code
outlit setup gemini
outlit setup droid
outlit setup opencode
outlit setup pi
outlit setup openclaw
outlit setup skills
outlit setup skills opens the interactive Skills installer for outlit and optional extras like outlit-sdk.
CLI Output Behavior
- Interactive terminal: readable tables, spinners, colors.
- Piped stdout,
--json, CI, or dumb terminal: JSON. - Force JSON:
--json.
AI agents commonly receive JSON automatically because stdout is piped.
MCP Setup
Get the workspace URL from Settings > CLI & MCP in Outlit. It looks like:
https://mcp.outlit.ai/w//mcp
Add that URL directly to the MCP client and complete OAuth in the client. Verify with outlit_schema or by asking for available analytics views.
Pi and Tool Packages
For Pi agents:
pi install npm:@outlit/pi
export OUTLIT_API_KEY=ok_your_api_key
pi
@outlit/pi registers default customer intelligence tools. SQL tools are available but not enabled by default; use analytical/custom toolsets only for agents that should run read-only SQL.
For custom TypeScript tool clients, use @outlit/tools and its exported publicToolContracts, publicToolNames, consumerToolPolicies, defaultToolNames, analyticalToolNames, cliToolNames, allPublicToolNames, and sqlToolNames.
Integrations
Use integration commands only when the user asks to inspect or set up connected data sources. Disconnect integrations through the Outlit web app; the CLI does not expose destructive integration removal.
outlit integrations capabilities --json
outlit integrations capabilities hubspot --json
outlit integrations setup hubspot --json
outlit integrations setup salesforce --json
outlit integrations setup granola --config '{"apiKey":"..."}' --json
outlit integrations setup pylon --config '{"apiToken":"..."}' --json
outlit integrations status --session --json
outlit integrations status hubspot --json
outlit integrations list --json
Use capabilities before setup. It tells you the provider setupMode, credential type, whether CLI setup is supported, required credential fields, and follow-up steps such as CRM pipeline/stage mapping or webhooks. Provider-specific setup belongs after the provider name, for example outlit integrations setup hubspot and later provider subflows like outlit integrations setup hubspot mappings or outlit integrations setup pylon webhooks.
For browser-based providers, setup returns a connectUrl and sessionId; surface the URL/code to the user when browser approval is required, then poll with outlit integrations status --session --json.
For direct credential providers, pass JSON config and do not expect a session ID:
outlit integrations setup stripe --config '{"apiKey":"rk_..."}' --json
outlit integrations setup pylon --config '{"apiToken":"..."}' --json
outlit integrations setup fireflies --config '{"apiKey":"..."}' --json
outlit integrations setup granola --config '{"apiKey":"..."}' --json
outlit integrations setup posthog --config '{"apiKey":"...","region":"us","projectId":"..."}' --json
outlit integrations setup supabase --config '{"projectUrl":"https://...","serviceRoleKey":"..."}' --json
outlit integrations setup clerk --config '{"secretKey":"sk_..."}' --json
CRM providers can require pipeline/stage mappings after authentication. Run the follow-up command returned by capabilities or setup, such as outlit integrations setup hubspot mappings --json, without config first to fetch available pipelines, then rerun with --config '{"mappings":[...]}' to save mappings and start CRM syncs.
Pylon, Stripe, PostHog, Gong, and other providers can require webhook setup after credentials are connected. Run the follow-up command returned by capabilities or setup, such as outlit integrations setup pylon webhooks --json, to get manual provider setup details such as webhook URL, required headers/secrets, required events, docs links, and current status. Stripe can also accept --config '{"webhookSecret":"whsec_..."}'. These follow-up commands do not use --session.
If capabilities mark a follow-up as unsupported by the CLI, use the Outlit platform settings or ask the user before proceeding.
Troubleshooting
- Missing API key: run
outlit onboard --agent --jsonfor coding agents, or tell the user to setOUTLIT_API_KEY/ runoutlit auth login --browser --jsonfor non-agent setup. - Setup issues: run
outlit doctor --json. - Stale CLI: run
outlit upgrade; setOUTLIT_NO_UPDATE_NOTIFIER=1to suppress update notices. - Missing
onboardorintegrations capabilities: upgrade the CLI before continuing. - MCP auth issues: use the workspace MCP URL and OAuth flow; do not assume API-key-only auth for remote MCP.
- Empty data: check integrations and sync status before concluding the customer has no activity.
Docs
- Docs home: https://docs.outlit.ai/
- CLI overview: https://docs.outlit.ai/cli/overview
- CLI commands: https://docs.outlit.ai/cli/commands
- CLI integrations: https://docs.outlit.ai/cli/integrations
- AI agent setup: https://docs.outlit.ai/cli/ai-agents
- Agent skills: https://docs.outlit.ai/ai-integrations/skills
- MCP integration: https://docs.outlit.ai/ai-integrations/mcp
- Pi agents: https://docs.outlit.ai/ai-integrations/pi
- Public tools API: https://docs.outlit.ai/api-reference/tools
- Customer context graph: https://docs.outlit.ai/concepts/customer-context-graph
Common Prompts
- "What changed for this customer this week?"
- "Who is paying but inactive for 30 days?"
- "What pricing objections show up in conversations?"
- "List recent opportunity sources for Acme."
- "Which channels are driving revenue?"
相关技能
通过 Microsoft Graph 接入 Outlook,读取、发送、管理邮件、文件夹、日历事件和联系人,OAuth 由平台托管。
通过托管 OAuth 代理调用 Apollo.io API,完成人员与公司搜索、联系人补全和销售数据管理。
管理客户关系全流程——线索、范围、交付、回款、收尾,面向自由职业者、顾问与小团队。
通过托管 OAuth 访问 HubSpot CRM API,管理联系人、公司、商机及对象关联。
Audit an OpenClaw agent workspace and generate standardized evaluation reports, scores, and patches. Use when asked to review memory quality, retrieval effic...