Interactive AI Education for Healthcare

Learn AI
like a
Doctor

From tokens to agent building โ€” master AI with interactive demos, animated visual lessons, and real healthcare examples. No prior tech background needed.

Sign in to get notified about updates & new modules

Sign in with Manus
TokenLLMAgentPromptMemoryEmbeddingsContextWorkflow
MDTraining Agent
What is a token?
๐Ÿช™

Token

The smallest unit of text an AI reads

AI Concept
โœจ Visual๐Ÿฅ Example๐ŸŽฎ Try It

โ€œFollow up with patient tomorrowโ€ โ†’

Follow up with patient tomorrow

9 tokens ยท ~$0.00001 ยท 0.004% of context

Interactive Concepts

12

Healthcare Focused

Live Examples

12
Core Concepts
6
Use Cases
< 1 min
Per Lesson

The 12 Concepts Every HealthcareProfessional Should Know

Tap each card to flip it and reveal the full explanation with healthcare examples. Master all 12 to understand how AI works in clinical settings.

Tap any card to flip it
๐Ÿง 

Model

The AI brain that reads and generates text.

Tap to explore
๐Ÿง 

Model

A model is a large neural network trained on billions of words from the internet, books, and scientific papers. It learns patterns in language so well that it can answer questions, write documents, summarize data, and reason through complex problems. Think of it like a very well-read consultant available 24/7.

๐Ÿฅ Healthcare: GPT-4 or Claude reading a patient intake form and drafting a visit summary in seconds โ€” the same way a resident reviews notes before the attending walks in.
๐Ÿ”ค

Token

The smallest unit of text the AI reads.

Tap to explore
๐Ÿ”ค

Token

Tokens are the pieces AI splits text into before reading it. A token is roughly 4 characters or 3/4 of a word. The sentence 'Hello, how are you?' is about 5 tokens. AI models have limits on how many tokens they can process at once โ€” this is the context window.

๐Ÿฅ Healthcare: A 3-page discharge summary is about 1,500 tokens. A full clinical note with vitals, labs, and assessment might be 800 tokens. Knowing this helps you fit the right amount of context into the AI's window.
โœ๏ธ

Prompt

The instructions you give to the AI.

Tap to explore
โœ๏ธ

Prompt

A prompt is any text you send to an AI model to get a response. Great prompts have four parts: Role (who the AI should be), Task (what to do), Context (background information), and Format (how to structure the output). Better prompts produce dramatically better results.

๐Ÿฅ Healthcare: Instead of 'summarize this note', say: 'You are a clinical documentation specialist. Summarize this progress note in SOAP format for a cardiologist handoff. Focus on medications, vitals, and assessment. Keep it under 200 words.'
๐Ÿ“‹

Context Window

The AI's working memory โ€” everything it can see at once.

Tap to explore
๐Ÿ“‹

Context Window

The context window is the maximum amount of text (measured in tokens) an AI can process in a single interaction. It includes your prompt, the conversation history, and the AI's response. When the context fills up, older messages are forgotten. Modern models have windows from 8K to 200K tokens.

๐Ÿฅ Healthcare: A 30-minute patient interview transcript is ~5,000 tokens. Claude's 200K context window can hold the equivalent of an entire patient chart โ€” history, labs, notes, and your questions โ€” all at once.
๐Ÿ—บ๏ธ

Embeddings

Numbers that capture the meaning of words.

Tap to explore
๐Ÿ—บ๏ธ

Embeddings

Embeddings convert text into lists of numbers (vectors) that represent meaning. Words or sentences with similar meanings end up close together in this mathematical space. This allows AI to find related content even when the exact words don't match โ€” powering semantic search and retrieval systems.

๐Ÿฅ Healthcare: A patient asks 'my chest feels tight'. Using embeddings, the system finds relevant records about 'chest pain', 'angina', and 'cardiac symptoms' โ€” even without the exact words matching.
๐Ÿ’พ

Memory

How AI remembers information across conversations.

Tap to explore
๐Ÿ’พ

Memory

By default, AI has no memory between conversations. But memory can be added in four ways: no memory (every session is fresh), session memory (remembers within one conversation), long-term memory (stores and retrieves past information), and tool-backed memory (reads from databases, EHRs, or files).

๐Ÿฅ Healthcare: A clinic scheduling assistant with long-term memory knows Mrs. Johnson always prefers Tuesday mornings, is allergic to penicillin, and saw Dr. Patel last time โ€” without being told again.
โšก

