AI Data - Get the data you need,
just by asking.

Tell AI what data you need, and it figures out how to retrieve it.

AI Data generates the appropriate R script, runs it, reviews the result, and automatically improves the approach when necessary—then imports the data into Exploratory, ready for analysis.

From files and databases to APIs, websites, and open data—all through natural language.

AI Data retrieving monthly unemployment rates for the 10 most populous US states from the BLS API, with the generated R script and a preview of the data

You know what data you need. Getting it is another story.

You need data from a database, but you are not comfortable writing SQL.
You know public data exists somewhere, but finding the right dataset is difficult.
You need data from an API, but do not want to study its documentation first.
Your data is spread across dozens of Excel files.
The tables you need are buried inside PDFs.
You can retrieve the data, but it still requires significant cleanup.
You ask AI to generate code, but then you have to figure out whether it actually works.
You repeat the same data acquisition process every week or month.

AI Data handles the work between “I need this data” and “the data is ready to analyze.”

From a request to analysis-ready data

1
Describe the data you need

You do not need to know the exact file, table, API endpoint, or query syntax. Simply describe the result you want.

Example: “Check the content of two attached files and suggest how best to import them.”
2
AI determines how to retrieve it

AI examines the available data sources and determines the appropriate approach. Depending on the source, this might mean:

  • Reading files
  • Generating SQL
  • Using an R package
  • Calling APIs
  • Downloading files from the web
  • Scraping a website

It then generates the required R script and runs it inside Exploratory.

3
AI reviews the result

AI checks the returned data to determine whether it matches the original request. If not, it re-evaluates the approach, updates the script, and runs it again. Once the result is ready, the data is imported into Exploratory.

If you can access it with R, AI Data can work with it.

Files

  • Excel
  • CSV
  • JSON
  • XML
  • PDF
  • Word
  • Multiple files and folders
  • Multiple Excel sheets

Databases

  • SQL databases
  • MongoDB and other non-relational databases
  • Multiple-table joins
  • Complex aggregation and analytical queries

Cloud Services and APIs

  • Google Analytics
  • SaaS platforms
  • Web services
  • Existing R packages and connectors
  • Public APIs

Web and Open Data

  • Downloadable files
  • Web pages
  • Web scraping
  • Government open data
  • e-Stat and other public data portals

If Exploratory already supports the service, AI can use its existing integration or R functions. When no built-in integration exists, AI can use publicly available API documentation to generate the required data acquisition script.

See the data. Then tell AI what to change.

Review the resulting data preview and give AI additional instructions.

Conversation
Combine all of the annual Excel files into a single data frame.
The column names differ across several years. I matched columns that appear to represent the same fields and combined the files.
Treat “Satisfaction” and “Overall Satisfaction” as the same field, and make Respondent ID a character column.
Done. I updated the script and regenerated the data.
Data Preview
respondent_idyearsatisfaction
00012320244
00012420245
00012520253
00012620254
✓ Merged into one “satisfaction” column and converted Respondent ID to a character column.
Additional requests might include
01Change the date range
02Use a different table
03Rename columns
04Change data types
05Join another dataset
06Remove unwanted rows
07Reshape the data
08Modify how values are aggregated

Not just retrieved. Prepared for analysis.

Getting access to data is only part of the problem.

AI Data can also perform the basic preparation required before visualization or analysis.

Examples
Combine multiple files
Join multiple tables
Standardize column names
Convert codes to labels
Correct data types
Standardize date formats
Remove headers, footnotes, and irrelevant rows
Reshape wide and long data
Merge data from multiple sources

Move directly from data acquisition to visualization and analysis.

AI Data→Data Wrangling→Visualization→Analytics→Reports & Dashboards

Get the latest data again without asking AI again.

AI Data does not simply return a snapshot of the data. It creates the R script that produces the data.

That script becomes part of the Exploratory project. When you need updated data, simply click Re-import and run the same process again.

A data frame created by AI Data, with the saved R script that gets monthly unemployment rates from FRED and the Re-import button in its step
Benefits
Reproducible data acquisition
Easy access to updated data
Consistent logic every time
No need to regenerate the solution with AI
Reduced AI token usage
Faster recurring reporting and analysis

Turn a one-time AI request into a reusable data pipeline.

Experiment freely. You can always go back.

