cd /news/ai-agents/how-to-break-up-a-monolithic-ai-agen… · home › topics › ai-agents › article
[ARTICLE · art-180557] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

How to Break Up a Monolithic AI Agent Prompt

Flowia Studio, a tool for designing AI agents as visual boards, outlined a method for decomposing a monolithic agent prompt into scoped stages, frames and connected blocks that the platform compiles into an agent's instructions and actions. The company demonstrated the approach on a salon booking assistant, splitting it into service selection, time picking and contact collection, with standing rules kept outside frames and stage-specific instructions scoped inside them. Flowia says the board's text, frame membership and connecting lines all inform the generated prompt when a user clicks Build.

recommendation

Split a monolithic agent prompt into named stage frames with scoped rules and explicit connections, keeping global rules outside frames, so edits to one step don't leak into others.

more in playbook: Designing agent systems
by read5 min views15 publishedDec 2, 2026

You’ve probably seen this file. It starts as ten lines that tell an AI agent who it is and what to do. Six weeks later, it’s 3,000 words of booking rules, cancellation exceptions and fifteen lines marked “IMPORTANT.”

Then someone asks for a small change. “Ask for the phone number before the name.” You add one sentence. The next day, the bot starts skipping the earliest available slot. Where do you look for the cause?

Think of a script that puts everything inside one giant main(). To change when it asks for a phone number, you have to find that logic among availability checks, pricing and cancellations. In an organised script, you can go straight to collect_contact_details() and see what it takes in and what it returns. A board gives the agent’s instructions similar boundaries. You can find the contact details in one place and see how that step fits into the booking.

We build Flowia Studio, where you draw an agent as a board and build it from that drawing. Here’s how we broke a salon booking assistant into stages such as choosing a service, picking a time and collecting contact details. You can try the same exercise on paper with a prompt you already maintain.

Imagine explaining the salon assistant to a colleague on paper. Write “Look up the matching service” in a box, draw a line to “Give the price and duration,” then group both under “Choose the service.” That’s the basic vocabulary of a Flowia board.

When you click Build, Flowia reads the whole board to generate the agent’s opening message, instructions and actions. The words, the frame each block belongs to and the lines between blocks all inform the build. A line can express a required order, such as asking for a phone number before sending an SMS. Flowia’s diagramming guide

An unconnected text block outside any frame becomes a standing rule for the agent. On the salon board, that’s where we put “Use only services, prices, staff and times from the salon’s records” and “Short replies, one question at a time.”

Put an unconnected instruction inside a frame to scope it to that stage. For example, “Be gentle here” in the cancellation frame applies during a cancellation. A frame title can also express a shared instruction once for all the blocks inside it.

In the Choose the service frame, a customer who knows what they want goes straight to a lookup. An unsure customer gets a question before the agent looks up options. Both rows use pink Data Lab blocks to read the salon’s records. Below them are rules for specific situations. If the request is ambiguous, offer two or three suitable options. For complex colour correction, suggest a consultation first.

Use a chain of blocks for an order within a stage, such as asking for a day before looking up slots. Chain whole frames when one stage should follow another. Separate frames work like a menu, so a customer can ask about prices or cancellations whenever those come up. Several lines can point to one block when different questions use the same source. For example, opening hours, preparation and insurance questions can all use the clinic’s visitor guide. Use a Switch when the conversation needs to choose between whole paths. Each column has a condition, and you can add a default for unmatched requests.

On the Sunrise Clinic board, the Switch has a case for new visits, one for changes and cancellations, and a default for other requests. The board puts SMS confirmation after booking. Clinic questions and web help sit in standalone frames that can be used as needed. Sunrise Clinic worked example

Text blocks guide what the model asks, says and decides. Pink actionable blocks run an operation when called, such as checking availability, saving a booking request or sending an SMS.

For a slot lookup, pass in the service, stylist and requested day. Describe the operation in plain language, give it to a Data Lab block and tell the agent what to do with the result. Offer two or three slots when the lookup finds openings. Ask about another day when it returns none. If the lookup fails, say you couldn’t check availability. When a rule must hold, enforce it in the operation itself. If saving a request reserves a slot, have the operation check and claim the slot in one atomic step so two requests can’t reserve it at once. Have the agent tell the customer the request was saved only after the operation reports success. Flowia’s guide to actionable blocks

When you build a dynamic agent in Flowia, the FlowEngine panel shows an overall behaviour card and one card per part. A part is a stage or capability, often based on a frame from the board. Its card shows where it came from, when it becomes active and which functions it can call.

The agent works in one part at a time, using its overall instructions alongside the active part’s instructions and actions. It can move between parts as the conversation changes.

We tested that with a parking question. The salon board has a frame for side questions with the instruction “Answer briefly, then return to the booking step.” In the test chat, the customer asked about parking before picking a time. The agent answered and offered the same two slots with the same stylist.

This is also where you can try the edit from the opening example. Enter “Ask for the phone number before the name” in Update… on the contact-details card to rebuild that card. For a lasting change, put the instruction on the board and build again. Then run through booking from service selection to contact details to check the steps around the edit. Flowia’s build and test guide

To try it with a working board, open the salon demo in Flowia Studio, run through a booking and change one instruction.

What’s the hardest instruction in your prompt to change? Tell me where it applies in the comments.

── more in #ai-agents 4 stories · sorted by recency
── more on @flowia studio 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/how-to-break-up-a-mo…] indexed:0 read:5min 2026-12-02 · —