HyperFormula · Use case

Correct numbers in the spreadsheets your AI agent builds

Language models write formulas well and calculate them poorly. HyperFormula evaluates every formula your agent writes, including dependencies across sheets, and returns values your code can check.

An agent writing a Q1 budget file with =SUM(C1:C2), linked through the HyperFormula tile to a grid where the total cell shows 8,400

Trusted by

Microsoft logo
Intel logo
Airbus logo
Roche logo
Sony logo
Amazon logo
Schneider Electric logo
Dar logo
Panasonic logo
Carrier logo
T-Mobile logo
JERA logo
Huawei logo
SATS logo
Seagate logo
AppLovin logo
Precisely logo
Stottler Henke logo
Shikoku Electric Power logo

A generated file without calculated values shows blank cells

Without an engine like HyperFormula, an agent can write the formulas but not the values. When an agent writes an .xlsx file, the formulas are in the file but the calculated results often aren’t. Some viewers then show empty cells.

If the model works out the numbers itself, it estimates them, and an estimated total in a financial model can be off.

A PMT formula with the result -2684.11, calculated by HyperFormula with 100% confidence next to an AI estimate at about 85% confidence

Calculate, check, then show the user

HyperFormula sits between your agent and the file your user opens. The agent writes formulas; HyperFormula returns the values and the errors.

import { HyperFormula } from 'hyperformula';
// Formulas written by the agent
const hf = HyperFormula.buildFromArray([
[1200, 0.08, '=A1*B1'],
[1500, 0.08, '=A2*B2'],
['', 'Total', '=SUM(C1:C2)'],
], { licenseKey: 'your-license-key' });
console.log(hf.getCellValue({ sheet: 0, row: 2, col: 2 })); // 216
  1. Your agent writes or edits formulas.
  2. HyperFormula calculates the sheet.
  3. Your code passes the values and any error cells back to the agent.
  4. The agent fixes errors before the user opens the file.

Iterate until the numbers check out

Your agent writes formulas, HyperFormula calculates every cell and hands back the values and any error cells, such as #REF!. The agent fixes what’s wrong and runs it again, before anyone opens the file.

The loop works because the agent gets a definite answer each round: HyperFormula is a calculation engine, so the same formulas always return the same values, and after an edit it recalculates only the cells that depend on it. It runs in Node.js next to your agent’s tool calls, and the same engine shows the same numbers in the browser preview.

A loop: the agent writes =SUM(C1:C2), HyperFormula calculates every cell, and the values and errors, 8,400 in C3 and #REF! in D7, go back to the agent until the numbers check out

Add it as a tool in your agent framework

We’re building guides for the Vercel AI SDK and LangChain. Tell us about your agent to get early access and help shape the API.

What to check before you build on it

Two things decide whether HyperFormula fits your agent.

  • Functions. Compare the functions your agent writes most often with the list of 464 built-in functions.
  • Runtime. HyperFormula needs JavaScript. A Python-only backend would need a Node.js service next to it.

Licensing for AI products

Before your agent goes to production, check which HyperFormula plan fits your product on our pricing page.

Become a design partner

Tell us what your agent does with spreadsheets, the volume you expect and your timeline. Design partners get early access to the agent framework guides and help shape the API.

Loading the form…