# 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="langgraph" agent="csv-to-questions" />

<AgentPreview
  agent="csv-to-questions"
  framework="langgraph"
  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.

## Installation [#installation]

<CodeTabs>
  <TabsList>
    <TabsTrigger value="cli">
      Command
    </TabsTrigger>

    <TabsTrigger value="manual">
      Manual
    </TabsTrigger>
  </TabsList>

  <TabsContent value="cli">
    ```bash
    npx shadcn@latest add @agentcn/langgraph/csv-to-questions
    ```
  </TabsContent>

  <TabsContent value="manual">
    <Steps>
      <Step>
        Install the following dependencies:
      </Step>

      ```bash
      npm install @dawn-ai/sdk
      ```

      <Step>
        Copy and paste the following agent route files into your project.
      </Step>

      <ComponentSource src="registry/langgraph/csv-to-questions/index.ts" title="index.ts" />

      <ComponentSource src="registry/langgraph/csv-to-questions/instructions.md" title="instructions.md" />

      <ComponentSource src="registry/langgraph/csv-to-questions/tools/fetch_csv.ts" title="tools/fetch_csv.ts" />

      <ComponentSource src="registry/langgraph/csv-to-questions/tools/generate_questions.ts" title="tools/generate_questions.ts" />

      <Step>
        Run `dawn check` after copying so route and tool metadata are regenerated.
        `dawn dev`, `dawn build`, and `dawn verify` also run the same discovery path.
      </Step>
    </Steps>
  </TabsContent>
</CodeTabs>

## Composition [#composition]

```text
├── index.ts
├── instructions.md
├── tools/fetch_csv.ts
├── tools/generate_questions.ts
```

## Customization [#customization]

* Edit `index.ts` to change the model, description, or system prompt.
* Add route-local tools under `tools/`; tool input and output types are inferred from TypeScript.
* Run `dawn verify` before deploying generated LangGraph artifacts.
