30 Claude Prompts That Build Flowcharts
Describe any process and Claude returns a ready-to-render flowchart as valid Mermaid code you can paste into Notion, GitHub, or mermaid.live. Prompts for process flows, decision trees, user flows, system diagrams, approval chains, and algorithm logic. Not "describe the steps in words."
In short: This page contains 30 copy-paste ready prompts, organized into 6 categories with a description and pro tip for each. The first 15 prompts are free instantly โ no signup needed. Hand-curated and tested by the AI Academy team.
Process Flows
5 promptsCustomer Onboarding Process Flow
1/30You are a business process analyst who maps operational workflows as clean diagrams. <context> I need a flowchart of my customer onboarding process, returned as valid Mermaid code I can paste straight into mermaid.live or Notion and render instantly as a diagram. </context> <inputs> - What the customer signs up for: [PRODUCT OR SERVICE] - Stages from signup to activated: [LIST THE STEPS YOU KNOW] - Handoffs between teams: [SALES TO CS, ETC] - Decision points: [E.G. VERIFIED? PAYMENT CLEARED?] - Where things stall today: [KNOWN BOTTLENECKS] </inputs> <task> Build a top-down Mermaid flowchart (flowchart TD) of the full onboarding journey: start node, each process step as a rectangle, decision points as diamonds with labelled Yes/No branches, team-owned steps grouped in subgraphs, and a clear end/activated node. Label every edge so the path is unambiguous. </task> <constraints> - Valid Mermaid syntax that renders without edits; wrap node text with special characters in quotes. - Use subgraphs to show which team owns each stage; use diamonds only for real decisions. - No orphan nodes; every branch reaches an end state. </constraints> <format> Return the Mermaid code in a single code block, then a short note on how to render it and which two steps to automate first. </format>
Produces a top-down onboarding process flowchart with team subgraphs and decision branches as ready-to-render Mermaid code.
Pro tip: List your steps out of order on purpose; Claude will sequence them and flag any missing handoff or decision you forgot.
Order Fulfillment Pipeline
2/30You are an operations engineer who documents fulfillment pipelines for e-commerce teams. <context> I need a flowchart of my order-to-delivery process as valid Mermaid code, ready to render as a diagram so my ops team can spot delays. </context> <inputs> - Business type: [E.G. DTC, MARKETPLACE, DROPSHIP] - Steps from order placed to delivered: [LIST WHAT YOU KNOW] - Systems involved: [E.G. SHOPIFY, WMS, 3PL, CARRIER] - Exception paths: [OUT OF STOCK, PAYMENT FAILED, RETURN] - SLA or timing targets per step: [OPTIONAL] </inputs> <task> Build a left-to-right Mermaid flowchart (flowchart LR) covering order placed through delivered: each fulfillment step as a node, decision diamonds for stock check and payment, and clearly separated exception branches (backorder, refund, return-to-sender) that rejoin or terminate cleanly. Annotate edges with the triggering condition. </task> <constraints> - Valid, renderable Mermaid; quote any node label containing slashes, parentheses, or ampersands. - Happy path reads straight across; exceptions branch off and are visually distinct. - Include a legend node explaining node shapes. </constraints> <format> Return the Mermaid code in one block, then note where the biggest delay risk sits and how to add SLA timers. </format>
Generates a left-to-right order fulfillment pipeline with happy-path and exception branches as ready-to-render Mermaid code.
Pro tip: Give Claude your real system names (Shopify, ShipStation, 3PL) so the diagram doubles as an integration map, not just a process sketch.
Employee Onboarding Workflow
3/30You are an HR operations specialist who standardizes people processes into clear diagrams. <context> I need a flowchart of our new-hire onboarding from offer accepted to fully ramped, as valid Mermaid code ready to render for our HR handbook. </context> <inputs> - Role or department: [E.G. ENGINEERING, SALES, GENERAL] - Pre-start tasks: [PAPERWORK, EQUIPMENT, ACCOUNTS] - Day 1, Week 1, Month 1 milestones: [LIST WHAT YOU KNOW] - Owners per step: [HR, IT, MANAGER, BUDDY] - Gates: [E.G. BACKGROUND CHECK PASSED, TRAINING COMPLETE] </inputs> <task> Build a Mermaid flowchart TD that groups steps into subgraphs by phase (Pre-Start, Day 1, Week 1, Month 1), shows owner on each node, uses decision diamonds for gates like background check or training sign-off, and ends at a fully-ramped node. Keep the sequence within each phase explicit. </task> <constraints> - Valid Mermaid that renders as-is; quote labels with parentheses or slashes. - Every step names its owner; every gate has a fail path (e.g. remediation loop). - Use consistent node shapes for tasks vs. gates. </constraints> <format> Return the Mermaid code in one block, then list which steps can start in parallel to shorten time-to-productive. </format>
Builds a phased employee onboarding workflow with owners and sign-off gates as ready-to-render Mermaid code.
Pro tip: Tell Claude which steps block others; it will restructure the phases so independent tasks run in parallel instead of a slow single chain.
Content Publishing Pipeline
4/30You are a content operations lead who maps editorial workflows for marketing teams. <context> I need a flowchart of our content pipeline from idea to published, as valid Mermaid code ready to render so the team knows every stage and reviewer. </context> <inputs> - Content types: [BLOG, VIDEO, SOCIAL, ETC] - Stages: [IDEATION, DRAFT, EDIT, DESIGN, REVIEW, PUBLISH, PROMOTE] - Reviewers and approvers: [WHO SIGNS OFF WHAT] - Rework loops: [WHERE THINGS GET SENT BACK] - Tools used: [E.G. NOTION, GOOGLE DOCS, CMS] </inputs> <task> Build a Mermaid flowchart TD from idea to promoted: each stage as a node, approval steps as decision diamonds with Approve/Revise branches, and explicit rework loops that send content back to the right earlier stage. Show which tool or owner handles each stage. </task> <constraints> - Valid, renderable Mermaid; quote any label with special characters. - Every rework loop must return to a real node, not create a dead end. - Clearly mark the single publish gate that goes live. </constraints> <format> Return the Mermaid code in one block, then note where the pipeline is most likely to bottleneck and how to add a fast-track lane. </format>
Creates an editorial content pipeline with review gates and rework loops as ready-to-render Mermaid code.
Pro tip: Name every reviewer explicitly; Claude turns vague 'gets approved' steps into named gates so accountability is obvious in the diagram.
Incident Response Runbook Flow
5/30You are a site-reliability engineer who writes incident-response runbooks as diagrams. <context> I need a flowchart of our incident response process from alert to resolved, as valid Mermaid code ready to render for the on-call runbook. </context> <inputs> - System or service: [WHAT BREAKS] - Alert sources: [E.G. PAGERDUTY, MONITORING] - Severity levels and criteria: [SEV1 TO SEV3 DEFINITIONS] - Escalation path: [ON-CALL TO LEAD TO EXEC] - Post-incident steps: [E.G. POSTMORTEM, ACTION ITEMS] </inputs> <task> Build a Mermaid flowchart TD: alert triggers, an acknowledge step, a severity-classification decision diamond that routes to different response tracks, mitigation and communication steps, an is-it-resolved loop, and a post-incident subgraph (postmortem, action items). Include the escalation branch when time thresholds are exceeded. </task> <constraints> - Valid Mermaid that renders unedited; quote labels with colons, slashes, or parentheses. - Every severity path terminates at resolved and feeds the postmortem subgraph. - Escalation and communication steps are visually distinct from technical mitigation. </constraints> <format> Return the Mermaid code in one block, then note the two decision points most likely to cause confusion at 3am and how to clarify them. </format>
Produces an incident-response runbook flow with severity routing and escalation as ready-to-render Mermaid code.
Pro tip: Give Claude your exact SEV definitions and time thresholds; it wires them into the decision diamonds so on-call never has to guess.
XML tags are just the start. Learn the full Claude workflow.
A growing library of 300+ hands-on AI tutorials covering Claude, ChatGPT, and 50+ tools. New tutorials added every week.
Decision Trees
5 promptsCustomer Support Triage Tree
6/30You are a support operations designer who builds triage decision trees for help desks. <context> I need a decision tree that routes an incoming support ticket to the right queue or resolution, as valid Mermaid code ready to render for my support team. </context> <inputs> - Product or service: [WHAT YOU SUPPORT] - Ticket categories: [BILLING, BUG, HOW-TO, ACCOUNT, ETC] - Routing rules: [WHO HANDLES WHAT] - Priority signals: [ENTERPRISE, OUTAGE, CHURN RISK] - Self-serve deflection options: [DOCS, FAQ, STATUS PAGE] </inputs> <task> Build a Mermaid flowchart TD as a decision tree: start at ticket received, branch on category, then priority, then routing, ending in specific terminal outcomes (auto-reply with doc link, tier-1 queue, escalate to engineering, etc.). Every decision node is a diamond with mutually exclusive labelled branches. </task> <constraints> - Valid, renderable Mermaid; quote node text containing question marks or slashes. - Branches at each decision must be mutually exclusive and collectively exhaustive. - Every leaf is a concrete action, not a vague label. </constraints> <format> Return the Mermaid code in one block, then note which branch handles the most volume and where to add a deflection step. </format>
Generates a support-ticket triage decision tree with exhaustive branches and concrete outcomes as ready-to-render Mermaid code.
Pro tip: Ask Claude to make every set of branches mutually exclusive and exhaustive; that single rule kills the ambiguous 'which path?' problem agents hit.
Lead Qualification Decision Tree
7/30You are a revenue-operations strategist who codifies lead qualification into decision logic. <context> I need a decision tree that qualifies an inbound lead and routes it (SDR, self-serve, disqualify), as valid Mermaid code ready to render for my sales playbook. </context> <inputs> - What we sell and price band: [PRODUCT AND ACV] - Qualification criteria: [E.G. COMPANY SIZE, BUDGET, ROLE, INTENT] - Ideal customer profile: [WHO IS A FIT] - Routing outcomes: [SDR OUTREACH, PLG SELF-SERVE, NURTURE, DISQUALIFY] - Deal-breakers: [HARD DISQUALIFIERS] </inputs> <task> Build a Mermaid flowchart TD decision tree: start at new lead, check hard disqualifiers first, then fit criteria (size, role, intent) as sequential decision diamonds, and end at routing outcomes. Order the checks so cheap, decisive filters run before nuanced ones. </task> <constraints> - Valid Mermaid that renders as-is; quote labels with special characters. - Disqualifiers terminate early; each qualified path names its exact route. - No overlapping branches; every lead lands in exactly one outcome. </constraints> <format> Return the Mermaid code in one block, then note which criterion order maximizes SDR efficiency and why. </format>
Builds a lead-qualification decision tree that filters and routes inbound leads as ready-to-render Mermaid code.
Pro tip: Tell Claude your hardest disqualifier; it puts cheap knock-out checks first so reps never waste time on obviously-bad-fit leads.
Discount Approval Decision Tree
8/30You are a deal-desk analyst who turns pricing policy into clear decision logic. <context> I need a decision tree for who can approve a given discount, as valid Mermaid code ready to render so reps know instantly what needs sign-off. </context> <inputs> - Standard pricing and list price: [BASELINE] - Discount tiers and thresholds: [E.G. 0-10%, 10-25%, 25%+] - Approver per tier: [REP, MANAGER, VP, CFO] - Special cases: [MULTI-YEAR, NON-STANDARD TERMS, FREE MONTHS] - Auto-reject conditions: [BELOW MARGIN FLOOR] </inputs> <task> Build a Mermaid flowchart TD decision tree: start at requested discount, branch on discount percentage bands, layer in special-term checks, and end at a named approver or auto-reject node. Show the margin-floor hard stop as an early terminal branch. </task> <constraints> - Valid, renderable Mermaid; quote labels containing percentages, parentheses, or slashes. - Each percentage band is a distinct branch with one named approver. - Margin-floor breach terminates before any approval path. </constraints> <format> Return the Mermaid code in one block, then note where reps most often get stuck and how to add a fast lane for standard deals. </format>
Produces a discount-approval decision tree mapping thresholds to named approvers as ready-to-render Mermaid code.
Pro tip: Give Claude your exact margin floor; it adds an early hard-stop so under-water deals never even reach an approver.
Technical Troubleshooting Tree
9/30You are a technical support engineer who writes diagnostic decision trees. <context> I need a troubleshooting decision tree for a common problem, as valid Mermaid code ready to render so users or agents can self-diagnose step by step. </context> <inputs> - The problem: [E.G. CANNOT LOG IN, APP CRASHES, NO INTERNET] - Symptoms to check: [WHAT VARIES] - Diagnostic questions in order: [YES/NO CHECKS] - Known fixes: [WHAT RESOLVES EACH BRANCH] - When to escalate: [DEAD-END CONDITIONS] </inputs> <task> Build a Mermaid flowchart TD diagnostic tree: start at the reported problem, ask the cheapest yes/no diagnostic first, branch to the next check or a fix, and terminate every path at either a resolution node or an escalate-to-support node. Keep questions binary and ordered by likelihood. </task> <constraints> - Valid Mermaid that renders unedited; quote any label with question marks or slashes. - Every branch ends in a fix or an escalation, never a dead end. - Order checks by how common and how quick they are. </constraints> <format> Return the Mermaid code in one block, then note which check resolves the most cases and should be tried first. </format>
Creates a step-by-step troubleshooting decision tree ending in fixes or escalation as ready-to-render Mermaid code.
Pro tip: Tell Claude which fix works most often; it front-loads that check so the majority of users resolve on the first question.
Refund Eligibility Decision Tree
10/30You are a customer-policy designer who converts refund rules into unambiguous decision logic. <context> I need a decision tree that determines whether a refund request is eligible and what action follows, as valid Mermaid code ready to render for support agents. </context> <inputs> - Refund policy summary: [E.G. 30-DAY MONEY-BACK, NO REFUNDS AFTER USE] - Eligibility factors: [TIME SINCE PURCHASE, USAGE, PLAN TYPE] - Exceptions: [GOODWILL, DUPLICATE CHARGE, FRAUD] - Possible actions: [FULL REFUND, PARTIAL, CREDIT, DENY] - Who approves edge cases: [MANAGER, FINANCE] </inputs> <task> Build a Mermaid flowchart TD decision tree: start at refund requested, check window and usage as decision diamonds, handle exceptions (duplicate charge, fraud) as dedicated branches, and end at a specific action (full refund, partial, store credit, deny, escalate). Make edge-case escalation explicit. </task> <constraints> - Valid, renderable Mermaid; quote labels with special characters. - Branches are mutually exclusive; every request reaches one action. - Exception paths are visually separated from the standard policy path. </constraints> <format> Return the Mermaid code in one block, then note the one policy gap most likely to cause disputes and how to close it. </format>
Builds a refund-eligibility decision tree mapping policy to concrete actions as ready-to-render Mermaid code.
Pro tip: Paste your literal refund policy text; Claude turns the fuzzy wording into hard branches and flags the parts that are too vague to enforce.
User Flows
5 promptsSignup & Activation User Flow
11/30You are a product designer who maps end-to-end user flows for onboarding. <context> I need a user flow from landing to activated account, as valid Mermaid code ready to render so the whole team sees every screen, decision, and drop-off point. </context> <inputs> - Product: [WHAT IT IS] - Signup method(s): [EMAIL, GOOGLE, SSO] - Screens between landing and activated: [LIST WHAT YOU KNOW] - Verification steps: [EMAIL CONFIRM, PAYMENT, PROFILE] - The activation moment: [THE 'AHA' ACTION] </inputs> <task> Build a Mermaid flowchart TD user flow: start at landing page, each screen as a node, decision diamonds for choices (login vs. signup, verify now vs. later), and error/retry branches (invalid email, payment declined). End at the activation moment. Mark the primary happy path clearly. </task> <constraints> - Valid Mermaid that renders as-is; quote labels with slashes or parentheses. - Include error and abandonment branches, not just the happy path. - Screens use one node shape, decisions use diamonds, end states use rounded nodes. </constraints> <format> Return the Mermaid code in one block, then note the highest-friction step and one change to reduce drop-off there. </format>
Generates a signup-to-activation user flow with error branches and the aha moment as ready-to-render Mermaid code.
Pro tip: Name your true activation action, not 'account created'; Claude anchors the whole flow toward that moment so you see what actually drives retention.
Checkout & Purchase User Flow
12/30You are a UX engineer who maps e-commerce checkout flows to reduce cart abandonment. <context> I need a user flow from cart to order confirmed, as valid Mermaid code ready to render so we can spot every place a buyer bails. </context> <inputs> - Store type: [DTC, MARKETPLACE, SUBSCRIPTION] - Checkout steps: [CART, SHIPPING, PAYMENT, REVIEW, CONFIRM] - Guest vs. account: [DO YOU ALLOW GUEST CHECKOUT?] - Payment methods: [CARD, PAYPAL, WALLET] - Failure cases: [PAYMENT DECLINED, ADDRESS INVALID, ITEM OOS] </inputs> <task> Build a Mermaid flowchart TD user flow: start at cart, decision diamond for guest vs. sign-in, sequential checkout screens, payment decision with a decline-and-retry loop, and terminal nodes for order confirmed or abandoned. Show where a saved cart or recovery email could intervene. </task> <constraints> - Valid, renderable Mermaid; quote labels containing slashes or ampersands. - Payment failure loops back to retry, then to an alternate method or abandon. - Distinguish happy path from recovery and failure branches visually. </constraints> <format> Return the Mermaid code in one block, then note the single step most responsible for abandonment and how to shorten it. </format>
Produces a cart-to-confirmation checkout user flow with payment retry and abandonment branches as ready-to-render Mermaid code.
Pro tip: Tell Claude whether guest checkout exists; forcing account creation is often the abandonment culprit and the flow makes it visually obvious.
Password Reset User Flow
13/30You are an authentication UX specialist who diagrams account-recovery flows. <context> I need a user flow for resetting a forgotten password, as valid Mermaid code ready to render for design and engineering review. </context> <inputs> - Auth method: [EMAIL/PASSWORD, MAGIC LINK, SSO] - Reset channel: [EMAIL LINK, SMS CODE, BOTH] - Security steps: [TOKEN EXPIRY, RATE LIMIT, MFA] - Edge cases: [EMAIL NOT FOUND, EXPIRED LINK, SSO USER] - Post-reset behavior: [AUTO LOGIN OR RETURN TO LOGIN] </inputs> <task> Build a Mermaid flowchart TD user flow: start at forgot-password click, enter email, decision on whether the account exists (without leaking that info to the user), send reset link, handle expired/invalid token loops, set new password, and end at logged-in or back-to-login. Include the SSO-user redirect branch. </task> <constraints> - Valid Mermaid that renders unedited; quote labels with slashes or parentheses. - Handle expired-token and unknown-email cases without a dead end. - Note where the flow avoids account enumeration in a comment node. </constraints> <format> Return the Mermaid code in one block, then note the one security-vs-UX tradeoff in this flow and your recommendation. </format>
Builds a password-reset user flow with token-expiry loops and SSO handling as ready-to-render Mermaid code.
Pro tip: Ask Claude to prevent account enumeration; it shows a uniform 'if an account exists, we sent a link' path that closes a real security hole.
Free-to-Paid Upgrade User Flow
14/30You are a growth product manager who maps monetization flows for freemium apps. <context> I need a user flow from hitting a limit to a completed upgrade, as valid Mermaid code ready to render so we can optimize the paywall moment. </context> <inputs> - Product and free-tier limits: [WHAT RUNS OUT] - Paywall trigger: [LIMIT HIT, FEATURE LOCKED, TRIAL END] - Plans offered: [TIERS AND PRICES] - Upgrade steps: [PLAN SELECT, PAYMENT, CONFIRM] - Objection points: [WHERE USERS HESITATE] </inputs> <task> Build a Mermaid flowchart TD user flow: start at the trigger (limit hit or feature locked), show the paywall screen, plan-selection decision, payment step with decline-retry, and confirmation that unlocks the feature. Add branches for 'maybe later' (soft dismiss) and a downgrade-to-free fallback. </task> <constraints> - Valid, renderable Mermaid; quote labels with special characters. - Include the dismissal path and where a follow-up nudge fits. - Distinguish the conversion happy path from hesitation and failure branches. </constraints> <format> Return the Mermaid code in one block, then note the strongest place to insert social proof or urgency without feeling pushy. </format>
Creates a free-to-paid upgrade user flow with paywall trigger and dismissal branches as ready-to-render Mermaid code.
Pro tip: Describe the exact moment the limit bites; Claude places the paywall at peak intent instead of a generic 'upgrade now' screen.
Mobile App First-Run Flow
15/30You are a mobile product designer who diagrams first-launch experiences. <context> I need a user flow for a new user's first app launch, as valid Mermaid code ready to render so we can minimize time to first value. </context> <inputs> - App and core value: [WHAT IT DOES] - First-run steps: [SPLASH, PERMISSIONS, LOGIN, TUTORIAL, SETUP] - Permissions requested: [NOTIFICATIONS, LOCATION, CAMERA] - Skippable vs. required steps: [WHICH ARE OPTIONAL] - First value moment: [THE FIRST WIN] </inputs> <task> Build a Mermaid flowchart TD user flow: from app open through the first value moment. Show permission prompts as decision diamonds (allow/deny with graceful deny handling), a sign-in vs. skip choice, optional-step skips, and the guided path to the first win. End at the activated/first-value node. </task> <constraints> - Valid Mermaid that renders as-is; quote labels with slashes or parentheses. - Every permission-deny branch degrades gracefully rather than blocking the user. - Mark which steps are skippable so the shortest path to value is visible. </constraints> <format> Return the Mermaid code in one block, then note which steps to defer until after the first win to cut early abandonment. </format>
Produces a mobile first-run user flow with permission handling and skip paths as ready-to-render Mermaid code.
Pro tip: Ask Claude to defer permission prompts until they're contextually needed; the flow reveals how many taps stand between open and first value.
System Diagrams
5 promptsWeb App Architecture Diagram
16/30You are a solutions architect who documents system architecture as clear diagrams. <context> I need an architecture diagram of my web app, as valid Mermaid code ready to render so new engineers understand how the pieces fit together. </context> <inputs> - App type: [E.G. SAAS, MARKETPLACE, INTERNAL TOOL] - Frontend: [FRAMEWORK / HOSTING] - Backend services: [API, AUTH, WORKERS] - Data stores: [DB, CACHE, QUEUE, STORAGE] - Third-party services: [PAYMENTS, EMAIL, ANALYTICS] </inputs> <task> Build a Mermaid flowchart LR architecture diagram: client at the left, then a subgraph for the application layer (frontend, API, workers), a subgraph for data (DB, cache, queue), and external services on the right. Label every edge with the protocol or purpose (HTTPS, reads/writes, publishes to). Group related components in subgraphs. </task> <constraints> - Valid, renderable Mermaid; quote labels with slashes, parentheses, or arrows in text. - Use subgraphs for logical layers; direction of every arrow reflects real data flow. - Include a legend node explaining shapes or colors used. </constraints> <format> Return the Mermaid code in one block, then note the single point of failure in this design and how to add redundancy. </format>
Generates a layered web-app architecture diagram with labelled data flows as ready-to-render Mermaid code.
Pro tip: List every external service you actually call; Claude draws the real dependency web so you can see what breaks if one vendor goes down.
API Request Sequence Diagram
17/30You are a backend engineer who documents request lifecycles as sequence diagrams. <context> I need a sequence diagram of one important API request end to end, as valid Mermaid code ready to render for the API docs. </context> <inputs> - The request: [E.G. CREATE ORDER, LOGIN, FETCH FEED] - Participants: [CLIENT, API GATEWAY, SERVICE, DB, THIRD PARTY] - Auth mechanism: [JWT, SESSION, API KEY] - Sync vs. async steps: [WHAT HAPPENS IN BACKGROUND] - Error responses: [401, 429, 500, TIMEOUT] </inputs> <task> Build a Mermaid sequenceDiagram showing the full request lifecycle: client to gateway to service to data store and back, including the auth check, any third-party call, and the response. Use alt/opt blocks for error paths (unauthorized, rate limited, downstream failure) and note async steps with a background message. </task> <constraints> - Valid Mermaid sequenceDiagram syntax that renders unedited. - Use activation bars, alt blocks for errors, and notes for async work. - Every participant is declared; messages are labelled with the actual call. </constraints> <format> Return the Mermaid code in one block, then note the slowest hop and where to add caching or a timeout. </format>
Builds an end-to-end API request sequence diagram with auth and error paths as ready-to-render Mermaid code.
Pro tip: Tell Claude which call is a third-party dependency; it isolates it with a timeout note so you can see where latency and failures enter.
CI/CD Deployment Pipeline
18/30You are a DevOps engineer who diagrams build-and-deploy pipelines. <context> I need a diagram of our CI/CD pipeline from commit to production, as valid Mermaid code ready to render for the engineering wiki. </context> <inputs> - Repo and trigger: [E.G. GITHUB PUSH, PR MERGE] - Stages: [LINT, TEST, BUILD, SCAN, DEPLOY] - Environments: [DEV, STAGING, PROD] - Gates: [MANUAL APPROVAL, PASSING TESTS, SCAN CLEAN] - Rollback strategy: [AUTO OR MANUAL] </inputs> <task> Build a Mermaid flowchart LR pipeline: from commit through each CI stage as sequential nodes, quality gates as decision diamonds (tests pass? scan clean? approved?), deploys to each environment, and a rollback branch when a health check fails. Show which stages run in parallel. </task> <constraints> - Valid, renderable Mermaid; quote labels with slashes or parentheses. - Failed gates must route to a fail/notify node, not a dead end. - Parallel stages are grouped so the critical path is clear. </constraints> <format> Return the Mermaid code in one block, then note the longest stage on the critical path and how to speed it up. </format>
Produces a commit-to-production CI/CD pipeline with quality gates and rollback as ready-to-render Mermaid code.
Pro tip: Tell Claude which stages can run in parallel; it reshapes the pipeline so lint and tests don't block the build unnecessarily.
Data ETL Pipeline Diagram
19/30You are a data engineer who documents ETL and data-flow pipelines. <context> I need a diagram of my data pipeline from source to dashboard, as valid Mermaid code ready to render so analysts understand where each metric comes from. </context> <inputs> - Data sources: [E.G. APP DB, STRIPE, GA, CSV UPLOADS] - Ingestion method: [BATCH, STREAMING, WEBHOOK] - Transform steps: [CLEAN, JOIN, AGGREGATE, ENRICH] - Warehouse or store: [E.G. BIGQUERY, SNOWFLAKE, POSTGRES] - Consumers: [BI TOOL, ML MODEL, EXPORTS] </inputs> <task> Build a Mermaid flowchart LR data pipeline: sources on the left grouped in a subgraph, an ingestion layer, a transform subgraph showing each step in order, the warehouse, and consumers on the right. Label edges with format or frequency (daily batch, real-time, JSON). Mark where data-quality checks run. </task> <constraints> - Valid Mermaid that renders as-is; quote labels with slashes or parentheses. - Use subgraphs for sources, transforms, and consumers; arrows show real flow direction. - Include at least one data-quality/validation node. </constraints> <format> Return the Mermaid code in one block, then note where a schema change upstream would break things and how to guard it. </format>
Creates a source-to-dashboard ETL pipeline diagram with transform stages and quality checks as ready-to-render Mermaid code.
Pro tip: Name your real sources and warehouse; the diagram becomes a lineage map so analysts can trace any dashboard number back to its origin.
Microservices Interaction Map
20/30You are a distributed-systems architect who maps service-to-service communication. <context> I need a diagram of how my microservices talk to each other, as valid Mermaid code ready to render so the team understands dependencies and blast radius. </context> <inputs> - Services: [LIST SERVICE NAMES AND RESPONSIBILITIES] - Communication style: [REST, GRPC, EVENTS/QUEUE] - Shared infrastructure: [MESSAGE BUS, API GATEWAY, SHARED DB?] - External dependencies: [THIRD-PARTY APIS] - Critical vs. best-effort paths: [WHAT MUST NOT FAIL] </inputs> <task> Build a Mermaid flowchart TD service map: each microservice as a node, synchronous calls as solid labelled edges and asynchronous events as dotted edges through a message-bus node, the API gateway as the entry point, and external dependencies grouped in a subgraph. Highlight the critical path that must not fail. </task> <constraints> - Valid, renderable Mermaid; quote labels with slashes or parentheses. - Distinguish sync (solid) from async (dotted) edges; every edge is labelled. - Flag any shared database as a coupling risk with a note. </constraints> <format> Return the Mermaid code in one block, then note which service has the largest blast radius and how to decouple it. </format>
Builds a microservices interaction map distinguishing sync and async calls as ready-to-render Mermaid code.
Pro tip: Ask Claude to draw async events as dotted lines through the bus; the visual instantly separates tight coupling from safe, decoupled flows.
Org & Approval Flows
5 promptsExpense Approval Flow
21/30You are a finance-operations analyst who diagrams approval workflows. <context> I need a flowchart of our expense-approval process, as valid Mermaid code ready to render so employees know exactly who signs off what. </context> <inputs> - Expense types: [TRAVEL, SOFTWARE, EQUIPMENT, ETC] - Amount thresholds: [E.G. UNDER 100 AUTO, 100-1000 MANAGER, 1000+ FINANCE] - Approver roles: [MANAGER, DEPARTMENT HEAD, FINANCE, CFO] - Policy checks: [RECEIPT REQUIRED, BUDGET AVAILABLE] - Rejection handling: [RESUBMIT, ESCALATE] </inputs> <task> Build a Mermaid flowchart TD approval flow: start at expense submitted, policy-check decision (receipt, within budget), amount-threshold decision diamonds routing to the right approver level, approve/reject branches at each level with a resubmit loop, and a reimbursed end node. Show auto-approval for small in-policy amounts. </task> <constraints> - Valid, renderable Mermaid; quote labels with special characters. - Each threshold routes to exactly one approver level; rejections loop back to resubmit. - Auto-approval path is clearly separated from manual review. </constraints> <format> Return the Mermaid code in one block, then note where approvals stall most and how to add an auto-escalate timer. </format>
Generates an expense-approval flow with threshold routing and auto-approval as ready-to-render Mermaid code.
Pro tip: Give Claude your exact dollar thresholds; it wires them into the diamonds so nobody has to memorize who approves what amount.
Document Review & Sign-off Flow
22/30You are a governance specialist who maps document review and approval workflows. <context> I need a flowchart for reviewing and signing off a document (contract, policy, spec), as valid Mermaid code ready to render for our process wiki. </context> <inputs> - Document type: [CONTRACT, POLICY, SPEC, ETC] - Reviewers in order: [LEGAL, MANAGER, COMPLIANCE, EXEC] - Review outcomes: [APPROVE, REQUEST CHANGES, REJECT] - Version control step: [WHERE EDITS HAPPEN] - Final action: [SIGN, PUBLISH, ARCHIVE] </inputs> <task> Build a Mermaid flowchart TD sign-off flow: start at draft ready, sequential reviewer decision diamonds (each can approve or request changes), a request-changes loop back to the author with a new version, and a final sign/publish node once all approvers pass. Show parallel review where reviewers work simultaneously. </task> <constraints> - Valid Mermaid that renders as-is; quote labels with slashes or parentheses. - Change requests loop back to a revise node, then re-enter review at the right point. - Distinguish sequential from parallel reviews visually. </constraints> <format> Return the Mermaid code in one block, then note whether serial or parallel review is faster here and why. </format>
Builds a document review and sign-off flow with revision loops and parallel review as ready-to-render Mermaid code.
Pro tip: Tell Claude which reviewers can work in parallel; converting a serial chain to parallel review often halves approval time in the diagram.
Hiring Approval Flow
23/30You are a talent-operations lead who diagrams recruitment approval pipelines. <context> I need a flowchart of our hiring process from open req to signed offer, as valid Mermaid code ready to render for hiring managers and recruiters. </context> <inputs> - Role type: [IC, MANAGER, EXEC] - Stages: [REQ APPROVAL, SCREEN, INTERVIEWS, DEBRIEF, OFFER] - Decision gates: [HEADCOUNT APPROVED, DEBRIEF PASS, OFFER APPROVED] - Approvers: [HIRING MANAGER, RECRUITER, PANEL, FINANCE FOR OFFER] - Rejection points: [WHERE CANDIDATES EXIT] </inputs> <task> Build a Mermaid flowchart TD hiring flow: start at req opened, headcount-approval gate, sourcing and screen, interview loop, debrief decision (advance/reject), offer-approval gate (comp within band?), and signed/declined terminal nodes. Show candidate rejection exits at each stage and the offer-negotiation loop. </task> <constraints> - Valid, renderable Mermaid; quote labels with special characters. - Every stage has a reject/exit branch; offer path includes a comp-approval gate. - Interview and negotiation loops return to the correct node cleanly. </constraints> <format> Return the Mermaid code in one block, then note the slowest gate and how to compress time-to-offer. </format>
Produces a req-to-offer hiring approval flow with rejection exits and comp gates as ready-to-render Mermaid code.
Pro tip: Add your comp-band approval gate; the diagram shows where finance sign-off can delay an offer so you can pre-approve ranges.
Change Management Approval Flow
24/30You are an IT change-management specialist who diagrams CAB approval processes. <context> I need a flowchart for approving and deploying a production change, as valid Mermaid code ready to render for our change-management policy. </context> <inputs> - Change types: [STANDARD, NORMAL, EMERGENCY] - Risk assessment factors: [BLAST RADIUS, ROLLBACK EASE, TIMING] - Approvers: [CHANGE MANAGER, CAB, ON-CALL LEAD] - Required artifacts: [ROLLBACK PLAN, TEST EVIDENCE] - Post-deploy steps: [VERIFY, MONITOR, CLOSE] </inputs> <task> Build a Mermaid flowchart TD change flow: start at change requested, classify by type (standard = pre-approved, normal = CAB review, emergency = expedited), risk-and-artifact gates, approval decision, scheduled deploy, post-deploy verification with a rollback branch if verification fails, and a closed node. Separate the three change-type lanes clearly. </task> <constraints> - Valid Mermaid that renders unedited; quote labels with slashes or parentheses. - Standard changes skip CAB; emergency changes get retroactive review. - Failed verification always triggers the rollback branch. </constraints> <format> Return the Mermaid code in one block, then note how to keep emergency changes fast without skipping the rollback plan. </format>
Creates a change-management approval flow with standard, normal, and emergency lanes as ready-to-render Mermaid code.
Pro tip: Define what makes a change 'standard'; pre-approving low-risk changes in the diagram frees the CAB to focus only on risky deploys.
Budget Request Approval Flow
25/30You are a financial-planning analyst who maps budget-request and approval workflows. <context> I need a flowchart of how a team requests and gets budget approved, as valid Mermaid code ready to render for the annual planning process. </context> <inputs> - Request context: [NEW SPEND, INCREASE, REALLOCATION] - Amount tiers and approvers: [E.G. MANAGER, DIRECTOR, VP, CFO] - Justification requirements: [BUSINESS CASE, ROI, ALTERNATIVES] - Checks: [WITHIN DEPARTMENT BUDGET? QUARTER TIMING?] - Outcomes: [APPROVED, PARTIAL, DEFERRED, DENIED] </inputs> <task> Build a Mermaid flowchart TD budget flow: start at request submitted, justification-completeness gate (loop back if incomplete), within-budget check, amount-tier decision routing to the right approver, and terminal outcomes (approved, partial, deferred to next quarter, denied). Show the reallocation branch that skips new-spend approval. </task> <constraints> - Valid, renderable Mermaid; quote labels with special characters. - Incomplete requests loop back; each amount tier maps to one approver. - Deferred and partial outcomes are distinct terminal nodes, not merged with denied. </constraints> <format> Return the Mermaid code in one block, then note where requests most often get deferred and how to strengthen the business case earlier. </format>
Builds a budget-request approval flow with tiered approvers and multiple outcomes as ready-to-render Mermaid code.
Pro tip: Distinguish 'deferred' from 'denied' in your outcomes; the diagram then tells requesters whether to resubmit next quarter or drop it.
Most people use 10% of Claude. Tutorials unlock the rest.
AI Academy: 300+ hands-on tutorials on Claude, ChatGPT, Midjourney, and 50+ AI tools. New tutorials added every week.
Algorithm & Logic Flows
5 promptsSorting Algorithm Flowchart
26/30You are a computer-science educator who explains algorithms as clear flowcharts. <context> I need a flowchart of a sorting algorithm's control flow, as valid Mermaid code ready to render for a lesson or study guide. </context> <inputs> - Algorithm: [E.G. BUBBLE SORT, QUICKSORT, MERGE SORT] - Level of detail: [HIGH-LEVEL STEPS OR EVERY COMPARISON] - Input assumption: [ARRAY OF NUMBERS, SIZE N] - Show complexity notes?: [YES/NO] - Audience: [BEGINNER, INTERVIEW PREP] </inputs> <task> Build a Mermaid flowchart TD of the algorithm's logic: start node, initialization, the main loop(s) with a loop-condition decision diamond, the comparison/swap or partition/recurse steps, and a sorted-output end node. Represent loops with a back-edge to the condition check. Keep node text to short imperative statements. </task> <constraints> - Valid, renderable Mermaid; quote labels containing comparison operators or brackets. - Loop back-edges must return to the condition diamond, not the loop body start. - If complexity notes are requested, add them as a separate note node, not inside logic nodes. </constraints> <format> Return the Mermaid code in one block, then give the time and space complexity and the one line that determines it. </format>
Generates a sorting-algorithm control-flow flowchart with correct loop back-edges as ready-to-render Mermaid code.
Pro tip: Ask for 'every comparison' detail for interview prep or 'high-level steps' for teaching; the same algorithm yields two very different diagrams.
Authentication Logic Flowchart
27/30You are a security engineer who diagrams authentication logic for code review. <context> I need a flowchart of my login/authentication logic, as valid Mermaid code ready to render so reviewers can verify the security branches. </context> <inputs> - Auth factors: [PASSWORD, MFA, SSO, MAGIC LINK] - Lockout policy: [FAILED-ATTEMPT LIMIT, RATE LIMIT] - Session handling: [JWT, SESSION COOKIE, REFRESH] - Edge cases: [ACCOUNT LOCKED, UNVERIFIED EMAIL, EXPIRED PASSWORD] - Outcomes: [GRANT, DENY, CHALLENGE MFA, LOCK] </inputs> <task> Build a Mermaid flowchart TD auth logic: start at credentials submitted, validate format, check account status (locked/unverified branches), verify password, MFA-required decision with challenge loop, rate-limit/lockout decision after failed attempts, and terminal nodes for granted, denied, or locked. Make the failure-counting loop explicit. </task> <constraints> - Valid Mermaid that renders as-is; quote labels with special characters. - Every failure path either retries within a limit or locks out; no dead ends. - MFA challenge returns to a verify step; lockout is a distinct terminal state. </constraints> <format> Return the Mermaid code in one block, then note the one branch most likely to hide a security bug and what to test. </format>
Builds an authentication-logic flowchart with MFA, lockout, and failure loops as ready-to-render Mermaid code.
Pro tip: Include your lockout threshold; the diagram exposes whether failed attempts are counted before or after password check, a common auth bug.
Recommendation Scoring Flow
28/30You are an ML engineer who diagrams scoring and ranking pipelines. <context> I need a flowchart of how items get scored and ranked for a recommendation, as valid Mermaid code ready to render for a design review. </context> <inputs> - What we recommend: [PRODUCTS, ARTICLES, USERS, ETC] - Candidate generation: [HOW THE INITIAL SET IS BUILT] - Scoring signals: [RELEVANCE, RECENCY, POPULARITY, PERSONALIZATION] - Filters: [ALREADY SEEN, OUT OF STOCK, BLOCKED] - Final step: [RANK, DIVERSIFY, RETURN TOP N] </inputs> <task> Build a Mermaid flowchart TD scoring pipeline: start at request, candidate-generation step, a filtering stage (decision diamonds for each hard filter), a scoring stage combining signals, a re-ranking/diversification step, and a return-top-N end node. Show the fallback branch when too few candidates survive filtering. </task> <constraints> - Valid, renderable Mermaid; quote labels with slashes or parentheses. - Filters run before scoring; the low-candidate fallback path is explicit. - Group signal inputs feeding the scoring node so the formula is legible. </constraints> <format> Return the Mermaid code in one block, then note which signal to tune first to improve relevance and how to A/B test it. </format>
Produces a recommendation scoring and ranking flow with filters and fallbacks as ready-to-render Mermaid code.
Pro tip: List your scoring signals separately; Claude feeds each into the scoring node so you can see exactly what drives the final rank.
Retry-with-Backoff Logic Flow
29/30You are a backend engineer who diagrams resilience and retry logic. <context> I need a flowchart of retry-with-exponential-backoff logic for an unreliable call, as valid Mermaid code ready to render for the engineering docs. </context> <inputs> - The operation: [E.G. API CALL, DB WRITE, JOB] - Retry conditions: [WHICH ERRORS ARE RETRYABLE] - Max attempts and backoff: [E.G. 5 TRIES, EXPONENTIAL + JITTER] - Non-retryable errors: [4XX, VALIDATION] - Final failure action: [DEAD-LETTER, ALERT, FALLBACK] </inputs> <task> Build a Mermaid flowchart TD retry logic: start at attempt operation, success/failure decision, on failure classify retryable vs. non-retryable, a max-attempts-reached decision, a wait/backoff node that loops back to the attempt with an incremented counter, and terminal nodes for success, non-retryable failure, and exhausted-retries (dead-letter/alert). Show the backoff calculation as a labelled node. </task> <constraints> - Valid Mermaid that renders unedited; quote labels with operators or parentheses. - Non-retryable errors exit immediately; the counter increments on each loop. - The backoff loop returns to the attempt node, not the start. </constraints> <format> Return the Mermaid code in one block, then note why jitter matters and where a circuit breaker would fit. </format>
Creates a retry-with-backoff logic flowchart with attempt counting and dead-lettering as ready-to-render Mermaid code.
Pro tip: Specify which error codes are retryable; the diagram makes it obvious when code retries a 400 forever, a classic resilience bug.
Search / Binary Search Flowchart
30/30You are a computer-science instructor who diagrams search algorithms for learners. <context> I need a flowchart of a search algorithm's logic, as valid Mermaid code ready to render for a tutorial or interview-prep guide. </context> <inputs> - Algorithm: [E.G. BINARY SEARCH, LINEAR SEARCH, BFS, DFS] - Data structure: [SORTED ARRAY, GRAPH, TREE] - Detail level: [CONCEPTUAL OR STEP-BY-STEP] - Target/goal condition: [WHAT WE'RE LOOKING FOR] - Show edge cases?: [EMPTY INPUT, NOT FOUND] </inputs> <task> Build a Mermaid flowchart TD of the search logic: initialization (pointers/queue/visited set), the main loop condition diamond, the comparison or neighbor-visit step that narrows the search or advances, the found-target exit, and a not-found terminal when the search space is exhausted. Represent iteration with a back-edge to the loop condition. </task> <constraints> - Valid, renderable Mermaid; quote labels with comparison operators or brackets. - Include the empty-input and not-found terminal branches. - Loop back-edges return to the condition diamond; keep node text short and imperative. </constraints> <format> Return the Mermaid code in one block, then give the complexity and the invariant that keeps the algorithm correct. </format>
Builds a search-algorithm flowchart with loop conditions and not-found handling as ready-to-render Mermaid code.
Pro tip: Ask Claude to state the loop invariant; naming it turns the flowchart into a proof sketch that's gold for interview prep.
Frequently Asked Questions
Prompts are the starting line. Tutorials are the finish.
A growing library of 300+ hands-on tutorials on ChatGPT, Claude, Midjourney, and 50+ AI tools. New tutorials added every week.
7-day free trial. Cancel anytime.