BodylessConversation

BodylessConversation

Create a conversation embed, which can be integrated inside chatbots or other conversational interfaces.

Version : SDK: 1.33.1 | ThoughtSpot: 10.5.0.cl

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

Constructors🔗

new BodylessConversation(viewConfig: BodylessConversationViewConfig ) : BodylessConversation

Function Parameters

viewConfig

Returns

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 } >