BestPromptFinder
Home › Prompt Engineering › Write a Complex Prompt as a Decision Tree in Mermaid
Write a Complex Prompt as a Decision Tree in Mermaid
85AI Quality /100
94AI Usefulness est. /100
79Eval Confidence /100
No votes yetCommunity results
The prompt
Act as a prompt engineer. I have a task where the AI must make decisions in order. Help me turn it into a decision tree I can see and maintain. My task: [DESCRIBE, e.g. triage incoming customer emails and choose a reply type] The decisions I know about: [LIST, in any order] What each final outcome should be: [LIST] Give me: 1. A Mermaid flowchart (graph TD) of the decision tree, with each question as a diamond and each outcome as a box. Keep labels short. 2. The same logic written as a numbered prompt the model can follow: "Step 1: check X. If yes, go to step 3. If no, go to step 2." with every branch covered. 3. A list of gaps: inputs that don't fit any branch, or two branches that overlap. 4. 5 test inputs, one per main path, with the outcome each should reach. Rules: don't add decisions I didn't describe without marking them [SUGGESTED]. Keep the Mermaid valid so it renders in a Markdown viewer.Find similar in the app →
Did this prompt work for you?
Why this prompt
- Hand-picked, editorially reviewed prompt
- Written for Claude, ChatGPT, Gemini
Source
Created by BestPromptFinder — editorial prompt, not user-generated. See our content & source policy.
Related Prompt Engineering prompts
Old Prompt Updater for GPT-6 and Claude Opus 5.5Quality 90 · GPT-6 AstraAgent Scaffolding Audit for GPT-6 Astra
Quality 90 · GPT-6 AstraControlled A/B Evaluation of Prompts and Agent Skills
Quality 85 · ChatGPT, Claude, GeminiImprove My Prompt Without Inventing Details
Quality 85 · ChatGPT, Claude, GeminiAutomated Prompt Optimizer (DSPy-Style Meta-Prompting)
Quality 83 · Claude 3.7 SonnetPrompt Generator
Quality 82 · Claude, Gemini