← Hello, AI

Chapter 1 of 17

Hello, AI · DraftWhat Is AI, Really?

Chapter 1

What Is AI, Really?

Start with the box, not the wiring. Then meet the first — and dumbest — version of our dinner-planning bot, and watch it break in three instructive ways.

A curious person lifting the lid of a large glowing box with gears and sparkles floating out
This is the whole book in one picture: a person, a box, and the question of what's inside. We'll start by describing the box from the outside — and spend the rest of the book lifting the lid.

Start with the black box

Forget everything inside for a moment. From the outside, every AI system ever built looks the same: a box. Something goes in — a question, a photo, a chessboard position. Something comes out — an answer, a label, a move. And the box earns the name artificial intelligence if it does a task that, until recently, we assumed needed a human brain.

That's the most honest definition available: AI is software that does a task we thought required human intelligence. Not "software that thinks." Not "a digital brain." Just: a task got done, and it's the kind of task — translating a sentence, spotting a tumor in an X-ray, planning a dinner — that used to be strictly a people job.

The black-box view of AI "Plan Mom's dinner" input (from a human) ? ? ? the AI system "Book Luigi's, 7pm" output (back to the world)
Every AI system, seen from outside: input in, output out. What makes it "AI" is not the wiring inside the orange box — it's that the task used to need a person. This whole book is the story of what can go inside that box.

Notice something sneaky about this definition: it moves. Optical character recognition — turning a scanned page into text — was cutting-edge AI in the 1970s. Today it's a boring feature of your phone's camera, and nobody calls it AI anymore. Researchers even have a name for this, the "AI effect": once something works reliably, we stop calling it intelligence and start calling it software. Keep that in mind whenever someone tells you what AI "can't do."

There's a second outside view worth owning before we open the box. Every system that earns the AI label runs the same three-beat loop: it senses something about the world, thinks (decides) based on what it sensed, and acts back on the world — which changes the world, which it senses again. What separates a thermostat from a chess program from a chatbot isn't the loop; it's how much happens in the middle beat.

The sense → think → act loop SENSE take in the world THINK decide what to do ACT change the world the world changes → sense again Thermostat room temperature one fixed rule: below 68°? heat on switch the furnace Chess program the board position search millions of possible futures play one move Chatbot your words, in any phrasing weigh billions of learned patterns write a reply
One loop, three tenants. A thermostat runs the loop with a single hand-written rule; a chess program fills the middle beat with brute search; a chatbot fills it with billions of learned patterns. Nobody calls the thermostat AI anymore — the "AI" label tracks how rich the THINK beat is, and (per the sneaky moving definition) it keeps migrating rightward as the simpler tenants become "just software."

Two ways to fill the box: rules or learning

There are exactly two broad strategies for building what goes inside the box, and the entire history of AI is a tug-of-war between them.

