# Create a chart with AI (/core/build/charts/how-to/create-a-chart-with-ai)





### Objective [#objective]

In this tutorial, you will learn how to create a chart using AI in Toucan AI. You will interact with the AI to automatically generate a chart based on your data.

***

### Prerequisites [#prerequisites]

* A [connected database](/core/build/data-connections/how-to/add-a-database) (as seen in the previous tutorials).
* A clear idea of the chart you want to create, &#x2A;such as employee counts by contract type.*

***

### Steps [#steps]

#### 1. Access the "Library" Tab [#1-access-the-library-tab]

* From the home page of Toucan AI, click on the **Library** tab.
* In the top-right corner, click on the **Add Visualization** button.

#### 2. Choose the "Add Chart" Option [#2-choose-the-add-chart-option]

* Click on **Add Chart** to start creating a new chart.
* This will open the AI-powered conversational interface where you can interact with the AI to generate a chart.

#### 3. Enter Your Prompt for AI [#3-enter-your-prompt-for-ai]

* In the conversational interface, type a relevant prompt.
  * *For example, you could type &#x2A;*"Show me the number of employees by contract type"** if you have HR Data for instance.*
* Once you send the prompt, Toucan AI will start analyzing your connected database and propose a chart based on the model.

#### 4. Review the AI-Generated Chart [#4-review-the-ai-generated-chart]

* The chart will appear on the right side of the screen. The AI will also provide a brief summary of the proposed chart along with insights and steps to understand the data transformation process.
* You should verify the suggested metrics and dimensions to ensure they match your needs.

<img alt="AI-Generated Chart" src="__img0" />

***

### Conclusion [#conclusion]

Congratulations! You've successfully created your first chart using AI in Toucan AI. You can now refine, adjust, and save it to use in your dashboards.

**Suggested Next Steps**: [create a dashboard with AI](/core/build/dashboards-and-layouts/how-to/create-a-dashboard-with-ai)!
