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 use source_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>"]
Step 4 — Present Results to User
Provide the user with:
- Local PNG file path (primary, for quick preview)
- Local SVG file path (for high-quality / scalable use)
- Source code (
mermaid_code or source_code) for secondary editing
- Original OSS URLs as backup links
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_id is extracted server-side from X-User-ID header; 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.
1---
2name: edrawmax-diagram
3description: "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."
4metadata:
5 source: https://skillmd.com/skills/aibot88/edrawmax-diagram
6---
7
8# EdrawMax(万兴图示)AI Diagram Generator
9
10> **Author:** EdrawMax AI Team(万兴图示 AI 团队)· **Organization:** Wondershare EdrawMax(万兴图示)
11> **Version:** 2.0.0 · **License:** Proprietary © 2026 Wondershare EdrawMax(万兴图示). All rights reserved.
12
13Generate four types of diagrams from natural language via EdrawMax(万兴图示)AI APIs. Each API returns PNG/SVG image URLs and source code.
14
15## Step 1 — Choose Diagram Type
16
17| User Intent | Type | Endpoint |
18|---|---|---|
19| Process, workflow, steps, decision flow | **flowchart** | `/skills/generate-flowchart` |
20| Data visualization, statistics, comparison | **infographic** | `/skills/generate-infographic` |
21| Project plan, timeline, schedule, phases | **gantt** | `/skills/generate-gantt` |
22| Knowledge structure, brainstorm, topic tree | **mindmap** | `/skills/generate-mindmap` |
23
24If the user's intent is ambiguous, ask which diagram type they want.
25
26## Step 2 — Call the API
27
28**Base URL:** `https://api.edrawmax.cn/api/ai`
29
30All four endpoints share the same request format:
31
32```
33POST https://api.edrawmax.cn/api/ai/skills/generate-{type}
34Content-Type: application/json
35
36{"prompt": "<user description>", "lang": "cn", "platform": "web"}
37```
38
39### Request Parameters
40
41| Field | Type | Required | Default | Description |
42|---|---|---|---|---|
43| prompt | string | Yes | — | Natural language description of the diagram |
44| lang | string | No | "cn" | Language: en, cn, jp, kr, es, fr, de, it, tw, pt, ru, id |
45| platform | string | No | — | Platform: web, win, mac, ios, android, linux |
46
47### Response Fields
48
49**Flowchart** returns:
50```json
51{ "code": 0, "msg": "", "data": { "png_url": "...", "svg_url": "...", "mermaid_code": "..." } }
52```
53
54**Infographic / Gantt / Mindmap** return:
55```json
56{ "code": 0, "msg": "", "data": { "png_url": "...", "svg_url": "...", "source_code": "..." } }
57```
58
59> Note: flowchart uses `mermaid_code`, the other three use `source_code`.
60
61## Step 3 — Download Files Locally
62
63After a successful API call, **always** run the download script to save the images locally:
64
65```bash
66python <skill-path>/scripts/download_diagram.py --png-url "<png_url>" --svg-url "<svg_url>" [--output-dir "<dir>"]
67```
68
69- Default output directory: `./edrawmax_output`
70- The script prints the local file paths as JSON, e.g.:
71 ```json
72 {"png_path": "./edrawmax_output/diagram_20260312_143000.png", "svg_path": "./edrawmax_output/diagram_20260312_143000.svg"}
73 ```
74- Use the returned **local file paths** when presenting results to the user.
75
76## Step 4 — Present Results to User
77
78Provide the user with:
791. **Local PNG file path** (primary, for quick preview)
802. **Local SVG file path** (for high-quality / scalable use)
813. **Source code** (`mermaid_code` or `source_code`) for secondary editing
824. **Original OSS URLs** as backup links
83
84## Error Handling
85
86| code | msg | Action |
87|---|---|---|
88| 400 | prompt is required | Ask user to provide a description |
89| 400 | lang不合法 | Fix lang to a valid value |
90| 2406 | risk control rejection | Content rejected; ask user to rephrase |
91| 3001 | concurrency limit | Wait briefly, then retry once |
92| 212200 | 生成失败 | Retry once; if still failing, report to user |
93| 212201 | 渲染失败 | Retry once; if still failing, report to user |
94| 500 | panic | Report internal server error to user |
95
96For 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).
97
98## FAQ
99
100**Q: 使用 EdrawMax(万兴图示)AI MCP 服务是否需要付费?**
101A: 目前为限时免费,用户可免费调用服务。
102
103**Q: 如何联系我们?**
104A: 如有技术问题、服务反馈或 API 大量购买需求,欢迎通过邮箱联系:
105📧 ws-business@wondershare.cn
106我们将尽快为您解答。
107
108## Language Mapping
109
110Map user language/locale to `lang` param:
111
112- English → `en`, 简体中文 → `cn`, 日本語 → `jp`, 한국어 → `kr`
113- Español → `es`, Français → `fr`, Deutsch → `de`, Italiano → `it`
114- 繁體中文 → `tw`, Português → `pt`, Русский → `ru`, Bahasa Indonesia → `id`
115
116## Notes
117
118- `user_id` is extracted server-side from `X-User-ID` header; do not pass it in the body
119- Always present the source code so users can edit or re-render
120- For full API specs, see [references/api-reference.md](references/api-reference.md)
121- When an error cannot be resolved after retry, always share the support email **ws-business@wondershare.cn** with the user
122
123---
124
125© 2026 Wondershare EdrawMax(万兴图示)AI Team. This skill and all associated resources are proprietary to EdrawMax(万兴图示). Unauthorized reproduction or distribution is prohibited.