Rules-based AI (often called symbolic AI — "symbolic" just means it manipulates written-out symbols and rules, the way you'd follow a recipe): a human sits down, thinks hard about the task, and writes explicit instructions. If this, then that.

Learning-based AI (this is machine learning, the subject of Chapter 2): nobody writes the rules. Instead, the machine is shown many examples of the task done right, and it works out its own internal recipe.

A kitchen picture makes the difference vivid. Rules-based AI is a recipe card: every step written out in advance, and the dish comes out identical every time — but hand the card a missing ingredient and the cook is stuck, because the card says nothing about substitutions. Learning-based AI is a chef who has tasted a thousand dishes: nobody gave her a card, but she's absorbed what works, so when the pantry surprises her she improvises something plausible. The card is auditable and predictable; the chef is flexible but can't always tell you why she added the lemon. (Like every analogy in this book, this one has a crack: the chef genuinely understands food, while a learning machine, as Chapter 2 shows, holds only statistics — competence without comprehension.)

Let's make this concrete with the running example you'll follow through the whole book: planning a birthday dinner for Mom. Here is dinner-bot version 1, built the rules-based way. A programmer interviewed you about Mom once, in 2024, and wrote down what you said as a fixed procedure the bot follows step by step:

  1. If the birthday falls on a weekday, then book dinner for 7:00 pm; otherwise book 6:00 pm.
  2. If Mom's favorite cuisine is Italian (it is — you said so in 2024), then choose from the Italian restaurant list.
  3. If a restaurant on the list is within 15 minutes of Mom's house, then keep it; otherwise cross it off.
  4. If the average main course costs more than $40, then cross it off (family budget rule).
  5. If more than one restaurant survives, then pick the one with the highest star rating.
  6. If no restaurant survives, then output: "ERROR: no matching restaurant found."

Read those six rules again. They're sensible! For the exact situation the programmer imagined, this bot works perfectly — it will book Luigi's Trattoria at 7:00 pm every single year, like clockwork. Rules-based AI is genuinely powerful when the world holds still: tax software, airline booking systems, and the chess programs of the 1990s (including Deep Blue, which beat the world champion in 1997) were all built mostly this way.

Three ways it breaks

But the world does not hold still. Watch dinner-bot v1 meet reality:

  • Mom went vegetarian this year. The bot doesn't know, and nothing in rules 1–6 even mentions food restrictions. It confidently books Luigi's, famous for its veal. The bot isn't wrong by its own lights — it followed every rule flawlessly. The rules are wrong, and no rule can notice that.
  • Luigi's closed last spring. If Luigi's was the only survivor of rules 2–5, the bot hits rule 6 and outputs ERROR. It cannot improvise, widen the search, or try Thai instead. A human would shrug and say "fine, somewhere else Italian-ish" — the bot has no concept of "instead."
  • Mom says: "Oh, just somewhere cozy." Total system failure. "Cozy" appears nowhere in the rules. The bot cannot ask what she means, cannot guess, cannot map "cozy" onto candlelight and small rooms. Any input the programmer didn't foresee is invisible.

This failure pattern has a name: rules-based systems are brittle. They don't degrade gracefully — they work perfectly right up to the edge of what was anticipated, then snap. And the deeper lesson is about cost: every new situation needs a new hand-written rule, and the real world generates new situations faster than any team of programmers can type. That economic dead end is what pushed the field toward learning-based AI — which is Chapter 2's story, where dinner-bot v2 will learn Mom's tastes from data instead of frozen interview notes.

Simplified!

We've drawn "rules vs. learning" as a clean either/or. Real systems mix both. A modern chess engine combines hand-written search rules with a learned evaluation of positions; your email spam filter is learned but sits behind hand-written safety rules ("never block the boss"). The dichotomy is a map, not the territory — but it's the right map for your first pass through this material.

Pop quiz: is it AI?

A shelf lineup of everyday gadgets: calculator, thermostat, smartphone, robot vacuum and a small robot
The gadgets already in your life, lined up for judgment. Some follow fixed rules, some learned from data, and most sit somewhere in between — which is exactly why "is it AI?" rarely gets a clean yes or no.

Armed with the two questions — does it follow fixed rules? and did it learn from data? — you can now sort the gadgets in your own life. Try each row yourself before reading the verdict column. Notice that the verdicts refuse to be a clean yes/no: "AI" is a spectrum, and where you draw the line says more about the year than about the machine.

SystemFollows fixed rules?Learned from data?Verdict
CalculatorYes — arithmetic, exactly as programmedNoNot AI. Nobody ever thought adding needed a mind — it needs bookkeeping.
ThermostatYes — one rule: below the setpoint, heat onNo (a "smart" one may learn your schedule — that sliver is ML)Barely AI, and only historically. It senses, thinks, acts — but the THINK beat is one line.
Spam filterA few safety rules on topYes — trained on millions of labeled emailsYes: classic learned AI. So reliable we stopped noticing it — the moving definition at work.
GPS routingYes — a clever route-search algorithmPartly — live traffic predictions are learnedBorderline. The search is old-school "good software"; the traffic crystal ball is ML.
Face unlockNo usable rules exist for "this is your face"Yes — learned from millions of facesYes: a task no rule-writer could ever specify, only learn.
ChatGPTA thin layer of safety rulesYes — massively, on much of the internetYes: today's headline AI. Learned end to end; Part II opens it up.

The pattern to take away: the more impossible it is to write the rules by hand, the more "AI" the system feels — and the further down the table you go, the more the learning column carries the load.

Narrow vs. general

Here's the second distinction people constantly blur. Every AI system that exists today is narrow AI: brilliant inside one lane, helpless outside it. The chess engine that crushes grandmasters cannot plan a dinner. The dinner bot cannot play chess. Even ChatGPT — which feels general because language touches everything — is one system doing one trained task (producing text, and lately images and actions) extraordinarily well.

Think of narrow AI as a chess grandmaster who cannot make toast. Decades of practice have carved one skill impossibly deep, but step out of the sixty-four squares and there is simply nothing there — not weak toast-making skills, but no toast-making skills, because nothing in a life of chess ever touched bread. The analogy flatters the machine slightly: a human grandmaster could learn toast in an afternoon, while a chess engine cannot learn anything outside chess at all — its narrowness is structural, not just unpracticed.

General AI (you'll see the acronym AGI, for artificial general intelligence) means a system that could learn any intellectual task a person can, switching lanes the way you switch from driving to cooking to comforting a friend. It does not exist. Whether current techniques scale to it is one of the loudest open arguments in the field — serious researchers sit on both sides, with timelines ranging from "a few years" to "not this century, maybe never with these methods."

Narrow AI (all of today's AI)General AI (hypothetical)
ScopeOne task or task familyAny intellectual task
Moving between tasksNeeds retraining or rebuildingAdapts on its own, like a person
ExampleChess engine, spam filter, ChatGPTNone — does not exist yet
Should you worry about it today?Yes — it's deployed everywhereDebatable — it's a research question

Why does this distinction matter to you, practically? Because narrowness explains AI's strangest behavior: the same product can be superhuman and clueless within a single minute. A chatbot can pass a medical licensing exam, then confidently lose a game of tic-tac-toe. That's not a bug being fixed next quarter — it's the signature of narrow systems, deep in some grooves and absent from others. Chapter 10 gives this pattern a name (the "jagged frontier") and turns it into a practical skill: predicting where a given AI will shine and where it will faceplant.

Seventy years in one page

A winding road leading from a room-sized vintage computer in a dark valley toward a bright modern city at sunrise
Seventy years is a long road: from room-sized machines and grand promises, through two cold winters, to the device in your pocket. Knowing the shape of the road makes today's hype — and today's fear — much easier to place.

AI is not new. It's older than the internet, older than the pocket calculator. What's new is that it finally works for everyday tasks — and knowing the shape of the seventy-year road explains a lot of today's hype and fear.

AI history timeline, 1956–2026 1956Dartmouth workshop:"AI" named 1970s–80sExpert systems ← AI winters (funding freezes) → 2012Deep learningbreakthrough 2017Transformer invented 2022ChatGPT:100M users 2025–26Agents
Seventy years, two winters, one explosion. The gray bands mark the "AI winters," when overpromising led to funding collapses — roughly the mid-70s and the late-80s-to-mid-90s. Notice how the landmark dots bunch up on the right: more happened after 2012 than in the fifty years before it.

The walk-through, in five sentences. In 1956, a summer workshop at Dartmouth College launched the field under the name "artificial intelligence" (coined by John McCarthy in the 1955 proposal for the workshop) and predicted rapid success; the founders thought human-level machines were maybe a generation away. The 1970s–80s gave us expert systems — rules-based AI at industrial scale, thousands of hand-written if/then rules capturing (say) a doctor's diagnostic knowledge — which worked, then collapsed under the same brittleness that killed dinner-bot v1, helping bring on the second of the AI winters: long stretches when funding and faith dried up (the first, in the mid-1970s, followed earlier overpromising). In 2012, learning-based AI roared back when a deep neural network (a learning system with many stacked layers — Chapter 2 explains it properly) demolished the field in a famous image-recognition contest, kicking off the deep-learning decade. In 2017, researchers at Google published the transformer, a new learning architecture especially good at language — it's the "T" in GPT, and Chapters 3–4 open it up. In November 2022, ChatGPT wrapped a transformer in a chat window and reached an estimated 100 million monthly users in two months, which analysts at UBS called the fastest-growing consumer app on record at the time; by 2025–26, the frontier had shifted from chatbots that answer to agents that act — systems that can research the restaurant, check your calendar, and book the table (Chapters 8–9).

Misconception: "AI means robots" — and "AI is one thing"

Two corrections in one box. First, AI is not robots. A robot is a body; AI is behavior. Most AI has no body at all — it lives in data centers, ranking your feed and filtering your spam. Most robots, meanwhile, contain barely any AI: a factory arm repeats one motion, blind and mindless. Second, AI is not one thing. It's a family name covering wildly different techniques — hand-written rules, spam-filter-style learners, image recognizers, chatbots — the way "vehicle" covers skateboards and container ships. So the question "Is AI dangerous?" is as underspecified as "Are vehicles fast?" The right response is always: which AI, doing what task?

Since AI is a family name, it helps to see the family tree — and it's not a tree so much as a set of nested circles. Machine learning is one way (now the dominant way) of doing AI; deep learning is one way of doing machine learning; and large language models, the stars of this book, are one application of deep learning. Every LLM is deep learning, every deep-learning system is machine learning, and all of it is AI — but none of those arrows reverse.

AI ⊃ machine learning ⊃ deep learning ⊃ LLMs ARTIFICIAL INTELLIGENCE any software doing a "people task" MACHINE LEARNING rules found from examples DEEP LEARNING many stacked layers LLMs language In AI but not ML: dinner-bot v1's if/then rules; 1980s expert systems In ML but not deep: the 3-knob spam filter you'll build in Chapter 2 Deep but not language: face unlock; the 2012 image-contest winner LLMs: ChatGPT, Claude, Gemini — Part II of this book
The nesting explains the news. When a headline says "AI," it almost always means the innermost orange circle — LLMs — which is one small (if dazzling) region of the map. It also explains the timeline: the field's center of gravity has spent seventy years migrating inward, from the outer ring (hand-written rules, 1956–1990s) through machine learning (1990s–2012) and deep learning (2012–2017) to the orange core (2017–today).

Try it now (5 minutes)

Open any chatbot (ChatGPT, Claude, Gemini — whatever you have). Ask the same question twice, in two different chats, worded two ways. First: "What should I get my mom for her birthday?" Then: "My mom is turning 68, loves gardening but her knees are getting bad, and she says she 'doesn't need more stuff.' What should I get her for her birthday?" Compare the answers. Notice two things: (1) unlike dinner-bot v1, the system didn't error out on messy, unanticipated phrasing — it handled "doesn't need more stuff" the way rule 6 never could; and (2) the quality of what you got out tracked the quality of what you put in. Both observations will be explained, mechanically, by the end of Part II.

Where this leaves us

You now have the two axes that organize everything else in this book: rules vs. learning (how the box is filled) and narrow vs. general (how wide the box's lane is). Dinner-bot v1 was rules-based and narrow, and it snapped the moment Mom changed. The obvious next question is the one the whole field asked after the expert-systems collapse: instead of telling the machine the rules, could the machine work out the rules itself, from examples? That is machine learning, and it's next.

Three resources, easiest first

  1. Easy — Co-Intelligence by Ethan Mollick (2024). A short, warm, zero-jargon book on living and working with today's AI, by a business-school professor who makes his students use it. Read it for judgment, not mechanics.
  2. Deeper — Artificial Intelligence: A Guide for Thinking Humans by Melanie Mitchell (2019). A researcher walks through the field's history, methods, and honest limits. The best single book on why AI is harder than the headlines say.
  3. Deepest — Artificial Intelligence: A Modern Approach by Stuart Russell & Peter Norvig. The standard university textbook, 1,000+ pages. Not for reading cover to cover — for looking up any topic in the field and finding it treated seriously. Keep it on the horizon, not the nightstand.

End of chapter 1

Quick check

Get every answer right to open chapter 2. Try as often as you like.

1. According to this chapter, what makes a system count as AI?
2. Mom went vegetarian, and dinner-bot v1 still booked a veal place. Why?
3. Every AI that exists today is "narrow." What does that mean?