EdrawMax:AI图表生成 - Openclaw技能
什么是 EdrawMax AI Diagram Generator?
EdrawMax AI Diagram Generator 是一款专为开发者和创作者设计的精密工具,用于自动化复杂信息的可视化。通过利用 Wondershare EdrawMax 专有的 AI API,该技能可将简单的文本提示词转换为结构化图表,包括流程图、信息图、甘特图和思维导图。它是那些寻求在 Openclaw Skills 生态系统中增强工作流的用户的重要组件。
除了生成静态图像外,该技能还提供满足高分辨率需求的矢量 SVG 文件和底层源代码(如 Mermaid 或专有格式)。这确保了图表不仅在视觉上令人惊叹,而且完全可编辑并可集成到现有文档或开发环境中。
下载入口:https://github.com/openclaw/skills/tree/main/skills/wondershare-boop/edrawmax-skills
安装与下载
1. ClawHub CLI
从源直接安装技能的最快方式。
npx clawhub@latest install edrawmax-skills
2. 手动安装
将技能文件夹复制到以下位置之一
全局模式~/.openclaw/skills/
工作区
<project>/skills/
优先级:工作区 > 本地 > 内置
3. 提示词安装
将此提示词复制到 OpenClaw 即可自动安装。
请帮我使用 Clawhub 安装 edrawmax-skills。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。
EdrawMax AI Diagram Generator 应用场景
- 根据项目需求自动创建过程工作流和决策树。
- 生成用于数据可视化和统计比较的专业信息图。
- 使用甘特图绘制项目时间线和进度表,以实现更好的团队协作。
- 在研究阶段头脑风暴并构建知识树或主题地图。
- 为技术文档和前端演示快速原型化视觉资产。
- 该技能根据用户意图识别所需的特定图表类型(例如流程图、甘特图)。
- 向 EdrawMax AI API 基础 URL 发送包含用户描述和首选语言的 POST 请求。
- API 处理提示词并返回包含图像 URL(PNG 和 SVG)以及图表源代码的响应。
- 自动执行本地 Python 脚本,以安全地将图像下载到 edrawmax_output 目录。
- 系统向用户展示最终结果,包括渲染的缩略图、指向高分辨率 SVG 的链接以及一段用于进一步编辑的源代码块。
EdrawMax AI Diagram Generator 配置指南
要集成此技能,请确保已安装 Python 并有权访问 EdrawMax API 端点。使用以下命令在本地下载生成的资产:
# Download diagrams locally using the provided script
python <skill-path>/scripts/download_diagram.py --png-url "<png_url>" --svg-url "<svg_url>" --output-dir "./edrawmax_output"
确保您的环境变量或标头已配置必要的 X-User-ID 以进行服务器端提取。
EdrawMax AI Diagram Generator 数据架构与分类体系
该技能通过结构化响应和本地文件组织来管理数据:
| 数据组件 | 描述 |
|---|---|
| PNG URL | 位图缩略图的临时云存储链接。 |
| SVG URL | 用于网页查看的高分辨率矢量链接。 |
| 源代码 | 流程图使用 Mermaid 代码;其他类型使用自定义源代码。 |
| 本地存储 | 文件保存到 ./edrawmax_output/,带有时间戳文件名。 |
| 元数据 | 支持包括 en, cn, jp, kr 等在内的 12 种语言。 |
name: edrawmax-diagram description: "Generate diagrams from natural language using EdrawMax AI APIs. Supports four diagram types: flowchart (流程图), infographic (信息图), Gantt chart (甘特图), and mind map (思维导图). Use when the user wants to create, generate, or draw any of these diagram types. Triggers on: 'generate a flowchart,' 'create a mind map,' 'draw a Gantt chart,' 'make an infographic,' 'visualize a process,' 'project timeline,' 'knowledge map,' or any request to turn a description into a diagram." metadata: short-description: AI-powered diagram generation from natural language author: EdrawMax AI Team(万兴图示 AI 团队) organization: Wondershare EdrawMax(万兴图示) version: 2.0.0 license: Proprietary
EdrawMax(万兴图示)AI Diagram Generator
Author: EdrawMax AI Team(万兴图示 AI 团队)· Organization: Wondershare EdrawMax(万兴图示) Version: 2.0.0 · License: Proprietary ? 2026 Wondershare EdrawMax(万兴图示). All rights reserved.
Generate four types of diagrams from natural language via EdrawMax(万兴图示)AI APIs. Each API returns PNG/SVG image URLs and source code.
Step 1 — Choose Diagram Type
| User Intent | Type | Endpoint |
|---|---|---|
| Process, workflow, steps, decision flow | flowchart | /skills/generate-flowchart |
| Data visualization, statistics, comparison | infographic | /skills/generate-infographic |
| Project plan, timeline, schedule, phases | gantt | /skills/generate-gantt |
| Knowledge structure, brainstorm, topic tree | mindmap | /skills/generate-mindmap |
If the user's intent is ambiguous, ask which diagram type they want.
Step 2 — Call the API
Base URL: https://api.edrawmax.cn/api/ai
All four endpoints share the same request format:
POST https://api.edrawmax.cn/api/ai/skills/generate-{type}
Content-Type: application/json
{"prompt": "<user description>", "lang": "cn", "platform": "web"}
Request Parameters
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| prompt | string | Yes | — | Natural language description of the diagram |
| lang | string | No | "cn" | Language: en, cn, jp, kr, es, fr, de, it, tw, pt, ru, id |
| platform | string | No | — | Platform: web, win, mac, ios, android, linux |
Response Fields
Flowchart returns:
{ "code": 0, "msg": "", "data": { "png_url": "...", "svg_url": "...", "mermaid_code": "..." } }
Infographic / Gantt / Mindmap return:
{ "code": 0, "msg": "", "data": { "png_url": "...", "svg_url": "...", "source_code": "..." } }
Note: flowchart uses
mermaid_code, the other three usesource_code.
Step 3 — Download Files Locally
After a successful API call, always run the download script to save the images locally:
python <skill-path>/scripts/download_diagram.py --png-url "<png_url>" --svg-url "<svg_url>" [--output-dir "<dir>"]
- Default output directory:
./edrawmax_output - The script prints the local file paths as JSON, e.g.:
{"png_path": "./edrawmax_output/diagram_20260312_143000.png", "svg_path": "./edrawmax_output/diagram_20260312_143000.svg"} - Use the returned local file paths when presenting results to the user.
- Security: The script only accepts
https://URLs whose hostname belongs to trusted EdrawMax OSS domains (.aliyuncs.com,.wondershare.com,.edrawsoft.com,.edrawmax.com). TLS certificates are fully verified. URLs from any other host are rejected — do not pass user-supplied or third-party URLs to this script.
Step 4 — Present Results to User
Use the following preferred display format:
- Thumbnail (PNG) — Render the local PNG file as an inline image if the environment supports it (e.g. Markdown
). If inline rendering is not supported, show thepng_urlas a clickable link instead. - High-res diagram (SVG) — Always present the
svg_urlas a clickable link so the user can open the full-quality vector image in their browser: e.g.[查看高清图](svg_url). - Source code — Show
mermaid_code(flowchart) orsource_code(other types) in a code block for secondary editing or re-rendering.
Example output format:

