End-to-end Quick Start with Toucan AI
Toucan AI is designed to help you move from raw data to embedded analytics in minutes—combining AI-powered automation with full manual control.

Objective
In this tutorial, you will learn how to get started with Toucan AI and go through the steps to create and embed a dashboard into your application. By following this guide, you'll be able to:
Add a database.
Analyze your database with AI.
Complete metadata information.
Create a dashboard with AI.
Embed the dashboard into your application.
For each step, you will find more information in the dedicated practical guide (How-To sections).
Step 1: Add a Database
First, you need to connect a database to Toucan AI.
From the Home Page, go to the Database tab and click Add Database.
Select the appropriate connector (e.g., PostgreSQL).
Fill in the required fields (e.g., Host, Username, Password, Database name).
Click Test Connection to ensure the connection works, then click Connect.
Example: Connect to your HR database containing employee data, including a location column with values like Tokyo, Paris, etc.
How-To: Add a database

Step 2: Analyze Your Database with AI
Once the database is connected, you can use AI to analyze its structure and automatically enrich the data.
Click on the database you've just connected.
In the database view, click Analyze to let the AI scan and enrich your data automatically.
Review the auto-generated descriptions for tables and columns.
Example: The AI will recognize your location column and help categorize it, making it ready for visualizations.
How-To: Analyze your database with AI

Step 3: Complete Metadata Information
Refine the data descriptions to improve the AI's ability to generate accurate dashboards.
In the Metadata section, verify and update descriptions for any tables and columns that need refinement.
Ensure important columns are accurately described to provide better context for your dashboard and AI prompt.
Step 4: Create a Dashboard with AI
Next, let's create a dashboard using AI.
Go to the Library menu and locate the central block where you can type a prompt.
In this conversational interface, type a prompt to create your dashboard
For example : "Create a dashboard to track employee contracts and locations".
The AI will automatically generate a dashboard with relevant charts based on your prompt.
Of course you can also:
Prompt new charts
Modify manually these charts
Add filters and modify the layout
Example: The AI creates a dashboard that tracks employee contract types and locations (e.g., Tokyo, Paris).
How-To: Create a dashboard with AI

Step 5: Embed the Dashboard
Once you are satisfied with your dashboard, the next step is to integrate it in your SaaS or Website.
To embed the dashboard into your application, you will need a valid API key and token. Here's how to get them:
1. Generate Your API Key
To interact with the API and embed the dashboard, you need an API key.
Go to your Profile at the bottom-left corner of the screen and click on the two letters representing your user profile.
Click Security to open the security settings page.
Under the API Keys section, click Create API Key.
Copy the generated API key and store it securely (in a password manager, for example).
How-To: Generate an API Key

2. Generate a Token
Now that you have the API key, you need to generate a token that contains the necessary user attributes.
Go to Settings > Embed in the menu.
In the Token Generation Sandbox section, paste your API key into the field.
Click Generate Token.
Copy the generated token. This token will be used to authenticate the dashboard embedding.
This is a token to try the embedding. In real usage or production in a SaaS, you will call an API endpoint to make it work.
How-To: Generate a sandbox token

3. Embed the Dashboard with the Token
Go back to the Dashboard view in Toucan AI.
Click on the three dots in the top-right corner and select Embed.
Copy the embed code provided in the window.
Open your code editor (e.g., CodePen or your application’s code).
Paste the embed code into the HTML section of your editor.
Replace the placeholder Auth-Token with the valid token you generated earlier.
Example: Embed the HR dashboard in your SaaS application. Users in your SaaS will be able to use the dashboard, in full white label, and even create their own charts with AI.
How-To: Embed a dashboard

Once the token has been copied into the web component, this is what it looks like (here on codepen.io, for example).

Conclusion
Congratulations! You've successfully completed the Getting Started in Toucan AI. You have:
Connected your database.
Analyzed and enriched your data with AI.
Created a dashboard using AI.
Embedded your dashboard into your application with a secure token.
Your dashboard is now live and ready for use in your software or website. Enjoy your data-driven insights powered by Toucan AI!
Last updated
