cargo-orchestration
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCargo CLI — Orchestration
Cargo CLI — 编排功能
Runtime operations for the Cargo platform.
What do you want to run?
Need to run something?
├── One action, one record → action execute
├── One action, many records → action execute-batch
├── Multiple actions chained
│ ├── One-off / ad-hoc → run create --nodes (one record)
│ │ batch create --nodes (many records)
│ └── Reusable workflow → build a tool, then run create --workflow-uuid
│ or batch create --workflow-uuid
└── Conversational AI agent → message createTerminology: An orchestration tool is a saved on-demand workflow (listed via). An action is a single operation you execute without building a workflow — it can embed a saved orchestration tool (tool list), call a third-party connector (kind: "tool"), invoke an AI agent (kind: "connector"), or run a built-in platform operation (kind: "agent").kind: "native"
References:
— action execute and execute-batch examplesreferences/actions.md— tool (on-demand workflow) examplesreferences/tools.md— play (segment-driven automation) examplesreferences/plays.md— AI agent chat examplesreferences/agents.md— full node creation guide (kinds, native actions, expressions, validation, routing)references/nodes.md— pre-built workflow templatesreferences/templates.md—references/queries.md(ClickHouse: runs/batches/spans/records) SQL examples. Fororchestration query execute(workspace storage), see thestorage queryskill.cargo-storage— segment fetch and filter examplesreferences/segments.md— full JSON response structuresreferences/response-shapes.md— complete filter condition referencereferences/filter-syntax.md— async polling patterns, error handling, retry strategiesreferences/polling.md— common errors, plus a "Debugging a workflow run" section for runs that succeed but produce wrong output (wrong-branch routing, empty downstream values)references/troubleshooting.md
Cargo平台的运行时操作。
你想要运行什么?
Need to run something?
├── One action, one record → action execute
├── One action, many records → action execute-batch
├── Multiple actions chained
│ ├── One-off / ad-hoc → run create --nodes (one record)
│ │ batch create --nodes (many records)
│ └── Reusable workflow → build a tool, then run create --workflow-uuid
│ or batch create --workflow-uuid
└── Conversational AI agent → message create术语说明: 编排tool是已保存的按需工作流(可通过查看)。action是无需构建工作流即可执行的单个操作——它可以嵌入已保存的编排tool(tool list)、调用第三方连接器(kind: "tool")、调用AI agent(kind: "connector")或运行内置平台操作(kind: "agent")。kind: "native"
参考文档:
— action execute和execute-batch示例references/actions.md— tool(按需工作流)示例references/tools.md— play(细分段驱动的自动化)示例references/plays.md— AI agent聊天示例references/agents.md— 完整节点创建指南(类型、原生action、表达式、验证、路由)references/nodes.md— 预构建工作流模板references/templates.md—references/queries.md(ClickHouse:runs/batches/spans/records)SQL示例。如需对工作区存储执行orchestration query execute,请查看storage query技能。cargo-storage— 细分段获取与过滤示例references/segments.md— 完整JSON响应结构references/response-shapes.md— 完整过滤条件参考references/filter-syntax.md— 异步轮询模式、错误处理、重试策略references/polling.md— 常见错误,以及针对执行成功但输出结果错误的工作流运行的「调试工作流运行」部分(错误分支路由、下游值为空等问题)references/troubleshooting.md
Prerequisites
前置条件
bash
npm install -g @cargo-ai/cli
cargo-ai login --oauth # browser sign-in (recommended)bash
npm install -g @cargo-ai/cli
cargo-ai login --oauth # 浏览器登录(推荐)or: cargo-ai login --token <your-api-token> # workspace-scoped API token (non-interactive)
或:cargo-ai login --token <your-api-token> # 工作区范围的API令牌(非交互式)
Pin a default workspace at login (with --oauth)
登录时固定默认工作区(使用--oauth)
cargo-ai login --oauth --workspace-uuid <uuid>
Verify with `cargo-ai whoami`. All commands output JSON to stdout. Without a global install, prefix every command with `npx @cargo-ai/cli` instead of `cargo-ai`.
Failed commands exit non-zero and return `{"errorMessage": "..."}`.cargo-ai login --oauth --workspace-uuid <uuid>
使用`cargo-ai whoami`验证安装。所有命令都会向标准输出(stdout)输出JSON。如果未全局安装,请在每个命令前添加`npx @cargo-ai/cli`前缀,替代`cargo-ai`。
执行失败的命令会返回非零退出码,并返回`{"errorMessage": "..."}`。Discover resources first
先发现资源
Most commands require UUIDs. Always discover them before acting.
bash
cargo-ai orchestration play list # all plays (name, workflowUuid, modelUuid, segmentUuid)
cargo-ai orchestration tool list # all tools (name, workflowUuid, description)
cargo-ai orchestration workflow list # all workflows (uuid only — no name)
cargo-ai orchestration template list # all workflow templates (slug, name, kind)
cargo-ai ai agent list # all agents (uuid, name)
cargo-ai ai template list # all AI agent templates (slug, name, languageModelSlug)
cargo-ai storage model list # all models (uuid, name, slug, columns)
cargo-ai storage dataset list # all datasets
cargo-ai segmentation segment list # all segments (uuid, name, modelUuid)
cargo-ai connection connector list # all connectorsPlays vs tools: Both are backed by a workflow. A play is a segment-driven automation — it reacts to data changes in a segment (records added, updated, removed). A tool is an on-demand workflow — triggered manually, via API, or on a cron schedule. Workflows don't have a field; use or to find names and extract the .
nameplay listtool listworkflowUuidRetrieve in the UI: plays live at and tools at . Get from under .
app.getcargo.io/workspaces/<WORKSPACE_UUID>/plays/<PLAY_UUID>app.getcargo.io/workspaces/<WORKSPACE_UUID>/tools/<TOOL_UUID><WORKSPACE_UUID>cargo-ai whoamiworkspace.uuidDesigning a new tool or play? Check templates first — they are pre-built node graphs for common automation patterns (enrichment pipelines, CRM syncs, lead scoring) and are an excellent starting point. List templates with and inspect a specific one with . Templates are tagged by so you can find ones suited for tools () or plays () right away. See for the full guide.
cargo-ai orchestration template listcargo-ai orchestration template get <slug>kind"kind":"tool""kind":"play"references/templates.mdCompatibility rules:
- — only works with tool workflows (or no
run create). Play workflows returnworkflowUuid.playNotCompatible - — allowed data kinds depend on the workflow type:
batch create- Play workflows: ,
segment,change,filterrecordIds - Tool workflows (or no ):
workflowUuid,filerecords
- Play workflows:
大多数命令需要UUID。执行操作前请先查询获取。
bash
cargo-ai orchestration play list # 所有plays(名称、workflowUuid、modelUuid、segmentUuid)
cargo-ai orchestration tool list # 所有tools(名称、workflowUuid、描述)
cargo-ai orchestration workflow list # 所有工作流(仅uuid——无名称)
cargo-ai orchestration template list # 所有工作流模板(slug、名称、类型)
cargo-ai ai agent list # 所有agents(uuid、名称)
cargo-ai ai template list # 所有AI agent模板(slug、名称、languageModelSlug)
cargo-ai storage model list # 所有模型(uuid、名称、slug、列)
cargo-ai storage dataset list # 所有数据集
cargo-ai segmentation segment list # 所有细分段(uuid、名称、modelUuid)
cargo-ai connection connector list # 所有连接器Plays与tools的区别: 两者都基于工作流。play是细分段驱动的自动化——它会响应细分段中的数据变化(记录添加、更新、删除)。tool是按需工作流——可手动触发、通过API触发或按定时计划触发。工作流没有字段;请使用或查找名称并提取。
nameplay listtool listworkflowUuid在UI中查看: plays的地址为,tools的地址为。可从的字段获取。
app.getcargo.io/workspaces/<WORKSPACE_UUID>/plays/<PLAY_UUID>app.getcargo.io/workspaces/<WORKSPACE_UUID>/tools/<TOOL_UUID>cargo-ai whoamiworkspace.uuid<WORKSPACE_UUID>设计新的tool或play? 先查看模板——它们是针对常见自动化模式( enrichment pipelines、CRM同步、线索评分)预构建的节点图,是极佳的起点。使用查看模板,使用查看特定模板详情。模板按标记,你可以直接找到适用于tools()或plays()的模板。完整指南请查看。
cargo-ai orchestration template listcargo-ai orchestration template get <slug>kind"kind":"tool""kind":"play"references/templates.md兼容性规则:
- — 仅适用于tool工作流(或无
run create)。Play工作流会返回workflowUuid。playNotCompatible - — 允许的数据类型取决于工作流类型:
batch create- Play工作流:,
segment,change,filterrecordIds - Tool工作流(或无):
workflowUuid,filerecords
- Play工作流:
Quick reference
快速参考
bash
undefinedbash
undefinedSingle actions
单个action
cargo-ai orchestration action execute --action '{"kind":"tool","toolUuid":"<uuid>","config":{}}' --data '{"domain":"acme.com"}'
cargo-ai orchestration action execute-batch --action '{"kind":"connector","integrationSlug":"clearbit","actionSlug":"company_enrich","config":{}}' --records '[{...},{...}]'
cargo-ai orchestration action execute --action '{"kind":"tool","toolUuid":"<uuid>","config":{}}' --data '{"domain":"acme.com"}'
cargo-ai orchestration action execute-batch --action '{"kind":"connector","integrationSlug":"clearbit","actionSlug":"company_enrich","config":{}}' --records '[{...},{...}]'
Workflows (chain multiple actions)
工作流(串联多个action)
cargo-ai orchestration run create --workflow-uuid <uuid> --data '{"company":"Acme","domain":"acme.com"}'
cargo-ai orchestration run create --data '{"domain":"acme.com"}' --nodes '[...]'
cargo-ai orchestration batch create --workflow-uuid <uuid> --data '{"kind":"segment","segmentUuid":"..."}'
cargo-ai orchestration run create --workflow-uuid <uuid> --data '{"company":"Acme","domain":"acme.com"}'
cargo-ai orchestration run create --data '{"domain":"acme.com"}' --nodes '[...]'
cargo-ai orchestration batch create --workflow-uuid <uuid> --data '{"kind":"segment","segmentUuid":"..."}'
AI agents
AI agents
cargo-ai ai message create --chat-uuid <uuid> --parts '[{"type":"text","text":"..."}]'
cargo-ai ai message create --chat-uuid <uuid> --parts '[{"type":"text","text":"..."}]'
Data
数据
cargo-ai orchestration query execute "SELECT count() FROM runs WHERE status='error'" # ClickHouse: spans, runs, batches, records
cargo-ai segmentation segment fetch --model-uuid <uuid> --filter '{"conjonction":"and","groups":[]}' --fetching-limit 100
cargo-ai orchestration query execute "SELECT count() FROM runs WHERE status='error'" # ClickHouse: spans, runs, batches, records
cargo-ai segmentation segment fetch --model-uuid <uuid> --filter '{"conjonction":"and","groups":[]}' --fetching-limit 100
For SQL against workspace storage (Companies, Contacts, …), see the cargo-storage skill: storage query execute
storage query execute如需对工作区存储(Companies、Contacts等)执行SQL,请查看cargo-storage技能:storage query execute
storage query executeundefinedundefinedPolling async operations
轮询异步操作
All operations are asynchronous. Either poll until terminal state, or pass to block.
--wait-until-finishedaction executeaction execute-batch| Result type | Poll command | Interval | Done when |
|---|---|---|---|
| Run | | 2s | |
| Batch | | 5s | |
| Agent message | | 2s | |
For long-running batches (1000+ records), increase the interval to 10-15s after the first minute.
所有操作均为异步。你可以轮询直到进入终端状态,或传入参数阻塞等待。
--wait-until-finishedaction executeaction execute-batch| 结果类型 | 轮询命令 | 间隔时间 | 完成状态条件 |
|---|---|---|---|
| Run | | 2秒 | |
| Batch | | 5秒 | |
| Agent message | | 2秒 | |
对于长时间运行的批量任务(1000+条记录),在第一分钟后可将间隔时间增加到10-15秒。
Execute actions
执行actions
Run a single action — no workflow or node graph needed.
bash
undefined运行单个action——无需工作流或节点图。
bash
undefinedOne action, one record → returns a run
单个action,单条记录 → 返回一个run
cargo-ai orchestration action execute
--action '{"kind":"connector","integrationSlug":"clearbit","actionSlug":"company_enrich","config":{}}'
--data '{"domain":"acme.com"}'
--wait-until-finished
--action '{"kind":"connector","integrationSlug":"clearbit","actionSlug":"company_enrich","config":{}}'
--data '{"domain":"acme.com"}'
--wait-until-finished
cargo-ai orchestration action execute
--action '{"kind":"connector","integrationSlug":"clearbit","actionSlug":"company_enrich","config":{}}'
--data '{"domain":"acme.com"}'
--wait-until-finished
--action '{"kind":"connector","integrationSlug":"clearbit","actionSlug":"company_enrich","config":{}}'
--data '{"domain":"acme.com"}'
--wait-until-finished
One action, many records → returns a batch
单个action,多条记录 → 返回一个batch
cargo-ai orchestration action execute-batch
--action '{"kind":"tool","toolUuid":"<tool-uuid>","config":{}}'
--records '[{"domain":"acme.com"},{"domain":"globex.com"}]'
--wait-until-finished
--action '{"kind":"tool","toolUuid":"<tool-uuid>","config":{}}'
--records '[{"domain":"acme.com"},{"domain":"globex.com"}]'
--wait-until-finished
Action kinds: `tool`, `connector`, `agent`, `native`. See `references/actions.md` for all action kinds, parameters, retry config, response shapes, and end-to-end examples.cargo-ai orchestration action execute-batch
--action '{"kind":"tool","toolUuid":"<tool-uuid>","config":{}}'
--records '[{"domain":"acme.com"},{"domain":"globex.com"}]'
--wait-until-finished
--action '{"kind":"tool","toolUuid":"<tool-uuid>","config":{}}'
--records '[{"domain":"acme.com"},{"domain":"globex.com"}]'
--wait-until-finished
Action类型:`tool`, `connector`, `agent`, `native`。所有action类型、参数、重试配置、响应结构和端到端示例请查看`references/actions.md`。Create a run
创建run
A run processes a single record through a workflow. Use when you need to chain multiple actions together via a node graph, or when running an existing tool workflow.
run createRuns only work with tool workflows. Play workflows return — use instead.
playNotCompatiblebatch createbash
cargo-ai orchestration run create \
--workflow-uuid <tool.workflowUuid> \
--data '{"company":"Acme","domain":"acme.com"}'Run会通过工作流处理单条记录。当你需要通过节点图串联多个action,或运行现有tool工作流时,请使用。
run createRun仅适用于tool工作流。 Play工作流会返回——请改用。
playNotCompatiblebatch createbash
cargo-ai orchestration run create \
--workflow-uuid <tool.workflowUuid> \
--data '{"company":"Acme","domain":"acme.com"}'→ Poll with: cargo-ai orchestration run get <run-uuid>
→ 轮询命令:cargo-ai orchestration run get <run-uuid>
Or wait synchronously — blocks until the run reaches a terminal state and returns the final result
或同步等待——阻塞直到run进入终端状态并返回最终结果
cargo-ai orchestration run create
--workflow-uuid <tool.workflowUuid>
--data '{"company":"Acme","domain":"acme.com"}'
--wait-until-finished
--workflow-uuid <tool.workflowUuid>
--data '{"company":"Acme","domain":"acme.com"}'
--wait-until-finished
Also supports `--release-uuid` to pin a specific release.
**Cancelling runs:**
```bash
cargo-ai orchestration run cancel --workflow-uuid <uuid> --uuids run-uuid-1,run-uuid-2See for file uploads, monitoring, and cancellation. See for custom node graphs.
references/tools.mdreferences/nodes.mdcargo-ai orchestration run create
--workflow-uuid <tool.workflowUuid>
--data '{"company":"Acme","domain":"acme.com"}'
--wait-until-finished
--workflow-uuid <tool.workflowUuid>
--data '{"company":"Acme","domain":"acme.com"}'
--wait-until-finished
还支持`--release-uuid`参数以固定特定版本。
**取消runs:**
```bash
cargo-ai orchestration run cancel --workflow-uuid <uuid> --uuids run-uuid-1,run-uuid-2文件上传、监控和取消相关内容请查看。自定义节点图相关内容请查看。
references/tools.mdreferences/nodes.mdCreate a batch
创建batch
Batches process multiple records at once. Allowed data kinds depend on the workflow type:
- Play workflows: ,
segment,change,filterrecordIds - Tool workflows (or no ):
workflowUuid,filerecords
bash
undefinedBatch会同时处理多条记录。允许的数据类型取决于工作流类型:
- Play工作流:,
segment,change,filterrecordIds - Tool工作流(或无):
workflowUuid,filerecords
bash
undefinedPlay workflow — run on a segment
Play工作流——基于细分段运行
cargo-ai orchestration batch create
--workflow-uuid <play.workflowUuid>
--data '{"kind":"segment","segmentUuid":"..."}'
--workflow-uuid <play.workflowUuid>
--data '{"kind":"segment","segmentUuid":"..."}'
cargo-ai orchestration batch create
--workflow-uuid <play.workflowUuid>
--data '{"kind":"segment","segmentUuid":"..."}'
--workflow-uuid <play.workflowUuid>
--data '{"kind":"segment","segmentUuid":"..."}'
Tool workflow — run on a file
Tool工作流——基于文件运行
cargo-ai orchestration batch create
--workflow-uuid <tool.workflowUuid>
--data '{"kind":"file","s3Filename":"..."}'
--workflow-uuid <tool.workflowUuid>
--data '{"kind":"file","s3Filename":"..."}'
cargo-ai orchestration batch create
--workflow-uuid <tool.workflowUuid>
--data '{"kind":"file","s3Filename":"..."}'
--workflow-uuid <tool.workflowUuid>
--data '{"kind":"file","s3Filename":"..."}'
→ Poll with: cargo-ai orchestration batch get <batch-uuid>
→ 轮询命令:cargo-ai orchestration batch get <batch-uuid>
Or wait synchronously — blocks until the batch reaches a terminal state and returns the final result
或同步等待——阻塞直到batch进入终端状态并返回最终结果
cargo-ai orchestration batch create
--workflow-uuid <play.workflowUuid>
--data '{"kind":"segment","segmentUuid":"..."}'
--wait-until-finished
--workflow-uuid <play.workflowUuid>
--data '{"kind":"segment","segmentUuid":"..."}'
--wait-until-finished
**Downloading results:** get the `releaseUuid` from batch get, then `cargo-ai orchestration release get <release-uuid>` to find `nodes[].slug`, then `cargo-ai orchestration batch download --uuid <batch-uuid> --output-node-slug <slug>`.
**Cancelling a batch:**
```bash
cargo-ai orchestration batch cancel <batch-uuid>See and for filtering, record IDs, file uploads, monitoring, and cancellation.
references/plays.mdreferences/tools.mdcargo-ai orchestration batch create
--workflow-uuid <play.workflowUuid>
--data '{"kind":"segment","segmentUuid":"..."}'
--wait-until-finished
--workflow-uuid <play.workflowUuid>
--data '{"kind":"segment","segmentUuid":"..."}'
--wait-until-finished
**下载结果:** 从batch get结果中获取`releaseUuid`,然后使用`cargo-ai orchestration release get <release-uuid>`查找`nodes[].slug`,再执行`cargo-ai orchestration batch download --uuid <batch-uuid> --output-node-slug <slug>`。
**取消batch:**
```bash
cargo-ai orchestration batch cancel <batch-uuid>过滤、记录ID、文件上传、监控和取消相关内容请查看和。
references/plays.mdreferences/tools.mdSend a message to an AI agent
向AI agent发送消息
bash
cargo-ai ai agent list # 1. Find the agent
cargo-ai ai chat create \ # 2. Create a chat
--trigger '{"type":"draft"}' \
--agent-uuid <agent-uuid> --name "Research session"
cargo-ai ai message create \ # 3. Send a message
--chat-uuid <chat-uuid> \
--parts '[{"type":"text","text":"Find the VP of Sales at Acme Corp"}]'bash
cargo-ai ai agent list # 1. 查找agent
cargo-ai ai chat create \ # 2. 创建对话
--trigger '{"type":"draft"}' \
--agent-uuid <agent-uuid> --name "Research session"
cargo-ai ai message create \ # 3. 发送消息
--chat-uuid <chat-uuid> \
--parts '[{"type":"text","text":"Find the VP of Sales at Acme Corp"}]'→ Extract assistantMessage.uuid, poll with: cargo-ai ai message get <uuid>
→ 提取assistantMessage.uuid,轮询命令:cargo-ai ai message get <uuid>
Done when .message.status is "success" (read .parts) or "error" (read .errorMessage)
完成条件:.message.status为"success"(查看.parts)或"error"(查看.errorMessage)
Also supports `--actions`, `--resources`, `--language-model-slug`, `--temperature`, `--max-steps`, and `--wait-until-finished` (blocks until the assistant message reaches a terminal status). See `references/agents.md` for multi-turn conversations, action/resource injection, and model selection.
还支持`--actions`、`--resources`、`--language-model-slug`、`--temperature`、`--max-steps`和`--wait-until-finished`(阻塞直到助手消息进入终端状态)。多轮对话、action/资源注入和模型选择相关内容请查看`references/agents.md`。Inspect records
检查records
Records are individual items processed by a workflow. Use these commands to list, count, download, or cancel records within a workflow.
bash
undefinedRecords是工作流处理的单个条目。使用以下命令列出、计数、下载或取消工作流中的records。
bash
undefinedList records for a workflow
列出工作流的records
cargo-ai orchestration record list --workflow-uuid <uuid> --limit 50
cargo-ai orchestration record list --workflow-uuid <uuid> --limit 50
Filter by batch or status
按batch或状态过滤
cargo-ai orchestration record list --workflow-uuid <uuid> --batch-uuid <uuid> --statuses error
cargo-ai orchestration record list --workflow-uuid <uuid> --batch-uuid <uuid> --statuses error
Count records
计数records
cargo-ai orchestration record count --workflow-uuid <uuid>
cargo-ai orchestration record count --workflow-uuid <uuid>
Download records as a file
将records下载为文件
cargo-ai orchestration record download --workflow-uuid <uuid>
cargo-ai orchestration record download --workflow-uuid <uuid>
Get per-node execution metrics
获取每个节点的执行指标
cargo-ai orchestration record get-metrics --workflow-uuid <uuid>
cargo-ai orchestration record get-metrics --workflow-uuid <uuid>
Cancel records
取消records
cargo-ai orchestration record cancel --workflow-uuid <uuid> --ids record-id-1,record-id-2
undefinedcargo-ai orchestration record cancel --workflow-uuid <uuid> --ids record-id-1,record-id-2
undefinedQuery orchestration history (orchestration query)
查询编排历史(orchestration query)
Run SQL against orchestration runtime tables — , , , — with . Use this for ad-hoc analytics on workflow execution (error rates, throughput, slowest nodes) without the workflow-scoped filters of / .
spansrunsbatchesrecordsorchestration query executerun get-metricsrun countbash
cargo-ai orchestration query execute "SELECT count() FROM runs WHERE status = 'error'"
cargo-ai orchestration query execute "SELECT status, count() FROM batches GROUP BY status"
cargo-ai orchestration query execute "SELECT * FROM spans ORDER BY execution_started_at DESC LIMIT 10"Tables are referenced without a schema prefix — just , , , or . Workspace scoping is applied automatically. The query is read-only; DDL, table functions, dictionary accessors, and introspection are denied. See for the schemas, example queries, and limits.
spansrunsbatchesrecordsreferences/queries.md使用对编排运行时表(、、、)执行SQL。可用于对工作流执行情况进行临时分析(错误率、吞吐量、最慢节点),无需使用/的工作流范围过滤。
orchestration query executespansrunsbatchesrecordsrun get-metricsrun countbash
cargo-ai orchestration query execute "SELECT count() FROM runs WHERE status = 'error'"
cargo-ai orchestration query execute "SELECT status, count() FROM batches GROUP BY status"
cargo-ai orchestration query execute "SELECT * FROM spans ORDER BY execution_started_at DESC LIMIT 10"表名无需添加架构前缀——直接使用、、或。工作区范围会自动应用。查询为只读;不允许DDL、表函数、字典访问器和自省操作。表结构、示例查询和限制请查看。
spansrunsbatchesrecordsreferences/queries.mdFetch segment data
获取细分段数据
Retrieve live records from a segment. IMPORTANT: requires (not ). Get the from . Filter JSON uses (not ) — this is intentional.
--model-uuid--segment-uuidmodelUuidsegment listconjonctionconjunctionbash
cargo-ai segmentation segment fetch \
--model-uuid <uuid> \
--filter '{"conjonction":"and","groups":[]}' \
--fetching-limit 100 --fetching-offset 0Supports , , and . See for the full filter syntax and for filtering, pagination, sorting, enrollment filters, and enrichment.
--sort--enrich--syncreferences/filter-syntax.mdreferences/segments.mdManaging segments:
bash
undefined从细分段中获取实时记录。重要提示: 需要(而非)。可从结果中获取。过滤JSON使用(而非)——此为有意设计。
--model-uuid--segment-uuidsegment listmodelUuidconjonctionconjunctionbash
cargo-ai segmentation segment fetch \
--model-uuid <uuid> \
--filter '{"conjonction":"and","groups":[]}' \
--fetching-limit 100 --fetching-offset 0支持、和参数。完整过滤语法请查看,过滤、分页、排序、加入过滤和 enrichment相关内容请查看。
--sort--enrich--syncreferences/filter-syntax.mdreferences/segments.md管理细分段:
bash
undefinedUpdate a segment's name or filter
更新细分段的名称或过滤条件
cargo-ai segmentation segment update --uuid <segment-uuid> --name "Updated Name"
cargo-ai segmentation segment update --uuid <segment-uuid> --filter '{"conjonction":"and","groups":[...]}'
cargo-ai segmentation segment update --uuid <segment-uuid> --name "Updated Name"
cargo-ai segmentation segment update --uuid <segment-uuid> --filter '{"conjonction":"and","groups":[...]}'
Remove a segment (fails if linked to a workflow)
删除细分段(如果已关联工作流则会失败)
cargo-ai segmentation segment remove <segment-uuid>
undefinedcargo-ai segmentation segment remove <segment-uuid>
undefinedUse a workflow template
使用工作流模板
Templates are pre-built node graphs for common automation patterns (enrichment pipelines, CRM syncs, lead scoring). Browse with , inspect with , fill in placeholders, validate, and run.
template listtemplate get <slug>bash
cargo-ai orchestration template list # list available templates
cargo-ai orchestration template get <slug> # get template nodes + configSee for the full guide including placeholder conventions and end-to-end examples.
references/templates.md模板是针对常见自动化模式(enrichment pipelines、CRM同步、线索评分)预构建的节点图。使用浏览,使用查看详情,填充占位符,验证后运行。
template listtemplate get <slug>bash
cargo-ai orchestration template list # 查看可用模板
cargo-ai orchestration template get <slug> # 获取模板节点+配置占位符约定和端到端示例等完整指南请查看。
references/templates.mdValidate and test nodes
验证和测试节点
Always validate custom node graphs before running them.
bash
cargo-ai orchestration node validate --nodes '[...]'运行自定义节点图前请务必验证。
bash
cargo-ai orchestration node validate --nodes '[...]'→ { "outcome": "valid" } or { "outcome": "notValid", "invalidNodes": [...] }
→ { "outcome": "valid" } 或 { "outcome": "notValid", "invalidNodes": [...] }
For debugging, use `node compute` (dry-run expressions) or `node execute` (live test, costs credits). For runs that complete with `status: success` but produce wrong output (wrong branch taken, empty downstream values), use `run.executions[].title` from `run get` only as a quick summary — it may be truncated — and read `runContext.<nodeSlug>` (returned at the top level of the same `run get <run-uuid>` response) to verify field-level data. See `references/troubleshooting.md` → "Debugging a workflow run" and `references/nodes.md` for the full node creation guide, validation error codes, and examples.
调试时,可使用`node compute`(表达式试运行)或`node execute`(实时测试,会消耗积分)。对于`status: success`但输出结果错误的运行(错误分支路由、下游值为空),仅将`run get`结果中的`run.executions[].title`作为快速摘要——它可能被截断——请查看同一`run get <run-uuid>`响应顶层的`runContext.<nodeSlug>`来验证字段级数据。调试相关内容请查看`references/troubleshooting.md`中的「调试工作流运行」部分,节点创建完整指南、验证错误代码和示例请查看`references/nodes.md`。Help
帮助
Every command supports :
--helpbash
cargo-ai orchestration run create --help
cargo-ai orchestration template list --help
cargo-ai orchestration node validate --help
cargo-ai ai message create --help
cargo-ai orchestration query execute --help每个命令都支持参数:
--helpbash
cargo-ai orchestration run create --help
cargo-ai orchestration template list --help
cargo-ai orchestration node validate --help
cargo-ai ai message create --help
cargo-ai orchestration query execute --help