LLM

Large Language Model โ€” the technology behind ChatGPT and Claude.

Tap to explore
โšก

LLM

LLM stands for Large Language Model. These are AI systems trained on massive amounts of text using transformer architecture. They predict the most likely next token given previous tokens. Despite this simple mechanism, LLMs demonstrate remarkable reasoning, coding, writing, and analysis abilities.

๐Ÿฅ Healthcare: When you type a clinical question into an AI-powered EHR copilot, an LLM processes your query, considers the context of the chart, and generates a relevant suggestion โ€” all in under 2 seconds.
๐Ÿ’ฌ

Chatbot vs Agent

Chatbots reply. Agents plan, act, and complete tasks.

Tap to explore
๐Ÿ’ฌ

Chatbot vs Agent

A chatbot takes a question and returns an answer โ€” one step, then done. An agent can plan multiple steps, use tools (search, database, calculator), loop back if something goes wrong, and complete a complex task autonomously. Agents are chatbots with superpowers: memory, tools, and the ability to take actions in the world.

๐Ÿฅ Healthcare: A chatbot answers 'What are office hours?' An agent books your appointment: checks availability, sends a confirmation text, adds to the EHR schedule, and follows up if you don't confirm.
๐Ÿค–

Agent

An AI that can plan, use tools, and complete multi-step tasks.

Tap to explore
๐Ÿค–

Agent

An AI agent is a system that perceives its environment, reasons about goals, plans a sequence of actions, executes tools, observes results, and adapts until the task is complete. Unlike chatbots, agents can take actions: search the web, query a database, send emails, fill forms, or call APIs.

๐Ÿฅ Healthcare: A prior authorization agent: receives the request, looks up patient eligibility, matches diagnosis codes to payer criteria, drafts the appeal letter, submits to the payer portal, and pings the care coordinator when approved.
๐Ÿ”ง

Tools

Functions the AI can call to interact with the real world.

Tap to explore
๐Ÿ”ง

Tools

Tools are functions that an AI agent can invoke to take actions beyond just generating text. Common tools include: web search, database queries, calculator, file reader, calendar API, email sender, and form filler. Tools are what transform a chatbot into an agent capable of completing real tasks.

๐Ÿฅ Healthcare: An AI clinical assistant might have tools: [search_clinical_guidelines], [check_drug_interactions], [pull_patient_labs], [draft_prior_auth], [send_referral_fax]. Each tool does one specific job reliably.
โœจ

Skills

Reusable AI prompt templates for specific tasks.

Tap to explore
โœจ

Skills

Skills are pre-built, tested prompt templates that an agent can deploy for specific tasks. A skill bundles together the role, instructions, format, and examples needed for one job. Think of skills as the AI's job description cards โ€” each one tells it exactly how to handle a particular situation.

๐Ÿฅ Healthcare: Skills in a clinic AI: [SOAP_Note_Writer], [Patient_Education_Generator], [Insurance_Denial_Appealer], [Appointment_Reminder_Sender], [Referral_Summary_Creator]. Each skill has been tested and approved for its specific purpose.
๐Ÿ”„

Workflow

A step-by-step blueprint connecting agents, tools, and skills.

Tap to explore
๐Ÿ”„

Workflow

A workflow is a defined sequence of steps: what data to gather, which tools to run, which agent handles each stage, what to do if something fails, and what the final output looks like. Workflows are written in plain language or code and are the SOPs of your AI system โ€” they make AI behavior predictable and auditable.

๐Ÿฅ Healthcare: Patient Intake Workflow: (1) Patient fills form โ†’ (2) AI extracts demographics โ†’ (3) Insurance verified via API โ†’ (4) Prior conditions flagged โ†’ (5) Appointment scheduled โ†’ (6) Welcome message sent โ†’ (7) Chart prepped for provider.
Foundation โ†’ Interaction โ†’ Technical โ†’ Application
Video Lessons

Learn AI in 60 Seconds

Bite-sized explainers on AI concepts โ€” built specifically for healthcare professionals. No jargon, no fluff.

Playlist refreshed Mar 28, 08:57 PM
Building a Practical AI Agent with Claude CoWork
Short
0:33

Building a Practical AI Agent with Claude CoWork

AI for everyone

See How AI Reads Your Text

Type any clinical note and watch it break into tokens in real time. Understand token count, cost, and context window usage.

