PTENES
TRILHA 5

🤖 AI Assistants

Build and deploy your own AI assistant, from a personal bot to an autonomous agent. You'll leave here with a Jarvis that responds on Telegram and an Intelecto that acts on its own, running 24 hours a day on your own server.

2
Modules
12
Topics
~1.5h
Duration
Advanced
Level
YOU with a ready-to-use VPS BOT Telegram API LLM Claude / GPT TOOLS email + calendar MEMORY saved context 🧠 AGENT runs on its own 24/7

Learning path map

Detailed Content

5.1 ~45 min

🤖 Jarvis

Your personal assistant: a bot that talks to you on Telegram, thinks with a language model, and runs tasks on your own VPS.

What it is:

A program of your own that you control with messages, connected to an AI model. It understands what you ask in natural language and responds or takes actions on your behalf.

Why learn:

Go from "using ChatGPT on the website" to "having an assistant that's all yours," running wherever you want, with your rules, your data, and your connected tools.

Key concepts:

Assistant = interface (where you chat) + brain (the model) + hands (the tools). Personal means you own the code and where it runs.

What it is:

The three parts that make up the assistant: the bot receives the message, the LLM decides what to do, and the tools perform real actions (search, save, send).

Why learn:

Understanding the design before coding prevents confusion. Each piece has a clear role, and you put them together one at a time until the whole thing works.

Key concepts:

The flow is always the same: message → bot → LLM → (maybe) tool → response. The bot is the entry point; the LLM is the brain; the tools are the hands.

What it is:

Telegram offers a free API for creating bots. You talk to BotFather, get a token, and your program can start sending and receiving messages.

Why learn:

Telegram is the simplest way to chat with your assistant from anywhere using your phone. No custom app, no interface to build.

Key concepts:

BotFather creates the bot and gives you the token (treat it like a password). Your code reads messages (polling or webhook) and replies via the API. The token never goes into Git.

What it is:

Connect the user’s message to a model API (Claude or GPT) and return the response. This is where the bot stops repeating scripts and starts to “think.”

Why learn:

It’s a leap in quality: the assistant understands vague requests, keeps context, and responds usefully instead of just reacting to fixed commands.

Key concepts:

You send a system prompt (the personality) + the user’s message to the API and receive the text. The API key goes in an environment variable, never in the code.

What it is:

Functions the assistant can trigger: direct commands (such as /clima) and tools that the model itself decides to call (search the web, do a calculation, save a note).

Why learn:

Without tools, the assistant only chats. With them, it does things in the real world. That’s what separates a chatbot from a real assistant.

Key concepts:

A command is an explicit shortcut you type; a tool is a function the model calls on its own when needed. Each tool has a well-defined name, description, and parameters.

What it is:

Bring the assistant up on your server (the VPS from Trilha 3) and keep it running all the time, instead of only while your computer is on.

Why learn:

An assistant is only useful if it's always available. On a VPS, it responds in the middle of the night, while you're traveling, without depending on your machine.

Key concepts:

Reuse everything from the course: Docker (Track 4) to package it, systemd to keep it running, environment variables for secrets. The assistant becomes a service that restarts on its own.

View Full
5.2 ~45 min

🧠 Intellect

AI that acts on its own: the leap from an assistant that responds to an agent that decides, schedules, remembers, and performs tasks without you having to ask.

What it is:

The difference between an assistant, which only acts when you send it a message, and an agent, which has goals, acts on its own, and takes multiple steps to finish.

Why learn:

It’s the future of using AI: no more "question and answer," but "delegate a task and it gets done." Understanding this shift changes what you build.

Key concepts:

Agent = goal + loop (think → act → observe → repeat) + autonomy. It can start actions without a direct human request at that moment.

What it is:

Have the agent run at set times: a daily summary at 8 AM, checking emails every hour, timely reminders—all without you having to prompt it.

Why learn:

It’s what makes the agent proactive. Instead of waiting for you to ask, it shows up with what matters at the right moment, as a human assistant would.

Key concepts:

Reuse cron and the systemd timer from Track 4. The agent "wakes up" on schedule, runs its routine, and goes back to sleep. Each scheduled task is a small routine.

What it is:

Give the agent memory that survives the end of the conversation: it stores facts, preferences, and history in a database, then retrieves them when needed.

Why learn:

Without memory, the agent forgets everything with each message. With it, it gets to know you: it knows your projects, your contacts, and what was left pending yesterday.

Key concepts:

Use Supabase (Track 2) to store memory. Before responding, the agent retrieves relevant context; afterward, it saves what it has newly learned.

What it is:

Connect the agent to real services via API: read and send emails, create calendar events, and check tasks. Each integration becomes a new tool.

Why learn:

It’s what takes the agent out of the chat box and puts it into your real life. The more services it can reach, the more things it can solve for you.

Key concepts:

Everything goes through APIs (Track 2) and tokens (Track 3). Start with a simple integration (send an email) and build from there. Handle each token with care.

What it is:

Log every action the agent takes and monitor its health: what it decided, which tools it called, where errors occurred, and how much API usage cost.

Why learn:

An autonomous agent acts without you watching. Without logs, you don't know whether it got things right, got stuck, or messed up. Logs are your eyes when you're not looking.

Key concepts:

View the logs with journalctl (systemd, Trilha 4). Record every decision and every tool call. Set up an alert for errors and high costs.

What it is:

Treat the agent as a living project: observe how it behaves, add tools, adjust the prompt, and fix failures in a cycle that never ends.

Why learn:

A good agent isn't ready-made: it matures with use. Every mistake leads to an improvement, and over time it becomes more and more useful and reliable.

Key concepts:

Use Git (Track 1) to version each improvement and deploys (Tracks 2-4) to safely publish new versions. Small commits, steady improvements.

View Full
← Back to the beginning Complete the course →