getConversation( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Retrieves the conversation for the site visitor calling this method.

This method must be called using the site visitor or site member identity (SDK | REST) to identify the site visitor that is requesting the conversation.

Permissions
Manage Bookings Services and Settings
Manage Events
Manage Portfolio
Access Verticals by Automations
Set Up Automations
Manage Restaurants - all permissions
Learn more about app permissions.
Method Declaration
Copy
function getConversation(): Promise<GetConversationResponse>;
Request
This method does not take any parameters
Returns
Return Type:Promise<GetConversationResponse>
JavaScript
import { conversations } from "@wix/ai-site-chat"; async function getConversation() { const response = await conversations.getConversation(); }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?