# Datasette Agent - an AI assistant for analyzing data in SQLite (Datasette Advent Day 4)

> Source: <https://simonwillison.net/2026/Dec/5/datasette-agent/>
> Published: 2026-12-05 23:57:34+00:00

**Key takeaway:** Datasette Agent runs inside Datasette to query SQLite data and can drive Datasette Charts, including adding annotations that explain gaps in a visualized chart.

[Datasette Agent - an AI assistant for analyzing data in SQLite (Datasette Advent Day 4)](https://www.youtube.com/watch?v=K3cf-0cBg9A)

This demo also shows Datasette Agent's integration with [Datasette Charts](https://charts.datasette.io/), including asking the agent to add annotations to a chart to explain a gap in the visualized data.

I recorded the video using the [agent.datasette.io](https://agent.datasette.io/) preview instance, which you can sign in to with GitHub (authentication is there purely to discourage abuse) to try out Datasette Agent yourself.

I've also updated the [datasette.io](https://datasette.io/) homepage to show the advent calendar:

Tags: [sqlite](https://simonwillison.net/tags/sqlite), [youtube](https://simonwillison.net/tags/youtube), [ai](https://simonwillison.net/tags/ai), [datasette](https://simonwillison.net/tags/datasette), [generative-ai](https://simonwillison.net/tags/generative-ai), [llms](https://simonwillison.net/tags/llms), [datasette-agent](https://simonwillison.net/tags/datasette-agent), [datasette-charts](https://simonwillison.net/tags/datasette-charts)
