Skip to main content
Chat renders an Explore inquiry (tool="explore"). It reads token and theme from AiqlProvider. Pass the inquiry id and presentation props.

Try it live

Import

Usage

Existing inquiry

New conversation

Pass a freshly generated id. The inquiry is created on the first message.

Handle artifact opens

Chat can create and show canvas, dashboard, and presentation artifact cards. When the user clicks one inside the embed, the iframe emits ARTIFACT_OPEN instead of navigating away. Handle it on the provider (recommended) or on Chat itself:
See AiqlProvider and useEmbedNavigator.

Send a message

Wait for onReady, then call sendMessage on the ref. The embed queues the text until the inquiry can accept it, then starts the run. A send while a response is already streaming is ignored.

Custom loading and error UI

Styling

API Reference

Chat props

token and theme come from AiqlProvider. They are not Chat props.