What is artificial intelligence (AI)? A beginner's guide

You already use AI many times a day. Here is what it really is, how a computer can learn without anyone writing the rules, and how today's chatbots and AI agents fit in.

Illustration of a person holding up photo cards labelled Left and Right to a friendly machine labelled AI. The machine looks at a new, unlabelled photo and answers "It's LEFT!". Small icons above show everyday AI - maps, email, face unlock and chat.
Fig. 1 — Show a computer labelled examples, and it can learn to label new ones by itself.

You unlocked your phone with your face this morning. Your email quietly moved a scam message into the spam folder. Your maps app picked the fastest way around a traffic jam. And perhaps you asked a chatbot to help you write something.

All of these are artificial intelligence, or AI. It is not something from the future. It is already in your pocket, and you use it many times a day.

But what is it, exactly? How can a computer do things that used to need a human? This guide explains it in plain English, step by step, with no maths or coding needed.

What is artificial intelligence?

Artificial intelligence (AI) means computer systems that can do tasks that normally need human intelligence.

Most of those tasks fall into four kinds:

  • Recognising: whose face is this? Is this a cat or a dog? What did that person just say?
  • Predicting: how long will this trip take? Which video will you want to watch next?
  • Deciding: is this email spam? Is this card payment fraud?
  • Creating: write a paragraph, draw a picture, answer a question.

AI is a big umbrella word. A face-unlock feature, a spam filter, a route planner and ChatGPT are all AI, even though they work in very different ways and do very different jobs.

Two ways to make a computer smart

There are two very different ways to get a computer to do something “intelligent”.

Two panels. Left: writing rules by hand, with code like 'if hand is up and on the left, say Left', ending in question marks for cases the rules don't cover. Right: machine learning, with a grid of photos labelled L and R and the instruction 'Here are photos labelled Left and Right. Find the pattern yourself.'
Rules written by a person, or a pattern the computer finds from examples.

The old way: writing the rules

Imagine you want a computer to look at a photo and say whether a person is raising their left hand or their right hand.

The traditional way is to write rules: if the hand is up and on the left side, say “Left”. That works for a neat photo. But what if the person stands at the edge of the frame? What if their arm is only half raised, or they are turned sideways? Every new situation needs another rule, and real life has far too many situations. The rules soon become a huge, fragile mess.

Early AI worked mostly like this, with experts writing thousands of rules by hand. It worked for narrow, tidy problems, and struggled with the messy real world.

The modern way: learning from examples

Instead of writing rules, you show the computer examples. You give it a hundred photos labelled “left” and a hundred labelled “right”, and say: find the pattern yourself.

This is called machine learning, and it is how most AI works today. Nobody writes the rule. The computer works it out from the examples.

How a computer learns: train, learn, predict

Machine learning always follows the same three steps. They are worth remembering, because almost every AI system you use does exactly this.

Four cards: 1 Examples, photos labelled Left and Right. 2 Train, the computer finds the pattern itself. 3 Model, what it learned, stored as numbers. 4 Predict, a new photo goes in and Left comes out.
Train, learn, predict. The same three steps, from a tiny hand-pose detector to ChatGPT.
  1. Examples. You collect examples with the right answers attached, called labels. For our hand detector, that is photos marked “left” or “right”.
  2. Train. The computer studies the examples and gradually adjusts itself until its answers match the labels as often as possible.
  3. Model. What it learned is saved as a model. A model is not a list of rules. It is a large collection of numbers that capture the pattern.
  4. Predict. Now you show it a photo it has never seen, with no label. It uses the model and gives an answer: “Left”.

You can try this yourself in a few minutes, with no code. Google’s free Teachable Machine lets you record a few photos of yourself with your left hand up and a few with your right hand up, click Train, and then watch it recognise your pose live through your webcam.

When AI learns the wrong lesson

Here is something surprising that happens a lot. Say you train the hand detector, and it works well. Then you raise your left hand but move it over to the right side of the camera. The AI says: “Right.” Wrong!

