简介
Nex官方CRM集成技能,通过API实现客户数据管理、上下文图谱查询与实时洞察,助力销售团队智能化客户关系运营。
原始描述
Share real-time organizational context with your AI agent — query your context graph, manage records, and receive live insights
通过你的 Agent 添加
点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。
或者手动安装
包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。
技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。
中文使用说明 来自收录源
Nex Skill 综合评估
核心用法
Nex Skill 是一个纯文档型 API 集成技能,为 AI agent 提供完整的 Nex CRM(客户关系管理)系统访问能力。主要功能包括:
- 对象与记录管理:发现对象类型(person、company 等)、查询/创建/更新记录、批量操作
- 列表管理:创建列表、添加/更新成员、按列表查询记录
- AI 上下文处理:
context/ask- 自然语言查询联系人/公司信息context/text- 处理对话记录、会议笔记,自动提取实体和洞察context/list/jobs- 用自然语言生成目标列表(如"高优先级企业客户")
- 实时洞察流:通过 REST API 或 SSE 流接收 AI 自动识别的商机、风险、关系信号
所有 API 调用需配置 NEX_API_KEY,且必须设置 120 秒超时(API 响应可能需 10-60 秒)。
显著优点
| 维度 | 亮点 |
|---|---|
| AI 原生设计 | 不同于传统 CRM 的机械查询,Nex 提供自然语言接口(Ask API)和智能列表生成,大幅降低数据检索门槛 |
| 上下文感知 | ProcessText 功能可从非结构化文本(邮件、通话记录)自动提取实体、关系、任务和洞察,实现"对话即数据" |
| 实时情报 | SSE 流推送实时洞察(商机、风险、里程碑),适合构建 proactive 的销售助手 |
| 权限粒度 | 支持 scope 级别的细粒度授权(record.read、insight.stream 等),可按需分配最小权限 |
| 零依赖 | 纯文档型技能,无第三方代码依赖,无供应链攻击风险 |
| 安全合规 | MIT 许可证、T2 可信来源、通过 GDPR/CCPA 合规检测 |
潜在缺点与局限性
- 延迟问题:API 响应 10-60 秒,不适合实时交互场景;SSE 连接需额外维护
- 外部依赖:完全依赖 Nex CRM 服务可用性,无离线能力
- 功能边界:不支持日历/日程管理、邮件发送等完整 CRM 功能,定位为"AI 增强的数据层"
- 成本不透明:未提及 API 调用费用结构,高频使用可能产生不可预期成本
- 数据孤岛:仅能访问 Nex 生态内的数据,无法直接对接 Salesforce、HubSpot 等其他 CRM
适合人群
- 销售/BD 团队:需要快速查询客户背景、整理会议纪要、识别跟进优先级
- AI 产品经理:构建智能销售助手、客户成功机器人
- 数据分析师:希望用自然语言探索客户关系图谱
- 中小企业:寻求轻量级、AI-first 的 CRM 方案,避免复杂的企业级配置
常规风险
| 风险类型 | 说明 | 缓解措施 |
|---|---|---|
| 密钥泄露 | API key 硬编码或日志泄露 | 使用环境变量,定期轮换,启用 IP 白名单 |
| 权限过大 | 申请不必要的 scope | 遵循最小权限原则,按需申请 |
| 超时失败 | 未配置 120s 超时导致操作中断 | 严格遵循文档 timeout 配置 |
| 数据合规 | 处理欧盟/加州客户数据需确认 Nex CRM 的合规认证 | 审查服务商的 DPA(数据处理协议) |
| 供应商锁定 | 数据存储于 Nex 平台,迁移成本高 | 定期导出关键数据备份 |
使用建议
最佳实践是组合使用:对话前用 context/ask 快速了解客户背景,对话后用 context/text 自动归档并提取洞察,日常通过 SSE 流监控关键商机动向。避免将其作为唯一数据源,建议与邮件、日历工具配合使用。
技能正文
name: nex description: Access your Nex CRM - manage records, lists, query your context graph, and receive real-time insights emoji: "\U0001F4CA" metadata: {"openclaw": {"requires": {"env": ["NEX_API_KEY"]}, "primaryEnv": "NEX_API_KEY"}}
Nex - CRM & Context Graph for OpenClaw
Nex gives your AI agent full CRM access: create and manage records, query your context graph, process conversations, and receive real-time insights.
Setup
- Get your API key from https://app.nex.ai/settings/developer
- Add to
~/.openclaw/openclaw.json:{ "skills": { "entries": { "nex": { "enabled": true, "env": { "NEX_API_KEY": "sk-your_key_here" } } } } }
How to Make API Calls
CRITICAL: The Nex API can take 10-60 seconds to respond. You MUST set timeout: 120 on the exec tool call.
When using the exec tool, always include:
{
"tool": "exec",
"command": "curl -s -X POST ...",
"timeout": 120
}
API Scopes
Each API key has scopes that control access. Request the scopes you need when creating your key at https://app.nex.ai/settings/developer
| Scope | Grants Access To |
|---|---|
object.read |
List objects, view schema |
record.read |
Get and list records |
record.write |
Create, update, upsert records |
list.read |
View lists |
list.member.read |
View list members |
list.member.write |
Add, update list members |
insight.stream |
Insights REST + SSE stream |
Capabilities
Objects & Schema Discovery
List Objects
Discover available object types (person, company, etc.) and their attribute schemas. Call this first to learn what fields are available before creating or querying records.
Endpoint: GET https://app.nex.ai/api/developers/v1/objects
Scope: object.read
Query Parameters:
include_attributes(boolean, optional) — Settrueto include attribute definitions
How to call:
{
"tool": "exec",
"command": "curl -s 'https://app.nex.ai/api/developers/v1/objects?include_attributes=true' -H 'Authorization: Bearer $NEX_API_KEY'",
"timeout": 120
}
Response:
{
"data": [
{
"id": "123",
"slug": "person",
"name": "Person",
"name_plural": "People",
"type": "object",
"description": "A contact or person",
"attributes": [
{
"id": "1",
"slug": "name",
"name": "Name",
"type": "name",
"options": {
"is_required": true,
"is_unique": false,
"is_multi_value": false
}
},
{
"id": "2",
"slug": "email",
"name": "Email",
"type": "email",
"options": {
"is_required": false,
"is_unique": true
}
}
]
}
]
}
List Object Lists
Get all lists associated with an object type.
Endpoint: GET https://app.nex.ai/api/developers/v1/objects/{slug}/lists
Scope: list.read
Parameters:
slug(path) — Object type slug (e.g.,person,company)include_attributes(query, optional) — Include attribute definitions
How to call:
{
"tool": "exec",
"command": "curl -s 'https://app.nex.ai/api/developers/v1/objects/person/lists?include_attributes=true' -H 'Authorization: Bearer $NEX_API_KEY'",
"timeout": 120
}
Response:
{
"data": [
{
"id": "456",
"slug": "vip-contacts",
"name": "VIP Contacts",
"type": "list",
"attributes": []
}
]
}
Records
Create Record
Create a new record for an object type.
Endpoint: POST https://app.nex.ai/api/developers/v1/objects/{slug}
Scope: record.write
Parameters:
slug(path) — Object type slug (e.g.,person,company)
Request body:
attributes(required) — Must includename(string or object). Additional fields depend on the object schema.
How to call:
{
"tool": "exec",
"command": "curl -s -X POST 'https://app.nex.ai/api/developers/v1/objects/person' -H 'Authorization: Bearer $NEX_API_KEY' -H 'Content-Type: application/json' -d '{\"attributes\":{\"name\":{\"first_name\":\"Jane\",\"last_name\":\"Doe\"},\"email\":\"jane@example.com\",\"company\":\"Acme Corp\"}}'",
"timeout": 120
}
Response:
{
"id": "789",
"object_id": "123",
"type": "person",
"workspace_id": "111",
"attributes": {
"name": {"first_name": "Jane", "last_name": "Doe"},
"email": "jane@example.com",
"company": "Acme Corp"
},
"created_at": "2026-02-11T10:00:00Z",
"updated_at": "2026-02-11T10:00:00Z"
}
Upsert Record
Create a record if it doesn't exist, or update it if a match is found on the specified attribute.
Endpoint: PUT https://app.nex.ai/api/developers/v1/objects/{slug}
Scope: record.write
Request body:
attributes(required) — Must includenamewhen creatingmatching_attribute(required) — Slug or ID of the attribute to match on (e.g.,email)
How to call:
{
"tool": "exec",
"command": "curl -s -X PUT 'https://app.nex.ai/api/developers/v1/objects/person' -H 'Authorization: Bearer $NEX_API_KEY' -H 'Content-Type: application/json' -d '{\"matching_attribute\":\"email\",\"attributes\":{\"name\":\"Jane Doe\",\"email\":\"jane@example.com\",\"job_title\":\"VP of Sales\"}}'",
"timeout": 120
}
Get Record
Retrieve a specific record by its ID.
Endpoint: GET https://app.nex.ai/api/developers/v1/records/{record_id}
Scope: record.read
How to call:
{
"tool": "exec",
"command": "curl -s 'https://app.nex.ai/api/developers/v1/records/789' -H 'Authorization: Bearer $NEX_API_KEY'",
"timeout": 120
}
Update Record
Update specific attributes on an existing record. Only the provided attributes are changed.
Endpoint: PATCH https://app.nex.ai/api/developers/v1/records/{record_id}
Scope: record.write
Request body:
attributes— Object with the fields to update
How to call:
{
"tool": "exec",
"command": "curl -s -X PATCH 'https://app.nex.ai/api/developers/v1/records/789' -H 'Authorization: Bearer $NEX_API_KEY' -H 'Content-Type: application/json' -d '{\"attributes\":{\"job_title\":\"CTO\",\"phone\":\"+1-555-0123\"}}'",
"timeout": 120
}
List Records
List records for an object type with optional filtering, sorting, and pagination.
Endpoint: POST https://app.nex.ai/api/developers/v1/objects/{slug}/records
Scope: record.read
Request body:
attributes— Which attributes to return:"all","primary","none", or a custom objectlimit(integer) — Number of records to returnoffset(integer) — Pagination offsetsort— Object withattribute(slug) anddirection("asc"or"desc")
How to call:
{
"tool": "exec",
"command": "curl -s -X POST 'https://app.nex.ai/api/developers/v1/objects/person/records' -H 'Authorization: Bearer $NEX_API_KEY' -H 'Content-Type: application/json' -d '{\"attributes\":\"all\",\"limit\":10,\"offset\":0,\"sort\":{\"attribute\":\"updated_at\",\"direction\":\"desc\"}}'",
"timeout": 120
}
Response:
{
"data": [
{
"id": "789",
"type": "person",
"attributes": {"name": "Jane Doe", "email": "jane@example.com"},
"created_at": "2026-02-11T10:00:00Z",
"updated_at": "2026-02-11T10:00:00Z"
}
],
"total": 42,
"limit": 10,
"offset": 0
}
Lists
Add List Member
Add an existing record to a list.
Endpoint: POST https://app.nex.ai/api/developers/v1/lists/{id}
Scope: list.member.write
Parameters:
id(path) — List ID
Request body:
parent_id(required) — ID of the existing record to addattributes(optional) — List-specific attribute values
How to call:
{
"tool": "exec",
"command": "curl -s -X POST 'https://app.nex.ai/api/developers/v1/lists/456' -H 'Authorization: Bearer $NEX_API_KEY' -H 'Content-Type: application/json' -d '{\"parent_id\":\"789\",\"attributes\":{\"status\":\"active\"}}'",
"timeout": 120
}
Upsert List Member
Add a record to a list, or update its list-specific attributes if already a member.
Endpoint: PUT https://app.nex.ai/api/developers/v1/lists/{id}
Scope: list.member.write
How to call:
{
"tool": "exec",
"command": "curl -s -X PUT 'https://app.nex.ai/api/developers/v1/lists/456' -H 'Authorization: Bearer $NEX_API_KEY' -H 'Content-Type: application/json' -d '{\"parent_id\":\"789\",\"attributes\":{\"priority\":\"high\"}}'",
"timeout": 120
}
List Records in a List
Get paginated records from a specific list.
Endpoint: POST https://app.nex.ai/api/developers/v1/lists/{id}/records
Scope: list.member.read
Request body: Same as List Records (attributes, limit, offset, sort)
How to call:
{
"tool": "exec",
"command": "curl -s -X POST 'https://app.nex.ai/api/developers/v1/lists/456/records' -H 'Authorization: Bearer $NEX_API_KEY' -H 'Content-Type: application/json' -d '{\"attributes\":\"all\",\"limit\":20}'",
"timeout": 120
}
Update List Record
Update list-specific attributes for a record within a list.
Endpoint: PATCH https://app.nex.ai/api/developers/v1/lists/{id}/records/{record_id}
Scope: list.member.write
How to call:
{
"tool": "exec",
"command": "curl -s -X PATCH 'https://app.nex.ai/api/developers/v1/lists/456/records/789' -H 'Authorization: Bearer $NEX_API_KEY' -H 'Content-Type: application/json' -d '{\"attributes\":{\"status\":\"closed-won\"}}'",
"timeout": 120
}
Context & AI
Query Context (Ask API)
Use this when you need to recall information about contacts, companies, or relationships.
Endpoint: POST https://app.nex.ai/api/developers/v1/context/ask
Scope: record.read
How to call:
{
"tool": "exec",
"command": "curl -s -X POST 'https://app.nex.ai/api/developers/v1/context/ask' -H 'Authorization: Bearer $NEX_API_KEY' -H 'Content-Type: application/json' -d '{\"query\":\"What do I know about John Smith?\"}'",
"timeout": 120
}
Response:
{
"answer": "John Smith is a VP of Sales at Acme Corp...",
"entities_considered": [
{"id": 123, "name": "John Smith", "type": "contact"}
],
"signals_used": [
{"id": 456, "content": "Met at conference last month"}
],
"metadata": {
"query_type": "entity_specific"
}
}
Example queries:
- "Who are my most engaged contacts this week?"
- "What companies are we working with in the healthcare sector?"
- "What was discussed in my last meeting with Sarah?"
Add Context (ProcessText API)
Use this to ingest new information from conversations, meeting notes, or other text.
Endpoint: POST https://app.nex.ai/api/developers/v1/context/text
Scope: record.write
Request body:
content(required) — The text to processcontext(optional) — Additional context about the text (e.g., "Sales call notes")
How to call:
{
"tool": "exec",
"command": "curl -s -X POST 'https://app.nex.ai/api/developers/v1/context/text' -H 'Authorization: Bearer $NEX_API_KEY' -H 'Content-Type: application/json' -d '{\"content\":\"Had a great call with John Smith from Acme Corp.\",\"context\":\"Sales call notes\"}'",
"timeout": 120
}
Response:
{
"artifact_id": "abc123"
}
After calling ProcessText, use Get Artifact Status to check processing results.
Get Artifact Status
Check the processing status and results after calling ProcessText.
Endpoint: GET https://app.nex.ai/api/developers/v1/context/artifacts/{artifact_id}
Scope: record.read
How to call:
{
"tool": "exec",
"command": "curl -s 'https://app.nex.ai/api/developers/v1/context/artifacts/abc123' -H 'Authorization: Bearer $NEX_API_KEY'",
"timeout": 120
}
Response:
{
"operation_id": 48066188026052610,
"status": "completed",
"result": {
"entities_extracted": [
{"name": "John Smith", "type": "PERSON", "action": "created"},
{"name": "Acme Corp", "type": "COMPANY", "action": "updated"}
],
"entities_created": 1,
"entities_updated": 1,
"relationships": 1,
"insights": [
{"content": "Acme Corp expanding to APAC", "confidence": 0.85}
],
"tasks": []
},
"created_at": "2026-02-05T10:30:00Z",
"completed_at": "2026-02-05T10:30:15Z"
}
Status values: pending, processing, completed, failed
Typical workflow:
- Call ProcessText -> get
artifact_id - Poll Get Artifact Status every 2-5 seconds
- Stop when
statusiscompletedorfailed - Report the extracted entities and insights to the user
Create AI List Job
Use natural language to search your context graph and generate a curated list of contacts or companies.
Endpoint: POST https://app.nex.ai/api/developers/v1/context/list/jobs
Scope: record.read
Request body:
query(required) — Natural language search query (e.g., "all companies who have asked for a contract")object_type(optional) —"contact"or"company"(default:"contact")limit(optional) — Number of results (default: 50, max: 100)include_attributes(optional) — Include all entity attribute values (default: false)
How to call:
{
"tool": "exec",
"command": "curl -s -X POST 'https://app.nex.ai/api/developers/v1/context/list/jobs' -H 'Authorization: Bearer $NEX_API_KEY' -H 'Content-Type: application/json' -d '{\"query\":\"high priority contacts in enterprise deals\",\"object_type\":\"contact\",\"limit\":20,\"include_attributes\":true}'",
"timeout": 120
}
Response:
{
"message": {
"job_id": "12345678901234567",
"status": "pending"
}
}
Get AI List Job Status
Check status and results of an AI list generation job. Poll until status is completed or failed.
Endpoint: GET https://app.nex.ai/api/developers/v1/context/list/jobs/{job_id}
Scope: record.read
Query Parameters:
include_attributes(boolean, optional) — Include full attributes for each entity
How to call:
{
"tool": "exec",
"command": "curl -s 'https://app.nex.ai/api/developers/v1/context/list/jobs/12345678901234567?include_attributes=true' -H 'Authorization: Bearer $NEX_API_KEY'",
"timeout": 120
}
Response (completed):
{
"message": {
"job_id": "12345678901234567",
"status": "completed",
"created_at": "2026-02-11T10:00:00Z",
"count": 5,
"query_interpretation": "Finding contacts involved in enterprise-level deals marked as high priority",
"entities": [
{
"id": "789",
"name": "Jane Doe",
"type": "contact",
"reason": "Lead on $500K enterprise deal with Acme Corp, marked high priority",
"highlights": [
"Contract negotiation in progress",
"Budget approved Q1 2026",
"Executive sponsor confirmed"
],
"attributes": {}
}
]
}
}
Status values: pending, processing, completed, failed
Typical workflow:
- Create job with natural language query -> get
job_id - Poll Get AI List Job Status every 2-5 seconds
- Stop when
statusiscompletedorfailed - Present the matched entities with reasons and highlights
Insights
Get Insights (REST)
Query insights by time window. Supports two modes.
Endpoint: GET https://app.nex.ai/api/developers/v1/insights
Scope: insight.stream
Query Parameters:
last— Duration window, e.g.,30m,2h,1h30mfrom+to— UTC time range in RFC3339 formatlimit(optional) — Max results (default: 20, max: 100)
If neither last nor from/to is specified, returns the most recent insights (default 20).
How to call:
Last 30 minutes:
{
"tool": "exec",
"command": "curl -s 'https://app.nex.ai/api/developers/v1/insights?last=30m' -H 'Authorization: Bearer $NEX_API_KEY'",
"timeout": 120
}
Between two dates:
{
"tool": "exec",
"command": "curl -s 'https://app.nex.ai/api/developers/v1/insights?from=2026-02-07T00:00:00Z&to=2026-02-08T00:00:00Z' -H 'Authorization: Bearer $NEX_API_KEY'",
"timeout": 120
}
When to use:
- When polling periodically instead of maintaining SSE connection
- To get current insight state on startup
- As fallback when SSE connection drops
- To review insights from a specific time period
Real-time Insight Stream (SSE)
Receive insights as they are discovered in real time.
Endpoint: GET https://app.nex.ai/api/developers/v1/insights/stream
Scope: insight.stream
How to connect:
curl -N -s "https://app.nex.ai/api/developers/v1/insights/stream" \
-H "Authorization: Bearer $NEX_API_KEY" \
-H "Accept: text/event-stream"
Connection behavior:
- Server sends
: connected workspace_id=... token_id=...on connection - Recent insights are replayed immediately via
insight.replayevents (up to 20) - Keepalive comments (
: keepalive) sent every 30 seconds - Real-time events arrive as:
event: insight.batch.created\ndata: {...}\n\n
Event payload structure:
{
"workspace": {
"name": "Acme Corp",
"slug": "acme",
"business_info": {"name": "Acme Corp", "domain": "acme.com"}
},
"insights": [{
"type": "opportunity",
"type_description": "A potential business opportunity",
"content": "Budget approval expected next quarter",
"confidence": 0.85,
"confidence_level": "high",
"target": {
"type": "entity",
"entity_type": "person",
"hint": "John Smith",
"signals": [{"type": "email", "value": "john@acme.com"}]
},
"evidence": [{
"excerpt": "We should have budget approval by Q2",
"artifact": {"type": "email", "subject": "RE: Proposal"}
}]
}],
"insight_count": 1,
"emitted_at": "2026-02-05T10:30:00Z"
}
Insight types: opportunity, risk, relationship, preference, milestone, activity, characteristic, role_detail
When to use: Keep the SSE connection open in the background during active conversations. For one-off queries, use the Ask API instead.
Error Handling
| Status Code | Meaning | Action |
|---|---|---|
| 400 | Invalid request | Check request body and parameters |
| 401 | Invalid API key | Check NEX_API_KEY is set correctly |
| 403 | Missing scope | Verify API key has the required scope |
| 404 | Not found | Check the record/object/list ID exists |
| 429 | Rate limited | Wait and retry with exponential backoff |
| 500 | Server error | Retry after a brief delay |
When to Use Nex
Good use cases:
- Before responding to a message, query for context about the person
- After a conversation, process the transcript to update the context graph
- When asked about relationships or history with contacts/companies
- Creating or updating CRM records from conversation context
- Building targeted lists from your contact database
- Looking up record details before a meeting
Not for:
- General knowledge questions (use web search)
- Real-time calendar/scheduling (use calendar tools)
- Direct CRM data entry that requires the full Nex UI
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。