67
Approx. Tokens
266
Characters
$0.0010
Est. Cost
0.05%
Context Used
GPT-4 Context Window Usage (128K tokens)0.052%

๐Ÿ’ก A full 200K Claude context window holds ~150,000 words โ€” equivalent to a 600-page medical textbook.

Show token visualization

Text split into approximate tokens:

Patientยทisยทaยท67-year-oldยทmaleยทwithยทaยทhistoryยทofยทcongestiveยทheartยทfailureยทpresentingยทwithยทprogressiveยทdyspneaยทonยทexertionยทforยทtheยทpastยทthreeยทdays.ยทHeยทreportsยท2+ยทbilateralยทankleยทedemaยทandยทorthopneaยทrequiringยทtwoยทpillows.ยทVitals:ยทBPยท148/92,ยทHRยท88,ยทSpO2ยท94%ยทonยทroomยทair.
๐Ÿ’ฐ
Cost Matters
More tokens = higher API cost. Concise prompts save money at scale.
โšก
Speed Impact
Fewer tokens means faster responses โ€” critical for real-time clinical tools.
๐Ÿ“
Context Limit
When the window fills up, AI forgets earlier content. Plan accordingly.

Build Better Prompts

The difference between a vague question and a great prompt is structured thinking. Fill in each slot to build a clinical-grade AI instruction.

Load an example:

Prompt Quality Score10/10 โ€” Excellent
Sets the AI's persona, expertise, and tone.
One clear, specific action.
Background knowledge the AI needs to do the task well.
Specifies structure, length, and style of output.
Safety rails and limitations for the AI.

The AI's Working Memory

Watch what happens when a conversation grows longer than the AI can hold. Click to add messages and see older ones get forgotten.

Context Window (120 token demo)104 / 120 tokens
025%50%75%100%
What medications is Mr. Smith on?
~12 tokens
๐Ÿ‘ค
๐Ÿค–
Mr. Smith is on lisinopril 10mg, metformin 500mg, and atorvastatin 40mg.
~28 tokens
What were his last A1C results?
~14 tokens
๐Ÿ‘ค
๐Ÿค–
His last A1C was 7.2% taken on January 15th โ€” improved from 8.1% six months ago.
~32 tokens
Can you draft a referral note to his cardiologist?
~18 tokens
๐Ÿ‘ค

๐Ÿ’ก Real models have much larger windows (8Kโ€“200K tokens) but the same principle applies: older content eventually falls out.

๐Ÿ“

Size Matters

GPT-4: 128K tokens. Claude 3: 200K. A 200K window fits ~500 pages of text.

๐Ÿ’ฐ

Bigger = Pricier

Larger context windows cost more per API call. Efficient prompts save real money.

๐Ÿ”

RAG to the Rescue

Retrieval systems fetch only the relevant content โ€” solving the context limit problem.

How AI Finds Meaning

Embeddings turn words into numbers that capture meaning. Words with similar meanings cluster together. Select a patient query to see which concepts match โ€” even without exact words.

Patient says... (Select a query)

๐Ÿ”
Heart Attack
Chest Pain
Cardiac Arrest
Angina
Diabetes
Blood Glucose
Insulin
A1C
Medication
Prescription
Dosage
Anxiety
Depression
Stress
semantic space โ†’
โ†‘ similarity
Cardiac
Diabetes
Medication
Mental Health
๐Ÿ”
Query match center
How it works: Embeddings place words with similar meanings close together in a mathematical space. When a patient says โ€œmy chest hurtsโ€, the AI finds the 4 closest concepts โ€” even without exact keyword matches. This powers intelligent clinical search.

4 Ways AI Can Remember

AI memory is not one-size-fits-all. From stateless chatbots to database-connected agents, each memory type serves a different clinical purpose.

๐ŸšซDefault Mode

No Memory

Stateless

Every conversation starts completely fresh. The AI has no knowledge of previous interactions.

Remembers within session
Remembers across sessions
Accesses patient history
Privacy-safe by default
โ€œPatient asks: 'You helped me with my medications last week.' AI says: 'I have no record of that. This is our first conversation.'โ€

Best for: Anonymous helpdesk, public FAQ bots

โฑ๏ธMost Common

Session Memory

In-Context

Remembers everything said during the current conversation. Forgets when the session ends.

Remembers within session
Remembers across sessions
Accesses patient history
Privacy-safe by default
โ€œDuring one call: 'My A1C is 7.2%... [20 messages later] ...what was my A1C again?' AI correctly recalls 7.2%.โ€