As you refine your request, the underlying R script changes. Each generated version is preserved.

You can inspect previous versions or restore an earlier approach when needed.

The R Script version menu in AI Data, listing v1 (California), v2 (California and Florida), and v3 (top 10 US states by population) of a monthly unemployment rate script
Benefits
Safe experimentation
Transparent changes
Easy rollback
Easier debugging
Better reproducibility

Turn AI trial and error into reusable team knowledge.

The first time AI works with a particular data source, it may need to explore different approaches. Once a successful method has been established, that knowledge can be saved as a Skill.

The next time a similar request is made, AI can reuse the proven approach instead of starting from scratch. Skills can also be shared with others.

Examples
01How your organization retrieves standard reporting data from a database
02How to retrieve a specific set of Google Analytics metrics
03How to access Japanese government statistics from e-Stat
04How to process your company’s survey files
05How to extract tables from a recurring PDF report

Turn one person’s successful AI workflow into a team-wide best practice.

Describe the result. Let AI figure out the tables and SQL.

When configuring a database connection, you can choose which schema information to make available to AI.

AI can then use that context to determine
01Which tables to query
02Which columns to use
03How tables should be joined
04What SQL is required
Why saving schema information matters
Reduces the time required to generate a query
Improves SQL accuracy
Reduces unnecessary schema exploration
Gives AI better context about your organization’s data model

Without saved schema information, AI can still inspect the database schema, but doing so requires additional discovery.

Example request

“For each product line and quarter, show sales, sales rank within the quarter, cumulative sales, quarter-over-quarter growth, share of total company sales, and a four-quarter moving average—all in a single table.”

AI determines the appropriate SQL based on the available schema and database capabilities.

Skip the hassle of connection setup

Connecting to a database often means installing drivers, configuring connection settings, and entering credentials. APIs come with their own setup, including API keys, client IDs, and authentication details.

With AI Data, you can let AI guide you through the setup and handle much of the configuration—so you can spend less time figuring out how to connect and get to the data faster.

Real-world use cases

Use Case 1: Survey data with separate layout and response files

Challenge: Survey response data often contains question codes and response codes rather than readable labels.

Request: “Use the layout file and response file to prepare the survey data. Replace question and response codes with their labels.”
What AI Data does
01Understands the structure of both files
02Maps question codes to question labels
03Maps response codes to response labels
04Produces an analysis-ready survey dataset

Use Case 2: Combine annual Excel files

Challenge: Each year’s survey or business data lives in a different Excel file, and column names change slightly from year to year.

Request: “Combine all of these files into one data frame.”
What AI Data does
01Inspects the files
02Compares their schemas
03Detects similar columns with different names
04Standardizes them
05Handles added or missing fields
06Combines everything into one dataset

Use Case 3: Extract a table from a PDF

Request: “Get the data from this PDF.”

If multiple tables are detected, AI can identify them and ask you which table should be imported. After you select one, AI extracts and cleans the relevant table.

Use Case 4: Retrieve Google Analytics data

Request: “From this GA property, get the last 30 days of sessions, active users, new users, page views, engagement rate, average engagement time, event count, and bounce rate by date, device, channel, and country.”

AI determines the appropriate GA dimensions, metrics, and retrieval process and returns the result as an analysis-ready data frame.

Use Case 5: Find and prepare open data

Request: “Get population data for Jiyugaoka by gender.”

The exact geographic concept you have in mind may not exist directly in the published dataset.

AI can determine which official geographic units correspond to the requested area, retrieve the necessary records, combine them, and produce a usable result.

This is particularly useful for public data portals where
Finding the correct dataset is difficult
Geographic definitions are complex
Downloaded files often require substantial cleanup

Use Case 6: Generate complex SQL without writing SQL

Request: “For each product line and quarter, return sales, quarter sales rank, cumulative sales within the product line, quarter-over-quarter growth, share of company sales, and the four-quarter moving average in one table.”

Even if this requires nested SQL, window functions, or database-specific syntax, you only need to describe the output.

AI generates the appropriate query, runs it, inspects the result, and revises it when necessary.

Spend less time figuring out how to get the data.

Analysts who don’t want to write SQL

Describe the result you need without having to know the schema or query syntax.

People working with Excel and file-based data

