PROMPTS + EDITABLE SOURCE
AI flowchart examples you can adapt
Three practical starting points, each with an AI prompt and a D2 template you can copy into the editor without making an AI request.
Open AI flowchart generatorApproval workflow
AI prompt
Create a purchase approval flowchart: employee submits request; manager checks budget; if approved, finance processes payment; if rejected, return to employee with feedback. Include clear yes/no branches.
Editable D2 template
request: Submit request
review: Check budget {shape: diamond}
approve: Finance processes payment
revise: Return for revision
request -> review
review -> approve: Approved
review -> revise: Rejected
revise -> requestPaste this source into D2 Playground. Review the labels and branches for your specific process.
Support triage
AI prompt
Create a customer support flowchart: receive ticket, check whether the issue is urgent, escalate urgent cases, assign routine cases to support, resolve and confirm with customer, then close the ticket.
Editable D2 template
ticket: Receive ticket
urgent: Urgent? {shape: diamond}
escalate: Escalate
support: Assign support
resolve: Resolve and confirm
close: Close ticket
ticket -> urgent
urgent -> escalate: Yes
urgent -> support: No
escalate -> resolve
support -> resolve
resolve -> closePaste this source into D2 Playground. Review the labels and branches for your specific process.
Onboarding checklist
AI prompt
Create an employee onboarding flowchart from signed offer through account setup, equipment delivery, orientation, first-week check-in and completion. Identify dependencies before orientation.
Editable D2 template
offer: Signed offer
accounts: Set up accounts
equipment: Deliver equipment
orientation: Orientation
checkin: First-week check-in
done: Complete
offer -> accounts
offer -> equipment
accounts -> orientation
equipment -> orientation
orientation -> checkin
checkin -> donePaste this source into D2 Playground. Review the labels and branches for your specific process.
Make a better flowchart prompt
Name the audience, the start and end states, the person responsible for each step, and the conditions for every decision. State what happens when information is missing or a request is rejected. Ask for a simple first draft before adding exception paths.
Review before using
- Every decision has labeled outcomes.
- Rejected or failed cases have a clear next step.
- Loops have an exit condition.
- Step names describe actions rather than vague stages.