Complete Briefing ·
AI × ML
Automation
From zero technical knowledge to building real AI-powered automation systems using Claude, MCP, Python, and Cloud — with working examples.
FocusClaude API · Agents · Cloud
StyleLearn by building
Level0 → Production
Contents
  1. The Foundation — Computers, Servers & the InternetHow machines talk · HTTP · APIs
  2. Languages — What to Learn and WhyPython · JS · SQL · which matters for AI
  3. AI & ML — The Big PictureAI vs ML vs DL vs LLM · how training works
  4. Claude — Models, API & PromptsSonnet · Opus · Haiku · tokens · tool use
  5. MCP — Connecting AI to the Real WorldModel Context Protocol · plugins · integrations
  6. Building AI AgentsWhat an agent is · loops · memory · multi-agent
  7. Automation Workflowsn8n · Make · Claude in workflows · real examples
  8. Cloud — Deploy Your SystemAWS · GCP · servers · containers · production
  9. Your 90-Day RoadmapWeek-by-week learning plan with projects
01
Foundation

Computers, Servers & the Internet

Before touching AI, you need one mental model: every piece of software is just computers talking to other computers over wires.

What is a Server?

A server is just a computer that is always on and waits for requests. When you open Instagram, your phone sends a request to Meta's servers. The server finds your photos and sends them back. That's it.

Analogy
Restaurant model: Your phone = customer. The internet = the road. The server = the kitchen. The API = the waiter who takes your order and brings food back.

How the Internet Works (Simply)

01You type URL in browser
02DNS finds the server's IP address
03HTTP request sent to server
04Server processes & sends back response
05Browser renders the page

What is an API?

An API (Application Programming Interface) is a defined way for programs to communicate. Instead of a human visiting a website, your code sends a structured request and gets data back.

# Calling the Claude API from Python — this is how you "talk to AI" from code
import anthropic

client = anthropic.Anthropic(api_key="your-key-here")

message = client.messages.create(
    model="claude-sonnet-4-5",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Summarize this email for me"}]
)

print(message.content[0].text)
# → "The email is about a meeting scheduled for Friday at 3pm..."
Key Concept
REST API — Most cloud services (including Claude) use REST: you send an HTTP request with data (JSON format), you get JSON back. Master this and you can connect to anything.

Key Terms Cheatsheet

TermWhat it meansExample
HTTP/HTTPSLanguage computers use to communicate over the webOpening any website
APIA contract for how software talks to other softwareClaude API, Gmail API
JSONData format used in APIs — like a structured dictionary{"name": "Alice", "age": 30}
EndpointA specific URL where an API receives requestsapi.anthropic.com/v1/messages
API KeyYour password to use an API servicesk-ant-api03-...
WebhookA URL that receives data when something happensSlack notifies your app on new message
SECTION 2
02
Languages

What to Learn and Why

You don't need to master every language. For AI and automation, a focused stack beats broad shallow knowledge every time.

🐍
Python
The #1 language for AI/ML. Clean syntax, massive library ecosystem. Use for: Claude API, training models, data processing, automation scripts.

Must LearnAI/ML
🌐
JavaScript / TypeScript
Runs in browsers and servers (Node.js). Use for: web dashboards, Claude API calls from frontend, building chatbot UIs.

FrontendUseful
🗄️
SQL
Language for databases. Critical for AI systems that need to store and retrieve data. Simpler than it looks — learn in a weekend.

ImportantData
⚙️
Bash / Shell
Command-line scripting. Run servers, automate file tasks, deploy to cloud. You'll use it every day as a developer.

UsefulDevOps

The Honest Priority Order

Learning Path
Week 1–4: Python basics (variables, functions, loops, dictionaries)
Week 5–8: Python + Claude API — build your first AI app
Week 9–12: SQL + a bit of Bash + deploying to cloud
Month 4+: JavaScript if you want web UIs; deeper Python for ML

Python — The Essentials for AI Work

# Variables & data types
name = "Claude"
temperature = 0.7
messages = []          # list
config = {"model": "sonnet"}  # dictionary — used EVERYWHERE in APIs

# Functions — reusable blocks of logic
def ask_claude(question):
    response = client.messages.create(
        model="claude-sonnet-4-5",
        messages=[{"role": "user", "content": question}]
    )
    return response.content[0].text

# Calling your function
answer = ask_claude("What is machine learning?")
print(answer)
SECTION 3
03
Core Concepts

AI & ML — The Big Picture

Most people confuse these terms. Here's a clear, permanent definition that won't mislead you.

AI is the goal. ML is a method.
Deep Learning is a technique. LLMs are the result.

The Hierarchy

