---
name: fill-dashform-form
description: Fills out a published Dashform form for the user through Dashform's public Open API, without a Dashform account. Reads the form's questions, answers what is already known about the user, asks for the rest, shows a summary, and submits only after the user confirms. Use when given a Dashform form link (a /r/<id> URL) or asked to fill, complete, answer, or submit a Dashform form.
---

# Fill a Dashform form

You fill one published Dashform form on behalf of the person you are working with, the respondent. You read the form's questions from Dashform, answer them with the respondent, and submit their Reply. No credential or account is needed.

## Inputs

Take these from the prompt that handed you the form:

- **Form URL**: the public link, such as `https://getaiform.com/r/abc123`.
- **Public id**: the form's id, the last path segment of the form URL (`abc123` above).
- **API base**: the Open API v1 base URL, such as `https://getaiform.com/api/v1`.

If the prompt gives only the form URL, take the public id from its last path segment and use the origin that served this skill followed by `/api/v1` as the API base. The examples below write these as `$API` and `$FORM`.

## Workflow

Copy this checklist and keep it current:

```
- [ ] 1. Read the live Form Revision
- [ ] 2. Collect the answers
- [ ] 3. Show a summary and get confirmation
- [ ] 4. Submit the Reply
- [ ] 5. Report the result
```

Converse with the respondent in their language throughout: the language they write to you in, or the one they ask for.

### 1. Read the live Form Revision

```bash
curl -sS "$API/organizations/-/forms/$FORM/revisions/live"
```

The response is the Form Revision the form's page serves. The form itself is under `snapshot` (abbreviated here; translated fields also carry bookkeeping fields you can ignore):

```json
{
  "path": "organizations/9b1d.../forms/4c2e.../revisions/7f3a...",
  "alternateIds": ["live"],
  "snapshot": {
    "name": "Project inquiry",
    "description": "Tell us about your project.",
    "i18n": {
      "sourceLocale": "en",
      "supportedLocales": ["es"],
      "translations": {
        "es": {
          "name": { "value": "Consulta de proyecto" },
          "description": { "value": "Cuéntanos sobre tu proyecto." },
          "steps": {
            "budget": {
              "title": { "value": "¿Cuál es tu presupuesto?" },
              "description": { "value": "" },
              "buttonText": null,
              "options": [{ "value": "Menos de 5.000 $" }, { "value": "5.000 $ o más" }]
            }
          }
        }
      }
    },
    "steps": [
      { "key": "start", "type": "start", "title": "Start a project", "description": "", "branches": [] },
      {
        "key": "budget",
        "type": "single-choice",
        "title": "What is your budget?",
        "description": "",
        "options": ["Under $5,000", "$5,000 or more"],
        "required": true,
        "branches": [
          {
            "groups": [[{ "stepKey": "budget", "operator": "equals", "value": "Under $5,000", "negate": false }]],
            "targetStepKey": "end"
          }
        ]
      },
      { "key": "email", "type": "email", "title": "Your email", "description": "", "required": true, "branches": [] },
      { "key": "end", "type": "end", "title": "Thanks!", "description": "We will be in touch.", "branches": [] }
    ]
  }
}
```

A `404` means the form is not published. Tell the respondent and stop.

**The respondent's language.** When `snapshot.i18n.translations` has an entry for the respondent's language (`es`, `pt-BR`, and so on), show them the form's text from that entry; any field missing or empty there falls back to the source text. The entry translates the form's `name` and `description`, and each step's translation sits under its `key`:

- `title` and `description` translate the step's own.
- `buttonText` translates a `legal` step's `acceptanceText`, and the `buttonText` of `start`, `statement`, and `end` steps.
- `options` translate by position: a choice, `dropdown`, or `ranking` step's `options`, a `picture-choice` step's `choices[].label`, and an `nps` step's `lowLabel` (`options[0]`) and `highLabel` (`options[1]`).

Answers are always submitted in the source text: when the respondent picks a translated option, submit the source option at the same position.

**The steps.** The form's path runs through `snapshot.steps` like this:

