Imagine Building Your Dream Home from Scratch
Picture this: You're planning a new house and have a clear vision—a cozy 3-bedroom, 2-bathroom setup with an open-concept kitchen flowing into the living room, a dedicated home office, and plenty of natural light. But scouring websites for floor plans feels endless. What if an AI could handle the search, filtering, and even downloading for you? That's exactly what happened in a recent demo using Anthropic's Claude 3.5 Sonnet with its powerful 'computer use' tool.
This isn't just theory; it's a practical, real-world application that turns Claude into a virtual assistant capable of browsing the internet like a human. In this guide, we'll walk through the process step by step, recreate the scenario, and explore how you can adapt it for your own projects. Whether you're an aspiring homeowner, architect, or real estate enthusiast, this approach saves hours and delivers precise results.
What Makes Claude's Computer Use a Game-Changer?
Claude's computer use feature, introduced by Anthropic, allows the AI to interact with your computer screen—taking screenshots, moving the mouse, typing, and clicking—just like you would. It's perfect for tasks requiring web navigation, which traditional chatbots can't handle.
In our floor plan hunt, Claude acts as an autonomous agent. You give it a detailed description, and it:
- Launches a browser.
- Performs targeted image searches.
- Analyzes screenshots to evaluate matches.
- Downloads the best options.
This demo draws from Anthropic's official computer use demo repository, where you can find the full code and prompts to try it yourself. No coding expertise needed to start—the repo provides ready-to-run examples.
Setting the Scene: Your Floor Plan Specifications
Let's use a realistic example based on the demo. You want:
- 3 bedrooms: One primary suite with ensuite bath, two secondary rooms sharing a bath.
- Open kitchen: Island seating, adjacent dining and living areas.
- Home office: Quiet space near the entrance.
- Desirable extras: Mudroom, pantry, lots of windows for light, total around 2,000 sq ft.
This mirrors common homeowner requests. Now, craft a prompt that guides Claude precisely.
Crafting the Perfect Prompt for Claude
Prompt engineering is key here. The original prompt is meticulous, ensuring Claude stays on task without hallucinating. Here's a rewritten version in conversational style, but you can copy-paste it directly:
You are an expert real estate assistant tasked with finding the perfect floor plan image matching this exact description:
- 3 bedrooms, 2 bathrooms
- Open concept kitchen flowing into living/dining room with island seating
- Dedicated home office near entrance
- Mudroom/laundry near garage
- Walk-in pantry
- Primary suite with ensuite and walk-in closet
- Ample natural light with many windows
- Roughly 1800-2200 sq ft
Steps to follow:
1. Open Google Images.
2. Search for: "3 bedroom 2 bath floor plan open kitchen home office"
3. Scroll and find the top 5 images that BEST match ALL criteria above. Ignore mismatches.
4. For each top match, take a screenshot, then right-click and save image as "floorplan1.png", "floorplan2.png", etc.
5. Rank them 1-3 best to worst among the top 3.
6. Provide links if available and a brief reason for each ranking.
Use tools only as needed. Confirm each step with a screenshot.
Why does this work so well?
- Specificity: Lists must-haves to filter noise.
- Step-by-step: Prevents Claude from jumping ahead.
- Tool guidance: References screenshots and downloads explicitly.
- Verification: Ranks with reasons for transparency.
Watching Claude in Action: A Play-by-Play
Once you paste the prompt into Claude (via the Anthropic console or API with computer use enabled), magic happens. Here's what unfolds in real-time, based on the demo:
Step 1: Browser Launch and Initial Search
Claude opens a browser tab to Google Images and types the search query: "3 bedroom 2 bath floor plan open kitchen home office". It scrolls through results, analyzing thumbnails.
Pro Tip: If results are off, Claude refines the query, e.g., adding "modern" or "with mudroom".
Step 2: Screenshot Analysis and Selection
For promising images, Claude takes a screenshot of the page, zooms in, and evaluates:
- Does it have the open kitchen? Check.
- Home office present? Yes.
- Bedroom/bath count? Spot on.
It identifies three standouts:
- A clean, modern layout with all features.
- Similar but slightly smaller office.
- Open plan with great flow.
Step 3: Downloading the Gems
Claude right-clicks each image → "Save image as" → Names them sequentially (floorplan1.png, etc.). It confirms saves via screenshots.
Final Output
Claude delivers:
- Rankings with justifications.
- File paths to downloads.
- Original source links for credit.
In the demo, it nailed three high-quality matches in under 5 minutes—faster than manual searching!
Real-World Applications Beyond Floor Plans
This isn't limited to home design. Adapt for:
- Real Estate Agents: Quickly source comps or staging visuals.
- Architects: Prototype ideas by pulling inspirations.
- Renovations: Find layouts for additions.
Example Variation: Hunting apartment layouts? Swap to "1 bed 1 bath open studio floor plan NYC".
Code Snippet for Developers: If integrating via API, use Anthropic's SDK:
import anthropic
client = anthropic.Anthropic()
message = client.messages.create(
model="claude-3-5-sonnet-20241022",
max_tokens=1024,
tools=[{"type": "computer_use"}],
messages=[{"role": "user", "content": your_prompt}]
)
Check the GitHub repo for full setup.
Tips for Success and Common Pitfalls
- Enable Computer Use: Only available in select interfaces; ensure beta access.
- Be Patient: Web tasks take 1-10 minutes.
- Refine Iteratively: If misses, follow up: "Ignore that; focus on mudroom."
- Privacy Note: Claude sees your screen—close sensitive tabs.
- Scale Up: Combine with vision models to critique downloaded plans.
Potential Enhancements:
- Integrate Google Custom Search API for pro results.
- Use OCR on images to extract dimensions.
- Chain with design tools like AutoCAD imports.
Why This Matters in 2024
AI agents like Claude are shifting from chat to action. This floor plan demo showcases reliability—95% match rate in tests—proving it's ready for daily use. As computer use evolves, expect integrations with Figma or HomeByMe for editable plans.
Ready to try? Head to Anthropic's playground, grab the repo, and start searching. Your perfect layout awaits—no more endless scrolling!
(Word count: 1,128)
<div style="text-align: center; margin-top: 2rem;"> <a href="https://www.deeplearning.ai/the-batch/finding-a-floor-plan/" target="_blank" rel="noopener noreferrer" class="view-full-resource-btn" style="display: inline-block; background-color: #f97316; color: white; padding: 12px 24px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: background-color 0.2s;">View Full Resource</a> </div>
Stay ahead of the AI curve
The most important updates, news, and content — delivered in one weekly newsletter.