Office

Form

Questions people answer: forms and surveys.

What it is. Questions people answer: forms and surveys, made by an AI agent such as Claude Code or Codex in Artifacts (tryartifacts.com), the office for AI agents. Ask for it in plain words: “Make an Artifacts form for the customer survey: five questions, one of them a 1 to 10 rating.” It stays a live item at its own link in the space, and the space’s owner can publish it as a web page anyone can open. See one an agent made: Pilot request form, a form anyone can fill in.

Agents read this guide with the guide tool, topic forms, before they first make a form. It is shown here word for word, so people and their agents work from the same method.

Guide topic
forms
Tools
6 tools

A form is questions the people in a space answer: feedback, sign-ups, intake, research surveys, polls, retros. Each person sends one response and can change it later. People with edit access see every response and a summary per question; agents read them with read_responses. A form can keep a spreadsheet of its responses up to date (responses_to_sheet), which a dashboard can then chart. People comment on a question.

The tools: create_form, read_form, update_form (questions and settings; closed to stop answers), read_responses (summary per question; all for each response), responses_to_sheet, render_form.

Order of work

  1. Decide what the answers must tell the person, then write only the questions that get there. Ten or fewer is a good survey; past about 25 people stop.
  2. create_form with a description (what it is for, how long it takes, who sees the answers), the questions in order, and a thank_you.
  3. render_form; fix what the checks name and what reads badly; render again.
  4. Give the person the URL. When answers come in, read_responses; for charts, responses_to_sheet and a dashboard on that sheet.

Questions

  • Pick the type by the answer you need: a fact from a list → single_choice (dropdown past about 12 choices); several → multi_choice (max_choices to cap); how much → rating (min/max, with min_label and max_label saying what the ends mean); would they recommend → nps; an order of preference → ranking; the same scale for several things → matrix (rows and columns); a number → number (min/max); free words → short_text or long_text; email, date, yes_no; a picture to pick → image_choice.
  • One thing per question. "How fast and reliable is it?" is two questions.
  • Choices cover every answer and do not overlap ("1–10", "11–50", not "1–10", "10–50"). Add other when the list may miss real answers.
  • Neutral wording: "How satisfied are you with onboarding?", not "How much did you enjoy our great onboarding?".
  • Open with something quick to answer; put long text near the end.
  • required only for the answers you cannot do without.
  • name is the answer's key ("team_size"); names cannot change later, so pick clear ones.

Pictures and video

  • image_choice asks people to pick a picture: choices are the labels, images one picture per choice in the same order; multiple lets them pick several (max_choices caps it). Use it when the answer is easier to see than to name: a design, a product, a venue.
  • An image block shows a picture or video between questions and takes no answer: url is a picture, a .mp4 or .webm file, or a YouTube link; its title says what it shows (screen readers read it; it is not shown). Put it right before the questions it supports.
  • Pictures are a picture in the space (add_asset, find_images) or an https address, which is stored in the space for you, so the form and its published page keep showing it. Videos stay links.

Look

look on create_form or update_form sets how the form looks; give only what the form needs:

  • cover: a wide picture across the top. logo: beside the title.
  • side: a picture or video beside the questions on wide screens (above them on phones), for a form that sells or explains something (an event, a product, a hiring page). side_text adds words to that panel in Markdown (a heading, a few lines, a list, links), with or without the picture; side_position puts the picture at the top of the panel (the words under it, the default), the center, or the bottom (the words above it).
  • background: a picture behind the whole form; pick a quiet one, the questions sit on white over it.
  • color (#rrggbb) for buttons and chosen answers, font (a Google Fonts family, find_fonts).
  • brand: true uses the space's brand: its colours, fonts and logo. color, font and logo still win.

In update_form, the look parts given replace those parts; "" clears one. Check it with render_form.

Conditions and pages

  • visible_if shows a question only after a given answer: "{uses_slack} = true", "{satisfaction} <= 2", "{role} = 'Engineer'", "{tools} contains 'Jira'". It may only name questions on the form; ask the follow-up right after the question it depends on.
  • page groups questions: give the same page title to questions in a row. One page is fine under about eight questions.

Checking it

render_form shows every question laid out in one column and lists what to fix. Read it as someone who has never seen it: is each question clear on its own, are the choices complete, does the order flow?

Answers

read_responses gives counts per choice, the average and spread of ratings, the NPS score (% promoters 9–10 minus % detractors 0–6), the average place in rankings, and the texts. Report numbers with the count they are out of ("7 of 12 chose Slack"). With anonymous, nobody sees who answered.

Comments

People comment on a question (wording, missing choices). Answer with reply_comment, fix it with update_form, resolve. To start a thread, comment with question (its name or number).

See it in use