Agent Playground
Recipe: Analyze my spreadsheet
Reads a messy sales sheet, writes an analysis, and when it crashes reads the error and fixes itself until the numbers come out. What it does, when to use it, how to make it yours, and what a run costs.
Reads a messy sales spreadsheet, writes an analysis, and when the analysis crashes on a messy cell, reads the error and fixes itself, until the totals come out. It ends with sales by region and a bar chart.
| At a glance | Notes |
|---|---|
| Category | Data |
| Shape | A loop that reads its own errors |
| Plan | Free and up |
| Needs a Claude key | No |
| Limits it comes with | 4 loops, 180 seconds, $0.05 |
When to use it
- You have a spreadsheet export with messy cells (commas in numbers,
n/a, blanks) and want totals and a chart. - A weekly report from the same export, without fixing it by hand each time.
- Any script that should learn from its own errors.
Run it
- Open Agent Playground in the dashboard and find Analyze my spreadsheet under Start from a recipe. In the builder, Recipes in the toolbar lists them too.
- Choose Use this recipe. It becomes a flow of your own, so changing it never changes the recipe.
- Choose Simulate to see the forecast, then Run.
What you'll see: The first try crashes on 1,200.50, the second on n/a, and the third skips what it can't read and finishes: sales by region, the top region, and how many rows were left out. The summary is in summary.md and the chart in chart.svg.
Make it yours
- Change Load the spreadsheet to load your own sheet: download it from a link, or start the flow from a webhook that sends it.
- Change Write the analysis to the totals you want: by month, by product, by customer.
- Replace Read the error, fix it with an Agent whose goal is
The analysis crashed with this error. Fix analysis.py., with the output of Run the analysis added through Insert…. - Have the last step send the summary somewhere useful, after an approval if it goes outside your team.
What a run costs
These are the builder's own forecast for the recipe as it comes, with its limits, rounded. Simulate shows the same numbers for your version, and they change as you change the flow.
| Notes | Typical | 1 in 10 runs | At most |
|---|---|---|---|
| Sandbox time | $0.0002 | $0.0003 | $0.0023 |
| How long it takes | 17 seconds | 21 seconds | 180 seconds |
A typical run uses $0.0002 of sandbox time, so about 4,700 runs cost $1, and every plan includes $5 of usage a month. At most is the most a run could cost with these limits: it stops at $0.05 or 180 seconds, whichever comes first.