Combine and standardize fragmented files without repetitive manual preparation.

Open data users

Let AI identify the right public dataset and turn it into a usable analytical table.

Teams working with APIs and SaaS platforms

Retrieve data even when there is no dedicated Exploratory connector.

Analysts working with PDFs and other difficult formats

Extract useful structured data from sources that are otherwise difficult to import.

Teams with recurring data acquisition workflows

Turn a successful process into a reusable and shareable workflow.

Frequently asked questions

What kinds of data does AI Data support?

Any data source you can use in Exploratory today is also available in AI Data. Connections you have already created are listed in the AI Data window, so you don’t need to set them up again.

The main supported data sources are:

  • Files: Excel, CSV, PDF, Word, JSON, XML, Parquet, and statistical software formats such as SPSS and Stata.
  • Databases: PostgreSQL, MySQL, SQL Server, Oracle, BigQuery, Snowflake, Redshift, MongoDB, and more.
  • Cloud storage: Import files stored in Google Drive, Google Sheets, Amazon S3, SharePoint, Dropbox, and Box directly.

You can also get data from public statistics such as e-Stat (the Japanese government’s statistics portal), a wide range of public APIs, and documents published on the web. For data sources without a predefined procedure, AI Data researches their specifications and tries to retrieve the data, so just tell it what you need.

Will AI aggregate or calculate things on its own?

No. AI Data is responsible only for retrieving the data you asked for and shaping it into a form ready for analysis. It never invents metrics you didn’t ask for.

Processing at import time is limited to converting the data into a tidy format and converting data types. AI Data never adds new columns, such as totals or ratios, on its own judgment.

You can trace which values in the source data each number came from through the generated R script.

If you do need additional processing at import time, just ask for it in the AI Data chat.

Can I use the retrieved data for analysis right away?

Yes. Before importing, AI Data shapes the data so that:

  • Each row represents one observation
  • Each column represents one variable. If the same measure is split across multiple columns, they are combined into one column
  • Each cell contains only one value

It also removes empty rows and rows that aren’t data, such as footnotes and source notes. Once the import completes, you can go straight to creating charts.

Are my API keys or database connection details shared with AI?

No. Credentials are handled as follows:

  • AI Data never asks for credentials such as API keys or passwords in the chat
  • Credentials are never written directly into the R script
  • When connecting to a database, the connection information Exploratory holds is inserted as variables at the top of the R script. Host names and port numbers are never sent to AI

For data sources that require an API key, a dedicated dialog asks you to enter it. The value you enter is kept inside Exploratory and is never passed to AI as is.

How much of my data is sent to AI?

Only the information needed to work out how to retrieve the data: the column names and first few rows of files, and database schema information. When a file’s structure is complex and the first few rows aren’t enough to tell where the headers end and the data begins, AI Data may read more rows.

The retrieved data itself is imported by running the generated R script in your environment.

Do I need to ask AI again every time the data is updated?

No.

Once an import completes, the generated R script is saved as the data source. After the source file or database is updated, just click the Re-import button, and only the saved script runs.

AI doesn’t run again, so you get the latest data with the same steps every time.

Because the same process runs the same way every time, you can rely on it for data that is updated regularly.

Can I give additional instructions after importing the data?

Imported data is treated just like any other data frame in Exploratory. So even after the import, you can keep making adjustments, such as changing conditions or removing unwanted rows.

To do this, reopen AI Data from the token (the gray box) in the source step, which is the first step.

It opens with the conversation from the import still there. Enter your additional instructions and send them, and only the new changes are applied on top of what was done before. You don’t need to start over.

Do I need to repeat the same instructions for similar data?

No.

When you create or update a data frame, the steps used at that time are automatically saved as a Skill. The next time you specify data with a similar structure, AI Data applies the same process based on the saved steps, adjusting for differences such as column names.

A Skill is a Markdown file that describes what R script to write for what kind of request. Skills are saved under the “datasource” path in the “ai_skills” folder of the .exploratory repository, so you can review them later to make sure nothing unintended has been saved.

What data do you want to analyze?

Tell AI what data you need.

AI Data figures out how to retrieve it, executes the process, validates the result, and brings the data into Exploratory—ready for analysis.

And once the workflow works, you can run it again whenever you need fresh data.

Enter a Note Name
Loading the Note Editor...