Hi Lucas, great question, and a timely one: we've been working on the same problem from the partner side (generating Architect flows with AI for customer projects), so here's what we've learned.
Tools: whatever the customer already uses. In practice that's Visio or Miro for workshops, and draw.io when we own the document. The tool matters less than having one shape per decision, with labels that state the condition ("Within business hours?", "Menu: 1 = Billing, 2 = Support").
Flow or conversation first: for IVR, flow first and wording second. For bots and AI agents, the conversation first, because intents and slots drive the structure.
Wording: we keep prompt text out of the diagram. Each prompt gets an ID in the flowchart (P01, P02...) and the text lives in a spreadsheet (ID, language, TTS text, recorded file yes/no). Customers edit the spreadsheet, not the diagram, and each row maps to one prompt in Architect. Nobody has to redraw 15 boxes when someone changes a comma.
Complex flows: we split by responsibility, not by page size: main menu, authentication, business hours/emergency, one block per line of business. Each block becomes a common module or a separate flow, and the diagram has an explicit inputs/outputs box for each one, so it's clear what has to be passed along (participant data, variables).
The biggest lesson from generating flows out of diagrams: the happy path is the easy part. What diagrams almost never contain, and what we now ask for explicitly before generating anything:
- what happens on no input, no match and max retries
- data action failure and timeout paths
- the exact names of the queues, schedule groups, prompts and data actions that must already exist in the org
- after-hours and emergency behavior
We turned that into a checklist: when an item is missing, the generator asks instead of guessing. It also produces a "missing prerequisites" report (e.g. this queue doesn't exist yet) before trying to publish. That has made the biggest difference in getting flows to publish on the first try.
One question back: in your plugin, how do you handle objects in the diagram that don't exist in the org yet? Do you create them, or stop and report?
------------------------------
Sebastian
Ingeniero de Proyecto
------------------------------