Build a Business Process by Talking to an AI — Oumma Designer Mode, Walkthrough with the Order Processing Process
Building the "Order Processing" process in the Oumma Designer: half by clicking and dragging on a BPMN canvas, half by typing plain-English prompts into a design chat — and why the deployment button is the only one the AI cannot press.
What we end up with by the end of this article:
start → validate_order (inventory API) → manual_review (cashier)
→ [>$1000] manager_review (management) → process_payment (payment API) → end
- a tool step that calls the inventory API with zero LLM tokens at runtime
- two human review steps owned by different roles, with a conditional business rule
- forms the people on each step will actually fill (EN/FR/AR labels)
- a trilingual label catalog, a menu icon, and role permissions synced to identity
- one pending design version — and a human who presses Deploy
This is article 1 of the Oumma series. The next one tears apart every tab of the design view; later ones cover roles & permissions end-to-end, the normal user's day, AI Assist, external integrations, versioning/pinning, and the Go + PostgreSQL engine under the hood.
If you have ever been asked to digitize a business procedure, you know the shape of the job: a flowchart on a whiteboard, three roles who disagree about who approves what, a form that nobody agrees on, and an integration ("just ping the inventory API") that ends up living in someone's head.
Oumma is an agentic workflow platform: processes run as engines, tasks are owned by roles, and an LLM handles the parts that need judgment. The part I want to show you is the Designer mode — where a process comes into existence — using a real scenario: building the Order Processing process from an empty project, mixing manual canvas work with AI prompts, exactly as it happens in the product.
The prompts below are the actual tool vocabulary of the designer agent. Every AI proposal is shown to you as a diff-like tool call and only lands after you press Apply. Deployment is never an agent action.
0. The two seats at the table
Before the scenario, the two actors you are coordinating as a designer:
- The canvas — an interactive BPMN view: human steps (👤, with their role), system steps (⚙), start/end nodes, parallel fork/join gateways. Click a step to configure it; drag any step anywhere to untangle the diagram; four layout algorithms (left→right, top→down, circular, force-directed).
- The design chat — an agent with a described, MCP-style tool catalog: create/rename processes, add steps, connect them, build forms, assign roles and permissions, set trilingual labels, plug in external tools, manage versions.
Everything the two of them do lands in a single pending version. You deploy it when it is ready; running dossiers keep the version they started on (version pinning).
1. Start from a blank project (AI)
Sign in with your enterprise identity (Keycloak):
A Designer-role account gets the mode orientation right after login — pick Designer mode for the full design experience, or Normal mode to work the processes like everyone else (you can switch any time from the top bar):
Then, in the designer chat, type:
Create a new process called "Order Processing" — it validates customer
orders, checks inventory, gets reviewed, then charges the customer.
The agent responds with the tool call it wants to run:
{ "name": "create_process",
"args": { "processName": "Order Processing",
"processId": "order-processing",
"processDescription": "Validates customer orders, checks inventory,
reviews and charges the customer." } }
Apply. The project appears in the left menu — scaffolded with just start → end:
That is the whole trick of "new process = project": the chat now has a canvas to build on immediately.
Designers can also rename the display name of a process at any time
(works on deployed processes — it is a label), and change the technical
process_idwhile the project was never deployed.
2. The automatic first mile (AI + tool step)
The first real step is not a person — it is an API call: validate the order and check inventory. This is a tool step (the MCP-like system tasks: Gmail, Telegram, WhatsApp, generic HTTP):
Add a system step "validate_order" that POSTs the order to our
inventory service. It takes order_id, items and customer_id from the
process context.
The agent builds it with the add_tool_task tool — a mcp.http.request
system task whose inputs map tool parameters to process-context keys
(order_id ← $order_id, …). Two properties matter:
-
Zero LLM tokens at runtime. When an order flows through this step, the engine resolves the
$contextkeys and fires a plain HTTP call. Deterministic, repeatable, free. -
Dry-run by default. Until you flip
MCP_TOOLS_DRY_RUN=falseand put real endpoints/credentials on the task, the engine builds the exact payload, logs it and simulates success — you can design and test flows without any integration being live.
3. Put people on the flow (manual)
Open the project's Process design — the canvas shows the live (pending) design in BPMN notation:
Now the diagram needs humans. This is where I grab the mouse:
-
Toolbar → "Add human step" →
manual_review, role cashier. -
Click
manual_review→ the right-hand configuration panel opens → set the role, the description ("Operations team reviews the order before payment"), save:
-
Connect — click Connect on
validate_order, then clickmanual_review: the edge appears. Click Connect onstart→validate_order. -
Drag
manual_reviewdown and right to open breathing room — the connections follow. For a busy design this free placement is how you keep the BPMN readable (a Reset layout button returns everything to the algorithm).
Clicking around is still the fastest way to make small, precise edits — the AI is for the shaping, the mouse is for the furniture.
4. The business rule (AI)
The heart of order processing is a conditional: big orders need a manager.
Orders above $1000 must also be approved by a manager before payment.
Add a "manager_review" step for the management role and route
manual_review to it when the amount exceeds 1000 dollars.
The agent proposes, in sequence:
{ "name": "add_task", "args": { "name": "manager_review", "group": "management" } }
{ "name": "add_edge", "args": { "from": "manual_review", "to": "manager_review",
"condition": "order amount exceeds $1000 — route to manager for approval before payment" } }
{ "name": "add_edge", "args": { "from": "manager_review", "to": "process_payment" } }
You apply each one. The canvas re-renders — you can see the exclusive branch appear, and you can drag manager_review aside so the main path stays a straight line.
Routing note: branches with conditions are decided by the LLM at
runtime; single-successor hops and unconditional fork/join merges are
routed deterministically, with zero tokens. The engine only spends
intelligence where judgment is actually needed.
5. Close the loop: payment and exit (AI)
After an approval, charge the customer with a system step
"process_payment" that calls the payment service, then finish.
Connect both review steps to it and it to the end.
The process_payment step is another tool step (HTTP POST to the
payment service, inputs order_id, amount, payment_method ← context).
All tool steps of the project are visible in the Tools tab:
After three applies, the topology is the real one:
start → validate_order ─┬→ manual_review ─┬→ (>$1000) manager_review ─┬→ process_payment → end
│ ├→ (approved, ≤$1000) ─────┤
└→ (invalid) ─────┴→ (rejected) → end └→ (manager rejected) → end
6. The forms people will actually fill (AI)
A step is only as good as its form. The designer builds them conversationally — the chat JSON becomes a real form step (field types, required flags, labels in EN/FR/AR):
Build the form for the launch: customer name, customer id, items
(list), total amount (number, required), payment method.
Give manual_review and manager_review a small form: the order summary
(read context), a decision (approve/reject, required) and reviewer notes.
Each lands via update_form_step. In the Forms tab you can now inspect every step's form visually and fix any field by hand:
7. Labels, icon, polish (manual + AI)
- Search items tab — the trilingual label catalog. Type "label the 'total amount' field 'Montant total' in French and 'المبلغ الإجمالي' in Arabic" — or just edit the rows in the UI. The app resolves every UI label through this catalog:
- Icon — the header's icon picker (284 icons, searchable): a 💳 card fits.
- Roles tab — confirm the three roles (launch role Operateur, cashier, management) and their per-step permissions. Role changes can be synced to the identity provider (Keycloak groups) from here:
8. The part the AI may not do for you (human)
Open the Design versions tab. The single pending version shows every accumulated change with an automatic semantic version — a new task is a major, a role change a minor, a label tweak a patch. You read it, then press Deploy (or Discard):
That asymmetry is deliberate:
| Agent can do | Only a human can do |
|---|---|
| Propose any design change (with your Apply on each) | Deploy the version |
| Create, rename, rewire, label, tool-wire | Discard the pending version |
| Inspect versions, list tasks, explain the design | Delete a project |
And after deployment, running instances stay pinned to the version they started on — your in-flight orders keep their exact behavior while v2 serves the next launches.
And the people it was built for
Deployed, the process disappears into everyday work. A cashier or customer-relations operator signs in, picks Normal mode, and never sees a designer surface — just their processes, their dossiers, their tasks:
Their My Tasks tab shows exactly the steps that are waiting on their role — manual_review for cashiers, manager_review for management — with only the actions their permissions allow:
What this workflow buys you
- Speed where it matters — topology, forms, labels, tools: described once, applied as validated writes.
- Safety where it counts — nothing applies without a confirm, nothing deploys without a click, and the design is BPMN-validated before it may be deployed.
- An auditable design history — every version, its semver and its document, stored in Postgres alongside execution states and the LLM usage ledger.
- A canvas that respects you — the AI's changes appear on the same live canvas you drag on; you can always take the mouse back.
The result of the scenario is a shippable, role-gated, API-integrated Order Processing process — built in one sitting, mostly by asking.
Article 2 of the Oumma series on Dev.to — it starts with Oumma vs n8n/Camunda/Zapier. The designer agent's tool catalog, versioning and pinning are all visible in the oumma backend; the canvas and chat in the oumma-app frontend — both Apache-2.0.













Top comments (0)