Free guide

How does AI work? Simple explanation, four everyday examples

Most AI you meet works the same basic way: it's shown a huge number of examples, it finds patterns in them, and it uses those patterns to make a good guess about something new. It doesn't look facts up or understand the way you do. Four things already on your phone show how.

Verified 4 Nov 2026 2 live tool facts · How this is maintained


Type "see you" into a text message and your phone offers "soon", "later" or "tomorrow". Nobody wrote a rule telling it to. It has seen enough messages to guess what usually comes next. Hold on to that small guess, because almost everything people call AI is a bigger version of it.

How does AI work? Simple explanation first

How does AI work, in one sentence? It learns patterns from a large set of examples, then uses those patterns to make its best guess about something it hasn't seen before. The examples are called training data. The learning is called training. The thing that comes out, which makes the guesses, is called a model.

Three points follow from that, and they matter more than any technical detail:

The four examples below show the same idea at different sizes.

Example one: your phone's autocomplete

Autocomplete is the simplest case. It has learned which words tend to follow which, and offers the likeliest few. If you often type "running late, sorry", it learns that from you too.

What it does well: saving taps on phrases you use all the time. What it can't do: know what you mean. It will suggest "soon" even when you're about to say "never".

Try asking a chatbot to explain the link itself:

In three short sentences, explain how my phone's autocomplete decides which word to suggest. Assume I know nothing about computers.

Check whether the answer mentions learning from examples. If it talks about a fixed dictionary only, ask it again.

Example two: the spam filter

Your email's spam filter learned from millions of messages that people had already marked as spam or not spam. From those labelled examples it picked up the signals that tend to go with junk: certain phrases, odd senders, too many links. This kind of learning, from examples with the right answer attached, is called supervised learning.

What it does well: catching the obvious junk you never see. Where it slips: a real email from a new contact lands in spam, or a clever scam gets through. Both happen because the filter is matching patterns, not reading for meaning. That's why you still glance at the spam folder now and then.

Example three: recommendations

When a streaming service suggests a series, or a shop shows "people also bought", it's spotting patterns in what large numbers of people chose. If people who watched the same three dramas as you also watched a fourth, that fourth gets suggested to you.

What it does well: finding things you'd plausibly like without anyone curating by hand. What it can't do: know why you watched something. Put on one children's film for a visiting niece in Leeds, and your suggestions fill with cartoons for a week. The pattern is real; the reason behind it is invisible to the system.

Example four: a chatbot

A chatbot such as ChatGPT, made by OpenAI✓, or Gemini, made by Google✓, runs on a large language model. The model was trained on a vast amount of text to do one thing: predict the next small piece of text, called a token, given everything before it. Do that over and over and you get sentences, then whole answers. Further training, including feedback from people, shapes it into something that follows instructions and holds a conversation.

So a chatbot is autocomplete at enormous scale, plus training to be helpful. That explains both its strength and its main weakness. It writes fluently on almost any subject. It can also produce a fluent, confident sentence that is simply false, which is called a hallucination.

ExampleWhat it learned fromWhat it guessesTypical slip
AutocompleteLots of typed messages, including yoursThe next wordSuggests a word you didn't mean
Spam filterEmails labelled spam or notJunk or genuineHides a real email
RecommendationsWhat many people choseWhat you'll like nextMistakes a one-off for a taste
ChatbotA vast amount of text, then feedbackThe next token, repeatedlyStates something false, fluently

Try this to see the chatbot's limits for yourself:

Tell me three facts about the history of my town, [town]. After each one, say how confident you are and how I could check it.

Then check one of them. A local library website or council page will often settle it in a minute. Our guide to why AI gets things wrong explains what's happening when the answer misses.

Where to go deeper

Once the one-sentence idea makes sense, there are three good next steps, roughly in this order:

  1. Words for the ideas. Tokens, training data, context windows and hallucinations come up constantly. The glossary explains each in plain English, one page per term.
  2. Using a chatbot well. Knowing it predicts rather than looks up changes how you ask. Understanding chatbots for beginners covers the first conversations.
  3. How the big models are built. Only if you're curious. It's interesting, and you don't need it to use AI sensibly.

How Teach me AI teaches how AI works

Teach me AI starts at the beginning on purpose. The first level, Foundations, opens with What AI actually is and includes How machines learn, and Builder level includes How large language models work for anyone who wants the inner workings. Lessons use step-through interactive explainers for ideas such as tokens, training and context windows, and diagrams that read on a phone.

If you're not sure where you stand, the quick check is six questions, takes about two minutes and asks for no email. The full placement goes further and builds a path that skips what you already know. The first module is free in full, test included.

Who this won't suit: if you want the mathematics of neural networks, or to train models yourself, a computer science course is the better route. Teach me AI explains how the technology works so you can use and judge it, not so you can build it from scratch.

Four things to remember

Common questions

Does AI actually understand what it says?

Not in the way a person does. A chatbot produces text that fits the patterns in what it learned from, which often matches what someone who understood would say. That's why it can sound sure and still be wrong. Treat its answers as a capable first draft, not a source.

Is AI the same as machine learning?

Machine learning is the main way modern AI is built: a system improves at a task by learning from examples rather than following rules someone wrote by hand. AI is the wider idea of machines doing things we'd call intelligent. Nearly everything called AI today uses machine learning.

Do I need maths to understand how AI works?

Not for a working understanding. You need the idea of learning from examples, the idea of predicting the likeliest next thing, and the habit of checking the result. The maths matters if you want to build models, which most people never will.

Does a chatbot search the internet when I ask it something?

Some do, some don't, and some only do when you switch it on. Without a search, a chatbot answers from patterns it learned during training, which stop at a point in time called its knowledge cutoff. When it does search, check the sources it shows you.

Go deeper

Modules that teach this properly

More on this

Learning AI

Every guide on this topic →

Next step

Find out where you actually stand

A short placement assessment scores you across five skill areas and builds a path through our 18 released modules, skipping whatever you already know. No card needed.

Find your level
When this changes

The facts on this page are re-checked on a schedule. One email a month says what moved in AI tools and the rules, and what it means for you.

Once a month. We’ll email you a link to confirm, and every issue has a one-click unsubscribe. How we use your address.