Best for: Appointment scheduling calls, intake forms

๐Ÿง Advanced

Long-Term Memory

Persistent

Stores key information in a database and retrieves it across future sessions.

Remembers within session
Remembers across sessions
Accesses patient history
Requires consent and storage
โ€œThree months later: Patient returns. AI recalls: 'Welcome back, Mrs. Johnson. You prefer Tuesday mornings and are allergic to penicillin.'โ€

Best for: Chronic care management, patient navigation

๐Ÿ”—Enterprise

Tool-Backed Memory

Database Connected

Reads live from EHR, CRM, or database. Access to real patient data in real time.

Remembers within session
Remembers across sessions
Accesses live patient data
HIPAA compliance required
โ€œAI pulls live from Epic: 'Based on your chart, your last visit was March 3rd. Dr. Patel ordered a fasting glucose. Results are pending.'โ€

Best for: Clinical AI copilots, prior auth, care coordination

What's the Difference?

Chatbots reply. Agents act. See the difference side-by-side with a real scheduling scenario.

Chatbot

Responds only

4 steps
๐Ÿ’ฌ

Patient asks question

"I need to schedule an appointment"

๐Ÿค”

AI processes request

Understands intent

๐Ÿ“

Returns text reply

"Please call (555) 123-4567 to schedule."

โœ…

Done

Patient must do the rest themselves

โš ๏ธ Patient must still call to book. Chatbot answered the question but took no action.

Agent

Plans โ†’ Acts โ†’ Completes

6 steps (automated)
๐Ÿ’ฌ

Patient texts request

"I need to see Dr. Patel this week"

๐Ÿง 

Agent plans steps

Goal โ†’ Identify patient โ†’ Check calendar โ†’ Confirm insurance

๐Ÿ”ง

Uses tools

[pull_patient_record] [check_availability] [verify_insurance]

๐Ÿ“…

Books appointment

Finds slot, reserves in EHR

๐Ÿ“ฑ

Sends confirmation

SMS + calendar invite sent automatically

โœ…

Task complete

Without patient lifting a finger

โœ… Appointment booked automatically. Patient receives confirmation text. No staff intervention needed.

Design a Healthcare AI Agent

Follow the 8-step framework to plan your own AI agent. Each step guides you through goal, role, memory, tools, guardrails, workflow, review, and testing.

Step 1 of 80% Complete
๐ŸŽฏ
Step 1 of 8

Define the Goal

Every agent needs a single, clear objective. Vague goals produce vague agents.

Example:

Goal: Automatically handle patient appointment requests via text message and schedule them in the EHR without staff intervention.

๐Ÿ’ก One agent, one primary goal๐Ÿ’ก Write it in one sentence๐Ÿ’ก Include who the user is and what success looks like
0/8 steps documented

๐Ÿ—๏ธ The WAT Framework

The WAT (Workflowsโ€“Agentsโ€“Tools) framework is how reliable healthcare AI systems are built. Probabilistic AI handles reasoning; deterministic code handles execution.

๐Ÿ“‹
Workflows
SOPs in plain language
๐Ÿค–
Agents
Decision-makers (like you!)
๐Ÿ”ง
Tools
Deterministic code scripts

Build Your First Desktop Agent

A complete, step-by-step guide to building an AI agent that runs Claude Desktop and controls your computer โ€” from installation to production deployment.

8 detailed steps
Real code examples
Safety guardrails
Production ready
Your progress0 / 8 steps
STEP 1Beginner5 min read

๐Ÿ–ฅ๏ธ Understand What a Desktop Agent Is

The concept before the code

A desktop agent is an AI that can see your screen, move the mouse, click buttons, type text, open files, and interact with any application โ€” exactly like a human operator would, but driven by Claude's reasoning engine.

Unlike a chatbot that only responds with text, a desktop agent takes real actions on your computer. It uses Anthropic's computer-use capability, which gives Claude three special tools: screenshot, computer_use_mouse, and computer_use_keyboard.

๐ŸŽฏ

Your Task / Goal

Natural language instruction

๐Ÿง 

Claude Desktop (LLM Brain)

Reasoning, planning, decision-making

๐Ÿ”Œ

MCP Server (Tool Bridge)

Model Context Protocol โ€” exposes tools to Claude

๐Ÿ–ฅ๏ธ

Computer-Use API

Screenshot โ†’ Analyse โ†’ Click / Type / Scroll

