Get your API key

Lesson 3 of 6

Analyse a CSV with an AI agent

Let a coding agent turn a sales CSV into a summary report with charts.

8 min Log in to open
One step at a time, like flipping pages.

By the end of this lesson a coding agent will have turned your sales CSV into a summary report with charts, and you will have checked its numbers yourself.

You need: a laptop with a coding agent set up (follow the Claude Code, Codex or OpenCode guide) and a sales sheet you can export · Time: 8 minutes

  1. A CSV (comma-separated values) is a plain-text copy of one sheet: no colours, no formulas, just rows and columns. Every tool can read it, which is why we hand the agent a CSV and not your .xlsx.

    Five rows from top to bottom: 1 Copy, work on a copy of the sheet. 2 Remove names, phones and PAN first. 3 CSV, export one sheet into its own folder. 4 Agent, plan first then report and charts. 5 You check the SUM, the invoice count and one state.
    The whole lesson in five steps. Private data leaves at step 2, before anything is exported.
    1. Open your sales file on a copy, as in the last lesson.
    2. Delete private columns first: customer names, phone numbers, PAN, addresses, anything personal. Keep what the report needs, for example: Invoice Date, Invoice No, State, Product, Qty, Amount.
    3. Export only the sheet you need:
      • Excel: File → Save As → file type CSV UTF-8 (Comma delimited).
      • Google Sheets: File → Download → Comma Separated Values (.csv).
    4. Name it simply, like sales_oct.csv.
    Why?

    The agent reads every row you give it, and the model runs on a server. Removing personal columns before export is the easiest privacy win in this course.

    Do it now

    Do it now

Log in free to read the rest of this lesson

Every lesson is free. A free account unlocks all of them and saves your progress.

Still to come in this lesson:

  1. Make a project folder and start the agent
  2. Ask for a plan before any work
  3. Ask for the report with charts
  4. Check the numbers yourself
  5. Next month, and the Python in Excel option
  6. Recap