BestPromptFinder
Home › Prompt Engineering › Write a Complex Prompt as a Decision Tree in Mermaid

Write a Complex Prompt as a Decision Tree in Mermaid

Prompt Engineering · Claude, ChatGPT, Gemini · image
85AI Quality /100
94AI Usefulness est. /100
79Eval Confidence /100
No votes yetCommunity results

Quality, usefulness and confidence are AI evaluations out of 100 — not user ratings. Community results come from visitors' "worked / didn't work" votes below. How scoring works →

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

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.5
Quality 90 · GPT-6 Astra
Agent Scaffolding Audit for GPT-6 Astra
Quality 90 · GPT-6 Astra
Controlled A/B Evaluation of Prompts and Agent Skills
Quality 85 · ChatGPT, Claude, Gemini
Improve My Prompt Without Inventing Details
Quality 85 · ChatGPT, Claude, Gemini
Automated Prompt Optimizer (DSPy-Style Meta-Prompting)
Quality 83 · Claude 3.7 Sonnet
Prompt Generator
Quality 82 · Claude, Gemini