All patterns

Rows AI Analyst by Rows/Data & analytics

Every result shows the code behind it

When the AI in Rows calculates a forecast, the result table has a small "Source: Python" tag. Click it and you see the code the AI wrote to get those numbers.

"Calculate a sales forecast for the next 3 months" produces a results table. The Python behind it is one click away, labeled "No code written by you".
"Calculate a sales forecast for the next 3 months" produces a results table. The Python behind it is one click away, labeled "No code written by you".

About Rows AI Analyst. Rows is a spreadsheet with built-in integrations and an AI Analyst that builds tables and analyses from your questions.

01

What to notice

  1. 1

    Question, code and result belong together

    Your request, the code the AI wrote and the result are shown as one chain.

  2. 2

    A small tag on the result

    "Source: Python" sits quietly on the table until you need it.

  3. 3

    It's clear the AI wrote it

    "No code written by you" tells you this logic came from the AI.

02

Why it works

01

A forecast is only as good as its method

Showing the code lets analysts check how the numbers were made.

02

Two kinds of users, one screen

Business users read the table, analysts open the code. Nobody is stuck.

03

You can run it again

Code can be rerun and changed. A number copied from a chat can't.

03

Use it in your product

Do this

  • Keep the method, like code, a query or a formula, attached to every number the AI calculates.
  • Put it behind a small tag, not in the main view.
  • Mark logic the AI wrote as written by AI.
  • Let experts change the method and recalculate.

Watch out

  • Code people can't run or change is just decoration.
  • If the code shown isn't what actually ran, trust collapses. Show the version that ran.
TagsAnalyticsCodeProvenanceForecastScreens: Rows

Join the aidesign.gallery list

For new patterns, guides and the book we are writing. It is free.

Unsubscribe anytime. Privacy policy

Related patterns