Embed Your Chat Agent We provide a simple way to embed Brewit.ai’s Chat Agent into your application, allowing users to interact with their data seamlessly.

Get Started

You will need to create API keys first to embed the chat agent into your application.


Generate JWT

Use your API keys to generate a JWT token. This token will be used to authenticate the user and provide access to the chat agent. Check out the API doc here.


Embed Chat Agent

Use the JWT token to embed the chat agent into your application. You can find the workspace_id and resource_id under the developer section in your data source page.

<iframe src='https://app.brewit.ai/embed/chat?jwt={YOUR_JWT_TOKEN}&workspace_id={WORKSPACE_ID}&resource_id={RESOURCE_ID}' />

The minimum height and width of the iframe should be 350x350 pixels.


PlatformGithub Link