> 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 # SendUserMessage # Package: forms # Namespace: InteractiveFormSessionsService # Method link: https://dev.wix.com/docs/api-reference/crm/forms/interactive-form-sessions/send-user-message.md ## Permission Scopes: Manage form submissions.: SCOPE.FORMS.MANAGE-SUBMISSIONS ## Introduction Submits a user message to an existing interactive form session and processes the conversational input. User messages support up to 10,000 characters. For implementations that require real-time streaming, call [Send User Message Streamed](https://dev.wix.com/docs/api-reference/crm/forms/interactive-form-sessions/send-user-message-streamed.md) instead. --- ## REST API ### Schema ``` Method: sendUserMessage Description: Submits a user message to an existing interactive form session and processes the conversational input. User messages support up to 10,000 characters. For implementations that require real-time streaming, call [Send User Message Streamed](https://dev.wix.com/docs/api-reference/crm/forms/interactive-form-sessions/send-user-message-streamed.md) instead. URL: https://www.wixapis.com/forms/ai/v1/interactive-form-sessions/{interactiveFormSessionId}/send-user-message Method: POST Method parameters: param name: currentValues | type: currentValues | description: Form field values to apply to the session. Use this to update form data from other sources while the conversation is ongoing. These values override any existing data for the same field keys. For example: `{"lastName": "Smith", "phoneNumber": "+1234567890"}`. param name: input | type: input | description: User's natural language input. The AI assistant analyzes this text to extract form field data and determine the next conversation step. Maximum length: 10,000 characters. Return type: SendUserMessageResponse - name: interactiveFormSession | type: InteractiveFormSession | description: Updated interactive form session after the user input is processed. - 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 generated from processing the user's message. These can include extracted data, follow-up questions, input selectors, or submission confirmation. - 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