DEV Community

Ming Tian
Ming Tian

Posted on AI-assisted

Why I Built an AI Flyer Generator Around Editable Fields Instead of Prompts

I am building Postrai, an AI flyer generator for small businesses.

The problem I kept seeing was simple. Many AI design workflows end with a good-looking image, but a real flyer contains information that changes often. A price changes. A promotion expires. A product photo is replaced. A phone number or store address needs to be updated.

When all of that information is baked into a flat image, even a small change can mean generating the whole design again.

That led me to a different approach. Instead of treating a flyer as one image, I wanted to treat it as a structured set of editable business fields.

Start with a reference and a real brief

The workflow starts with either a reference flyer or a merchant template.

A reference design gives the system useful visual direction. It shows the reading order, the relationship between the headline and the product, the amount of space reserved for an offer, and the general balance of the composition.

The user then adds the information that actually belongs in the campaign.

This can include the business name, headline, product photo, logo, price, offer, campaign date, location, contact details, and call to action.

The goal is to use the reference as design direction while rebuilding the campaign around the user’s own content.

Analyze the design before generating anything

The first important step is reference analysis.

The system looks for text regions, product areas, logos, background treatment, visual hierarchy, and other reusable parts of the composition. It also tries to understand which fields are likely to change in a new campaign.

This step matters because a business owner usually knows the campaign information already. They should not have to describe every layout decision in a long prompt.

A structured analysis gives the workflow a clearer starting point. It can identify a headline, supporting copy, an offer block, a product image, a brand mark, and a call to action as separate editable elements.

That makes later revisions much easier to reason about.

Replace the campaign fields

Once the reference has been analyzed, the user can replace the original content with their own.

For example, a seasonal drink flyer might use a reference layout with a large product image, a short headline, a price block, and a bottom call to action. The user can keep that visual relationship while changing the drink photo, product name, price, date, and ordering instructions.

The important detail is that the business information remains visible as fields during the workflow.

If the price changes from 12 dollars to 10 dollars, the user can update the price directly. If the promotion ends on Friday, the date can be changed before export. The final review happens on the content that customers will actually see.

Generate for the destination

A campaign rarely has only one output size.

A printed flyer, an Instagram portrait post, a Story graphic, and a square product image all need different proportions. The workflow therefore lets the user choose the target format before generating the final design.

The layout can then be adjusted to keep the main message, product image, offer, and call to action inside a usable area.

The output is still a visual design, but the process keeps the campaign details available for review and editing.

The tradeoffs

A blank canvas gives complete freedom, but it also asks a small business owner to solve typography, spacing, image cropping, hierarchy, and format decisions before the campaign can move forward.

A prompt-only workflow is faster to start, but it can make important business information fragile. Prices, dates, addresses, and promotional claims are easy to lose inside a generated image.

A reference-driven workflow makes a different tradeoff. It gives up some open-ended exploration in exchange for a more predictable starting structure.

That works well for recurring marketing tasks. A restaurant can reuse a lunch-special layout. A retailer can adapt a new-arrivals design. A local service business can update availability and contact information without recreating the whole composition.

Where the workflow still needs human judgment

Reference analysis is useful, but it is not perfect.

A low-resolution reference can make text and image boundaries difficult to identify. A crowded composition can contain overlapping elements. A long headline may need manual shortening. A generated product image may also require a different crop or position.

The user still needs to review the final result before publishing. Prices, dates, addresses, product claims, phone numbers, and image rights should be checked manually.

The reference image also needs to be used lawfully. It should provide visual direction, while the final campaign uses content and assets that the business has permission to publish.

Why editable output matters

The useful result is not only the first generated image.

A campaign changes after the first draft. A discount is updated. A product sells out. A new photo becomes available. The same promotion needs a different format for another channel.

Keeping the important fields editable makes those changes part of the workflow instead of forcing the user to start over each time.

That is the idea behind Postrai. The project is available at Postrai.

I am still learning where this approach works best and where a blank canvas remains the better tool. Feedback from people building design, marketing, and AI products is welcome.

This article was written with AI assistance and reviewed by the author.

Top comments (0)