TermWhat it isReal-world example
AIAny machine that mimics intelligent behaviorChess computers, spam filters, Siri
MLAI that learns from data instead of hardcoded rulesNetflix recommendations, fraud detection
Deep LearningML using neural networks (brain-inspired layers)Image recognition, speech-to-text
LLMDeep learning model trained on text — predicts next wordsClaude, GPT-4, Gemini, Llama
Generative AIAI that creates new content (text, images, code)Claude, DALL-E, Midjourney, Suno

How an LLM Actually Works (Simplified)

Mental Model
Claude read ~1 trillion words from the internet, books, and code. During training, it got asked millions of times: "given these words, what comes next?" Over billions of corrections, it built an internal representation of language — grammar, facts, reasoning patterns, code syntax. It doesn't "know" things like a database. It predicts the most likely next token given context.
01Your prompt (input)
02Tokenized into numbers
0396 transformer layers process
04Probability over 100k+ tokens
05Best token chosen, repeated

Key ML Concepts You'll Encounter

ConceptPlain English
TokenChunk of text (~4 chars). "Hello world" = 2 tokens. Models charge and limit by tokens.
Context WindowHow much text the model can "see" at once. Claude Sonnet = 200k tokens ≈ 150,000 words.
TemperatureRandomness (0=deterministic, 1=creative). Use 0 for coding, 0.7–1 for creative writing.
EmbeddingConverting text into numbers that capture meaning. Used for search, similarity, RAG.
Fine-tuningTraining an existing model more on your specific data to specialize it.
RAGRetrieval-Augmented Generation — give the model your documents as context at query time.
InferenceRunning a trained model to get predictions. What you do when you call the Claude API.
SECTION 4
04
Claude

Claude Models, API & Prompting

Anthropic's Claude is the most capable and safest frontier AI. There are three model tiers — choosing the right one saves cost and latency.

Claude Model Families

ModelSpeedIntelligenceCostBest for
claude-haiku-4-5⚡⚡⚡ Fastest★★★☆☆LowestHigh-volume tasks, classification, simple responses, chatbots
claude-sonnet-4-5⚡⚡ Fast★★★★☆MidMost production tasks, coding, analysis, agents — the default choice
claude-opus-4-5⚡ Slower★★★★★HighestComplex reasoning, research, highest-stakes decisions
Rule of Thumb
Start with Sonnet for everything. Drop to Haiku if you need speed/cost at scale. Upgrade to Opus only when Sonnet fails on complexity.

Prompt Engineering — Getting the Best Results

The difference between a mediocre AI output and an exceptional one is almost always the prompt. Here's what actually works:

# BAD prompt — vague, no context
"Summarize this"

# GOOD prompt — role, task, format, constraints
system_prompt = """You are an expert business analyst.
Summarize the following email in exactly 3 bullet points.
Focus on: action items, deadlines, and decisions made.
Be concise — each bullet should be under 20 words."""

user_message = "[paste email here]"

response = client.messages.create(
    model="claude-sonnet-4-5",
    system=system_prompt,
    messages=[{"role": "user", "content": user_message}],
    max_tokens=500
)

Prompt Engineering Principles

PrincipleWhat to do
Give it a role"You are a senior Python developer with 10 years of experience…"
Be specificSay exactly what format, length, tone you want
Show examplesGive 2–3 input/output pairs before your actual request (few-shot)
Chain of thoughtAdd "Think step by step before answering" for reasoning tasks
Constrain the output"Return only valid JSON. No explanation." prevents bloat
IterateTreat prompts like code — test, measure, refine

Tool Use — Giving Claude Hands

Claude can call external tools (functions) when it needs to fetch data, run code, or interact with systems. This is the foundation of agents.

# Define a tool Claude can use
tools = [{
    "name": "get_weather",
    "description": "Gets current weather for a city",
    "input_schema": {
        "type": "object",
        "properties": {
            "city": {"type": "string", "description": "City name"}
        },
        "required": ["city"]
    }
}]

# Claude decides WHEN to use the tool based on the conversation
response = client.messages.create(
    model="claude-sonnet-4-5",
    tools=tools,
    messages=[{"role": "user", "content": "What's the weather in Jaipur?"}]
)
# Claude responds with: tool_use block → {name: "get_weather", input: {city: "Jaipur"}}
SECTION 5
05
MCP

Model Context Protocol

MCP is the USB standard for AI. It lets any AI model connect to any data source or tool through a single, consistent interface.

Why MCP Exists

Before MCP, every AI integration was custom code. You'd write a different connector for Gmail, Slack, your database, GitHub — all differently. MCP standardizes this: write one server, any MCP-compatible AI can use it.

Analogy
USB-C analogy: Before USB-C, every device had a different charger. MCP is USB-C for AI tools — one standard, everything connects. Claude is the laptop. Your apps (Gmail, Slack, GitHub, databases) are the peripherals.

