coze-workflow
在 OpenClaw 中调用 Coze Workflow API (stream_run)。 **使用场景:** 1. 用户需要调用 Coze workflow 执行特定任务 2. 需要提供 workflow_id、parameters、PAT Key 3. 处理流式响应结果 **触发关键词:** coze workflow、调用 workflow、运行 workflow、coze 工作流
Why use this skill?
Learn how to use the Coze Workflow skill for OpenClaw to trigger automated tasks, perform data analysis, and orchestrate complex workflows directly via API.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/chocolatemale/coze-workflow-apiWhat This Skill Does
The coze-workflow skill enables OpenClaw users to trigger Coze Workflow executions directly from their chat interface. By acting as a bridge to the Coze v1 streaming API, this skill allows for complex task automation, such as analyzing creative content risks or processing data, leveraging pre-built workflows. It is designed for seamless integration with Coze's infrastructure, supporting streaming responses to ensure users receive real-time updates on task status and final results.
Installation
To integrate this skill into your environment, use the following terminal command:
clawhub install openclaw/skills/skills/chocolatemale/coze-workflow-api
Ensure you have configured your Coze Personal Access Token (PAT) by exporting it as an environment variable:
export COZE_PAT_KEY="your_pat_token_here"
This setup allows the agent to authenticate securely with the Coze platform without hardcoding sensitive credentials into your scripts.
Use Cases
- Automated Content Analysis: Run workflows that scan advertising or creative assets for policy compliance or potential risks.
- Complex Data Processing: Offload data transformation or ingestion tasks to a pre-defined Coze workflow, handling outputs directly in the chat.
- Enterprise Task Orchestration: Integrate external business logic or API interactions hosted within Coze to perform multi-step operations initiated by a simple user prompt.
Example Prompts
- "Coze workflow, please analyze the creative material with ID 1859150663345201 for any policy risks using the standard audit workflow."
- "Run the latest workflow to process our weekly data summary; here are the parameters: {'date': '2023-10-27'}."
- "Call the Coze workflow ID 7566546276516642834 to extract and format the key information from the provided input parameters."
Tips & Limitations
- Timeout Management: Since workflows can take time, ensure you use the
--max-time 120flag if running custom curl commands to prevent premature connection termination. - Handling Responses: The tool provides streaming output. Look for the
event: Messageblock to find the processed content and theevent: Doneblock to confirm the final status. - Error Handling: If you encounter a 401 error, verify that your PAT key hasn't expired. For 404 errors, double-check that your
workflow_idmatches the one configured in your Coze dashboard. - Network Stability: Ensure your machine has consistent access to the Coze API endpoints, as regional network fluctuations might impact streaming connectivity.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-chocolatemale-coze-workflow-api": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, external-api