How AI thinks: a guide in 8 steps

The human brain

You think in experiences.

Neurons collect tiny signals and fire when they are strong enough. When you learn, some connections grow stronger. What you know lives there.

86 billionneurons
~20 Wabout a light bulb

The artificial neural network

A machine thinks in probabilities.

Artificial neurons multiply inputs by numbers called weights, add them up and pass the result on. What it "knows" lives in those numbers.

Billionsof weights
Data centerswhere it runs

One question, two minds

Should I go for a run?

How you think

How the network thinks

0%

Teach it what you really did

You

vs

The model

You learn all the time, from a few examples

Learning

learned from a huge amount of text, then tuned with human feedback

You have lived in the world

Experience

knows how we talk about the world

You remember a lifetime

Memory

sees what fits in the conversation, plus any memory you switch on

About 20 watts, all day

Energy

runs on data-center chips that draw hundreds of watts each

You forget details, and sometimes fill the gaps without noticing

Mistakes

fills gaps fluently, with no feeling of doubt

A chatbot is that one neuron, scaled up. A language model stacks many layers of them in a design called a transformer, where an attention mechanism lets every word weigh every other word. Instead of one yes or no, it outputs a probability for every possible next piece of text. It is first trained on huge amounts of text to predict what comes next, then tuned with human feedback to be helpful and careful.

Take away

AI knows the patterns of language, not the life you lived. The context is yours to give.

Tokens · prediction · memory

It doesn't read words. It reads pieces.

Everything you type is cut into small pieces called tokens. Then the model gives every possible next piece a probability, picks one, and repeats, using only what it can see.

1 · Cut

Type anything.

0tokens
0characters

Illustrative split. Every model cuts text its own way.

2 · Predict

Then it guesses.

It's 38°C and I just ordered an iced latte.The coffee is very hot

Same model, different words in front of it. “Ask again” picks by weighted chance, so one question can answer differently. The dial for that is called temperature.

3 · Remember

It only sees what fits.

The conversation keeps moving. Whatever slides out of the context window no longer exists for the model.

context window

Schematic. Today's windows hold many pages, but they still have a limit.

Take away

Whatever you don't write, it guesses.

Same need, two prompts

How you ask changes the answer.

Drag the handle. Same model, same task. The only difference is what you told it.

Vague

"Write an email to my client."

Subject: Following up Dear Client, I hope this email finds you well. I wanted to follow up regarding our recent work together. Please let me know if you have any questions. Best regards

Specific

"I'm Nikos, a freelance designer. My client Maria paid invoice #214 (€400) 20 days late, right after we finished her spring campaign. Write a polite reminder that keeps the relationship warm and asks for payment by Friday. 5 to 6 lines, with a subject."

Subject: Invoice #214, a friendly reminder Hi Maria, I hope the spring campaign is going well! A quick reminder that invoice #214 (€400) is now 20 days overdue. Could you arrange payment by Friday? Thanks again for a great project. Nikos

+ who you are+ the goal+ the facts+ the limits+ the format
Take away

A weak answer usually means a thin question.

Six ingredients

Build a better question.

Talk to it like a brilliant new colleague who knows nothing about you. Five ingredients shape the first message; the sixth keeps the conversation going. Fill them in and watch the prompt assemble itself.

0 of 6ingredients

Your prompt

Try
Show, don't just tell

Paste one example of what good looks like. It copies patterns better than it obeys adjectives.

Let it interview you

“Ask me up to 5 questions before you start.” Your answers replace its guesses.

Allow “I don't know”

“If the material doesn't say, tell me.” Without permission, it prefers a smooth answer to an honest gap.

Name the reader

“For a manager with 2 minutes” changes the length, the tone and what gets left out.

Take away

The first answer is a draft. The conversation is where it gets good.

Seven everyday uses

Put it to work.

What it's great at, where to be careful, and a prompt you can steal.

Take away

It's not a calculator. It's someone who knows how to use one, if you ask.

Agentic workflows

From chatting to delegating.

An agent is a model with tools and a loop. It plans, acts, checks the result and goes again until the job is done. You step in for anything that can't be undone.

Plan Act Check tools: search, files, code YOU APPROVE

Sending, paying, deleting: the agent stops and asks you.

Many agents at once

Split the job. Run it in parallel.

Market research for a new product, in four independent pieces, plus a reviewer that checks the result.

0 minIllustrative timing
1 ruleWhoever builds doesn't judge. A model tends to approve its own work.
"In my studio, where I build games with AI agents, I split the roles: the agent that builds never reviews. Reviewers start with a clean context and have never seen the builder's explanation. Mistakes started getting caught before they reached me."
Stavros Lazaris · lessons from running an AI game studio
Good fit

Work you can check, with a clear definition of done: research, refactors, reports, test runs.

Poor fit

Vague goals, one-shot irreversible actions, or high stakes with no reviewer.

The price

More time, more cost, and a longer trail to debug. Start with one agent and add roles when it hurts.

Every tool is a permission

Search, files, email, payments: grant the smallest set the job needs, and keep approval on the irreversible ones.

Take away

Don't just ask for answers. Hand over work: in pieces, with a reviewer.

Limits and safety

Trust it, after you check it.

A model is trained to continue text plausibly, not to know when it doesn't know. Each answer below hides one mistake. Tap the part you don't trust.

0 / 3mistakes found
Names, numbers, sourcesOpen the link. Re-run the math.
Anything recentWithout search, it doesn't know.
Private dataNo passwords or IDs, no one else's personal details. Know what your settings do with your chats.
Hidden instructionsWeb pages and files can hide commands for an agent. Never let it act on them unasked.
It agrees with youModels lean toward flattery. Ask it to argue the other side.
Your name on itYou sign it, you check it.
Take away

The answer is a draft. The responsibility is yours.

Everything on one card

Your card.

It filled in while you read. Copy it, keep it, send it to a friend.

Keep this

How to work with AI

    Illustrated portrait of Stavros Lazaris

    Written by Stavros Lazaris, frontend developer and design-systems architect who builds games and products with teams of AI agents.

    stavroslazaris.gr →