SaaSClaw
Studio
← Back to Help Center

🧙 The AI Wizard

How to prompt, build, iterate, and troubleshoot.

What Is the Wizard?

The Wizard is SaaSClaw's core building experience. It's a chat interface where you describe what you want, and the AI agent plans, writes, and iterates on your application code in real time.

Getting Started

  1. Create a project (choose a framework or import from your GitHub repo).
  2. Click 🧙 Wizard on the project page to start a session.
  3. Type what you want to build.
  4. Review the agent's tool activity as it reads files, writes code, and runs commands.
  5. Click 🚀 Deploy when you're happy with the result.

📋 Prompting Tips

The better your prompt, the better the output. Here's what works:

❌ Too vague
Build me a website
✅ Specific and clear
Build a landing page for a SaaS product with a hero section, 3 feature cards, a pricing table with 2 tiers, and a CTA email form. Dark theme, modern look.
❌ Assumes context
Add a login page
✅ Specifies details
Add a login page with email + password fields, a "forgot password" link, and validation that shows inline errors. Style it to match the existing dark theme.

Break Big Projects Into Steps

Don't ask the wizard to build everything at once. Start with the core, then iterate:

  1. First message: "Build a task management app with a list view, add/edit/delete tasks, and local storage persistence."
  2. Second message: "Now add a calendar view that shows tasks on their due dates."
  3. Third message: "Add drag-and-drop reordering to the list view."

Each step is smaller, more testable, and easier to debug.

Tell It What Framework You're Using

The wizard detects your framework, but it helps to reference it:

Static Sites & Data Storage

Static sites don't have a server or database, but the wizard knows how to use the SaaSClaw Form API to store data server-side:

Just ask the wizard to store, save, submit, or persist data — it will use the Form API automatically. You can view submissions on the project page under Submissions.

Reference Existing Code

The wizard reads your project files automatically. You can also:

🔧 Troubleshooting

The Agent Seems Stuck

Sometimes the stream goes silent mid-turn. If the wizard indicator shows "thinking" for more than 30 seconds with no tool activity:

  1. Wait — complex operations (large file writes, npm installs) can take time.
  2. If you see ⚠️ Agent seems stuck, click ⟳ Retry to reset the UI.
  3. Click ⏹ End to end the session, then start a new one.

The Agent Wrote Broken Code

Deploy Failed

Preview Shows Errors / 400 / 500

Changes Aren't Showing Up

⌨️ Wizard Controls

🧠 Agent Activity

While the agent works, you'll see tool messages in the chat:

Each tool message shows a preview of what was read/written. Click [collapse] to hide details.

💡 Best Practices