โš™๏ธ

Operating System / Apps

Files, browsers, terminals, desktop apps

Claude Desktop is Anthropic's official app that connects Claude to your local machine via the Model Context Protocol (MCP). It is the easiest way to run a desktop agent without writing a custom server.

Sees your screen

Takes screenshots to understand the current state

Controls input

Clicks, types, scrolls, and drags

Manages files

Opens, reads, writes, and organises files

Runs commands

Executes shell commands and scripts

STEP 2Beginner10 min

๐Ÿ“ฅ Install Claude Desktop

Get the official Anthropic app

STEP 3Beginner15 min

โš™๏ธ Enable Computer-Use & Configure MCP

Unlock the desktop control capabilities

STEP 4Intermediate20 min

๐Ÿ’ป Write Your First Agent Loop (Python)

Build a programmatic agent with the Anthropic SDK

STEP 5Beginner10 min

โ–ถ๏ธ Run Your First Task

Test the agent on a real desktop action

STEP 6Intermediate25 min

๐Ÿ”ง Add Custom Tools via MCP

Extend your agent with domain-specific capabilities

STEP 7Intermediate15 min

๐Ÿ›ก๏ธ Add Safety Guardrails

Prevent unintended actions โ€” especially in healthcare

STEP 8Advanced20 min

๐Ÿš€ Deploy & Schedule Your Agent

Run it automatically on a schedule or trigger

Quick Reference โ€” Key Commands

Install SDKpip install anthropic pyautogui pillow
Set API keyexport ANTHROPIC_API_KEY=sk-ant-...
Run agentpython desktop_agent.py
Install MCP SDKpip install mcp
Config location (mac)~/Library/Application Support/Claude/
Restart Claude DesktopQuit fully โ†’ reopen app

AI in Your Clinic Today

These are real workflow problems AI agents are solving right now in clinics and hospitals. Each case shows the AI concepts at work.

๐Ÿ›ก๏ธ All examples use fictional patient data. HIPAA-safe demo environment.
๐Ÿ“‹
Front Desk

Patient Intake Automation

15 min per patient

Front desk staff spend 15-20 minutes per patient manually collecting demographics, insurance, and chief complaint.

agenttoolsworkflowmemory

AI Solution

An AI agent collects patient info via text/web form, verifies insurance in real time, flags missing fields, and pre-populates the EHR chart before the patient arrives.

How It Works

1
Patient receives intake link via SMS
2
AI collects demographics and chief complaint
3
Insurance eligibility verified via API
4
Chart pre-populated in EHR
5
Provider alerted patient is ready

Tools Used

[form_parser][insurance_verify][ehr_write][text_sender]
๐Ÿ“…
Scheduling

Intelligent Appointment Scheduling

4 phone calls per booking

Phone-tag for scheduling takes 3-5 calls per appointment. 30% of no-shows are due to poor communication.

agentmemorytoolschatbot
๐Ÿ›ก๏ธ
Billing

Real-Time Insurance Verification

10 min per verification

Manual eligibility checks take 8-12 minutes per patient. Errors cause claim denials that cost $118 each to rework.

toolsworkflowagent
โ†”๏ธ
Specialists

Automated Referral Intake

2 days per referral

Referral processing takes 2-4 days. Incomplete referrals cause 40% rework and delay patient care.

embeddingstoolsworkflowagent
๐Ÿ””
Patient Engagement

Personalized Reminder System

2 staff hours per day

Generic reminders have 35% open rates. No-show rate costs the average practice $150,000/year.

memoryworkflowtools
โœ…
Utilization Management

Prior Authorization Agent

14 hours per physician per week

Prior auth takes physicians 14 hours/week and is the #1 contributor to burnout. 87% are eventually approved.

agentmemoryskillsworkflow

Your AI Tutor, Available 24/7

Ask any AI question in plain English. Get clear, concise answers with healthcare examples. Your patient AI teacher never gets tired of explaining.

MDTraining Agent

AI Education Assistant

Hi! I'm MDTraining Agent ๐Ÿ‘‹ Ask me any AI concept and I'll show you an interactive visual lesson โ€” not just plain text. Try: "What is a token?" or "Explain embeddings". For other questions, I'll answer in plain English with healthcare examples.

๐Ÿ›ก๏ธ This assistant is for AI education only. It does not provide medical advice, diagnoses, or clinical recommendations. All examples use fictional patient data. Requires ANTHROPIC_API_KEY to function.