GistWise Blog · · 3 min read

Why We Built Our Learning App with a Team of AI Agents, Not One Big Prompt

Why GistWise creates fact-checked audio lessons with a team of AI agents and several LLMs instead of one prompt, and what we learned.

Cover: "Why We Built Our Learning App with a Team of AI Agents, Not One Big Prompt" with AI, software and technology icons

TL;DR

  • One model writing a whole lesson sounds great and hides its mistakes.
  • We split the work across AI agents, like an editorial team, built on Microsoft Agent Framework.
  • Different LLMs do different jobs, and the one that checks never comes from the same vendor as the one that writes.

Ask a chatbot for a four-minute lesson on why the sky is blue and you will get something that sounds great: clear, friendly and confident. Most of it will be right. The problem is the part that isn't, a number slightly off or a cause no source ever stated, delivered in exactly the same confident tone. In a chat window that is an annoyance. In a learning app, where people trust you to teach them, it is the whole problem.

GistWise is an audio microlearning app. Each lesson, a "Gist", explains one idea in 3 to 5 minutes, with its sources and a short quiz. We wanted to build a large library of them as a small team, without giving up on accuracy. This is the first of three short articles about how we approached it.

One prompt is not enough

Our first prototype was the obvious one: give a strong model a title and a style guide, and ask for a script. The scripts read beautifully, and that was the danger. A model that writes fluently has no built-in signal for "I'm not sure about this sentence". It fills gaps with plausible text, and plausible is not the same as true.

So we stopped treating a lesson as one task. A good newsroom doesn't let the same person research, write, fact-check and approve a story. We applied the same separation with AI.

An editorial team made of agents

Each step is a separate agent, and a check can send the work back.
Each step is a separate agent, and a check can send the work back.

Every Gist moves through a series of AI agents, each with one job:

  • Research gathers facts from real sources.
  • Write turns those facts, and only those facts, into a script made for listening.
  • Check compares the script with its sources and sends back anything that doesn't hold up.
  • Approve decides whether the whole lesson is good enough to publish, or needs a person.

Then the lesson is voiced, and only finished lessons reach the app. Nothing moves forward without passing the step before it, and a failed check sends the work back instead of letting it through.

Why Microsoft Agent Framework

We orchestrate the agents with Microsoft Agent Framework on .NET. Content generation is not a straight line: checks fail, drafts go back, and some lessons need a few rounds. The framework lets us describe that flow as a workflow, with clear limits on how many times anything can repeat, so a difficult lesson can't loop forever. Staying in one language and runtime for the whole system also kept things simple to test and maintain.

The right model for each job

We use various LLMs at different steps and pick them per job, not per brand. A few principles guided us:

  • Use strong models where judgement matters. Writing a clear, accurate lesson is the hardest step, and we use Claude for it.
  • Check with a different vendor. The model that checks comes from a different vendor than the one that writes, for example GPT reviewing what Claude wrote. Models trained differently make different mistakes, so they rarely share a blind spot.
  • Use smaller models for smaller tasks. Not every step needs the most expensive model.
  • Prefer code over models. If plain code can check something, we don't ask an AI. It is faster, cheaper and never hallucinates.

The stack, briefly

Behind the app: .NET and Microsoft Agent Framework for the content pipeline, several LLM providers, PostgreSQL for the working data, Supabase for what the app reads, Azure AI Speech for natural narration, and an Expo / React Native app for iPhone and Android. Nothing exotic. The interesting part is how the pieces check each other.

What we learned early

  • Reliability beats cleverness. Most problems weren't about intelligence. They were timeouts, cut-off answers and retries. A pipeline you can leave running overnight matters more than a clever prompt.
  • Put a limit on every loop. Retries and rewrites need a ceiling, or the bill finds the bug for you.
  • Keep a record of everything. When a lesson says something odd, we can see which step produced it and why.

What's next

Splitting the work is only the start. In the next article we look at the heart of the problem: keeping AI hallucinations out of the lessons.

Get a new Gist every day

1,000+ Gists on 37 topics in the GistWise app: a Gist of the Day every morning, quizzes, streaks and offline listening.

Get the app

More from the blog

All posts →