# CSV to Questions

Summarizes a CSV dataset to stay within token limits, then generates focused analytical questions.

> For the complete documentation index, see [llms.txt](/llms.txt). Markdown variants are available by appending `.md` to any URL or sending an `Accept: text/markdown` header. An agent skill is available at [/.well-known/agent-skills/site-skill.md](/.well-known/agent-skills/site-skill.md).



<DocsBaseSwitcher base="eve" agent="csv-to-questions" />

<AgentPreview
  agent="csv-to-questions"
  framework="eve"
  inputFields="[
  {
    name: &#x22;url&#x22;,
    label: &#x22;CSV URL&#x22;,
    placeholder: &#x22;https://example.com/world-gdp.csv&#x22;,
    type: &#x22;text&#x22;,
  },
]"
/>

## Summary [#summary]

The **CSV to Questions Agent** takes a CSV dataset and turns it into a set of
sharp, answerable analytical questions. It first summarizes the data — columns,
types, ranges, patterns — to compress large files and avoid token-limit errors,
then generates questions a data analyst would actually ask. Reach for it to
kickstart exploratory analysis or build study material from raw data.

## Install [#install]

```bash
npx shadcn@latest add https://agentcn.vercel.app/r/eve/csv-to-questions.json
```

## Composition [#composition]

```text
agent/
├── agent.ts            # Agent definition (model + config)
├── instructions.md     # Summarize-then-question instructions
└── tools/
    └── fetch_csv.ts    # Loads a CSV file from a URL
```

## Customization [#customization]

* **Read local files.** Swap `fetch_csv` to read from disk or object storage
  instead of a URL.
* **Control the question style.** Edit `instructions.md` to bias toward trends,
  comparisons, or hypothesis tests.
* **Swap the model.** Edit `agent/agent.ts`. A large-context model handles wide
  datasets without truncation.
* **Chunk huge files.** Summarize in row batches and merge the profiles before
  generating questions.
