pipefy-relations
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseConnections & Relations
关联与关系
Link processes and cards across workflows. 8 MCP tools.
跨工作流关联流程与卡片。8种MCP工具。
Key concepts
核心概念
- Pipe relations define parent/child structure between pipes (who connects to whom, constraints, auto-fill). Use on a pipe to list relation IDs and metadata.
get_pipe_relations - Card relations connect individual cards through an existing pipe relation: pass = the pipe relation's ID (from
source_id). Defaultget_pipe_relationsissourceType; usePipeRelation(e.g.,extra_input) when the API requires a field-based link — seesourceType: Fieldonintrospect_type.CreateCardRelationInput - Table relations in GraphQL are loaded by table-relation ID, not by database table ID: takes a non-empty list of those IDs.
get_table_relations
- Pipe关联 定义管道之间的父子结构(关联对象、约束条件、自动填充)。对管道调用可列出关联ID及元数据。
get_pipe_relations - Card关联 通过已有的Pipe关联连接单个卡片:传入为Pipe关联的ID(来自
source_id)。默认get_pipe_relations为sourceType;当API需要基于字段的关联时,使用PipeRelation(例如extra_input)——可查看sourceType: Field的CreateCardRelationInput。introspect_type - GraphQL中的Table关联 通过表关联ID加载,而非数据库表ID:需传入非空的表关联ID列表。
get_table_relations
Tools
工具
| Tool (MCP) | CLI | Read-only | Purpose |
|---|---|---|---|
| | Yes | List pipe-to-pipe relations for a pipe. |
| | No | Create a new pipe-to-pipe relation. |
| | No | Change relation config (auto-fill, constraints). |
| | No | Two-step destructive. |
| | Yes | Load table relations by relation ID. |
| | Yes | List all card-to-card relations on a card. |
| | No | Link two cards through an existing pipe relation. |
| | No | Two-step destructive. |
| 工具(MCP) | CLI 命令 | 只读 | 用途 |
|---|---|---|---|
| | 是 | 列出某一管道的管道间关联。 |
| | 否 | 创建新的管道间关联。 |
| | 否 | 修改关联配置(自动填充、约束条件)。 |
| | 否 | 两步式破坏性操作。 |
| | 是 | 通过关联ID加载表关联。 |
| | 是 | 列出某一卡片的所有卡片间关联。 |
| | 否 | 通过已有的Pipe关联连接两张卡片。 |
| | 否 | 两步式破坏性操作。 |
Steps — link two cards via an existing pipe relation
步骤——通过已有Pipe关联连接两张卡片
-
Get the pipe relation ID:MCP:
get_pipe_relations pipe_id=67890CLI:pipefy relation pipe list --pipe 67890Note thefield on the relation (not the pipe ID).id -
Create the card relation:MCP:
create_card_relation source_id=<PIPE_RELATION_ID> source_card_id=<PARENT_CARD_ID> target_card_id=<CHILD_CARD_ID>CLI:pipefy relation card create --source-relation <id> --source-card <id> --target-card <id> -
Verify:MCP:
get_card_relations card_id=<CHILD_CARD_ID>
-
获取Pipe关联ID:MCP:
get_pipe_relations pipe_id=67890CLI:pipefy relation pipe list --pipe 67890记录关联的字段(注意不是管道ID)。id -
创建Card关联:MCP:
create_card_relation source_id=<PIPE_RELATION_ID> source_card_id=<PARENT_CARD_ID> target_card_id=<CHILD_CARD_ID>CLI:pipefy relation card create --source-relation <id> --source-card <id> --target-card <id> -
验证:MCP:
get_card_relations card_id=<CHILD_CARD_ID>
Steps — create a new pipe relation
步骤——创建新的Pipe关联
-
Create the relation between two pipes:MCP:
create_pipe_relation parent_pipe_id=111 child_pipe_id=222 name="Support Escalation" auto_fill_field_id=<field_id>CLI:pipefy relation pipe create --parent 111 --child 222 --name "Support Escalation" -
Use the relation — cards in the parent pipe can now be linked to cards in the child pipe using.
create_card_relation
-
在两个管道间创建关联:MCP:
create_pipe_relation parent_pipe_id=111 child_pipe_id=222 name="Support Escalation" auto_fill_field_id=<field_id>CLI:pipefy relation pipe create --parent 111 --child 222 --name "Support Escalation" -
使用关联 —— 父管道中的卡片现在可通过关联到子管道中的卡片。
create_card_relation
Success criteria
成功标准
- returns the new relation with both pipe IDs.
get_pipe_relations - shows the linked card ID after
get_card_relations.create_card_relation
- 返回包含两个管道ID的新关联。
get_pipe_relations - 执行后,
create_card_relation显示已关联的卡片ID。get_card_relations
Failure modes
失败场景
- fails with "relation not found":
create_card_relationmust be the pipe relation ID (fromsource_id), not the pipe ID. These are different values.get_pipe_relations - Table relations return empty: requires table-relation IDs, not table IDs. Get table-relation IDs from the table's connection config.
get_table_relations - first call returns preview: expected — show preview to user, then call with
delete_pipe_relation.confirm=true
- 报错"relation not found":
create_card_relation必须为Pipe关联ID(来自source_id),而非管道ID。二者是不同的值。get_pipe_relations - Table关联返回空: 需要表关联ID,而非表ID。可从表的连接配置中获取表关联ID。
get_table_relations - 首次调用返回预览: 此为预期行为——向用户展示预览,然后传入
delete_pipe_relation再次调用。confirm=true
See also
参考链接
- — create the pipes and cards before linking them.
skills/pipes-and-cards/ - — discover
skills/introspection/when non-standardCreateCardRelationInputis needed.sourceType
- —— 在关联前创建管道与卡片。
skills/pipes-and-cards/ - —— 当需要非标准
skills/introspection/时,查看sourceType。CreateCardRelationInput