import { BodylessConversation } from '@thoughtspot/visual-embed-sdk';
const conversation = new BodylessConversation({
worksheetId: 'worksheetId',
});
const { container, error } = await conversation.sendMessage('show me sales by region');
// append the container to the DOM
document.body.appendChild(container); // or to any other element
BodylessConversation
Table of Contents
Create a conversation embed, which can be integrated inside chatbots or other conversational interfaces.
Version : SDK: 1.33.1 | ThoughtSpot: 10.5.0.cl
Constructors🔗
new BodylessConversation(viewConfig: BodylessConversationViewConfig ) : BodylessConversation
Function Parameters
- viewConfig
-
-
viewConfig: BodylessConversationViewConfig
-
Returns
Defined in : embed/bodyless-conversation.ts
Methods🔗
sendMessage🔗
sendMessage(userMessage: string ) : Promise< {container: undefined , error: any } | {container: HTMLDivElement , error: undefined } >
Function Parameters
- userMessage
-
-
userMessage: string
-
Returns
Promise< {container: undefined , error: any } | {container: HTMLDivElement , error: undefined } >
Defined in : embed/bodyless-conversation.ts