Skip to main content

Chat


Use the Chat screen to exchange messages, send attachments, and complete chat-based actions. This screen supports message threads, update views, AI-assisted actions, structured forms, and attachment workflows.



This screen includes:

#ElementDescription
1HeaderDisplays screen title and back navigation
2Chat and Updates tabsSwitches between chat and update views
3Contact options actionOpens additional support contact options
4Message threadDisplays conversation history
5Date dividerGroups messages by date
6Incoming messageDisplays support messages
7Outgoing messageDisplays user messages
8TimestampDisplays message time
9Expand actionExpands collapsed message content
10Message inputUpdates message content
11Attachment actionUploads one attachment
12Send actionSends the current message

AI-Assisted Chat

The chat screen supports AI-assisted interactions through structured forms, predefined actions, and dynamic input layouts.

Available AI capabilities derive from the active chat configuration.


Workflow

  1. Open the Chat screen.
  2. Load the active chat mode.
  3. Load the message thread.
  4. Enter a message, select an AI action, complete a form, or upload a file.
  5. Validate the active input.
  6. Submit the selected action.
  7. Refresh the message thread.
  8. Load previous messages when available.

Validations

ScenarioApp BehaviorSDK Output
Chat loadsDisplay the active message threadPUT /api/v3/messages/user-chat
Chat mode changesReload the selected modePATCH /api/v3/messages/change-mode
Previous messages availableDisplay the load previous messages actionPATCH /api/v3/messages/load-more
Message content changesValidate the message statePATCH /api/v3/messages/send-message/update
File selectedValidate the file statePATCH /api/v3/messages/send-file/update
Form layout changesReload the active input layoutPATCH /api/v3/messages/switch-form
New messages availableRefresh the message threadPATCH /api/v3/messages/update
Request failsDisplay an error statestatus = 405

Actions

ScenarioApp BehaviorSDK Output
Chat tab selectedLoad chat modePATCH /api/v3/messages/change-mode
Updates tab selectedLoad updates modePATCH /api/v3/messages/change-mode
Previous messages selectedLoad older messagesPATCH /api/v3/messages/load-more
Attachment action selectedOpen the file uploaderPATCH /api/v3/messages/open-uploader
Message updatedUpdate the send statePATCH /api/v3/messages/send-message/update
File selectedUpdate the file send statePATCH /api/v3/messages/send-file/update
Form layout selectedSwitch the active input layoutPATCH /api/v3/messages/switch-form
AI action submittedSend the selected AI actionPOST /api/v3/messages/ai-action
AI form submittedSend the completed formPOST /api/v3/messages/send-form
Message submittedSend the messagePOST /api/v3/messages/send-message
File submittedSend the attachmentPOST /api/v3/messages/send-file
Thread updatedDisplay new messagesPATCH /api/v3/messages/update

Endpoint Resources

PUT 

Chat

v3/messages/user-chat

Returns the chat (general or appointment-specific).

Change Active Mode

PATCH 

v3/messages/change-mode

Switches the active chat tab and reloads the messages for the selected mode.

Get Previous Messages​

PATCH 

v3/messages/load-more

Retrieves older messages in the chat thread after the user selects Show previous messages. The update preserves the current scroll position.

Update Send Message

PATCH 

v3/messages/send-message/update

Validates the text input and updates the Send button state as content changes.

Switch Form Layout

PATCH 

v3/messages/switch-form

Switches between AI suggest input form and plain text entry.

Update Chat

PATCH 

v3/messages/update

Displays new messages in the active chat thread immediately after they are sent or received. The update preserves conversation state and scroll position.

Send Action

POST 

v3/messages/ai-action

Sends an AI suggested action in the chat.

Send Form

POST 

v3/messages/send-form

Sends the AI suggested form in the chat.

Save Message

POST 

v3/messages/send-message

Sends a chat message linked to the active appointment.

Parameters

NameTypeRequiredDescription
contentStringYesMessage body text
appointment-idintYesAppointment ID for associating the message
fileFileYesFile attachment, such as PDF, image, or document

Errors

CodeDescription
FIELDS_VALIDATION_ERROROne or more input fields are missing or invalid