cargo-orchestration

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Cargo 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 create
Terminology: An orchestration tool is a saved on-demand workflow (listed via
tool list
). An action is a single operation you execute without building a workflow — it can embed a saved orchestration tool (
kind: "tool"
), call a third-party connector (
kind: "connector"
), invoke an AI agent (
kind: "agent"
), or run a built-in platform operation (
kind: "native"
).
References:
references/actions.md
— action execute and execute-batch examples
references/tools.md
— tool (on-demand workflow) examples
references/plays.md
— play (segment-driven automation) examples
references/agents.md
— AI agent chat examples
references/nodes.md
— full node creation guide (kinds, native actions, expressions, validation, routing)
references/templates.md
— pre-built workflow templates
references/queries.md
orchestration query execute
(ClickHouse: runs/batches/spans/records) SQL examples. For
storage query
(workspace storage), see the
cargo-storage
skill.
references/segments.md
— segment fetch and filter examples
references/response-shapes.md
— full JSON response structures
references/filter-syntax.md
— complete filter condition reference
references/polling.md
— async polling patterns, error handling, retry strategies
references/troubleshooting.md
— common errors, plus a "Debugging a workflow run" section for runs that succeed but produce wrong output (wrong-branch routing, empty downstream values)
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是已保存的按需工作流(可通过
tool list
查看)。action是无需构建工作流即可执行的单个操作——它可以嵌入已保存的编排tool(
kind: "tool"
)、调用第三方连接器(
kind: "connector"
)、调用AI agent(
kind: "agent"
)或运行内置平台操作(
kind: "native"
)。
参考文档:
references/actions.md
— action execute和execute-batch示例
references/tools.md
— tool(按需工作流)示例
references/plays.md
— play(细分段驱动的自动化)示例
references/agents.md
— AI agent聊天示例
references/nodes.md
— 完整节点创建指南(类型、原生action、表达式、验证、路由)
references/templates.md
— 预构建工作流模板
references/queries.md
orchestration query execute
(ClickHouse:runs/batches/spans/records)SQL示例。如需对工作区存储执行
storage query
,请查看
cargo-storage
技能。
references/segments.md
— 细分段获取与过滤示例
references/response-shapes.md
— 完整JSON响应结构
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 connectors
Plays 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
name
field; use
play list
or
tool list
to find names and extract the
workflowUuid
.
Retrieve in the UI: plays live at
app.getcargo.io/workspaces/<WORKSPACE_UUID>/plays/<PLAY_UUID>
and tools at
app.getcargo.io/workspaces/<WORKSPACE_UUID>/tools/<TOOL_UUID>
. Get
<WORKSPACE_UUID>
from
cargo-ai whoami
under
workspace.uuid
.
Designing 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
cargo-ai orchestration template list
and inspect a specific one with
cargo-ai orchestration template get <slug>
. Templates are tagged by
kind
so you can find ones suited for tools (
"kind":"tool"
) or plays (
"kind":"play"
) right away. See
references/templates.md
for the full guide.
Compatibility rules:
  • run create
    — only works with tool workflows (or no
    workflowUuid
    ). Play workflows return
    playNotCompatible
    .
  • batch create
    — allowed data kinds depend on the workflow type:
    • Play workflows:
      segment
      ,
      change
      ,
      filter
      ,
      recordIds
    • Tool workflows (or no
      workflowUuid
      ):
      file
      ,
      records
