docs/ai_builder/overview/best_practices.md
A comprehensive guide to working effectively with AI Builder. This guide outlines how to get the most reliable and efficient results when working with the AI Builder inside Reflex Build. The key to success is clarity, structure, and iteration.
Before jumping into the AI Builder, take time to plan your approach. Good preparation leads to better results and fewer iterations.
To save time and get higher-quality prompts, you can feed your full app spec into the AI Builder and ask it to break the spec into structured, build-ready prompts.
The AI Builder can translate your vision into:
Example workflow:
If you have a structured app specification, don't paste the entire document into the builder at once. Break it down into logical sections and feed them in sequence.
Pro tip: Let the AI Builder help prepare prompts:
Paste your full app spec and ask:
This approach — planning first, then building iteratively — lets you move faster and build smarter.
The AI performs best when it receives specific, outcome-driven instructions. Avoid vague, broad prompts.
- Build me an admin dashboard. # <- Bad
+ Create a 2-column layout with a sidebar for navigation and a top navbar. # <- Good
Whenever possible, split large tasks into smaller steps:
Use precise styling language, for example:
- Grid items have small spacing and sharp corners.
+ Add medium spacing between grid items and use large rounded corners on cards.
Avoid subjective terms like "nice," "modern," or "clean." Treat your prompt as interface documentation for the builder.
You can drop in screenshots of websites, dashboards, apps, or even hand-drawn wireframes. The builder will extract layout, design, and functionality ideas from these images.
Tips for images:
Get UI/UX feedback:
Upload a screenshot and ask: "What are 5 things I could do to improve the UI/UX of this?"
Follow up with: Implement items 1, 2, and 4.
Or request specific improvements: Make this more minimal and mobile-first.
Trying to generate your full app in a single prompt almost never works well. Instead, approach your build in clear stages:
At each stage, give feedback and iterate. If the AI builder makes something close, you can say:
- Modal is included and sidebar is static.
+ Remove modal and make sidebar collapsible.
- Buttons vary across pages.
+ Use same button style from home page.
- Card layout differs across sections.
+ Repeat card layout from dashboard section.
To improve your design, ask the builder for more polished layouts, better structure, or more modern styles.
- Layout feels cluttered with small headings and dense sections.
+ Increase heading sizes and spacing between sections for better hierarchy.
- Navigation buttons are inconsistent.
+ Standardize button sizes and colors for consistent UX.
Suggested workflow:
The Knowledge panel lets you provide long-form references that influence how the agent builds your app. Add design systems, style guides, brand guidelines, or architecture rules.
Once added, the builder will try to honor these rules throughout the session, ensuring consistency without repeating instructions.
Try combining Knowledge with your prompts:
Use the style guide in Knowledge to improve this page.
Is the current layout aligned with our design system in Knowledge?
We have an MCP server available for enterprise customers to connect local AI development tools such as Claude Desktop, Windsurf, or Codex.
This enables a hybrid workflow: generate your app and make major changes in the App Builder, then move to local development for detailed refinements and custom functionality.
Enterprise Feature: The Reflex MCP integration is currently only available for enterprise customers. Book a demo to discuss access.
Prerequisites:
Benefits:
For complete setup instructions for Claude Desktop, Windsurf, Codex, and other MCP clients, visit our MCP integration documentation.
With these techniques, the AI Builder becomes a reliable extension of your creative and technical intent.