← Back to library

Turn a textbook chapter into an interactive lesson

Hassan (nutlope) outlines an agent he is building that turns a PDF or textbook into a full interactive course. It parses the material, decides a lesson structure from examples, calls ready-made widgets like Q&A cards, drag-to-match exercises and flowcharts as tools, and a separate reviewing agent compares the result with the original text before it is shared.

  • OutcomeHave an agent read study material, choose a lesson structure and assemble it from interactive components, with a reviewer agent checking it against the source.
  • SetupAn afternoon+
  • LevelAdvanced
  • CreditHassan (@nutlope)
View original
Works with
Custom agentClaudeChatGPT

Published Oct 23, 2026Updated Oct 23, 2026AI dry run on sample input: passed Oct 23, 2026Source verified Oct 24, 2026

When should you use it?

  • You teach or tutor from textbooks
  • You want active practice, not summaries
  • You have a library of lesson components

Not for: Copyrighted texts you are not allowed to adapt; Assessments with grades that count

What do you need, and what do you get?

You need

  • Source PDF
  • Component library
  • Example lessons

You get

  • Structured lesson
  • Interactive activities
  • Reviewer notes

How does it work, step by step?

  1. Load the materialKeep short texts in context; index long ones for lookup.
  2. Plan the lessonGive a few good examples and have the agent propose a structure.
  3. Pick componentsLet it call tools for quizzes, matching or diagrams with the content filled in.
  4. Review against the sourceA separate reviewer checks each activity is accurate to the text.
  5. Share and reviseSend to learners and fix what confuses them.

The prompt

Our own prompt, inspired by Hassan (@nutlope) and written to work in Custom agent, Claude and ChatGPT. Values in lime are placeholders.

Fill in the blanks (optional; the copied prompt uses your values)

Prompt2 variables
Create an interactive lesson from this material: {source}.
Available components: {components}.
Propose a structure of 4 to 6 sections, choose a component for each with its content, and cite the page or passage it comes from. Then review each item against the source and list corrections before final output.

Inspired by Hassan (@nutlope): Post on building an agent that turns PDFs into interactive courses. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.

What can go wrong?

  • Generated quiz answers can be wrong; the reviewer must compare to the source.
  • Respect the license of the material you convert.

Our take

Hassan (@nutlope) outlines an agent that turns a PDF or textbook into a full interactive course: it parses material, decides a lesson structure from examples, and calls ready-made widgets like Q&A cards. Two design choices make this more than a summary generator. First, the agent assembles lessons from a fixed set of components, so output is consistent. Second, a separate reviewing agent compares each activity with the original text before anything is shared, which matters because generated quiz answers can be wrong. If you build something similar, keep short texts in context and index long ones, give a few strong example lessons so the structure is sensible, and limit the agent to a small, fixed library of widgets, for example question cards, matching drills and diagrams. Send the result to a few learners and fix what confuses them. Check the license of any textbook before converting it, and keep these lessons for practice rather than graded assessments.

Where the time goes back: A chapter becomes practice material in one run, and your time goes into review rather than building activities.

FAQ

Is the app available?
The author said it would be free and open source; check his account for status.
Why a separate reviewer?
A second pass catches errors the generating agent will not see.

Source and credit

Inspired by Hassan (@nutlope). We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.

Inspired by
Post on building an agent that turns PDFs into interactive courses
Creator
Hassan (@nutlope)
Published on
X
Original date
Oct 23, 2025
License
Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
Originally for
Custom agent
AI dry run
Oct 23, 2026: passed. Dry-run tested by our AI test agent on sample input. PASS: Gates held on desk check; no live sends or purchases.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails.
Verified
Oct 24, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.

Are you the creator? Claim or correct this page.

More in Career & Learning

All 37 Career & Learning playbooks →

Related playbooks

Career & LearningSkill✓ AI dry run

Learn any topic with a strict Socratic tutor skill

Load Jane Street's open-source tutoring skill into Claude, ChatGPT or a coding agent so that when you ask to be taught something, it first tests what you already know, keeps a 0 to 5 level for each part of the topic, quizzes you one question at a time without handing over answers, re-tests older material by surprise, and only ends the course after a final mixed exam.

Credit: janestreet

Minutes
Career & LearningSkill✓ AI dry run

Turn any YouTube video into a short course you can take

Save a reusable skill that, whenever you share a YouTube link, asks what skill you hope to gain, pulls the transcript, plans a handful of focused lessons, builds a single HTML course file with quizzes, a final exam and a practice task tied to your goal, then offers follow-up quizzes on what you missed.

Credit: Michael Fenech (@Michael_Fenech_)

Under an hour
Career & LearningWorkflow✓ AI dry run

Write a literature review that can only cite your sources

Use a source-grounded notebook tool so every citation in your review points to a paper you uploaded, in author-year format.

Credit: u/Federal_Weekend_4278 on r/WritingWithAI

Under an hour
Career & LearningRoutine✓ AI dry run

File assistant explanations into a git notes repo

Turn useful chat explanations into durable notes by having the assistant write a summary file into the right git repository, guided by an AGENTS.md in each repo.

Credit: mindcrime on Hacker News

Under an hour
Career & LearningWorkflow✓ AI dry run

Run a systematic review with an agent and checkpoints

Let a research agent draft the questions and screening rules, edit both yourself, then let it search, screen, extract data and produce a PRISMA-style review you audit.

Credit: Mushtaq Bilal, PhD (@MushtaqBilalPhD)

Under an hour