traceroot evaluation runs logged to Google Sheets, with drops posted to Teams
Every finished traceroot evaluation run goes into a Google Sheet with its pass rate and scores. When the pass rate falls below the last run, the team sees both runs side by side in Teams.
The prompt
When an evaluation run finishes in traceroot, read its result counts and the mean of each score, and add a row to our evaluation log in Google Sheets with the evaluation, run number, candidate version, status, passed, failed and errored cases, pass rate, scores and a link to the run. Then find the previous finished run of the same evaluation and compare pass rates. If this run's pass rate is lower, post a card to our team channel in Microsoft Teams with the two runs side by side and links to both in traceroot.
FlowRunner Prompt to Flow built this flow from that request. Here it is as it opens in the editor.
The flow
Download the file, then in FlowRunner click + beside Flows, pick it under Import a Flow Version and click Create. How importing works
What each step does
- Evaluation run finished Checks traceroot every 15 minutes for evaluation runs that left the running status, whether completed, completed with errors, failed, incomplete or canceled.
- Read the run's results Gets the run's summary: status, result counts and the mean of each score and metric, with boolean scores read as pass rates.
- Log the run in Google Sheets Adds one row per run to your evaluation log: evaluation, run number, candidate version, status, case counts, pass rate, scores and a link to the run.
- Pick the previous run Finds the latest earlier run of the same evaluation that finished with scores. A first run, or a run that failed or was canceled, stops after the log.
- Read the previous run's results Gets the previous run's summary so the two can be compared.
- Pass rate lower than last run? Compares the share of cases that passed in each run. A run that held or improved ends here.
- Post both runs to the team in Teams Posts a card with the two runs side by side: version, status, pass rate, case counts and scores, with buttons that open each run in traceroot.
Before you turn it on
- Enter your traceroot project API key, and connect your Google Sheets and Microsoft Teams accounts.
- Make an evaluation log spreadsheet whose first sheet has these column headers: Finished, Evaluation, Run, Candidate version, Status, Cases, Passed, Failed, Errored, Pass rate, Scores, Run link. Paste its URL into the flow setting Evaluation log spreadsheet.
- Pick your team and channel in Post both runs to the team in Teams.
- To log only some evaluations or statuses, pick them in Evaluation run finished. Left empty, it watches every evaluation in the project.