> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # CreateInteractiveFormSession # Package: forms # Namespace: InteractiveFormSessionsService # Method link: https://dev.wix.com/docs/api-reference/crm/forms/interactive-form-sessions/create-interactive-form-session.md ## Permission Scopes: Manage form submissions.: SCOPE.FORMS.MANAGE-SUBMISSIONS ## Introduction Creates an interactive form session for AI-powered conversational form completion. For implementations that require real-time streaming, call [Create Interactive Form Session Streamed](https://dev.wix.com/docs/api-reference/crm/forms/interactive-form-sessions/create-interactive-form-session-streamed.md) instead. --- ## REST API ### Schema ``` Method: createInteractiveFormSession Description: Creates an interactive form session for AI-powered conversational form completion. For implementations that require real-time streaming, call [Create Interactive Form Session Streamed](https://dev.wix.com/docs/api-reference/crm/forms/interactive-form-sessions/create-interactive-form-session-streamed.md) instead. URL: https://www.wixapis.com/forms/ai/v1/interactive-form-sessions Method: POST # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: formId Method parameters: param name: clientTime | type: ClientTime - name: currentTime | type: string | description: Current date and time in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) UTC format. For example, `2023-10-01T12:00:00Z`. - name: timeZone | type: string | description: Browser's timezone identifier for localizing date and time values in IANA timezone format (for example, `Europe/Vilnius`, `America/New_York`). param name: currentValues | type: currentValues | description: Pre-filled values to apply to the form, to initialize the session with existing data. Field keys must match the form schema field names. For example: `{"firstName": "John", "email": "john@example.com", "age": 25}`. These values are merged with any data extracted during the conversation. param name: dryRun | type: dryRun | description: Whether the session should run in dry run mode for testing and preview purposes. In dry run mode, the full conversational flow works normally and form data is extracted, but no actual form submission occurs. param name: formId | type: formId | description: Form GUID to create an interactive session for. | required: true Return type: CreateInteractiveFormSessionResponse - name: interactiveFormSession | type: InteractiveFormSession | description: Created interactive form session. - name: id | type: string | description: Interactive form session GUID. - name: formId | type: string | description: Form GUID. - name: responseChunks | type: array | description: AI assistant response chunks for the interactive form session. - ONE-OF: - name: textDetails | type: TextDetails | description: Conversational text message for display. - name: text | type: string | description: Text content to display. - name: style | type: Style | description: Text formatting style for visual presentation. - enum: - NORMAL: Regular conversational text. - BOLD: Bold text for emphasis. - name: textDataDetails | type: TextDataDetails | description: Structured data extracted from user input and mapped to specific form fields. - name: fieldTarget | type: string | description: Form field identifier that this extracted data maps to. Matches a field name in the form schema. - name: text | type: string | description: Human-readable text representation of the extracted data to display. - name: value | type: Value | description: Structured value for form submission (for example, boolean `true`/`false`, number, or string). This is the actual data value that will be submitted with the form. - ONE-OF: - name: nullValue | type: | description: - name: numberValue | type: number | description: - name: stringValue | type: string | description: - name: boolValue | type: boolean | description: - name: structValue | type: object | description: - name: listValue | type: ListValue | description: - name: values | type: array | description: - name: displayValue | type: string | description: User-friendly display representation of the value (for example, "Yes"/"No" for boolean, "25 years old" for age). Use this to display confirmation of what was extracted from the user's input. - name: multiSelectInputDetails | type: MultiSelectInputDetails | description: Selector for selecting multiple options from a predefined list. - name: fieldTarget | type: string | description: Form field identifier for the multi-select input. - name: options | type: array