You already use artificial intelligence every day, even if you don't call it AI: the filter that sends email to spam, the bank's fraud detection system that blocks an unusual card purchase, the map that changes your route because of traffic. What has changed in recent years is that you can now talk to it, which has given many people the impression that AI is a chat: you ask, it answers, you copy and paste.This course starts from a different idea. For a manager, the AI that matters is the kind that becomes a process: work that is recorded, can be checked, repeated, and improved. That's why we'll use just one tool from start to finish: Claude Code, an AI agent that works in a folder on your computer. In this first lesson, you'll learn what artificial intelligence is (and isn't), the difference between chatting with an AI and working with an agent, and how to open your first project.1. Three ways a machine can make decisionsAt its core, every AI is a machine making a decision: is this email spam or not? Is this purchase fraudulent? How many mosquito eggs are in this photo? There are three ways to teach a machine to make decisions, and each emerged at a different time.1.1 Rules written by a personThe oldest approach is to write the rules by hand: "if the email contains the word 'prize' and comes from an unknown address, it's spam." This works as long as the world fits the rules. The problem is that it doesn't: the scammer changes "prize" to "pr1ze" and the rule fails. Rules are great when the case is always the same (calculating a tax, checking whether a CPF has 11 digits) and poor when cases vary.Notice that a spreadsheet with formulas is a rule-based system. It isn't AI, and that's not a flaw: if the problem can be expressed in clear rules, rules are better than AI, because they are precise and anyone can check them.1.2 Machine learning: the machine learns from examplesThe second approach is to show examples and let the machine discover the pattern. Instead of writing down what spam is, you show it thousands of emails already labeled "spam" and "not spam," and the program learns for itself what separates one from the other. This is machine learning. When the model has many layers and learns directly from images, sounds, or text, we call it deep learning.A case that runs throughout this course is Conta Ovos, a project of mine. Brazilian municipalities monitor dengue mosquitoes using ovitraps: a container of water with a paddle where female Aedes mosquitoes lay their eggs. Every week, a vector-control worker collects the paddle and counts the eggs one by one with a magnifying glass. The platform municipalities use to record these counts is used by more than 2,000 municipalities (36.7% of the country in July 2026).It includes a photo-based counter: the worker photographs the paddle, and a computer vision model (YOLO) indicates where the eggs are. No one wrote the rule "an egg is a dark spot of a certain size." The model learned from examples: the version currently in use was trained on 214 images in which a person marked 1,839 boxes around eggs.1.3 Language models: learning to continue a textThe third approach is the one that made the news. A language model learned from a huge amount of text to predict the next word (more precisely, the next piece of a word, the "token," discussed at https://lecursos.com/pt-br/articles/como-funciona-um-modelo-de-linguagem-tokens-contexto-alucinacao-e-o-custo-de-conversar). Predicting the next word well, on a massive scale, makes the model appear to understand: it summarizes, translates, writes code, and explains concepts.ChatGPT, Gemini, and Claude are language models. They use the same principle as machine learning (learning from examples), applied to text and at a scale that did not exist until a few years ago.The Conta Ovos egg counter learned to find eggs from photos marked by people. It is an example of...Answer: machine learning. Nobody wrote a rule defining what an egg is; the model learned from 214 marked images. It is computer vision, not a language model: it does not read or write text.2. What AI is not2.1 It is not an oracleA model learns from examples and therefore makes mistakes where the examples did not provide coverage. The Conta Ovos counter was tested against counts made by people. Across all versions, it correctly identified whether a paddle had eggs in 186 out of 232 photos (80.2%), but the total number of eggs it counted was 24% lower than the total counted by people. The study's own conclusion is clear: the counter is better at distinguishing positive paddles from negative ones than at counting eggs; it is useful for supporting a person who checks the result, not for counting on its own.That's why the system is designed this way: the AI suggests the boxes, the field worker checks them, and only then does the number enter the record. And when the model lacks confidence, it says so and provides no number at all. I call this "silence instead of guessing." Keep that idea in mind: it will come up again at https://lecursos.com/pt-br/articles/onde-a-ia-pode-entrar-o-checklist-de-ganho-e-risco-e-os-niveis-de-autonomia, when we discuss how much autonomy to give AI.2.2 It is not the same as automationAutomation means carrying out a task without a person having to do it each time. You can automate without AI (a bill generated every month by a system), and you can use AI without automation (you ask for a summary and read it). The two come together when a task has too many variations for rules to handle and occurs too often for a person to do it manually. That's the intersection we'll look for in companies starting with https://lecursos.com/pt-br/articles/quanto-de-ia-a-sua-empresa-ja-tem-o-triangulo-da-ia.2.3 It is not "a robot that thinks for you"A language model writes confidently even when it is wrong. It does not "know" that it made a mistake: it produces the most likely text. At https://lecursos.com/pt-br/articles/como-funciona-um-modelo-de-linguagem-tokens-contexto-alucinacao-e-o-custo-de-conversar you'll see a real case in which the transcription software for my videos invented an entire sentence I never said. The person remains responsible for the result.3. From chat to agentNow for the distinction at the heart of this course. There are two ways to work with a language model.The chat. You open a browser window, type a request, paste in text or a spreadsheet, read the answer, and copy whatever is useful. Each conversation starts practically from scratch. If you need to do the same task tomorrow, you paste everything in again and explain everything again. The result is scattered across conversations that you cannot properly audit.The agent. An agent is a language model that, in addition to writing, uses tools: it reads and writes files, runs programs, and searches the internet, always within limits you define. Claude Code is an agent that works in a folder on your computer. You ask it to "download these series from the Central Bank and make a chart," and it writes a small program, runs it, checks the result, and leaves everything in the folder: the data, the program, and the chart.The difference may seem technical, but it is really a management difference:With chat, the product is the answer. It is useful today and disappears into the scroll.With an agent, the product is the project. A folder containing the instructions, data, code, and history. Tomorrow the work can run again in the same way, and anyone can open the folder and see what was done.What is the main difference between using an AI chat and working with an agent such as Claude Code?Answer: the agent uses tools (files and programs), and the work remains in a folder. Both use language models, both make mistakes, and in both cases the person remains responsible for reviewing the result.4. Why this course uses only Claude CodeI could teach ten different tools, one per lesson. I chose just one, and that choice is methodological. There are four reasons.4.1 What gets done is recorded on your machineEverything the agent does becomes a file in your folder. When I produce a video for the Le Cursos channel, the editing decisions (where to cut, which image appears at which moment, the title, and the chapters) are written in a configuration file, and the programs that edit the video are kept alongside it. If someone asks, "Why was this section cut?", the answer is there, not in a lost conversation.4.2 It uses fewer tokensEvery request to a language model consumes tokens, the pieces of text the model reads and writes, and tokens cost money and time. In a chat, every time you repeat a task, you pay again to explain the context and have the model redo the reasoning.With an agent, a repeated task becomes a program that runs without AI. Here's an example from my work: for a social media campaign, I compared 22 official Brazilian indexes from 2019 to 2026. Claude Code wrote a program that downloads the series from the Central Bank and IBGE and draws the charts. To update the figures, I don't need to start another conversation: I run the program, and it does everything without using a single token. AI was used once, to build it; after that, the code does the work.4.3 It improves with every useIn Claude Code, the project has a permanent instruction file, CLAUDE.md, which the agent reads at the beginning of every session. When it makes a mistake and you correct it, the correction becomes a written rule there, with the date and reason. The next time, the mistake does not return.A case from 11/22/2026: one of my videos ended up with the sound 0.43 seconds ahead of the image, and I only noticed after the video was finished. That same day, the problem became three things: a program that measures the sync of every new recording, a line in CLAUDE.md ("Always check audio sync"), and a mandatory step before editing. The mistake cost us once. That is exactly what a good manager does with a process: the mistake becomes a procedure.4.4 It is not a black boxWhen AI makes a decision inside a chat, you see only the conclusion. When the agent writes a program, you see the path: what data went in, what calculation was performed, and what criteria were used. You can ask it to explain every line, show it to a colleague, and run it again with different data. AI still makes mistakes, but the mistake remains visible and fixable.One honest caveat, so you don't assume this happens automatically: keeping records requires discipline. In my own video project, the version history (git, which you'll learn about at https://lecursos.com/pt-br/articles/o-projeto-no-claude-code-claudemd-memoria-e-cada-erro-virando-regra) was out of date, with more than 170 files changed without a formal record, and the manual still said "3 or 4 Shorts per video" even though the rule had already changed to 1 or 2. The tool makes it easier; keeping the records up to date remains management work.Why does turning a repeated task into a program reduce token usage?Answer: because, once it is ready, the program runs without needing the language model. AI is used to build it (and to fix it when something changes), not for every repetition. The program was indeed written with AI, and Claude Code consumes tokens while it works.5. The first session: installing and opening a projectYou don’t need to know how to code to take this course. You need to be able to say what you want, read what the agent proposes, and make decisions. The agent writes and runs the code; you review it.1. The account. Claude Code uses the same account as Claude, with an individual paid plan (the Pro plan is the entry-level option). Check the current plans and prices on Anthropic’s website.2. Installation. On Mac, Linux, or Windows with WSL, open the terminal and run the installer listed on the official Claude Code page (docs.claude.com). At the moment, it’s a single command, such as curl -fsSL https://claude.ai/install.sh | bash. On Windows without WSL, there is a dedicated PowerShell installer. Since the commands may change, always copy them from the official page.3. One folder per project. Create a folder for this course’s work, such as "ia-gestao". Everything we do will stay inside it. This is the first habit: one project, one folder.4. Open the agent. In the terminal, go to the folder and type claude. The first time, it will ask you to sign in to your account.5. The first request. Write in Portuguese, as you would speak to an intern: "Crie um arquivo de anotações deste projeto e escreva nele que este é o meu projeto do curso de IA aplicada à gestão". Before creating or changing a file, or running a program, the agent asks for your permission and shows you what it is going to do. Read it before accepting. This is the second habit.6. Permanent instructions. Type /init. The agent creates CLAUDE.md, the instruction file it will read in every session for this project. At https://lecursos.com/pt-br/articles/o-projeto-no-claude-code-claudemd-memoria-e-cada-erro-virando-regra we’ll learn how to write it.6. Where AI is already used in managementTo wrap up, go back to the beginning of the lesson: AI is already in companies, embedded in their systems. A bank’s fraud detection system, a delivery route planner, a CRM that suggests which customer to call, a WhatsApp bot that provides order updates. Many companies say, "we don’t use AI" while using it in ten different places.There is also AI that a company doesn’t know it is using: the salesperson who writes proposals in a personal chat, or the customer-service representative who pastes customer data into a free tool. We call this shadow AI, and it is both a risk (to privacy and confidentiality) and a signal (people want to use AI, but the company has not organized it yet).At https://lecursos.com/pt-br/articles/quanto-de-ia-a-sua-empresa-ja-tem-o-triangulo-da-ia you will learn how to measure how much AI an organization already has using the AI Triangle: the management pyramid (strategic, tactical, operational) crossed with the company’s departments, with each use of AI marked in its place. It is the core of the course.7. Common mistakes"AI is ChatGPT." ChatGPT is a language model with a chat interface. AI in management includes vision, forecasting, and classification models, almost always embedded in systems."If the AI was right 80% of the time, it can make decisions on its own." It depends on the cost of the error and the type of error it makes. The Conta Ovos counter does a good job determining whether eggs are present, but it underestimates the total: it is useful as decision support, not as a replacement."Using AI means you don’t need to understand the subject." The opposite is true. To check what the agent has done, you need to know what a correct result looks like. Someone who does not understand the subject will not notice the error."An agent is dangerous because it can access my computer." The agent asks for permission before taking action, and you can restrict what it is allowed to do (we’ll cover this at https://lecursos.com/pt-br/articles/riscos-e-governanca-da-ia-lgpd-permissoes-do-agente-e-regulacao). The real risk is accepting everything without reading it.8. Putting it all togetherRules, machine learning, and language models are three ways for a machine to make decisions. Rules work when the situation is always the same; learning works when situations vary and there are examples to learn from.AI makes mistakes, and the right design puts a person where an error would be costly: with Conta Ovos, the AI makes a suggestion and the agent checks it.A chat delivers an answer; an agent delivers a project. In this course, we use only Claude Code because the work is recorded, a repeated task becomes a program (fewer tokens), each error becomes a written rule, and the process remains visible.AI is already in companies, embedded and hidden. Measuring where it is is the first step in managing it, and that is what we will do at https://lecursos.com/pt-br/articles/quanto-de-ia-a-sua-empresa-ja-tem-o-triangulo-da-ia.In the next lesson, we’ll open up the language model and look inside: tokens, context, hallucinations, and the cost of conversation.Activity in Claude Code (20 minutes)1. Install Claude Code, create the "ia-gestao" folder, and open the agent inside it.2. Run /init and read the CLAUDE.md file it created.3. Ask: "Liste 10 sistemas ou ferramentas que uma empresa de médio porte costuma usar e, para cada um, diga se costuma ter IA embutida e que tipo (regras, aprendizado de máquina ou modelo de linguagem). Salve como uma tabela num arquivo chamado inventario.md."4. Open the file and check at least three rows: does the classification make sense? If you disagree with any of them, ask it to correct the entry and explain why.5. Ask it to write a rule you learned from the correction into CLAUDE.md. Close the agent, open it again, and ask, "quais são as regras deste projeto?". Did it remember?Exercise for classroom discussionThink of a task you do every week at work or during an internship, preferably one that is boring and repetitive. Answer: (a) can it be handled with clear rules, does it require learning from examples, or does it require language? (b) If an AI performed it, what would be the worst possible error, and who would notice? (c) Would you do this task in a chat or build a project with an agent? Why?Exercises1) A bank automatically blocks card purchases when the amount exceeds R$ 5.000 outside the customer’s country of origin. This block is an example of:A) a language model.B) deep learning.C) a rule written by a person.D) computer vision.E) shadow AI.2) Regarding the Conta Ovos egg counter, evaluated against human counting, which statement is correct?A) It counts the total number of eggs with negligible error and can replace a person.B) It is a language model trained on texts about the mosquito.C) It was programmed with rules about the size and color of the eggs.D) It always gives a number, even when it is not confident.E) It distinguishes pads with and without eggs better than it counts the total number of eggs, and therefore supports a person who checks the result.3) Every Monday, a manager uses an AI chat to prepare the sales report by pasting in the spreadsheet and explaining the desired format. With an agent such as Claude Code, the recommended approach would be:A) ask the agent to write a program that reads the spreadsheet and generates the report, save it in the project folder, and run that program every week.B) paste the spreadsheet into the agent every Monday in the same way.C) stop checking the report, since the agent does not make mistakes.D) switch language models every week.E) delete the history to save space.4) A project’s CLAUDE.md file is used to:A) store the Claude account password.B) prevent the agent from reading any files.C) store the project’s videos.D) record the permanent instructions the agent reads at the beginning of each session.E) replace human review.5) (True or false) "Shadow AI is the use of AI tools by employees, on their own initiative, without company rules or records; it represents both a risk and a sign of demand."( ) True ( ) False6) (True or false) "If a task can be handled with clear, stable rules, a rule-based system is usually preferable to a machine-learning model because it is precise and easy to check."( ) True ( ) FalseAnswer key1) C — It is a fixed rule ("amount above R$ 5.000 outside the country"), written by a person. Banks also use machine learning for fraud detection, but this block, as described, is a rule.2) E — In the test, the counter correctly identified the presence or absence of eggs in 80,2% of the photos, but the total was 24% below the human count. And when it is not confident, it does not provide a number (which is why D is incorrect).3) A — The repeated task becomes a program: AI is used once to build it, and the report is then produced the same way every time, with fewer tokens and a recorded process. C is the classic mistake: the agent makes errors, so you still need to check its work.4) D — CLAUDE.md is the project’s written memory: rules, decisions, and corrections that are read in every session. A password should never go in an instruction file.5) True — It is a risk because customer and company data can leave the organization without oversight; it is a signal because it shows where people already see value in AI.6) True — A clear rule is precise, inexpensive, and auditable. AI is useful when situations vary too much to fit into rules.
Reactions
0
0 Comments
Be the first to comment
Nothing here yet.