[查看高清图(SVG)](https://xxx.oss.com/.../main.svg)
Error Handling
| code | msg | Action |
|---|---|---|
| 400 | prompt is required | Ask user to provide a description |
| 400 | lang不合法 | Fix lang to a valid value |
| 2406 | risk control rejection | Content rejected; ask user to rephrase |
| 3001 | concurrency limit | Wait briefly, then retry once |
| 212200 | 生成失败 | Retry once; if still failing, report to user |
| 212201 | 渲染失败 | Retry once; if still failing, report to user |
| 500 | panic | Report internal server error to user |
For retryable errors (3001, 212200, 212201), retry up to 1 time before reporting failure. If the error persists, inform the user and share the support contact (see FAQ below).
FAQ
Q: 使用 EdrawMax(万兴图示)AI MCP 服务是否需要付费? A: 目前为限时免费,用户可免费调用服务。
Q: 如何联系我们? A: 如有技术问题、服务反馈或 API 大量购买需求,欢迎通过邮箱联系: ?? ws-business@wondershare.cn 我们将尽快为您解答。
Language Mapping
Map user language/locale to lang param:
- English →
en, 简体中文 →cn, 日本語 →jp, ??? →kr - Espa?ol →
es, Fran?ais →fr, Deutsch →de, Italiano →it - 繁體中文 →
tw, Português →pt, Русский →ru, Bahasa Indonesia →id
Notes
user_idis extracted server-side fromX-User-IDheader; do not pass it in the body- Always present the source code so users can edit or re-render
- For full API specs, see references/api-reference.md
- When an error cannot be resolved after retry, always share the support email ws-business@wondershare.cn with the user
? 2026 Wondershare EdrawMax(万兴图示)AI Team. This skill and all associated resources are proprietary to EdrawMax(万兴图示). Unauthorized reproduction or distribution is prohibited.