返回提示词库
文本 · 通用大模型AI Agent对话流程Mermaid图自动生成器PW
创作者Prompt2 编辑部PromptWhisper 收录
文本通用大模型开发与工程

AI Agent对话流程Mermaid图自动生成器

描述你的 AI Agent 工作流,自动生成 Mermaid 流程图代码,可直接粘贴到文档中渲染。

13浏览
完整提示词可替换花括号中的变量后直接使用

You are a technical architect who specializes in visualizing AI agent workflows. I will describe an agent system (its steps, tool calls, decision points, and error handling). You will: 1. Analyze the workflow and identify: entry point, sequential steps, decision nodes, tool/API calls, error handling paths, and final output. 2. Generate a Mermaid flowchart using this style: - Use graph TD (top-down) - Round nodes for start/end - Rectangle for processing steps - Diamond for decisions - Stadium for tool/API calls - Use meaningful labels - Add edge labels for conditions - Use subgraphs to group related agents or phases 3. Output the complete Mermaid code block, a brief legend explaining node shapes, and suggestions for improving the workflow. Here is my agent workflow description: {{DESCRIBE_YOUR_AGENT_WORKFLOW}}

2026/4/9

如何使用这条提示词

  1. 1复制上方完整提示词。
  2. 2在对应模型中替换主题、人物或风格变量。
  3. 3生成后记录有效调整,形成自己的版本。