Generative AI โ€บ Foundations โ€บ What is AI?
LESSON 1 ยท FOUNDATIONS

What is AI?

Artificial Intelligence is the idea of building computer systems that can perform tasks that normally require human intelligence โ€” such as understanding language, recognizing patterns, making decisions, and generating useful outputs.

What problem does AI solve?

Computers are excellent at following precise instructions. But many real-world problems are not easy to describe with a fixed list of rules.

For example, an online store may need to decide whether a customer is likely to want a product, an email system may need to detect spam, and a support system may need to route a message to the right team.

The simple idea

AI gives software a way to perceive information, find patterns, make decisions, or generate outputs so it can solve tasks that are difficult to handle with ordinary fixed rules alone.

AI in one simple picture

An AI system turns information into an action, prediction, decision, or generated result.

Two ways AI can behave

Example 1

Rule-based intelligence

A system can use explicit rules to make a decision.

Customer messageโ†’Check keywordsโ†’Route ticket

This is useful when the rules are clear and stable.

Example 2

Learning from data

A machine-learning system can learn patterns from examples instead of requiring every rule to be written manually.

Past examplesโ†’Learn patternsโ†’New prediction

This is one of the most important ways modern AI is built.

AI, Machine Learning, Deep Learning, and Generative AI

These terms are related, but they are not interchangeable.

Artificial Intelligence The broad field of making machines perform tasks that require intelligence.
Machine Learning A major approach where systems learn patterns from data.
Deep Learning Machine learning using multi-layer neural networks.
Generative AI AI that can generate new content such as text, images, audio, or code.

Build your first simple AI-style decision system

Before using machine learning models, it is useful to see the core idea in plain Python: information comes in, the system evaluates it, and a decision comes out.

</> Python
# A simple support-ticket router

def route_ticket(message):
    text = message.lower()

    if "payment" in text or "refund" in text:
        return "Billing"

    if "password" in text or "login" in text:
        return "Account Support"

    return "General Support"


ticket = "I need a refund for my payment"

print(route_ticket(ticket))
OUTPUT
Billing
What just happened?
  1. The system received a customer message.
  2. It examined the information for useful patterns.
  3. It made a decision about where the ticket should go.

This example is intentionally simple. Modern AI can replace hand-written rules with models that learn patterns from large amounts of data.

Now make the system smarter

Try changing the ticket text. The same system should produce different decisions.

</> Python
tickets = [
    "I cannot log in to my account",
    "Where is my refund?",
    "How can I change my address?",
]

for ticket in tickets:
    category = route_ticket(ticket)
    print(ticket, "โ†’", category)

The important pattern is not the keywords. It is the pipeline: input โ†’ processing โ†’ decision.

Where do you see AI every day?

SearchRank and understand useful results.
RecommendationsSuggest products, videos, or music.
Fraud detectionSpot unusual transaction patterns.
VisionDetect objects or understand images.
LanguageTranslate, summarize, classify, or answer questions.
Generative AICreate text, images, code, audio, and more.

Practice

LEVEL 1 ยท UNDERSTAND

Build a simple email router

Write a Python function that routes an email into Sales, Support, or Other based on words you define.

Open in Google Colab โ†’
LEVEL 2 ยท CHALLENGE

Handle ambiguous messages

What happens when a message contains both billing and account-related words? Decide which rule should have priority and explain why.

Think โ†’ Code โ†’ Test

Quick quiz

1. Which statement best describes AI?

A. Only robots that look like humans
B. Systems designed to perform tasks that require aspects of intelligence
C. Any computer program

2. Which is a common modern approach for building AI systems?

A. Machine learning from data
B. Writing every possible answer manually
C. Only using physical robots
RECAP

AI is about intelligent behavior

  • AI is the broad field of building systems that perform tasks requiring aspects of intelligence.
  • AI systems can work with text, images, audio, numbers, and many other kinds of information.
  • Machine learning is one major way modern AI systems learn patterns from data.
  • Generative AI focuses on creating new content.
  • A useful mental model is input โ†’ AI processing โ†’ output.