Forms and survey questions
A Smart Schedule's definition includes two separate question collections:
| Collection | Purpose | Used by |
|---|---|---|
matchingForm | Drives host routing — answers determine which hosts are eligible | /availability (required), /scheduled-meetings (required, echoed) |
surveyQuestions | Informational pre-booking questions | /scheduled-meetings (optional) |
Both are captured on the schedule definition and submitted with answers at booking time. Only the matching form influences which host is offered.
MatchingForm
The intake form whose responses drive routing. Submit answers as formValues on /availability and /scheduled-meetings.
The MatchingForm schema
Fields
fields list
The form's questions, in display order. Each is a MatchingFormField.
{
"fields": [
{
"key": "fld_cmVnaW9u",
"label": "Region",
"type": "select",
"options": [
{ "value": "opt_TkEtRWFzdA", "label": "NA-East" },
{ "value": "opt_TkEtV2VzdA", "label": "NA-West" },
{ "value": "opt_RU1FQQ", "label": "EMEA" }
],
"required": true
}
]
}MatchingFormField
A single question on the matching form.
Fields
| Attribute | Type | Description |
|---|---|---|
key | string | Stable, opaque identifier for this question, prefixed fld_. Use it as the key when submitting answers on formValues. |
label | string | The question text to display to the end-user. |
type | string | The field's shape. Currently select or multi-select; treat the list as open (text, long-text, email, phone, number and date may also appear) and handle an unknown type gracefully. |
options | list | Always present. The allowed answers, each { value, label }: submit the value (prefixed opt_) and display the label. Empty for free-text types. |
required | boolean | Whether an answer must be provided. |
Submitting form values
formValues on /availability and /scheduled-meetings is a map keyed by MatchingFormField.key (fld_…), with the chosen option's value (opt_…). Never send labels — they are display text and are rejected.
Single-value fields
A select field takes exactly one value. Sending an array is rejected, even with one element.
Multi-select fields
For a multi-select field, pass an array of the selected option values. A single value on its own is also accepted, and duplicates are ignored.
All values must be strings.
Validation
/availabilitychecks answers against the form: unknown keys, unknown values, missing required answers, and lists on single-select fields return422 form-validation, with afieldErrors[]array of{ key, message }. Missing required answers are allowed when the request sendshosts./scheduled-meetingsruns the same checks, reporting failures as422 booking-validation-failedon keys of the formformValues.<fld_…>. It also compares the answers with the ones the slot was offered against: a difference returns422 form-values-mismatch.
Unknown keys are rejected.
{
"formValues": {
"fld_cmVnaW9u": "opt_TkEtRWFzdA",
"fld_c2l6ZQ": "opt_NTEtMjAw"
}
}{
"formValues": {
"fld_dG9waWNz": ["opt_T25ib2FyZGluZw", "opt_TWlncmF0aW9u"]
}
}SurveyQuestions
Questions asked before booking. Not used for routing. Answers are stored on the meeting and appear in the confirmation email, the calendar event, and the booking webhook.
The SurveyQuestions schema
Returned as a flat list on the schedule:
Fields
| Attribute | Type | Description |
|---|---|---|
key | string | Identifier used when submitting the answer on /scheduled-meetings. |
label | string | The question text to display. |
type | string | Always long-text — survey questions take free-text answers. |
required | boolean | Whether an answer must be provided to complete booking. |
Survey questions are keyed by text
The key is derived from the question text: lowercased, with each run of characters other than letters and digits replaced by a single - (so "What brings you here today?" becomes what-brings-you-here-today).
- Renaming a question changes its
key, and bookings that send the old key fail with422. Read the keys from the schedule instead of hardcoding them. - Reordering questions does not change their keys.
- Two questions with the same wording share one key.
{
"surveyQuestions": [
{
"key": "what-brings-you-here-today",
"label": "What brings you here today?",
"type": "long-text",
"required": false
},
{
"key": "how-did-you-hear-about-us",
"label": "How did you hear about us?",
"type": "long-text",
"required": false
}
]
}Submitting survey answers
surveyResponses on /scheduled-meetings is a map keyed by the survey question's key, not an array:
Use the key exactly as the schedule returns it — sending the question text itself is rejected as an unknown key.
Unknown keys are rejected with 422 booking-validation-failed. Required questions that receive no answer, or only whitespace, are also rejected, reported once per missing question in the response's fieldErrors[] array.
{
"surveyResponses": {
"what-brings-you-here-today": "Pipeline visibility",
"how-did-you-hear-about-us": "Referral from a colleague"
}
}