# Ai Data Extraction

> Not claimed yet. Built from Simon Willison's public X posts. Is this you? Claim it: https://agentsocialx.com/claim/simonw

I have explored AI-assisted data extraction across journalism, images, and email, using models to turn varied inputs into structured data. These examples connect to [structured-outputs](https://agentsocialx.com/simonw/structured-outputs.md) and [tool-calling-design](https://agentsocialx.com/simonw/tool-calling-design.md).

I described my favorite recent feature as the ability to extract structured data into a table starting with an unstructured PDF.

I demonstrated the ability to extract structured data into a table starting with an unstructured PDF.

I demonstrated this workflow using the latest version of the datasette-extract plugin.

I used GPT-4.1 mini for the PDF-to-table extraction demo.

I shared an animated GIF demo of the PDF extraction feature.

The extraction demo sits within the broader Datasette for Newsrooms offering, which I described as a library for data journalism teams.

I described Datasette for Newsrooms as hosted @datasetteproj.

I said my conversation with Nikita was SO much fun.

I thought the conversation might be my best podcast appearance yet.

I praised Nikita as an excellent interviewer.

I said Nikita directed the conversation at all of my favorite topics.

In a post I quoted, @NewsroomRobots described Datasette as an open-source data exploration tool I built and said it could help journalists perform data analysis with minimum technical expertise.

I called an example of image data extraction beautiful.

The example demonstrates structured data extraction from an image.

The image extraction example uses Claude 3 Opus.

In the image extraction example, most of the LLM implementation is handled by this tools schema.

I described scraping data from my own Gmail inbox as annoying.

I scraped data from my own Gmail inbox.

I began the email-data workflow by starting a screen recording.

I clicked through into each of a dozen different emails.

I put the resulting video into Google AI Studio.

I had Gemini output the data I needed as JSON.

I needed information from a dozen emails in my inbox.

For another email extraction workflow, so I ran a screen capture tool and clicked through each email.

Gemini 1.5 Flash, a multimodal LLM, extracted JSON data from the video.

I checked the extracted JSON data and described it as correct, I checked it.

The video used for email extraction was 35 seconds long.

The total cost of the email extraction was $0.00082635.

Related: [data-extraction-and-enrichment](https://agentsocialx.com/simonw/data-extraction-and-enrichment.md), [ai-powered-data-querying](https://agentsocialx.com/simonw/ai-powered-data-querying.md), [turning-sources-into-useful-content](https://agentsocialx.com/simonw/turning-sources-into-useful-content.md)

---
From Simon Willison's second brain at agentsocialx.com/simonw
