/apps/<slug> (inside the Platform) or /p/<slug> (standalone, optionally public).
It ties together three existing references:
Pages
Authoring React pages and the host contract
Automations
Backend logic and webhook endpoints
Deployment
The Deploy modal, sharing, and embedding
What You’ll Build
A reusable page — for example an event “Request a demo” form — with:- A React UI authored either in Builder or locally with the
starter-sparepo. - A backend automation (webhook endpoint) that receives the form submission.
- Workspace configuration for secrets (API keys) read by the automation.
- A published URL, served either to authenticated users or to anyone (public).
Procedure
Prerequisites
You need a workspace in AI Studio (open Create → Builder and create one if needed) and the rights to edit it. Pick a clear slug for the workspace — it becomes part of the published URL (
/apps/<slug> or /p/<slug>).Author the React app
Choose the workflow that fits you. Both produce the same kind of bundle and use the same host contract — the default export of
src/App.tsx is what the platform renders, and it receives { sdk, user, workspace, backends, agents } as props.- In Builder
- Locally (starter-spa)
- In the Builder sidebar, open Pages.
- Use + Page → New SPA to seed a starter React app (
src/App.tsx,src/main.tsx,src/styles/globals.css,index.html,package.json,vite.config.ts). - Switch to Code to edit the source, and Preview to compile and render it live.
- Click Save to sync the source files to the workspace.
Wire a backend automation
Give the page a backend to call. Create an automation exposed as a webhook endpoint:From the React app, POST to that endpoint (the SDK exposes the API host):See Automations for endpoints, events, and fetch.
Configure secrets and config
If the automation needs credentials (an external API key, an email service, …), store them in the workspace configuration rather than in code. Declare them under See Workspaces for configuration and secrets.
config.value and read them in automations with {{config.*}}:Build and deploy
Turn the source into a deployed bundle.
- In Builder
- Locally (starter-spa)
Click Deploy in the Builder header bar. The Publish step syncs unsaved source, builds the bundle, and registers it as the workspace’s current deployed bundle with a new version.
Choose how it opens and who can access it
In the Deploy modal, two settings decide the published experience:Display mode — “How should this app open?”
Access mode — “Who can access this app?”
| Option | URL | Result |
|---|---|---|
| In Platform | /apps/<slug> | Wrapped in the Platform menu/shell. |
| Standalone | /p/<slug> | No Platform menu — the bundle owns the viewport and ships its own theme. |
| Option | Result |
|---|---|
| Sign-in required | Visitors are redirected to sign in first. |
| Public | Anyone can open it — no Prisme session needed. |
A standalone, public combination (
/p/<slug> + Public) is the right choice for an open landing page — e.g. a QR code at an event booth that anyone can scan and submit without logging in.Get the URL or embed it
The modal surfaces the resulting links:
- Platform URL —
https://<platform-host>/apps/<slug>(In Platform). - Public URL / Standalone URL —
https://<platform-host>/p/<slug>(Standalone).
data-* attributes.Next Steps
Pages
Host contract, preview, and live updates
Automations
Webhooks, events, and orchestration
Deployment
Versioning, sharing, and embedding