> ## Documentation Index
> Fetch the complete documentation index at: https://docs.morf.health/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Form Response

> Event payload details and trigger documentation for Form Response data from Formsort

<img src="https://mintcdn.com/morfhealth/EU2WCxuXGIUQcziR/images/formsort.svg?fit=max&auto=format&n=EU2WCxuXGIUQcziR&q=85&s=cf374a51e18cbaeb1f9c68efac433fa1" alt="images/formsort.svg" width="40" height="40" data-path="images/formsort.svg" />

# Events

## Triggering Webhook Types

The following event types are associated with the Form Response event payload from Formsort.

* `Formsort Step Completed`

<RequestExample>
  ```json Example theme={null}
  {
    "answers": {
      "email_address": "johndoe@example.com",
      "other_variable": "Example Answer",
      "phone_number": "+15551234122"
    },
    "created_at": "2024-07-01T11:29:19+00:00",
    "current_step_id": "get_insurance",
    "current_step_index": "7",
    "finalized": true,
    "flow_label": "intake_form",
    "responder_uuid": "85b7133b-84db-486e-b721-7a63f2dde525",
    "variant_label": "v2",
    "variant_uuid": "91c67401-bfff-4d72-8055-67dfcb9d4da4"
  }
  ```
</RequestExample>

<ResponseExample>
  ```json Description theme={null}
  {
    "answers": "Received Form variable values",
    "created_at": "Time the form response was received by Formsort",
    "current_step_id": "Current flow step ID",
    "current_step_index": "Current flow step index",
    "finalized": "Is the flow finalized?",
    "flow_label": "Flow label",
    "responder_uuid": "Unique form responder ID (v4 UUID)",
    "variant_label": "Flow variant label",
    "variant_uuid": "Flow variant unique ID (v4 UUID)"
  }
  ```
</ResponseExample>

### Payload Field Details

<ResponseField name="Form Response" type="Event Payload">
  <Expandable title="fields" defaultOpen="true">
    <ResponseField name="answers" type="object" required>
      `HI` `ID` `PII` Received Form variable values

      ```json CEL theme={null}
      answers
      ```

      ```json Example theme={null}
      {
      "email_address": "johndoe@example.com",
      "other_variable": "Example Answer",
      "phone_number": "+15551234122"
      }
      ```
    </ResponseField>

    <ResponseField name="responder_uuid" type="string" required>
      Unique form responder ID (v4 UUID)

      ```json CEL theme={null}
      responder_uuid
      ```

      ```json Example theme={null}
      "85b7133b-84db-486e-b721-7a63f2dde525"
      ```
    </ResponseField>

    <ResponseField name="flow_label" type="string" required>
      Flow label

      ```json CEL theme={null}
      flow_label
      ```

      ```json Example theme={null}
      "intake_form"
      ```
    </ResponseField>

    <ResponseField name="variant_label" type="string" required>
      Flow variant label

      ```json CEL theme={null}
      variant_label
      ```

      ```json Example theme={null}
      "v2"
      ```
    </ResponseField>

    <ResponseField name="variant_uuid" type="string" required>
      Flow variant unique ID (v4 UUID)

      ```json CEL theme={null}
      variant_uuid
      ```

      ```json Example theme={null}
      "91c67401-bfff-4d72-8055-67dfcb9d4da4"
      ```
    </ResponseField>

    <ResponseField name="finalized" type="bool" required>
      Is the flow finalized?

      ```json CEL theme={null}
      finalized
      ```

      ```json Example theme={null}
      true
      ```
    </ResponseField>

    <ResponseField name="created_at" type="timing.v1.Timestamp" required>
      Time the form response was received by Formsort

      ```json CEL theme={null}
      created_at
      ```

      ```json Example theme={null}
      "2024-07-01T11:29:19+00:00"
      ```
    </ResponseField>

    <ResponseField name="current_step_id" type="string">
      Current flow step ID

      ```json CEL theme={null}
      current_step_id
      ```

      ```json Example theme={null}
      "get_insurance"
      ```
    </ResponseField>

    <ResponseField name="current_step_index" type="string">
      Current flow step index

      ```json CEL theme={null}
      current_step_index
      ```

      ```json Example theme={null}
      "7"
      ```
    </ResponseField>
  </Expandable>
</ResponseField>
