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.
Use the highest-level interface already available:
outlit_* MCP/Pi tools are present, use those tools.outlit CLI is installed, use the CLI.outlit CLI and run outlit auth login.outlit setup --yes or outlit setup skills.Use the outlit-sdk skill instead when the user wants to instrument an application with tracking SDKs.
| Need | MCP/Pi tool | CLI |
|---|---|---|
| ------ | ------------- | ----- |
| Browse customers | outlit_list_customers | outlit customers list |
| Browse users/contacts | outlit_list_users | outlit 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, when available | 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 |
| Send/post a notification | outlit_send_notification | outlit notify |
| Integration status/setup | Use CLI unless explicit tools exist | outlit integrations list/status/add/remove |
Use customer lookups before SQL. SQL is for aggregates, cohorts, joins, time-series checks, and custom reporting.
facts list to browse known structured intelligence for one account.factTypes for public customer-memory fact classes such as CHURN_RISK, EXPANSION, SENTIMENT, BUDGET, REQUIREMENTS, PRODUCT_USAGE, CHAMPION_RISK, or CONTACT_INFO.CORE_ACTION_DECAY, CADENCE_BREAK, QUIET_ACCOUNT, ACTIVATION_RATE_DROP, or FUNNEL_DROPOFF.facts get when you already have a fact ID and need the canonical payload or best-effort evidence.search for a specific question/theme, including cross-customer questions. Search returns grouped source and fact artifacts, not raw vector chunks.sources list when you need deterministic enumeration of emails, calls, calendar events, support tickets, or CRM opportunities.sources get when a fact/search/list result points to a concrete source and you need the exact artifact.timeline when order, recency, or sequence matters.Supported generic source types are EMAIL, CALL, CALENDAR_EVENT, SUPPORT_TICKET, and OPPORTUNITY. CRM and CRM_OPPORTUNITY are accepted aliases for opportunity filters.
Notification tools are action tools. Use them only when the user explicitly asks you to send, post, or notify.
outlit notify --title "..." --markdown "...".--payload-file , --markdown-file .--message, --severity low|medium|high, --source, --subject.--destination slack[:channelId]. Omit destination to use the organization's default notifier, usually Slack.Do not notify by default just because an analysis found risk.
Call schema before writing SQL.
activity, customers, users, revenue.LIMIT.100 for display.For ClickHouse syntax and query patterns, read references/sql-reference.md.
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
outlit auth login --key ok_your_api_key
outlit auth status
outlit auth whoami
Agent setup:
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 doctor
outlit setup skills opens the interactive Skills installer for outlit and optional extras like outlit-sdk.
--json, CI, or dumb terminal: JSON.--json.AI agents commonly receive JSON automatically because stdout is piped.
Get the workspace URL from Settings > CLI & MCP in Outlit. It looks like:
https://mcp.outlit.ai/w/<workspace-slug>/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.
For Pi agents:
pi install npm:@outlit/pi
export OUTLIT_API_KEY=ok_your_api_key
pi
@outlit/pi registers default customer intelligence tools and notification action 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 customerToolContracts, defaultAgentToolNames, actionToolNames, sqlToolNames, and allCustomerToolNames.
Use integration commands only when the user asks to inspect or manage connected data sources.
outlit integrations list
outlit integrations status
outlit integrations add
outlit integrations remove
Be careful with remove: it can disconnect an integration and remove synced data. Confirm intent before using destructive integration-management commands.
OUTLIT_API_KEY or run outlit auth login.outlit doctor.outlit upgrade; set OUTLIT_NO_UPDATE_NOTIFIER=1 to suppress update notices.共 3 个版本