New site
create-siteUse this when the user wants an idea or this conversation turned into a real website or web app with WebTwizz. Creates a new WebTwizz project from a brief, and optionally the user's pictures or a website to start from, and starts building it right away. The card shows the build live; the site opens in WebTwizz for visual editing. Uses the account's WebTwizz credits, and each call makes another new site.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | A short project name of two to four words. | |
| brief | Yes | Everything WebTwizz needs to build the site, written from the conversation: what it is, who it is for, the pages and features, and any look, copy or brand details the user gave. | |
| files | No | Other files from this conversation the site should use: SVG logos, or documents like a menu, price list or notes (PDF, Word or text), which WebTwizz reads for their content. | |
| images | No | Pictures for the site, each as a link WebTwizz can download: photos or a logo the user shared, or a screenshot of a design to match. | |
| template | No | A template slug from list-templates to start from instead of a blank project. | |
| workspace_id | No | The workspace to create it in, from get-account. Leave out for the user's own workspace. | |
| reference_url | No | A website to work from: the user's current site to redesign, or a site they want theirs to look like. WebTwizz opens it and builds from it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| name | Yes | ||
| plan | No | ||
| error | No | ||
| stage | No | ||
| steps | Yes | ||
| checks | No | ||
| job_id | Yes | ||
| latest | No | ||
| status | Yes | queued, starting, building, done, needs_input, failed or stopped | |
| choices | No | When the summary ends by offering numbered options: those options, for the user to pick one | |
| site_id | Yes | ||
| summary | No | ||
| live_url | No | ||
| open_url | Yes | ||
| question | No | ||
| compiling | No | The preview is still updating with the finished change | |
| follow_ups | Yes | Things the user still has to do in WebTwizz, like connecting a database or adding a key | |
| undo_guard | No | Pass as only_if_latest when undoing, so newer work is never lost | |
| preview_url | Yes | ||
| confirmation | No | Set while the build waits for the user to approve something; answer with confirm-action | |
| files_changed | Yes | ||
| preview_ready | Yes | Whether the draft preview is running right now | |
| undo_point_id | No | Pass to restore-version to undo this change; only set while nothing has changed since | |
| live_frame_url | No | ||
| elapsed_seconds | Yes |