One of the most impressive things your O-mega agents can do is build complete websites from nothing more than a description. Tell your agent what kind of website you want, and it will generate all the necessary files—HTML for structure, CSS for styling, JavaScript for interactivity—and deliver a working site ready for preview or deployment.
This happens through computer sessions, where your agent writes and executes code in an isolated environment. The agent acts as a developer, translating your vision into actual code, then verifying that the result looks and works correctly before delivering it to you.
How It Works
When you ask your agent to build a website, it kicks off a computer session specifically for code generation. Unlike browser sessions that navigate existing websites, this session is about creating something new.
Your agent starts by analyzing your request to understand what you're looking for—the purpose of the site, the sections it should include, the overall vibe you want. Then it generates the necessary files: an HTML file for the page structure, CSS for visual styling, and JavaScript if the site needs interactivity.
After generating the initial code, the agent renders the website and takes a screenshot to verify the result. If something looks wrong—a blank page, broken layout, missing elements—it automatically revises the code and tries again. This verification loop continues until the website looks correct.
The final files are saved to your agent's file storage, where you can preview them, download them, or deploy them to any hosting service.
Example Prompts
Getting good results starts with clear descriptions of what you want. The more specific you are about the purpose, content, and style of your website, the better the output will match your vision.
Effective prompts for website generation:
- "Build a landing page for a dog walking service with a hero section, pricing cards, and contact form"
- "Create a portfolio website with a dark theme, project gallery, and about section"
- "Generate a simple dashboard with charts showing monthly sales data"
- "Make a restaurant website with a menu section, photo gallery, and reservation form"
Notice how these prompts specify both what the site is for and what sections or features it should include. This guidance helps your agent make appropriate design decisions.
Refining Your Website
Your first generation is rarely the final version—and that's perfectly fine. Once your agent has created an initial website, you can iterate on it through natural conversation.
Refinement prompts work just like your initial request:
- "Change the background color to dark blue"
- "Add a testimonials section below the pricing"
- "Make the navigation sticky so it stays at the top when scrolling"
- "Replace the hero image with a carousel that cycles through three images"
- "Increase the font size of the headings"
Your agent understands that you're modifying an existing project rather than starting fresh. It will update the relevant files while preserving everything else, so changes are incremental rather than requiring a complete rebuild.
Accessing Your Website
After generation, your website files appear in your agent's Files section. This is where all your agent's outputs live, organized by creation date.
From the Files section you can:
- Preview the HTML file directly in your browser to see the rendered result
- Download individual files if you only need specific pieces
- Download the entire project as a package
- Deploy the files to any hosting service (Netlify, Vercel, GitHub Pages, your own server)
The files are standard web files—there's nothing proprietary about them. Any web server or hosting platform can serve them, and any developer can modify them if you need custom changes beyond what your agent provides.
What Gets Created
A typical website generation produces a clean, organized set of files that follow web development best practices.
Standard output includes:
index.html- The main page structure with semantic HTMLcss/style.css- Styling and layout rulesjs/app.js- Interactive functionality (included when the site needs JavaScript)
For more complex sites, you might see additional files: multiple HTML pages for multi-page sites, additional CSS files for different sections, or JavaScript modules for sophisticated interactivity.
The code is production-ready. Your agent writes clean, maintainable code that you could hand off to a developer for further customization if needed.
Related: Computer Sessions Overview | Understanding Deliverables