Menu

Component response shapes

Each entry in a form response's data array is one question's answer. The shape of that answer depends on the component type.

Response structure

Every entry follows this structure:

{
  questionId: string;
  response: {
    type: string; // Component type
    componentShapeVersion?: string; // Optional version (e.g., "2.0")
    headline?: string; // Optional headline
    leadAttribute?: string; // Optional lead attribute
    // ... component-specific fields
  }
}

Identity info

Component Type: "IdentityInfo"

Response Fields

type string

Always "IdentityInfo" for this component type.

componentShapeVersion string

Version of the component shape (e.g., "2.0").

headline string

Optional headline text displayed with the component.

leadAttribute string

Optional lead attribute mapping for CRM integration.

firstName string

First name of the respondent.

lastName string

Last name of the respondent.

emailAddress string

Email address of the respondent.

workEmailAddress string

Work email address of the respondent.

phoneNumber string

Phone number of the respondent.

companyName string

Company name of the respondent.

numberOfEmployees string

Number of employees at the company.

websiteUrl string

Website URL of the company.

title string

Job title of the respondent.

streetAddress string

Street address.

aptSuiteEtc string

Apartment, suite, or other address details.

city string

City name.

state string

State or province.

country string

Country name.

zipCode string

ZIP or postal code.

companyRevenue string

Company revenue range.

profilePictureUrl string

URL to the profile picture.

fullName string

Calculated full name (firstName + lastName).

readExternalStateId string

External state ID being read.

triggerExternalStatesIds array

Array of external state IDs to trigger.

enrichedFields array

Array of field names that were enriched.

enrichmentType string

Type of enrichment applied.

Example:

{
  "questionId": "identity_123",
  "response": {
    "type": "IdentityInfo",
    "componentShapeVersion": "2.0",
    "headline": "Tell us about yourself",
    "firstName": "John",
    "lastName": "Doe",
    "emailAddress": "john.doe@example.com",
    "companyName": "Acme Corp",
    "fullName": "John Doe"
  }
}

Multiple choice question (MCQ)

Component Type: "MultipleOptionsQuestion"

Response Fields

type string

Always "MultipleOptionsQuestion" for this component type.

componentShapeVersion string

Version of the component shape (e.g., "2.0").

headline string

Optional headline text displayed with the component.

leadAttribute string

Optional lead attribute mapping for CRM integration.

choices array

Array of choice objects, each containing:

key string

The choice text/value.

value boolean

Whether this choice is selected.

index number

Index of the choice in the list.

selectedOther boolean

Whether the "Other" option is selected.

Example:

{
  "questionId": "moq_123",
  "response": {
    "type": "MultipleOptionsQuestion",
    "componentShapeVersion": "2.0",
    "headline": "Select all that apply",
    "choices": [
      { "key": "Option 1", "value": true, "index": 0 },
      { "key": "Option 2", "value": false, "index": 1 },
      { "key": "Option 3", "value": true, "index": 2 }
    ],
    "selectedOther": false
  }
}

Component Type: "Dropdown"

Response Fields

type string

Always "Dropdown" for this component type.

componentShapeVersion string

Version of the component shape (e.g., "2.0").

headline string

Optional headline text displayed with the component.

leadAttribute string

Optional lead attribute mapping for CRM integration.

selected string | array

Selected value(s). Can be a single string for single-select dropdowns, or an array of strings for multi-select dropdowns.

Example (Single Select):

{
  "questionId": "dropdown_123",
  "response": {
    "type": "Dropdown",
    "componentShapeVersion": "2.0",
    "headline": "Select a country",
    "selected": "United States"
  }
}

Example (Multi-Select):

{
  "questionId": "dropdown_123",
  "response": {
    "type": "Dropdown",
    "componentShapeVersion": "2.0",
    "headline": "Select countries",
    "selected": ["United States", "Canada", "Mexico"]
  }
}

Short input

Component Type: "ShortInput"

Response Fields

type string

Always "ShortInput" for this component type.

componentShapeVersion string

Version of the component shape (e.g., "2.0").

headline string

Optional headline text displayed with the component.

leadAttribute string

Optional lead attribute mapping for CRM integration.

input string

The text input value entered by the user.

Example:

{
  "questionId": "shortinput_123",
  "response": {
    "type": "ShortInput",
    "componentShapeVersion": "2.0",
    "headline": "What's your name?",
    "input": "John Doe"
  }
}

Long input

Component Type: "LongInput"

Response Fields

type string

Always "LongInput" for this component type.

componentShapeVersion string

Version of the component shape (e.g., "2.0").

headline string

Optional headline text displayed with the component.

leadAttribute string

Optional lead attribute mapping for CRM integration.

input string

The textarea input value entered by the user.

Example:

{
  "questionId": "longinput_123",
  "response": {
    "type": "LongInput",
    "componentShapeVersion": "2.0",
    "headline": "Tell us more",
    "input": "This is a longer text response..."
  }
}

Graphic options

Component Type: "GraphicOptions"

Response Fields

type string

Always "GraphicOptions" for this component type.

componentShapeVersion string

Version of the component shape (e.g., "2.0").

headline string

Optional headline text displayed with the component.

leadAttribute string

Optional lead attribute mapping for CRM integration.

index number

Index of the selected option.

value string

Value/label of the selected option.

Example:

{
  "questionId": "graphic_123",
  "response": {
    "type": "GraphicOptions",
    "componentShapeVersion": "2.0",
    "headline": "Choose a plan",
    "index": 2,
    "value": "Premium Plan"
  }
}

