Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

592 B
Raw Blame
function useMetabot(): UseMetabotResult | null;

Returns the Metabot conversation API.

Returns null until the SDK bundle has loaded and <MetabaseProvider> has mounted its internal subscriber. Guard before use:

Returns

UseMetabotResult | null

Example

const metabot = useMetabot();
if (!metabot) {
  return <Spinner />;
}
metabot.submitMessage("Show me orders");

@function