Collect answers on an agent page
A page an agent publishes can carry a form: decisions to pick, checks to tick, notes to write. You fill it in where you read it, SupaCloud keeps your answers, and the agent reads them back. It works like the answer forms of Claude Artifacts: your answers can be saved as you type, sent with Apply answers, or both.
Declare a form (what the agent writes)
Section titled “Declare a form (what the agent writes)”The agent marks each control with data-sc-field="<name>". Plain HTML is
enough; no script is needed.
<meta name="supacloud-form" content="both"> <!-- autosave | submit | both -->
<fieldset> <legend>Decision 1: store</legend> <label><input type="radio" data-sc-field="d1" value="b2"> Instance B2 bucket</label> <label><input type="radio" data-sc-field="d1" value="local"> Local disk</label></fieldset><label><input type="checkbox" data-sc-field="check_frames"> Frames open on stage</label><label for="notes">Notes</label><textarea id="notes" data-sc-field="notes" maxlength="2000" required></textarea>- A form holds up to 500 questions unless your operator set another limit
(
SUPACLOUD_ARTIFACT_FORM_MAX_FIELDS, at most 1000); a page with more is refused withform_schema_invalid, naming the limit in force. - Text inputs and text areas hold text (at most 4000 characters a field), a
single checkbox holds yes or no, a group of checkboxes or a multiple
selectholds a set of options, radio buttons and aselecthold one option. - The label of a field is its
data-sc-label, thelegendof its group, itsaria-label, its<label for>, or the label around it — in that order. - A page that builds its controls in a script lists them in a JSON block
<script type="application/supacloud-form+json">, because SupaCloud reads the form from the page as it was published. - SupaCloud refuses a page whose form cannot be answered honestly: a hidden,
password or file field, one name on two kinds of control, or two options with
the same value. The agent gets the reason (
form_schema_invalid) and fixes the page.
Answer a form
Section titled “Answer a form”- Open the document under Artifacts. When the page has a form, a form bar appears next to the version picker: the save status, how many fields you answered, and which required ones are still missing.
- Fill in the page. With autosave, your answers are saved a moment after you stop typing (“Saved 12:03”); they are only your draft. Saved answers of workspace members are visible to the agent, which the bar says.
- Select Apply answers (in the bar, or the page’s own submit button). A review sheet lists every answer as SupaCloud will send it — changed answers first — and Send to agent sends them. Nothing reaches the agent before you confirm in that sheet.
If you open the page in a second window and save there, the bar says “Saved in another window”; select Reload answers to continue with those.


When the agent publishes a new version
Section titled “When the agent publishes a new version”Your answers move to the new version by field name, where the field still exists and the answer still fits. A note tells you how many answers carried over and lists the ones that no longer apply, with your old values to copy. Sent responses always stay with the version you answered.
Answers from people outside the workspace
Section titled “Answers from people outside the workspace”A share link with the role Can comment or Can edit lets its visitors answer too; a Can view link shows the form disabled. A visitor without an account gives a name when sending. Answers from someone outside the workspace wait until a member opens Responses and selects Forward to agent; their free text reaches the agent marked as data, never as instructions.
See the responses
Section titled “See the responses”Responses in the form bar lists what was sent: who, on which version, when, whether it reached the agent and whether the agent acknowledged it (with its note). Workspace owners and admins and the person who launched the document’s task see every response; everyone else sees their own. An owner or admin may delete a single response, for example spam from a public link.
What the agent does with it
Section titled “What the agent does with it”The agent reads the answers with artifact.form.responses.list, the saved
drafts of members with artifact.form.drafts.list, and confirms each response
it acted on with artifact.form.response.ack, optionally with a note you see.
A response sent while the agent’s task runs reaches it at once; after the task
ended, the document’s follow-up policy decides, exactly as for comments.