Top row, before: three training photos all show the left hand raised in the same spot. A new photo with the left hand moved across is labelled Right, which is wrong. The model learned where the hand was, not which hand. Bottom row, after: training photos show the left hand in different places, and the same new photo is correctly labelled Left.
The model only knows the examples it saw. Better examples fixed it, with no change to the program.

What went wrong? In every “left” photo you gave it, your hand happened to be in the same place. So the AI learned where the hand was, not which hand it was. From the examples it saw, that was a perfectly reasonable pattern to learn. It just wasn’t the one you meant.

The fix is not new code. You add more photos with your left hand in different places, and train again. Now it gets the answer right. You changed the data, not the program.

This small example shows one of the most important ideas in AI:

“An AI only knows the examples it learned from. If the examples are narrow or one-sided, so is the AI.”

The same thing happens in the real world, with much bigger consequences. A system trained mostly on photos of one group of people may work badly for others. A model trained on old data may not understand new situations. Good AI starts with good, varied examples.

What is inside: a neural network

So what does the computer actually adjust when it “learns”? Most modern AI uses a neural network.

A neural network is made of many small units called neurons, arranged in layers. Data goes in at one side, passes through the layers, and an answer comes out at the other side. The name comes from a loose comparison with brain cells, but a neural network is really just maths.

  • Each neuron is a tiny calculator. It takes in some numbers, multiplies each one by a weight, adds them up, and passes the result on.
  • Each weight is just a number on a connection. A big weight means “this input matters a lot for this answer”. A small weight means “not much”.

Learning means finding good weights. Here is a tiny example with just four weights.

A tiny neural network with two inputs, left wrist up equals 1 and right wrist up equals 0, connected to two outputs, LEFT score and RIGHT score, by four weights: 0.2, 0.5, 0.6 and 0.3. The LEFT score works out to 0.2 and the RIGHT score to 0.6, so the guess is RIGHT, which is wrong. The weights are nudged: 0.2 goes up to 0.3 and 0.6 goes down to 0.5.
A simplified network with 2 inputs. Real ones use many more numbers and many more layers.

The photo shows a left hand up. We turn that into numbers: “left wrist up” = 1, “right wrist up” = 0. At the start, the weights are random.

  1. Multiply and add. The LEFT score is 1 × 0.2 + 0 × 0.5 = 0.2. The RIGHT score is 1 × 0.6 + 0 × 0.3 = 0.6.
  2. Compare with the label. The biggest score is RIGHT, but the label says LEFT. The guess is wrong.
  3. Nudge the weights. Weights that pushed toward the right answer go up a little (0.2 → 0.3). Weights that pushed toward the wrong answer go down a little (0.6 → 0.5).

Now do that for every photo, many times over. Bit by bit, the weights settle into values that give the right answer for most photos. That is all “training” means: lots of small nudges to a lot of numbers.

Training vs using

Once training is finished, the weights are frozen and saved. When you use the AI, it doesn’t learn any more. It just takes your new input, multiplies and adds with the saved weights, and the biggest score wins. Same weights, different input, different answer.

This difference matters. Training changes the weights and happens before the AI is released. Using the AI (the technical word is inference) only reads the weights, and happens every time you ask it something.

The AI family: how the big words fit together

You will hear many terms used almost as if they mean the same thing. They don’t, but they are related. Each one sits inside the one before it.

Nested boxes: artificial intelligence contains machine learning, which contains neural networks and deep learning, which contains generative AI, which contains large language models such as ChatGPT, Claude, Gemini and Llama.
From the biggest idea to the most specific one.
  • Artificial intelligence: the whole field. Computers doing tasks that need human-like intelligence, whether by rules or by learning.
  • Machine learning: AI that learns patterns from examples instead of following rules written by a person.
  • Neural networks and deep learning: machine learning built from layers of simple connected neurons. “Deep” just means many layers.
  • Generative AI: AI that creates something new (text, images, music, video or code) instead of only picking a label.
  • Large language models (LLMs): generative AI trained on huge amounts of text to predict what comes next. ChatGPT, Claude and Gemini run on LLMs.

Our hand detector picks a label: left or right. Generative AI makes something new: a paragraph, a picture, a song, a program. Underneath, both are neural networks with learned weights.

