# Human-in-the-loop UI for AI agent apps: 6 screens to design before you wire the model

> Source: <https://dev.to/migambi/human-in-the-loop-ui-for-ai-agent-apps-6-screens-to-design-before-you-wire-the-model-2ma7>
> Published: 2026-12-06 00:38:59+00:00

**Recommendation:** Put every AI call behind a named action stub returning plain data, and gate spending or sending behind one deliberate gesture that shows the amount and recipient.
More in the playbook "Designing agent systems": <https://wpnews.pro/playbooks/agent-architecture>

Most AI app demos stop at a chat box. That is fine while the AI only talks. Once it can book a table, pay a deposit, send a WhatsApp message or answer a phone call for a business, people need to see what it is about to do and stop it in time.

Over the last weeks I built four agent-style apps in FlutterFlow: a personal agent, a workflow automation studio, a WhatsApp chatbot inbox and a voice receptionist. Different products, but the same six screens came back in every one of them. Here they are, with how I built each one.

Show the steps before anything happens. "I'll search three restaurants, check Saturday at 8, hold the best table, then ask you before paying the deposit."

A plan does two jobs. The user can catch a wrong guess early ("not Saturday, Friday"), and they learn what the agent is able to do without reading a help page.

**In FlutterFlow:** a custom action (`planRun`) returns a list of steps, and a custom widget takes that list as a parameter and draws each step with its state. The page doesn't care where the steps come from, so you can design it with sample data long before a model is connected.

While the agent works, show the step it is on, what it found and what is left. Design all of the states, not only success:

"Needs you" and "failed" are the states people actually remember. If those two look like an afterthought, the whole product feels unsafe.

Keep one action that pays or sends, and only one. Everything else reads, drafts or plans.

In the personal agent ([Nod](https://migambiglobal.com/flutterflow/nod-ai-agent-assistant-and-personal-app-with-admin?utm_source=devto&utm_medium=article&utm_campaign=ai-apps)), the custom action `approveStep` is the only one allowed to spend money, and the user approves by pulling a dot down, a small nod. In the automation studio ([Weft](https://migambiglobal.com/flutterflow/weft-ai-agent-builder-automation-workflow-and-agents-studio-with-admin?utm_source=devto&utm_medium=article&utm_campaign=ai-apps)), held steps are approved by holding a button until a thread ties off.

Both are deliberate on purpose. An approval that a stray tap can trigger isn't an approval. Make it a gesture that takes half a second of intent, and show the amount and the recipient right on it.

Every agent hits a case it shouldn't handle alone. Design that moment instead of hiding it:

The detail that matters most: always show who has the conversation now. I give the AI one colour and people another, everywhere in the app, so a glance at any list says whether the bot or a person is talking.

Keep every run: what went in, what each step returned, how long it took, what it cost and who approved what. Users open it when something surprises them. You open it when a customer writes to support.

On the admin side, the same data becomes a review queue: failed steps, flagged chats, calls that went badly. All four apps have an admin desk for exactly this, because an AI product with no place to review its mistakes can't get better.

If the agent remembers things, show the memory as a list the user can read and delete. If it can spend, give them limits they set themselves: per run, per day, per site. If it is connected to accounts, list the connections and an access log.

People trust an agent more when they can see the edges of what it is allowed to do.

AI calls cost money on every run. A credit meter for the user, and model costs per day on the admin desk, save you from a surprise invoice and give you the numbers you need to price plans.

Every AI call in these apps sits behind a named custom action stub: `askAgent`, `planRun`, `startRun`, `approveStep`, `transcribeVoice`. Each returns plain data (a reply, a list of steps, a list of picks), and the custom widgets take that data as parameters.

That gives three things:

All four are FlutterFlow templates, each in light and dark, with an admin desk:

The rest are on the [FlutterFlow AI app templates](https://migambiglobal.com/flutterflow/category/ai?utm_source=devto&utm_medium=article&utm_campaign=ai-apps) page.

*Disclosure: I make these templates at Migambi Global.*

What would you add to the list? I'm curious which screen people skip most often in their own AI apps.