MCP Architecture

HostClaude Desktop / Claude.ai
ClientMCP client (manages connections)
ServerYour MCP server (Gmail, GitHub, DB)
ResourceActual data or action

What MCP Servers Can Expose

TypeWhat it isExample
ToolsFunctions Claude can call (actions)Send email, create file, query DB
ResourcesData Claude can read (context)Your calendar, codebase, documents
PromptsPre-built prompt templates"Summarize this repo's README"

Popular MCP Servers Today

📁
Filesystem MCP
Claude reads/writes files on your computer. Ask it to refactor your entire codebase.

Official
🐙
GitHub MCP
Read repos, create PRs, manage issues — directly from conversation.

Official
🗄️
Database MCP
Claude queries PostgreSQL, SQLite, MySQL. Ask "show me last week's top customers."

Popular
🌐
Browser MCP
Claude controls a browser — navigate, click, scrape, fill forms automatically.

Powerful
# Simple MCP server in Python (FastMCP library)
from mcp.server.fastmcp import FastMCP

mcp = FastMCP("My Company Tools")

@mcp.tool()
def get_customer_count(date: str) -> str:
    """Get number of new customers on a date"""
    # Connect to your database here
    result = db.query(f"SELECT COUNT(*) FROM customers WHERE date='{date}'")
    return f"New customers on {date}: {result}"

# Now Claude can answer: "How many customers joined last Monday?"
SECTION 6
06
Agents

Building AI Agents

An agent is an AI that doesn't just answer questions — it plans, takes actions, observes results, and keeps going until a goal is achieved.

A chatbot responds.
An agent acts.

The Agent Loop

01
🎯
Receive Goal
User gives a high-level objective: "Research competitors and write a report"
input
02
🧠
Plan
Claude breaks the goal into sub-tasks: search web → read pages → compare → write
think
03
🔧
Use Tools
Calls web_search, fetch_url, read_file, write_file as needed
act
04
👁️
Observe Results
Reviews tool outputs and decides: done? need more info? retry?
observe
05
🔄
Loop or Complete
If not done, go back to step 2 with new context. If done, deliver output.
loop

Multi-Agent Systems

Complex tasks benefit from multiple specialized agents working together — like a team rather than one person doing everything.

PatternHow it worksExample
Orchestrator + WorkersOne agent coordinates, specialized agents executeManager agent assigns research/writing/review to sub-agents
PipelineOutput of one agent feeds into nextScraper → Analyzer → Writer → Publisher
ParallelMultiple agents work simultaneously, results merged3 agents research different markets simultaneously
DebateAgents critique each other to improve qualityWriter + Critic + Editor agents on a document

Agent Memory Types

In-Context (Working Memory)
Everything in the current conversation. Fast but limited by context window. Lost when conversation ends.
🗄️
External Memory (RAG)
Store embeddings in a vector database (Pinecone, Weaviate). Retrieve relevant chunks when needed. Scales to millions of documents.
📝
Structured Storage
Regular database (PostgreSQL, SQLite). Agent writes facts, user preferences, task states. Persists across sessions.
🔁
Episodic Memory
Summary of past sessions stored and retrieved. Agent "remembers" previous conversations with a user.
SECTION 7
07
Automation

Automation Workflows with Claude

Automation means getting computers to do repetitive work so humans can focus on thinking. Claude is the brain; workflow tools are the skeleton.

The Automation Stack

LayerToolWhat it does
TriggerWebhook, schedule, email, formSomething happens that starts the workflow
Orchestrationn8n, Make, Zapier, TemporalConnects apps and manages flow
AI BrainClaude APIUnderstands, decides, generates content
ActionsGmail, Slack, Notion, GitHubWhere the output goes
StoragePostgreSQL, Airtable, Google SheetsStores data and results

Real Automation Examples You Can Build

Example 1 — AI Email Triage

Workflow
New email arrives in Gmail → n8n webhook fires → Claude reads email → Claude classifies (urgent/normal/spam) + extracts action items → Claude drafts reply → n8n sends draft to Drafts folder + logs to Notion database

Example 2 — Competitor Intelligence Bot

Workflow
Every Monday 9am → Scheduled trigger → Agent scrapes competitor websites + Reddit + LinkedIn → Claude analyzes and compares → Generates markdown report → Posts to Slack #market-intel channel automatically

Example 3 — Customer Support Automation

Workflow
Customer submits form → Claude reads ticket + searches your knowledge base (RAG) → If confident: Claude writes and sends response → If not confident: routes to human with context summary + suggested reply

Example 4 — Code Review Agent