LLMs: the engine behind today’s AI tools

A large language model is the same idea as our hand detector, at a completely different scale.

A hand detector A large language model
Examples about 100 photos trillions of words of text
Training seconds, in a web browser weeks to months, on thousands of chips
Weights a handful billions
Learns left hand vs right hand patterns in language
Predicts a label the next piece of text

Both follow the same steps: train, learn, predict. An LLM keeps guessing the next piece of text, one piece at a time, until its answer is complete. Because it learned from so much text, those guesses add up to answers, summaries, translations and working code.

To see how that works in detail, read our guide to what a large language model is.

From chatbots to AI agents

On its own, an LLM can only produce text. Ask it to “book me a cab to the airport at 6 PM” and it will politely explain how you could do that.

Now give the LLM some tools (a calendar, a maps app, a cab-booking app) and let it work in a loop: think about the next step, use a tool, check the result, repeat. That is called an AI agent.

Left: an LLM at the centre of a think, act, check loop, connected to tools: web search, maps, cab app and calendar. Right: the steps for booking a cab to the airport at 6 PM. Think: when is my flight? Act: calendar shows 9:10 PM. Act: maps says 55 minutes to the airport. Check: a 6 PM pickup works. Act: book the cab for 6:00 PM. Done: cab booked.
An LLM plus tools plus a loop. The LLM decides every step.

The agent checks your calendar and finds the flight at 9:10 PM. It asks the maps app how long the drive takes. It checks that a 6 PM pickup leaves enough time, and then books the cab. The LLM decided every one of those steps. This is why LLMs matter so much right now: chatbots, coding assistants and agents are all built around one.

What AI is not

AI is not magic. Underneath, it is numbers learned from examples, and maths that uses them.

AI is not always right. It learns patterns from its examples, and patterns can be wrong, incomplete or one-sided, just like the hand detector that learned where instead of which.

AI does not understand the world the way you do. It can be extremely useful, but it has no experiences or common sense of its own. It only has what it learned from its data.

Not all AI is a chatbot. Most AI around you is quieter: spam filters, photo search, fraud checks, recommendations. Chatbots are just the most visible kind.

AI does not learn from you while you use it. Once trained, its weights are frozen. It only changes when its makers train it again.

Key takeaways

  • AI is computer systems doing tasks that normally need human intelligence: recognising, predicting, deciding and creating.
  • Most AI today uses machine learning: it learns patterns from labelled examples instead of following rules written by people.
  • Every machine learning system follows train → learn → predict.
  • What a model learns is stored as numbers called weights. Training is lots of small nudges to those numbers.
  • An AI is only as good as its examples. Narrow data teaches the wrong lesson.
  • LLMs are the same idea at a huge scale, trained on text to predict what comes next. Give one tools and a loop, and you get an AI agent.

Frequently asked questions

What is AI in simple words?

AI is when a computer does something that normally needs human intelligence, such as recognising a face, predicting a travel time, spotting spam or writing a reply. Most modern AI learns how to do this from examples, rather than from rules a person wrote.

What is the difference between AI and machine learning?

AI is the whole field. Machine learning is one way of building AI, where the computer learns patterns from examples. Almost all the AI you use today is machine learning, which is why the two words are often used as if they were the same.

Is ChatGPT AI?

Yes. ChatGPT is a generative AI app built on a large language model (LLM). It is one kind of AI. A spam filter or face unlock is AI too, but a very different kind.

Does AI think like a human?

No. AI learns patterns from data and uses them to make predictions. It can produce very human-sounding results, but it has no feelings, experiences or understanding of the world in the way people do.

Can I train my own AI without coding?

Yes. Free tools such as Google’s Teachable Machine let you train an image, sound or pose model in your web browser in a few minutes. It is the quickest way to see train, learn and predict happen for yourself.

See it in action

Prefer watching? This video walks through the same ideas with live, hands-on demos.

Video thumbnail: What is artificial intelligence (AI)? A beginner's guideWatch on YouTube ↗

Comments

LEAVE A COMMENT
No sign-up. Comments appear after a quick review.