Creating a Sandcastle
This guide walks you through building a sandcastle from scratch. Everything happens in chat — you describe what you want, and the AI plans, scaffolds, and iterates until you have a working app.
Before you begin
- You need to be signed in to an Assist workspace.
- You need access to the AI chat.
- Have a clear idea of what the app should do and what data it should store. The more specific your first prompt, the better the plan.
Steps
1. Describe the app you want
Open the AI chat and describe the app in plain language. Be specific about:
- What the app is for and who will use it.
- What data it should track (these become collections).
- What views or pages it should have.
- Any workflow or status progression the data follows.
Example:
"Build me a sandcastle called 'Purchase Approvals'. It should track purchase requisitions through a workflow: Requested, Manager Approved, Finance Approved, Ordered, Received. Each requisition has a requester name, description, amount, vendor, priority, and a notes field. I want a kanban view grouped by status, a table view with filters, and a detail page for each requisition where people can add comments and change the status."
2. Review the plan
The AI generates a plan: which collections to create, what fields each collection has, which views to build, and the order of implementation. Read the plan and push back on anything that doesn't match your vision.
"Add a 'budget_code' field to each requisition. And I want the kanban cards to show the amount and requester, not just the description."
Iterate until the plan looks right. The plan is cheap to change; the scaffold is more work to redo.
3. Let the AI scaffold
Once you approve the plan, the AI scaffolds the app. This creates:
- The sandcastle record in your workspace.
- The data collections with their schemas.
- Seed data so you can see the app working immediately.
- A linked subagent with access to the collections.
- The first version of the app code.
Scaffolding takes a few seconds. When it completes, the AI gives you a link to the preview.
4. Preview the app
Click the link (or go to Sandcastles in the navigation and find your new app). The preview page renders the live app. You should see the seed data populating the views the AI built.
Look at the app critically:
- Does the layout make sense?
- Are the right fields showing on each view?
- Is the status workflow correct?
- Are the filters and sort options useful?
5. Iterate
Tell the AI what to change. Each edit creates a new version, so you can always roll back.
"Move the total amount to the top-right of each kanban card. Make the priority field a colored badge — red for urgent, yellow for high, green for normal."
"Add a filter bar at the top of the table view. I want to filter by status, priority, and requester."
"On the detail page, add a comment thread at the bottom. Each comment should store the author name, timestamp, and text."
The AI makes targeted code edits — one feature or view per edit — and you can preview after each one.
6. Share with your team
Once the app looks right, share it through the workspace permissions system. Go to Workspace > Permissions > Resources, find the sandcastle, and grant access to the people or groups who should use it.
What was created
After these steps you have:
- A working React app at
/sandcastle/<id>/preview. - Persistent data collections that survive across sessions.
- A linked subagent that can read/write the data, run on a schedule, or be wired to Slack.
- A full version history you can roll back through.
Next steps
- Editing a sandcastle — keep refining.
- Managing sandcastle data — view, edit, and reset collections.
- Subagents overview — wire the linked subagent to a schedule or Slack channel.
- Troubleshooting