Calendly screen

Component Type: "CalendlyScreen"

Response Fields

type string

Always "CalendlyScreen" for this component type.

componentShapeVersion string

Version of the component shape (e.g., "2.0").

headline string

Optional headline text displayed with the component.

leadAttribute string

Optional lead attribute mapping for CRM integration.

autoscrolls boolean

Whether the component autoscrolls.

eventScheduled boolean

Whether an event was scheduled.

uri string

Calendly URI for the scheduled event.

meetingTime string

Meeting start time (ISO 8601 format).

meetingEndTime string

Meeting end time (ISO 8601 format).

ownerEmails string

Owner email address(es).

guestEmails string

Guest email address(es).

Example:

{
  "questionId": "calendly_123",
  "response": {
    "type": "CalendlyScreen",
    "componentShapeVersion": "2.0",
    "headline": "Schedule a meeting",
    "autoscrolls": true,
    "eventScheduled": true,
    "uri": "https://calendly.com/user/meeting",
    "meetingTime": "2024-01-15T10:00:00Z",
    "meetingEndTime": "2024-01-15T10:30:00Z",
    "ownerEmails": "owner@example.com",
    "guestEmails": "guest@example.com"
  }
}

File uploader

Component Type: "FileUploader"

Response Fields

type string

Always "FileUploader" for this component type.

componentShapeVersion string

Version of the component shape (e.g., "2.0").

headline string

Optional headline text displayed with the component.

leadAttribute string

Optional lead attribute mapping for CRM integration.

fileUrl string

URL of the uploaded file.

Example:

{
  "questionId": "file_123",
  "response": {
    "type": "FileUploader",
    "componentShapeVersion": "2.0",
    "headline": "Upload a file",
    "fileUrl": "https://example.com/uploads/file.pdf"
  }
}

Disclaimer

Component Type: "Disclaimer"

Response Fields

type string

Always "Disclaimer" for this component type.

componentShapeVersion string

Version of the component shape (e.g., "2.0").

headline string

Optional headline text displayed with the component.

leadAttribute string

Optional lead attribute mapping for CRM integration.

check boolean

Whether the disclaimer checkbox is checked.

Example:

{
  "questionId": "disclaimer_123",
  "response": {
    "type": "Disclaimer",
    "componentShapeVersion": "2.0",
    "headline": "Terms and Conditions",
    "check": true
  }
}

Recaptcha

Component Type: "Recaptcha"

Response Fields

type string

Always "Recaptcha" for this component type.

componentShapeVersion string

Version of the component shape (e.g., "2.0").

headline string

Optional headline text displayed with the component.

leadAttribute string

Optional lead attribute mapping for CRM integration.

input string

The reCAPTCHA token/response.

Example:

{
  "questionId": "recaptcha_123",
  "response": {
    "type": "Recaptcha",
    "componentShapeVersion": "2.0",
    "headline": "Verify you're human",
    "input": "03AGdBq25..."
  }
}

Password input

Component Type: "PasswordInput"

Response Fields

type string

Always "PasswordInput" for this component type.

componentShapeVersion string

Version of the component shape (e.g., "2.0").

headline string

Optional headline text displayed with the component.

leadAttribute string

Optional lead attribute mapping for CRM integration.

input string

The password value (should be hashed/encrypted).

Example:

{
  "questionId": "password_123",
  "response": {
    "type": "PasswordInput",
    "componentShapeVersion": "2.0",
    "headline": "Enter your password",
    "input": "hashed_password_value"
  }
}

Password creator input

Component Type: "PasswordCreatorInput"

Response Fields

type string

Always "PasswordCreatorInput" for this component type.

componentShapeVersion string

Version of the component shape (e.g., "2.0").

headline string

Optional headline text displayed with the component.

leadAttribute string

Optional lead attribute mapping for CRM integration.

input string

The created password value (should be hashed/encrypted).

Example:

{
  "questionId": "passwordcreator_123",
  "response": {
    "type": "PasswordCreatorInput",
    "componentShapeVersion": "2.0",
    "headline": "Create a password",
    "input": "hashed_password_value"
  }
}

Turnstile widget

Component Type: "TurnstileWidget"

Response Fields

type string

Always "TurnstileWidget" for this component type.

componentShapeVersion string

Version of the component shape (e.g., "2.0").

headline string

Optional headline text displayed with the component.

leadAttribute string

Optional lead attribute mapping for CRM integration.

token string

Cloudflare Turnstile token.

Example:

{
  "questionId": "turnstile_123",
  "response": {
    "type": "TurnstileWidget",
    "componentShapeVersion": "2.0",
    "headline": "Verify with Turnstile",
    "token": "0.abcdefghijklmnop..."
  }
}

AI chatbot

Component Type: "AiChatbot"

Response Fields

type string

Always "AiChatbot" for this component type.

componentShapeVersion string

Version of the component shape (e.g., "2.0").

headline string

Optional headline text displayed with the component.

leadAttribute string

Optional lead attribute mapping for CRM integration.

summary string

Summary of the conversation.

chatbotMode string

Mode of the chatbot. Can be "Conversation" or "Questionnaire".

history string

Conversation history.

qna string

Q&A data if in questionnaire mode.

Example:

{
  "questionId": "aichatbot_123",
  "response": {
    "type": "AiChatbot",
    "componentShapeVersion": "2.0",
    "headline": "Chat with AI",
    "summary": "User asked about pricing and features",
    "chatbotMode": "Conversation",
    "history": "User: What are your prices?\nAI: Our pricing starts at $99/month..."
  }
}