Elder AI

Sales-operations agent with governed data analysis and artifacts
25 nodes

/projects/elderai

Elder AI

09

A customer-facing sales operations analyst for sales leaders: routes questions to fast or analysis agents, queries a read-only Postgres sample database, delegates to specialist subagents, runs sandboxed Python analysis, and persists dashboards, charts, PDFs, CSVs, tables, and image artifacts.

Project context05

Problem

Sales leaders need trustworthy answers from call data, transcripts, coaching signals, and competitive intelligence, but generic chat over a database can leak raw SQL, fabricate metrics, or generate disposable reports.

Solution

Elder AI routes requests into fast or analysis agents, uses read-only Postgres tools for evidence, delegates bounded work to data/coaching/artifact subagents, runs sandboxed Python only when needed, and persists dashboards, charts, tables, PDFs, CSVs, and images.

Challenges

The product must feel like a customer-facing sales operations analyst while coordinating auth, RLS, conversations, tool events, artifact storage, local versus Vercel sandbox modes, and deterministic product-taste evals.

Innovation

The system treats artifacts as durable conversation objects. Instead of dumping analysis into chat, it creates reopenable manager-facing assets backed by verified rows, scoped tools, and policy-aware response modes.

Domain expertise

This demonstrates Stefan's strength in business-agent product architecture: RevOps domain modeling, read-only data access, artifact UX, AI SDK ToolLoopAgent patterns, Supabase persistence, sandbox execution, and eval-backed response quality.

Case study evidence11

Outcomes

  • Turns sales-call data into manager-ready answers, dashboards, tables, charts, and reports.
  • Separates quick coaching lookups from deeper analysis and artifact generation.
  • Keeps database work read-only and makes local sandbox isolation limits explicit.

Architecture decisions

  • Routing classifier chooses fast or analysis mode before tool selection.
  • Specialist subagents handle data analysis, coaching evidence, and artifact design.
  • Supabase RLS and artifact persistence preserve conversations and outputs across sessions.

Domain expertise signals

RevOps AIRead-only SQLArtifact UXToolLoopAgentProduct evals
Technical deep dive09

Elder AI is a serious business-agent case study because it connects chat UX to governed data access, specialist subagents, sandboxed analysis, durable artifacts, Supabase persistence, and product-taste evals.

Routing discipline

The app separates fast lookup from deeper analysis before the agent starts using tools. That keeps simple manager questions responsive while reserving sandbox, artifact, and subagent work for requests that need it.

Evidence boundary

The database path is read-only and domain-specific. Calls, transcripts, coaching skills, metadata, and competitive-intel extractions are queried through constrained tools instead of handing the model raw database authority.

Artifact lifecycle

Tables, charts, dashboards, PDFs, CSVs, images, and dataset analyses are durable objects, not transient chat decorations. They can be reopened, discussed, and persisted alongside conversations.

Sandbox honesty

The architecture distinguishes weak local Python workspace isolation from production-shaped Vercel Sandbox execution. That matters because generated analysis code should not quietly inherit application secrets.

What this proves

  • Fast and analysis ToolLoopAgent paths
  • Three specialist subagents for data, coaching, and artifact design
  • Read-only SQL and explicit call-ID evidence requirements
  • Supabase RLS plus deterministic product-taste evals
2route modes
3subagents
5artifact types
200sample calls
6seeded reps
100%read-only SQL
Technology stack06
Next.js

Next.js 16

Keeps chat UI, API routes, RSC demo, artifact pages, and deployment in one application boundary.

TypeScript

TypeScript

Keeps routing, artifacts, tool schemas, and agent handoffs explicit across a large product surface.

AI SDK

AI SDK v6

Provides ToolLoopAgent, streaming, RSC streamUI, and model-provider integration.

OpenAI

OpenAI

Powers the customer-facing analyst, routing, image generation, and specialist agents.

Supabase

Supabase

Handles auth, RLS persistence, conversations, artifacts, and organization membership.

Pg

PostgreSQL

Acts as the sales-call source of truth with read-only query access for the agent.

Tools implemented08

routeUserMessage

Separates fast answers from analysis and artifact workflows.

Read-only SQL tools

Retrieve manager evidence without giving the model write-capable database access.

runPythonAnalysis

Runs derived metrics, calculations, and generated files in a scoped workspace.

Data analyst subagent

Delegates bounded metric work instead of sending the entire conversation to another agent.

Coaching subagent

Focuses on transcript snippets, skills, objections, and coaching risks.

Artifact designer

Turns verified rows and metrics into dashboards, charts, PDFs, tables, and exports.

Artifact persistence

Saves results so users can reopen and discuss prior analysis.

Product-taste evals

Checks whether responses stay manager-facing and avoid internal tool leakage.

Stefan Creadore · @Eldergenixproduction agent systems mapped end to end