Workflow
GitHub PR opened → Webhook fires → Claude reads diff + checks for security issues, code style, bugs → Posts detailed review as PR comment → Labels PR (needs-changes / approved / needs-security-review)

n8n — The Recommended Starting Tool

n8n is open-source, self-hostable, and has a visual workflow builder. It connects 400+ apps and has a built-in Claude/OpenAI node. You can start free at n8n.io.

Getting Started with n8n + Claude
1. Create account at n8n.io or self-host with Docker
2. Add "HTTP Request" node → point to Claude API
3. Or use the built-in "Anthropic Claude" node
4. Connect Gmail, Slack, Notion as trigger/output nodes
5. Test with real data, iterate
SECTION 8
08
Cloud

Cloud — Deploy Your Systems

Cloud = someone else's computers you rent by the hour. AWS, Google Cloud, and Azure are the three giants. You only pay for what you use.

Why Cloud Matters for AI Systems

📈
Scale
Handle 1 user or 1 million — the cloud scales automatically. Your laptop can't.
🌍
Always On
Your automation runs 24/7. No need to keep your PC on. Webhooks get received even while you sleep.
🔒
Security
Enterprise-grade security, backups, and compliance. Major clouds have more security teams than most companies have employees.
💰
Cost Control
Pay per use. A simple AI automation can run for $5–20/month. No hardware investment needed.

Cloud Services You'll Actually Use

Service TypeAWS NameGCP NameUse For
ComputeEC2Compute EngineRun your Python agent/server 24/7
ServerlessLambdaCloud FunctionsRun code triggered by events, no server management
DatabaseRDSCloud SQLPostgreSQL/MySQL managed — no DBA needed
StorageS3Cloud StorageStore files, documents, model outputs
ContainerECS/FargateCloud RunRun Docker containers — easiest production deploy
SecretsSecrets ManagerSecret ManagerStore API keys securely (never in your code!)

Docker — The Packaging Standard

Docker packages your application with all its dependencies into a portable container. Works on your laptop, works in the cloud, works everywhere exactly the same.

# Dockerfile — how to package your Claude agent
FROM python:3.11-slim

WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt

COPY . .

CMD ["python", "agent.py"]

---
# Deploy to Google Cloud Run (simplest production option)
gcloud run deploy my-claude-agent \
  --source . \
  --region us-central1 \
  --set-env-vars ANTHROPIC_API_KEY="your-key"
Recommended Learning Path for Cloud
Start with Google Cloud Run — it's the easiest way to deploy a Python app to production. Free tier is generous. No server management. Just: build Docker container → deploy → get a URL. Upgrade to EC2/GKE only when you need more control.
SECTION 9
09
Roadmap

Your 90-Day Plan

Concrete, project-based. Every month ends with something real you've built and can show to anyone.

Month 1 — Foundations

WeekFocusProject to Build
Week 1Python basics: variables, functions, loops, dictsCalculator script that runs in terminal
Week 2HTTP, APIs, JSON — make your first API callWeather app using a free weather API
Week 3Claude API — prompts, system messages, tool usePersonal Q&A chatbot about a topic you know
Week 4File handling, reading PDFs, working with textDocument summarizer: input any PDF, get a summary

Month 2 — AI Systems

WeekFocusProject to Build
Week 5Agents: planning, tool loops, error handlingResearch agent: give a topic, get a structured report
Week 6Memory: databases (SQLite), storing statePersistent chatbot that remembers past conversations
Week 7MCP: install existing servers, build a simple oneClaude connected to your local filesystem + GitHub
Week 8n8n: visual workflows, Gmail + Slack integrationEmail classifier that auto-labels and drafts replies

Month 3 — Production

WeekFocusProject to Build
Week 9Docker: containerize your agentPackage your Month 2 agent into a Docker container
Week 10Cloud Run/AWS Lambda: deploy to cloudLive URL for your agent — shareable with anyone
Week 11Multi-agent: orchestrator + specialized workersContent factory: input brief → research + write + review
Week 12Polish, monitoring, cost optimizationCapstone: Full automation solving a real problem you have
Free Resources
Python: python.org/doc, Real Python (realpython.com)
Claude API: docs.anthropic.com — excellent documentation with cookbook examples
MCP: modelcontextprotocol.io
n8n: docs.n8n.io + their YouTube channel
Cloud: Google Cloud free tier + Qwiklabs (free labs)
Claude Code: Anthropic's CLI coding agent — installs with npm install -g @anthropic-ai/claude-code
Most Important Advice
Build things, don't just read things. The gap between "I understand AI" and "I can build AI systems" is 100% about getting your hands dirty. Pick a real problem you have — a task you do manually every week — and automate it. Imperfect working code beats perfect theoretical knowledge every time.