大多数命令需要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触发或按定时计划触发。工作流没有
name
字段;请使用
play list
tool list
查找名称并提取
workflowUuid
在UI中查看: plays的地址为
app.getcargo.io/workspaces/<WORKSPACE_UUID>/plays/<PLAY_UUID>
,tools的地址为
app.getcargo.io/workspaces/<WORKSPACE_UUID>/tools/<TOOL_UUID>
。可从
cargo-ai whoami
workspace.uuid
字段获取
<WORKSPACE_UUID>
设计新的tool或play? 先查看模板——它们是针对常见自动化模式( enrichment pipelines、CRM同步、线索评分)预构建的节点图,是极佳的起点。使用
cargo-ai orchestration template list
查看模板,使用
cargo-ai orchestration template get <slug>
查看特定模板详情。模板按
kind
标记,你可以直接找到适用于tools(
"kind":"tool"
)或plays(
"kind":"play"
)的模板。完整指南请查看
references/templates.md
兼容性规则:
  • run create
    — 仅适用于tool工作流(或无
    workflowUuid
    )。Play工作流会返回
    playNotCompatible
  • batch create
    — 允许的数据类型取决于工作流类型:
    • Play工作流:
      segment
      ,
      change
      ,
      filter
      ,
      recordIds
    • Tool工作流(或无
      workflowUuid
      ):
      file
      ,
      records

Quick reference

快速参考

bash
undefined
bash
undefined

Single 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

如需对工作区存储(Companies、Contacts等)执行SQL,请查看cargo-storage技能:
storage query execute

undefined
undefined

Polling async operations

轮询异步操作

All operations are asynchronous. Either poll until terminal state, or pass
--wait-until-finished
to block.
action execute
returns a run.
action execute-batch
returns a batch. They poll the same way:
Result typePoll commandIntervalDone when
Run
run get <uuid>
2s
status
is
success
,
error
, or
cancelled
Batch
batch get <uuid>
5s
status
is
success
,
error
, or
cancelled
Agent message
message get <uuid>
2s
status
is
success
or
error
For long-running batches (1000+ records), increase the interval to 10-15s after the first minute.
所有操作均为异步。你可以轮询直到进入终端状态,或传入
--wait-until-finished
参数阻塞等待。
action execute
返回一个run。
action execute-batch
返回一个batch。它们的轮询方式相同:
结果类型轮询命令间隔时间完成状态条件
Run
run get <uuid>
2秒
status
success
error
cancelled
Batch
batch get <uuid>
5秒
status
success
error
cancelled
Agent message
message get <uuid>
2秒
status
success
error
对于长时间运行的批量任务(1000+条记录),在第一分钟后可将间隔时间增加到10-15秒。

Execute actions

执行actions

Run a single action — no workflow or node graph needed.
bash
undefined
运行单个action——无需工作流或节点图。
bash
undefined

One 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
cargo-ai orchestration action execute
--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 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类型:`tool`, `connector`, `agent`, `native`。所有action类型、参数、重试配置、响应结构和端到端示例请查看`references/actions.md`。

Create a run

创建run

A run processes a single record through a workflow. Use
run create
when you need to chain multiple actions together via a node graph, or when running an existing tool workflow.
Runs only work with tool workflows. Play workflows return
playNotCompatible
— use
batch create
instead.
bash
cargo-ai orchestration run create \
  --workflow-uuid <tool.workflowUuid> \
  --data '{"company":"Acme","domain":"acme.com"}'
Run会通过工作流处理单条记录。当你需要通过节点图串联多个action,或运行现有tool工作流时,请使用
run create
Run仅适用于tool工作流。 Play工作流会返回
playNotCompatible
——请改用
batch create
bash
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

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-2
See
references/tools.md
for file uploads, monitoring, and cancellation. See
references/nodes.md
for custom node graphs.
cargo-ai orchestration run create
--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.md
。自定义节点图相关内容请查看
references/nodes.md

Create a batch

创建batch

Batches process multiple records at once. Allowed data kinds depend on the workflow type:
  • Play workflows:
    segment
    ,
    change
    ,
    filter
    ,
    recordIds
  • Tool workflows (or no
    workflowUuid
    ):
    file
    ,
    records
bash
undefined
Batch会同时处理多条记录。允许的数据类型取决于工作流类型:
  • Play工作流:
    segment
    ,
    change
    ,
    filter
    ,
    recordIds
  • Tool工作流(或无
    workflowUuid
    ):
    file
    ,
    records
bash
undefined

Play workflow — run on a segment

Play工作流——基于细分段运行

cargo-ai orchestration batch create
--workflow-uuid <play.workflowUuid>
--data '{"kind":"segment","segmentUuid":"..."}'
cargo-ai orchestration batch create
--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":"..."}'
cargo-ai orchestration batch create
--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

