workflows-list
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseZapier Workflows List
Zapier工作流列表
Use the public SDK CLI experimental command surface. Do not use .
zapier-sdk-code-substrate使用公开的SDK CLI实验性命令接口。请勿使用。
zapier-sdk-code-substrateCompatibility Gate
兼容性检查
Before using this skill, run the bundle compatibility check. If is not installed or cannot be loaded, run or install from before continuing. If reports SDK/skill drift, follow its refresh instructions, stop this skill invocation, reload the agent workspace if needed, and ask the user to rerun the original request.
workflows-doctorworkflows-doctorworkflows-installworkflows-doctorzapier/agent-skillsworkflows-doctor使用此技能前,请运行包兼容性检查。如果未安装或无法加载,请先运行或从安装,然后再继续。如果报告SDK/技能版本不一致,请遵循其刷新说明,停止此技能调用,必要时重新加载代理工作区,并请用户重新发起原始请求。
workflows-doctorworkflows-doctorworkflows-installzapier/agent-skillsworkflows-doctorworkflows-doctorCheck Prerequisites
检查前置条件
bash
zapier-sdk --version
zapier-sdk get-profile --json
zapier-sdk --experimental --helpIf auth fails, ask the user to run in an interactive terminal and retry.
zapier-sdk loginbash
zapier-sdk --version
zapier-sdk get-profile --json
zapier-sdk --experimental --help如果认证失败,请要求用户在交互式终端中运行并重试。
zapier-sdk loginList Workflows
列出工作流
bash
zapier-sdk --experimental list-workflows --jsonParse the JSON output and format what the user asked for. Common useful fields may include , , , , , , , , , and trigger-related metadata if present.
idnameenabledis_privatecreated_by_user_idcreated_atupdated_atdescriptioncurrent_versionFor each workflow with an , include the Zapier editor link:
idtext
https://zapier.com/durables-editor/<workflow-id>Treat as account-sensitive: firing it invokes the workflow as the authenticated account, so while the token in the URL is no longer a standalone credential, it is still not something to print gratuitously. Do not print unless the user explicitly asks for it.
trigger_urltrigger_urlCheck each entry in for , regardless of trigger type — its presence alone tells you there's a catch URL. Unlike , is meant to be shared — it's the URL the user pastes into the external service — so surface it plainly when present. Most triggers have no , and that is normal; do not flag its absence unless the user specifically expects one (for example they mention "Webhooks by Zapier"), in which case the installed SDK may predate this field.
triggers[]details.webhook_urltrigger_urlwebhook_urlwebhook_urlbash
zapier-sdk --experimental list-workflows --json解析JSON输出并按照用户的需求格式化内容。常用的有用字段可能包括、、、、、、、、以及触发器相关元数据(如果存在)。
idnameenabledis_privatecreated_by_user_idcreated_atupdated_atdescriptioncurrent_version对于每个带有的工作流,需包含Zapier编辑器链接:
idtext
https://zapier.com/durables-editor/<workflow-id>请将视为账户敏感信息:触发该URL会以已认证账户身份调用工作流,因此尽管URL中的令牌不再是独立凭证,但仍不应随意打印。除非用户明确要求,否则请勿打印。
trigger_urltrigger_url无论触发器类型如何,请检查中的每个条目是否包含——该字段的存在仅表示存在捕获URL。与不同,是用于共享的——它是用户粘贴到外部服务中的URL,因此如果存在,请直接展示。大多数触发器没有,这是正常情况;除非用户明确预期(例如提到“Webhooks by Zapier”),否则无需标记其缺失,这种情况下可能是因为安装的SDK版本早于该字段的引入。
triggers[]details.webhook_urltrigger_urlwebhook_urlwebhook_urlOpen Drafts
开放草稿
A workflow's published state is not the whole story — it may also have open server drafts, and an open draft always holds unpublished work (publishing consumes drafts). When the user asks about unpublished changes, in-progress work, or why the editor shows something different from what's live, check:
bash
zapier-sdk --experimental list-workflow-drafts <workflow-id> --jsonSurface each open draft's , , and , and whether its matches the newest published version (an older base means the draft predates the current live version). Include the draft's editor link: — the final segment is one of the draft's keys ( in this bundle's flows). Do not fetch drafts for every workflow in a plain listing — it is one request per workflow; do it on request or for the workflows under discussion.
sluglast_edited_atlast_edited_by_user_idbase_version_idhttps://zapier.com/durables-editor/<workflow-id>/draft/<draft-slug>/workflow.tssource_filesworkflow.ts工作流的发布状态并非全部情况——它可能还存在未提交的服务器草稿,而开放草稿始终包含未发布的工作内容(发布操作会消耗草稿)。当用户询问未发布的更改、进行中的工作,或者为什么编辑器显示的内容与线上版本不同时,请检查:
bash
zapier-sdk --experimental list-workflow-drafts <workflow-id> --json展示每个开放草稿的、、,以及其是否与最新发布版本匹配(较旧的基础版本意味着草稿早于当前线上版本)。包含草稿的编辑器链接:——最后一段是草稿中的一个键(此包流程中为)。请勿在普通列表中为每个工作流获取草稿——每个工作流需要一次请求;仅在用户请求或针对正在讨论的工作流执行此操作。
sluglast_edited_atlast_edited_by_user_idbase_version_idhttps://zapier.com/durables-editor/<workflow-id>/draft/<draft-slug>/workflow.tssource_filesworkflow.tsOwnership Scoping
所有权范围
list-workflowsKnown quirk: may return a UUID that does not match , which may be a separate numeric user ID. If you cannot confidently map those IDs, say so and present the unfiltered list with enough context for the user to choose.
zapier-sdk get-profilelist-workflows[].created_by_user_idlist-workflows已知问题:可能返回一个UUID,与不匹配,后者可能是一个单独的数字用户ID。如果无法可靠地映射这些ID,请告知用户并提供未过滤的列表,同时附上足够的上下文供用户选择。
zapier-sdk get-profilelist-workflows[].created_by_user_idLast Run Time
最后运行时间
If the user asks for recent activity, fetch runs for each relevant workflow:
bash
zapier-sdk --experimental list-workflow-runs <workflow-id> --jsonUse the most recent run. Be mindful of API volume for large accounts.
如果用户询问最近的活动,请为每个相关工作流获取运行记录:
bash
zapier-sdk --experimental list-workflow-runs <workflow-id> --json使用最新的运行记录。请注意大型账户的API调用量。