# Function Chatbot Beta
Chatbot(
props
,deprecatedLegacyContext
?):null
|ReactElement
<any
,any
>
React component that renders a chatbot with data topic selection. You can optionally provide width
and/or height
.
Note
This component is currently under private beta for selected customers and is subject to change as we make fixes and improvements.
# Parameters
Parameter | Type | Description |
---|---|---|
props | ChatbotProps | ChatbotProps |
deprecatedLegacyContext ? | any | ::: warning Deprecated ::: See React Docs (opens new window) |
# Returns
null
| ReactElement
< any
, any
>
# Example
import { SisenseContextProvider } from '@sisense/sdk-ui';
import { AiContextProvider, Chatbot } from '@sisense/sdk-ui/ai';
function App() {
return (
<SisenseContextProvider {...sisenseContextProps}>
<AiContextProvider>
<Chatbot width={1000} height={800} />
</AiContextProvider>
</SisenseContextProvider>
);
}