- It begins at the first step that is neither `start` nor `end`. The `start` step only introduces the form: it takes no answer, and its `branches` play no part.
- A `statement` step is text to pass on to the respondent; it takes no answer.
- Every other step that is not an `end` step is a question, answered under its `key`. `required: true` means the Reply is refused without it.
- After each step, its `branches` decide where the path goes: the first branch whose condition groups match the answers so far jumps to its `targetStepKey`. A group matches when all its conditions do, and a branch matches when any of its groups does. A jump to an `end` step finishes the form there; a jump to the literal `end` finishes it on the first `end` step.
- When no branch matches, the path goes on to the next step that is neither `start` nor `end`, passing over any `end` steps in between. After the last such step, the form finishes on the first `end` step.

Ask only the questions on the respondent's path; required questions off it need no answer.

### 2. Collect the answers

Answer what you already know about the respondent from this conversation, their files, and your memory of them. Ask for everything else, a few questions at a time, in the order the steps come. Never invent an answer: when you are unsure, ask. Leave an optional question unanswered when the respondent declines it.

Every answer is a string, in the format its step type takes:

| Step type | Answer |
| --- | --- |
| `open-ended`, `phone` | Free text |
| `email` | An email address |
| `website` | An HTTP(S) URL |
| `date` | `YYYY-MM-DD` |
| `number` | A number between the step's `min` and `max` when they are not `null` |
| `rating` | `1` through `5` |
| `scale` | `1` through `10` |
| `nps` | `0` through `10`; `lowLabel` and `highLabel` describe the two ends |
| `yes-no` | `Yes` or `No` |
| `legal` | `Accepted`, only after the respondent has read the step and accepts its `acceptanceText` |
| `single-choice`, `dropdown` | Exactly one of the step's `options` |
| `multiple-choice` | One or more of the step's `options`, joined by newlines (`\n`) |
| `picture-choice` | A `choices[].label`; several joined by newlines when `multiple` is `true` |
| `ranking` | Every one of the step's `options`, each once, joined by newlines in the respondent's order |
| `file-upload` | Not possible through this API |

Option answers must match the source option text exactly, character for character.

A `file-upload` question cannot be answered here. If one is required on the respondent's path, tell them, give them the form URL to fill it themselves, and stop.

### 3. Show a summary and get confirmation

Before submitting, show the respondent every answer you will send, each beside its question as they saw it, in their language. Ask them to confirm or correct it. Submit only after they explicitly confirm; change what they correct and show the summary again.

### 4. Submit the Reply

```bash
curl -sS -X POST "$API/organizations/-/forms/$FORM/revisions/live/replies:submit" \
  -H "Content-Type: application/json" \
  -d '{
    "reply": {
      "answers": {
        "budget": "$5,000 or more",
        "email": "ada@example.com"
      },
      "respondent": {
        "name": "Ada Lovelace",
        "email": "ada@example.com",
        "sentiment": "neutral"
      }
    }
  }'
```

- `answers` is keyed by step `key`.
- `respondent` is optional. When you send it, include all three fields: the respondent's `name` and `email` (an empty string when unknown) and a `sentiment` of `positive`, `neutral`, or `negative` that reflects how the conversation went.

The submitted Reply is final: nothing can change it afterwards, so submit once.

### 5. Report the result

A `200` answers with the stored Reply. Tell the respondent it was received. The Reply's `endStepKey` names the `end` step their answers reached: share that step's `title` and `description` in their language, and its `buttonUrl` and `links` when it has them. Ending copy may contain placeholders like `{{answer:email}}` or `{{section:summary}}`; only Dashform's own page fills them in, so describe what they stand for in plain words and never show the braces.

When the request fails, the JSON body's `message` says why:

| Status | Meaning | What to do |
| --- | --- | --- |
| `400` | An answer is missing, unknown, or in the wrong format | Fix the answer the message names with the respondent, confirm again, and resubmit |
| `404` | The form is not published | Tell the respondent |
| `402`, `429` | The form is not taking Replies right now | Tell the respondent and give them the form URL to try later |

Never retry with guessed answers. On any other failure, give the respondent the form URL so they can fill it in themselves.