**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
references/plays.md
and
references/tools.md
for filtering, record IDs, file uploads, monitoring, and cancellation.
cargo-ai orchestration batch create
--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.md
references/tools.md

Send 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
undefined
Records是工作流处理的单个条目。使用以下命令列出、计数、下载或取消工作流中的records。
bash
undefined

List 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
undefined
cargo-ai orchestration record cancel --workflow-uuid <uuid> --ids record-id-1,record-id-2
undefined

Query orchestration history (orchestration query)

查询编排历史(orchestration query)

Run SQL against orchestration runtime tables —
spans
,
runs
,
batches
,
records
— with
orchestration query execute
. Use this for ad-hoc analytics on workflow execution (error rates, throughput, slowest nodes) without the workflow-scoped filters of
run get-metrics
/
run count
.
bash
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
spans
,
runs
,
batches
, or
records
. Workspace scoping is applied automatically. The query is read-only; DDL, table functions, dictionary accessors, and introspection are denied. See
references/queries.md
for the schemas, example queries, and limits.
使用
orchestration query execute
对编排运行时表(
spans
runs
batches
records
)执行SQL。可用于对工作流执行情况进行临时分析(错误率、吞吐量、最慢节点),无需使用
run get-metrics
/
run count
的工作流范围过滤。
bash
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"
表名无需添加架构前缀——直接使用
spans
runs
batches
records
。工作区范围会自动应用。查询为只读;不允许DDL、表函数、字典访问器和自省操作。表结构、示例查询和限制请查看
references/queries.md

Fetch segment data

获取细分段数据

Retrieve live records from a segment. IMPORTANT: requires
--model-uuid
(not
--segment-uuid
). Get the
modelUuid
from
segment list
. Filter JSON uses
conjonction
(not
conjunction
) — this is intentional.
bash
cargo-ai segmentation segment fetch \
  --model-uuid <uuid> \
  --filter '{"conjonction":"and","groups":[]}' \
  --fetching-limit 100 --fetching-offset 0
Supports
--sort
,
--enrich
, and
--sync
. See
references/filter-syntax.md
for the full filter syntax and
references/segments.md
for filtering, pagination, sorting, enrollment filters, and enrichment.
Managing segments:
bash
undefined
从细分段中获取实时记录。重要提示: 需要
--model-uuid
(而非
--segment-uuid
)。可从
segment list
结果中获取
modelUuid
。过滤JSON使用
conjonction
(而非
conjunction
)——此为有意设计。
bash
cargo-ai segmentation segment fetch \
  --model-uuid <uuid> \
  --filter '{"conjonction":"and","groups":[]}' \
  --fetching-limit 100 --fetching-offset 0
支持
--sort
--enrich
--sync
参数。完整过滤语法请查看
references/filter-syntax.md
,过滤、分页、排序、加入过滤和 enrichment相关内容请查看
references/segments.md
管理细分段:
bash
undefined

Update 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>
undefined
cargo-ai segmentation segment remove <segment-uuid>
undefined

Use a workflow template

使用工作流模板

Templates are pre-built node graphs for common automation patterns (enrichment pipelines, CRM syncs, lead scoring). Browse with
template list
, inspect with
template get <slug>
, fill in placeholders, validate, and run.
bash
cargo-ai orchestration template list              # list available templates
cargo-ai orchestration template get <slug>        # get template nodes + config
See
references/templates.md
for the full guide including placeholder conventions and end-to-end examples.
模板是针对常见自动化模式(enrichment pipelines、CRM同步、线索评分)预构建的节点图。使用
template list
浏览,使用
template get <slug>
查看详情,填充占位符,验证后运行。
bash
cargo-ai orchestration template list              # 查看可用模板
cargo-ai orchestration template get <slug>        # 获取模板节点+配置
占位符约定和端到端示例等完整指南请查看
references/templates.md

Validate 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
--help
:
bash
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
每个命令都支持
--help
参数:
bash
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