YouTube2Text

Come creare un'azienda agentica con gli Agenti AI di Claude Code 😎 — Transcript

by Dario Vignali · 13,283 words · 2,054 segments · language en · Watch on YouTube

Full transcript

  1. 0:00Alright, let's get started. Today, a
  2. 0:02little lesson on agentic work: how to
  3. 0:04work with agents, how to build a small
  4. 0:06company where most tasks are delegated
  5. 0:09to an AI agent. To do this, I've
  6. 0:11brought along the great Pietro
  7. 0:13Virgilito. Are you there, Pietro? Can
  8. 0:15you hear me?
  9. 0:16Hi Dario, I'm here, I can hear you.
  10. 0:18Good morning. Hello everyone. Ok.
  11. 0:20Pietro, for those who don't know, works
  12. 0:22in cybersecurity, has worked with the
  13. 0:24Senate and other institutions, and
  14. 0:26he’s here to do what I can't: explain
  15. 0:28to you, from a technical standpoint,
  16. 0:30how best to use agents. I use agents
  17. 0:33every day in my work, but I said we
  18. 0:34need someone better prepared than me to
  19. 0:36answer any potential objections. Today
  20. 0:41Pietro, tell me if I'm wrong, we've
  21. 0:42brought along a small example of what
  22. 0:44could be the starting structure for a
  23. 0:46company that wants to operate mostly
  24. 0:48through agents, right?
  25. 0:51Exactly. Meaning, we thought about how
  26. 0:54to propose a basic agentic architecture
  27. 0:56to help people understand what an
  28. 0:58agentic company is, how it can ideally
  29. 1:00be implemented, what the components are
  30. 1:02, and what the workflows look like.
  31. 1:06Obviously, this is an example and not a
  32. 1:09full-fledged production system, but it
  33. 1:11helps to understand how "agentization"
  34. 1:13can be viewed for companies.
  35. 1:17Also because last time we started by
  36. 1:19saying that the most important thing,
  37. 1:21perhaps, when working with agents is
  38. 1:22the information architecture you end up
  39. 1:24creating. Because in the end,
  40. 1:29everything we build is nothing more
  41. 1:31than a set of rules, principles, and
  42. 1:32content that, by putting them together,
  43. 1:34puts existing agents—it's not like
  44. 1:36we're building them—in the position
  45. 1:38to interpret the role they need to play
  46. 1:40. Tell me if that's correct.
  47. 1:44Absolutely, yes. Meaning that making
  48. 1:49the effort to determine what the
  49. 1:51business processes are, what the
  50. 1:53business data is, where it resides, how
  51. 1:55it’s manipulated, and therefore how
  52. 1:57it's possible to automate or "agentize"
  53. 1:59parts of the business is fundamental.
  54. 2:05So it's a pre-analysis phase without
  55. 2:07which agentization doesn't succeed.
  56. 2:10Exactly, it's not a plug-and-play
  57. 2:12system. Agentization is a system that
  58. 2:14comes after an analysis, a company
  59. 2:17self-analysis to understand
  60. 2:18architecture and processes exactly.
  61. 2:21Great. I'll go ahead and add your
  62. 2:23screen to the stream so we can see for
  63. 2:25a moment what we're working on. Ok. You
  64. 2:30should know that Pietro and I are
  65. 2:31developing a product idea, a project, a
  66. 2:33startup that is based mostly on agentic
  67. 2:35work. So, in another video that I might
  68. 2:39link in the description, we talked
  69. 2:40about how we used over 150 agents to
  70. 2:42get our product into development,
  71. 2:44because we didn't have the money to
  72. 2:46afford hiring 10 full-time developers.
  73. 2:50And so, a large part of the work we do
  74. 2:52on this product today is performed
  75. 2:54through agents; and the first thing
  76. 2:55that was done by Pietro and Frankie,
  77. 2:57who are the people managing the work
  78. 2:59and these agents, was to build the
  79. 3:01information system that would allow the
  80. 3:02agents to become operational and
  81. 3:04develop the product. What we are seeing
  82. 3:08now is our little information system
  83. 3:09for the company case study we’ve
  84. 3:11brought today. If you want to tell us
  85. 3:13something, Pietro. Yes, absolutely. An
  86. 3:17example we thought of doing was the
  87. 3:19following, that is, trying to imagine
  88. 3:21the agentization of a small software
  89. 3:23house digital agency that needs to
  90. 3:25produce, to develop websites on behalf
  91. 3:27of clients who ask them exactly for
  92. 3:29this. So, develop a website for me.
  93. 3:35Since this operation, uh, the operation
  94. 3:38of creating a quote, of analysis,
  95. 3:40assessment, and creation of the quote,
  96. 3:42usually involves various actors,
  97. 3:44various processes, company data, time,
  98. 3:47and effort. Uh, we thought precisely of
  99. 3:54trying to agentize it, uh, to, let's
  100. 3:56say, create an example that was, uh, as
  101. 3:58clear as possible and show how each of
  102. 4:00these components of this, of this
  103. 4:02agentic company, can be created, can be
  104. 4:04integrated with the general system and,
  105. 4:06in short, how it all works a bit.
  106. 4:11Then, obviously, during the course of
  107. 4:12this video, we will address the various
  108. 4:14objections, like, "uh, but how reliable
  109. 4:16are the agents?""Uh, but then I have to
  110. 4:19spend more time reviewing the mistakes
  111. 4:20they've made, uh, but how can I trust
  112. 4:22them?" and so on, right? What is the
  113. 4:25starting context here? What any
  114. 4:28entrepreneur or any company should do,
  115. 4:30which is to go and analyze their own
  116. 4:31business or the business they are going
  117. 4:33to create and imagine what all the
  118. 4:35flows will be that will be part, right,
  119. 4:36of their business that will contribute
  120. 4:38to the construction of the
  121. 4:39entrepreneurial project. So, if, for
  122. 4:44example, I am an entrepreneur at the
  123. 4:45head of an agency, I will have a
  124. 4:47process that concerns, for example, the
  125. 4:49development of offers to send to
  126. 4:51clients in response to a quote; maybe
  127. 4:53then I will have the website
  128. 4:54construction process, together with all
  129. 4:56the other processes that go to build
  130. 4:58the sum of all the work that an agency
  131. 5:00carries out. Today, what we are seeing
  132. 5:03is a small part of this work. So we are
  133. 5:07analyzing perhaps the core process of
  134. 5:09client acquisition—or rather, not
  135. 5:11even client acquisition, but client
  136. 5:13management: a request arrives from a
  137. 5:15client who has an idea for a website
  138. 5:17they want to build, and I, the agency,
  139. 5:19need to be able to provide my agents
  140. 5:21with a development process for an offer
  141. 5:23that will then be sent to the final
  142. 5:25client, right? Tell us a bit more,
  143. 5:29Pietro. Perfect. Exactly. So, let's say
  144. 5:31here—I don't know if you can see this
  145. 5:33—this is the diagram of the workflow
  146. 5:35we've imagined. Essentially, we start
  147. 5:41with a client request, which in this
  148. 5:43case is just a simple text file
  149. 5:44requesting the development of a website
  150. 5:46. Okay? Eh,
  151. 5:51so here we’re imagining the client
  152. 5:53sending us an email, right? Exactly,
  153. 5:55look, if you want, we can look directly
  154. 5:57at the example I created. Okay, let's
  155. 6:01imagine this message. Okay. Website for
  156. 6:05our tattoo studio. Good morning, I am
  157. 6:07Giulia Ferri from the Ago di Inchiostro
  158. 6:09studio. There are two of us, blah blah
  159. 6:11blah. People have been asking for our
  160. 6:13site for years, we can't put it off
  161. 6:15anymore. We’d like an introduction
  162. 6:17page for the studio, the portfolio, et
  163. 6:19cetera, et cetera. They provide
  164. 6:21additional information. Photos aren't a
  165. 6:23problem, we already have plenty. Two
  166. 6:27fundamental things: online booking for
  167. 6:28consultations and a flash design list
  168. 6:30that we want to update ourselves
  169. 6:32whenever the designs change. If
  170. 6:36possible, we’d also like to sell our
  171. 6:38gift cards, uh, and then there's also a
  172. 6:40note.
  173. 6:43Come on, honest,
  174. 6:45honest.
  175. 6:46Um, one last important thing: on August
  176. 6:4829th and 30th, we’ll be at the
  177. 6:50Bologna Convention. We’d like to have
  178. 6:52the site online by then.
  179. 6:53Well, € 3,000 is not enough.
  180. 6:56€ 3,000 is not enough. Exactly.
  181. 6:59There’s also the surplus for the
  182. 7:00urgency, for sure, but let's say it's a
  183. 7:03request
  184. 7:04it's a request, exactly. That arrives
  185. 7:07via email or through a contact form,
  186. 7:09perhaps following an ad campaign, in
  187. 7:15short, and it is usually received by a
  188. 7:17person, read, and handled. Um, this—
  189. 7:23this is the entry point, okay, that
  190. 7:25reaches our system and that, in our
  191. 7:27agentic system, will be passed to an
  192. 7:30analyst who
  193. 7:32So the analyst is the first agent, is
  194. 7:34the first agent that comes into play
  195. 7:36here.
  196. 7:36Yes, let's say it's the second because
  197. 7:38there is a parent orchestrator agent
  198. 7:40that manages them all. Okay? So, let's
  199. 7:42say, there is the parent agent that, uh
  200. 7:45, as a first
  201. 7:46manages the entire workflow,
  202. 7:49manages the entire flow and, first of
  203. 7:52all, it will pass the email to the
  204. 7:54analyst agent so that the analyst can
  205. 7:56extract the request. Okay? If we want
  206. 8:02to take a quick look, maybe this way I
  207. 8:04can start introducing the general
  208. 8:06architecture. This is our little
  209. 8:09project. Uh,
  210. 8:10so by project you mean a folder, right,
  211. 8:12in which there are
  212. 8:13a directory. A directory where there
  213. 8:15are subdirectories. In this case, we
  214. 8:19now see data, offers, scripts, and the
  215. 8:21code directory, where let's say all the
  216. 8:24code needed to run our agent is
  217. 8:26contained. And as I was saying before,
  218. 8:33the basic general architecture of this
  219. 8:35system involves the analyst, who
  220. 8:37analyzes the customer's request and
  221. 8:39extracts a standard semantics, okay, of
  222. 8:42what was asked, and this standard
  223. 8:44semantics is normalized, which means it
  224. 8:46is made readable in a schematic way by
  225. 8:48whom? by two other agents, which are
  226. 8:54the estimator and the planner. The
  227. 8:59estimator is that agent who takes care
  228. 9:01of taking the request that arrives from
  229. 9:03the analyst and understanding, based on
  230. 9:05the company price list, which is
  231. 9:07therefore company data, how much this
  232. 9:09service or product will cost, okay? And
  233. 9:15it is responsible for returning the
  234. 9:17cost data to the parent agent. Okay?
  235. 9:23While the planner, which receives the
  236. 9:25same information as input, i.e., the
  237. 9:28semantics of the customer's request,
  238. 9:30verifies the work availability of the
  239. 9:32agency, so it reads the agency's agenda
  240. 9:34, which in this case is an Excel file,
  241. 9:37but it could be anything. It verifies
  242. 9:44development timelines, checks the
  243. 9:46agency's commitments for the coming
  244. 9:48weeks and months, and manages to
  245. 9:49calculate the agency's availability and
  246. 9:52therefore the timelines to release
  247. 9:54exactly that product. After the
  248. 10:00estimator and planner, based on what
  249. 10:02was passed to them by the analyst,
  250. 10:04report their results to the
  251. 10:06orchestrator, to the main orchestrator
  252. 10:08agent, the main orchestrator has all
  253. 10:10the information to tell the writer,
  254. 10:12great, I know how much it will cost, I
  255. 10:14know by when we can do it. Writer, um,
  256. 10:21write an email,
  257. 10:22write the email, generate the correct
  258. 10:24email, okay? Because here too, mind you
  259. 10:27, the writer has, we will see it later,
  260. 10:29specific instructions on how to write
  261. 10:31the email and format it exactly how we
  262. 10:33want it. When you're finished, we pass
  263. 10:37it to the archivist. The archivist will
  264. 10:44simply take care of saving it in a
  265. 10:45specific subdirectory; obviously, in a
  266. 10:48more advanced phase with a complex
  267. 10:49production architecture, the archivist
  268. 10:51can even send it directly, send a
  269. 10:53WhatsApp message, in short, actually
  270. 10:55act and get it directly to the end
  271. 10:57customer. What I would like people,
  272. 11:05those watching us, to understand is
  273. 11:07that, okay, many of you might already
  274. 11:09use Claude, or have automations or
  275. 11:10skills running that do most of these
  276. 11:12things, like sending emails on our
  277. 11:14behalf. What really makes the
  278. 11:20difference here, however, is
  279. 11:21understanding how to build a
  280. 11:22well-crafted structure that allows you
  281. 11:24to work effectively at an agentic level
  282. 11:26and have a set of rules and a framework
  283. 11:28that lets you get the cleanest possible
  284. 11:30outputs from your inputs. As an
  285. 11:33entrepreneur, what I notice, Pietro, is
  286. 11:35that first of all, you have to map all
  287. 11:37your business processes. As we were
  288. 11:39saying before, it's the foundation,
  289. 11:40because once you have the business
  290. 11:42processes mapped, you move on to phase
  291. 11:44two as an entrepreneur: that is, hiring
  292. 11:46people who can take care of those
  293. 11:48processes. Meaning, once I have tasks
  294. 11:50to assign, I have to ask myself who can
  295. 11:52actually do that task. So, at an
  296. 11:54entrepreneurial level, there are two
  297. 11:56things to do. Number one, define the
  298. 11:58tasks as best as I can, that is,
  299. 11:59translate into a written procedure how
  300. 12:01a thing must be done, to the best of my
  301. 12:04ability, with the highest level of
  302. 12:05understanding and clarity I can provide
  303. 12:07to the person I will then hire. And the
  304. 12:11second, the second step, is to ask
  305. 12:13myself who I need to hire, which in
  306. 12:15this case are agents, and therefore who
  307. 12:17these figures are, how they should work
  308. 12:18, and to describe as well as possible
  309. 12:20the person, the personality, and the
  310. 12:22skills that this role must have to
  311. 12:24successfully perform the process I am
  312. 12:26delegating to them. Tell me if that's
  313. 12:28all correct.
  314. 12:29Perfect. The only thing Perfect. The
  315. 12:33only thing I would add is why do all
  316. 12:35this instead of giving all the
  317. 12:37instructions and all the data in a
  318. 12:39single prompt, in one request, or in
  319. 12:40one go to the agent or to the
  320. 12:45why to the AI because AIs have context
  321. 12:48limits, okay? and so, let's say they
  322. 12:51handle a broad context of information,
  323. 12:53but the more you fill it and the more
  324. 12:55homogeneous this information is, the
  325. 12:57higher, the very highest, the
  326. 12:58probability of producing wrong results.
  327. 13:00Okay? And so, for example, an incorrect
  328. 13:05use, for instance, of ChatGPT or Claude
  329. 13:07that I see, that I have often seen done
  330. 13:09, is that of prompting these agents,
  331. 13:11these chatbots, with massive requests
  332. 13:14and, above all, requests that even
  333. 13:16required performing computations. Well,
  334. 13:21language models, in general, are not
  335. 13:23good at computing data, okay? And so,
  336. 13:28for example, data computation, data
  337. 13:30calculation, well, it's better if it's
  338. 13:32done by an agent or even better by a
  339. 13:34script that the agent invokes, and
  340. 13:36therefore they are, let's say, removed
  341. 13:38from this generic prompt that only
  342. 13:40risks confusing the artificial
  343. 13:42intelligence. Look, I have a classic
  344. 13:46example, that is, step one is filling
  345. 13:49the chat with a giant prompt, right?
  346. 13:52You write everything you want in it,
  347. 13:53you keep the prompt, you copy and paste
  348. 13:55it every time, and there you are really
  349. 13:57at the base, right, of understanding
  350. 14:00what you are doing. But if it is really
  351. 14:03simple, if the thing you have to do is
  352. 14:05simple, people can do it. The second
  353. 14:08step is to build the classic custom
  354. 14:10little project inside Claude, the web,
  355. 14:12or ChatGPT and add as much information
  356. 14:14as possible into the project. And there
  357. 14:18I realized that it works up to a
  358. 14:19certain point, that is, in the sense:
  359. 14:21if things are not too complex, if you
  360. 14:23don't add too much stuff into the
  361. 14:24context. Because when you start putting
  362. 14:28as many documents, with as much
  363. 14:29information, with as many procedures as
  364. 14:31possible into a project, the more that
  365. 14:33project becomes inefficient,
  366. 14:35ineffective, and its quality is even
  367. 14:37marred. I don't know if that's correct.
  368. 14:45Instead, in this case, it's as if we
  369. 14:47were going to build an information
  370. 14:49hierarchy to deliver to Cloud Code so
  371. 14:51that Cloud Code can somehow launch
  372. 14:52different agents and ensure that each
  373. 14:54agent has very specific tasks,
  374. 14:56well-defined within a very clear
  375. 14:57perimeter in which to work.
  376. 15:03Perfect. But the two words you said are
  377. 15:06perfect: inefficient and ineffective.
  378. 15:09So more effective, better result, more
  379. 15:12efficient, less labor cost. Okay? So
  380. 15:17the moment you imagine if you had a
  381. 15:19company where you have three or four
  382. 15:21different departments and you decided
  383. 15:23to have a meeting with everyone
  384. 15:24together, from the engineer to that
  385. 15:26person
  386. 15:30saying everything to everyone,
  387. 15:32everything to everyone. Obviously,
  388. 15:33there is total confusion. If instead
  389. 15:37you think about giving instructions to
  390. 15:38a workgroup plus another workgroup,
  391. 15:40then maybe connecting them, surely it's
  392. 15:42a better result because the agents, the
  393. 15:44workers, are clearer on what they have
  394. 15:46to do.
  395. 15:47It is very important in the
  396. 15:48entrepreneurial field; one of the
  397. 15:50things that is often talked about is
  398. 15:51the concept of accountability, right?
  399. 15:53That is, in the sense, if you want
  400. 15:55things to be done, not only do you have
  401. 15:57to describe how they must be done, but
  402. 15:59it must also be very clear who has to
  403. 16:01do them. And when you find yourself in
  404. 16:05a chaotic environment and throw in the
  405. 16:06whole pile of stuff you want to get
  406. 16:08done, well, what usually happens is
  407. 16:10that nobody takes ownership of a role
  408. 16:12that maybe isn't clear or well-assigned
  409. 16:14; however, when the role and the
  410. 16:15process are clear and well-assigned, it
  411. 16:17becomes much easier to work on. I'll
  412. 16:21share my screen again.
  413. 16:22Yes, yes. Absolutely, this is another
  414. 16:25of the qualities of agents, which is
  415. 16:27defining the agent's domain; so not
  416. 16:29just precisely what you have to do and
  417. 16:31how you have to do it, but everything
  418. 16:33you don't need to worry about, okay?
  419. 16:38Which is information just as important
  420. 16:40so as not to mess up the work of others
  421. 16:42and to keep the focus on what the
  422. 16:44objective is for a single worker, for a
  423. 16:46single person. So, just like for our
  424. 16:51employees or collaborators, giving
  425. 16:53precise, bounded, and clear information
  426. 16:55is important; the same must be done
  427. 16:57with agents, and that's a bit of the
  428. 16:59logic behind everything.
  429. 17:02Let's proceed.
  430. 17:02Let's proceed. So, we've more or less
  431. 17:05seen the outline. Now, perhaps very
  432. 17:07briefly, I'll describe the directory
  433. 17:09structure. Okay, here we are inside the
  434. 17:12Agentic Digital Agency project.
  435. 17:14Guys, I'm going to play the role of the
  436. 17:15dummy who asks stupid questions so that
  437. 17:17everyone can understand, because I also
  438. 17:19started from scratch, so I asked myself
  439. 17:21these questions. So when we work with
  440. 17:23Cloud Code or with agents, we usually
  441. 17:25work with folders that contain files
  442. 17:27and other folders inside them, right?
  443. 17:29Yes, yes, yes, yes. Let's say that,
  444. 17:32generally, we can consider a directory
  445. 17:35as the project directory inside which
  446. 17:37we put all the instructions needed for
  447. 17:39the authentic execution of that single
  448. 17:41project. Okay? So we start from a
  449. 17:45source directory inside which we find
  450. 17:47the code that manages everything a bit.
  451. 17:51Our source directory is called Agentic
  452. 17:53Digital Agency, which contains
  453. 17:55for the dummies like me, a directory
  454. 17:57just means folder, for those who didn't
  455. 17:59know.
  456. 17:59A folder. Exactly. Yes, yes, yes. A
  457. 18:02folder. A folder, perfectly. And that
  458. 18:05basically contains what else? Nothing
  459. 18:07in particular. Other folders, other
  460. 18:09subfolders, or other files. In the end,
  461. 18:11it's all a directory, all a file;
  462. 18:13there's nothing magical about it. So,
  463. 18:17you see that we've already started
  464. 18:19organizing the contents, okay? So we
  465. 18:23decided to make a directory folder
  466. 18:24called "data" where I decided to put
  467. 18:26the company's data inside. So, for
  468. 18:31example, we created two Excel files, a
  469. 18:33price list where the prices are
  470. 18:35contained. and the agency's schedule
  471. 18:39with the calendar of availability. Now
  472. 18:44I should have the Schedule file, the
  473. 18:46Excel Schedule file, open here. For
  474. 18:48example, you will see here that there
  475. 18:50are two sheets: commitments and
  476. 18:52standard times. So, in this Excel, we
  477. 18:55have noted, for example, the standard
  478. 18:57timelines for a showcase site, a
  479. 18:59booking form, a digital menu, and the
  480. 19:01company's commitments. From July 1st to
  481. 19:05the 17th, there is an ongoing project
  482. 19:07we are working on, then there is a free
  483. 19:09period, there are vacations, and so on.
  484. 19:12Obviously, these are Excel files.
  485. 19:17Instead of these Excel files, you will
  486. 19:19tend to connect—we might show you in
  487. 19:21another video later—your Google
  488. 19:22Calendars, your databases, your
  489. 19:24software that contains all the company
  490. 19:26information, okay? It doesn't
  491. 19:29necessarily have to be an Excel file;
  492. 19:31in this case, it's just for simplicity.
  493. 19:34So, the data directory contains the
  494. 19:36company data, what Dario was talking
  495. 19:38about earlier. These are pieces of
  496. 19:40information that the agent doesn't have
  497. 19:42, okay? And they must always be
  498. 19:44available and must always be readable,
  499. 19:46okay? And they shouldn't be thrown into
  500. 19:49the context, into the prompt randomly
  501. 19:51every time you talk to the agent, but
  502. 19:53only when the agent actually needs to
  503. 19:54check prices or availability. Perfect.
  504. 20:04Um, the script file, this is an
  505. 20:05interesting thing because here we
  506. 20:07address the topic of probabilism versus
  507. 20:09determinism, in the sense that agents
  508. 20:11are left to choose autonomously
  509. 20:12precisely thanks to their intelligence
  510. 20:14in certain contexts, okay? But there
  511. 20:22are some operations that are better
  512. 20:23performed in a secure and deterministic
  513. 20:25way. So, for example, here we have
  514. 20:29three scripts that are like three tools
  515. 20:31in our agent's toolbox that I prepared,
  516. 20:33which help it do simple, clear things
  517. 20:35where it cannot make a mistake. For
  518. 20:39example, this is a Python file that
  519. 20:41simply calculates the days remaining
  520. 20:43from one date to another. Before we see
  521. 20:47this file, can you explain better the
  522. 20:49difference between probabilistic and
  523. 20:50deterministic, and why don't we just
  524. 20:52ask the AI to do these things instead
  525. 20:54of making a script that does them?
  526. 21:00Well, a probabilistic operation is an
  527. 21:02operation, let's say, where given an
  528. 21:04input, the output is generated based on
  529. 21:06a certain probability, okay? So you
  530. 21:13don't know, you know what the output
  531. 21:14will be generated with a certain
  532. 21:16probability. So you say that in 95%of
  533. 21:21cases the output might be within a
  534. 21:22range of results, but you don't know
  535. 21:24exactly what the result will be, okay?
  536. 21:28And this is very powerful, um, in
  537. 21:30reasoning contexts, okay? When we want
  538. 21:35to make the language model reason, or
  539. 21:37maybe when we want to make the language
  540. 21:39model use its creativity, or when we
  541. 21:41want it to read text. Okay? So this, um
  542. 21:45, approach is powerful in these
  543. 21:47specific cases, but when we have to
  544. 21:49perform simple operations where we know
  545. 21:51the expected result, for example,
  546. 21:53mathematical operations.
  547. 21:55Sure. Okay. And so mathematical
  548. 21:58operations like subtraction,
  549. 22:00multiplication, division on a large
  550. 22:02dataset, okay? It is much better to
  551. 22:08write a program that can
  552. 22:10deterministically calculate correctly,
  553. 22:12always correctly—so not 95%of the
  554. 22:14time, but 100%of the time—calculate,
  555. 22:17for example, the exact sum of the quote
  556. 22:19amounts. So, let's say that
  557. 22:26probabilistic work is great because it
  558. 22:28allows people to explore the world of
  559. 22:30creativity; so we ask it to write this
  560. 22:32copy or write me a story where there is
  561. 22:34a character who does this, that, and
  562. 22:35the other, and that's when you enter
  563. 22:37the realm of the probabilistic. When,
  564. 22:42instead, I enter the realm of the
  565. 22:44deterministic, it's: this thing is done
  566. 22:46this way, period. Do not go outside the
  567. 22:49perimeter of the instructions I give
  568. 22:51you. Perfect. For example, look at the
  569. 22:53sum amounts file. Okay, this sum must
  570. 22:55be perfect and precise. If I ask in
  571. 22:59ChatGPT or Claude, "tell me what 5 + 5
  572. 23:02is," it's clear it won't make a mistake
  573. 23:04, but the moment there are, uh,
  574. 23:06calculations done on 10,000–100,000
  575. 23:08pieces of data where you need to do
  576. 23:11sums, subtractions, and, uh, other
  577. 23:13complex arithmetic operations. It is
  578. 23:17very likely that the language model
  579. 23:19will create incorrect output data. Okay
  580. 23:21? So it is not, it is not the way to
  581. 23:24use, uh, language models. In that case,
  582. 23:28what should you simply tell the
  583. 23:30language model?
  584. 23:31Language models belong more to the
  585. 23:33world of words than they do to numbers.
  586. 23:35Perfect. Okay. And so, here you are
  587. 23:38telling it: when you have to use
  588. 23:39numbers, don't delegate, don't use
  589. 23:41creativity, instead rely on what I
  590. 23:43wrote for you in this script.
  591. 23:45Exactly. Trust what I have written for
  592. 23:47you in this script that works. Know
  593. 23:51that, interestingly, this is a
  594. 23:52technical issue because it's the loop,
  595. 23:54what we tell the language model is that
  596. 23:56this script exists, okay? And we tell
  597. 24:00it what it's for, we tell it how to use
  598. 24:02it, and to read the result. So it's the
  599. 24:05artificial intelligence
  600. 24:06Exactly. The artificial intelligence
  601. 24:08that is, let's say, instructed by us on
  602. 24:10how to use this script. So, the moment
  603. 24:13it needs to perform a calculation, it
  604. 24:15knows to use that, passes the data as
  605. 24:17input, reads the output, and continues
  606. 24:19its agentic execution, moving from a
  607. 24:21probabilistic context to a
  608. 24:23deterministic one, only to return to a
  609. 24:25probabilistic context. Ok? Ok, great.
  610. 24:29That's clear to me. Let me ask you a
  611. 24:32question, though, because here we are
  612. 24:33looking at Python scripts that, while
  613. 24:35simple—I assume they don’t do
  614. 24:37anything extraordinary—are still
  615. 24:38scripts nonetheless. Now, if a person
  616. 24:44doesn't know how to develop code today,
  617. 24:46to what extent can they ask—I mean,
  618. 24:48does it make sense to ask an agent,
  619. 24:50i.e., artificial intelligence, to
  620. 24:51develop a script that does a certain
  621. 24:53task and then reuse that script time
  622. 24:55and again? I mean, I understand the
  623. 25:01flaw, because you're asking the AI to
  624. 25:03develop something that shouldn't allow
  625. 25:05for errors, and you're doing it—you
  626. 25:06want to use that script precisely
  627. 25:08because it's the AI that develops it,
  628. 25:10despite the margin of error—but it's
  629. 25:11still better than relying solely on the
  630. 25:13language model.
  631. 25:16Yes, it is better. And it's possible to
  632. 25:18do it even for those who don't program.
  633. 25:20There are some best practices or pieces
  634. 25:22of advice I would give: first of all,
  635. 25:24the principle of atomization, meaning
  636. 25:27try to make scripts that don't do
  637. 25:28hyper-complex things, okay? So, if, for
  638. 25:32example, there are arithmetic
  639. 25:34procedures that can be split into three
  640. 25:36or four scripts, create three or four,
  641. 25:39don't create one mega-script that does
  642. 25:41everything. Ok? Ok?
  643. 25:44So, once the operation is atomic—that
  644. 25:46is, smaller—it is much easier for the
  645. 25:48language model not to make mistakes
  646. 25:51when developing the script. I can tell
  647. 25:54you that, in my opinion today, at least
  648. 25:56based on my experience, when developing
  649. 25:59scripts of 300-400 lines, it almost
  650. 26:01never makes mistakes, unless they are
  651. 26:04scripts that do excessively complex
  652. 26:06things. So I recommend
  653. 26:08So let me ask you a question. I take
  654. 26:13the deterministic operation I need to
  655. 26:15perform, break it down into its most
  656. 26:17elementary processes, and for each
  657. 26:19process, I create a script that
  658. 26:21performs that specific task, and then
  659. 26:23in sequence, the agent will use one
  660. 26:26script, then another, and then another
  661. 26:28one still. Exactly. And also, when the
  662. 26:34language model produces them for you,
  663. 26:36it is much easier for it to get them
  664. 26:39right because, again, it has a smaller
  665. 26:41task and so it manages to be more
  666. 26:43focused on the goal and tends to make
  667. 26:45fewer mistakes. As far as I can tell
  668. 26:48you, nowadays all my scripts, whether
  669. 26:50Python, Bash, or even in other
  670. 26:52languages of 200-300 lines, I have them
  671. 26:54written always and only and exclusively
  672. 26:57by the language model. Uh, one tip I
  673. 27:00can give is maybe writing it with, for
  674. 27:03example, ChatGPT and asking Claude to
  675. 27:06evaluate it, okay? Uh, so saying, does
  676. 27:09this script actually work, does it have
  677. 27:12bugs, um, does it have security issues,
  678. 27:14so asking, for example, a Language
  679. 27:17Model to evaluate its quality. Okay? So
  680. 27:21, usually, after two or three cycles of
  681. 27:23this type, things go well and let's say
  682. 27:26it's all quite, I mean, you can trust
  683. 27:28it almost blindly. Then, clearly, I
  684. 27:33always review them myself because I
  685. 27:35understand what's inside. Those who
  686. 27:38don't know how to program definitely
  687. 27:40have to go through a verification cycle
  688. 27:42from one language model to another to
  689. 27:44say, check that this script does
  690. 27:46exactly what it's supposed to do. So I
  691. 27:50take what I did with one model, pass it
  692. 27:52to the other model and tell it,
  693. 27:54challenge this thing.
  694. 27:55Exactly. Find the bugs, find the
  695. 27:57security issues, or does everything
  696. 27:59work? And this, in my opinion, is
  697. 28:01powerful and it works. So let's say we
  698. 28:04left off at this directory that
  699. 28:06contains the scripts, so this is the
  700. 28:08sum of the amounts to create the quote.
  701. 28:11Read Excel is a tool we give to the
  702. 28:13language model to open, process Excel,
  703. 28:15and read what's inside. Days remaining,
  704. 28:18it's simply a calendar calculator for
  705. 28:20how many days are left from now until
  706. 28:22September 30th. Um, then what else is
  707. 28:26there? So, we've seen the data, we've
  708. 28:29seen the scripts, the directory has the
  709. 28:31cloud file. MD has the .cloud directory
  710. 28:34. These, this file and this folder,
  711. 28:41their names are not chosen at random,
  712. 28:42but are mandatory because in this case
  713. 28:44we are using Cloud Code as an
  714. 28:46orchestrator agent, and therefore we
  715. 28:48must follow the Cloud Code rules to
  716. 28:49implement a generic service within
  717. 28:51Cloud Code.
  718. 28:55And now I'll ask you the absolute
  719. 28:57beginner questions. If I knew nothing,
  720. 28:59what is the cloud.md file for, why do I
  721. 29:02have to create it, and above all, what
  722. 29:04are the files? MD ah the
  723. 29:08files. MD are technically called
  724. 29:10Markdown. Um, let's say they are files
  725. 29:16that have a specific syntax. If I open
  726. 29:20it, we can see it. For example, uh,
  727. 29:24actually they are, maybe I'll add two
  728. 29:26or three things myself, they are simple
  729. 29:28text files, only that Practical knows
  730. 29:30these things very well, because, for
  731. 29:32example, when you had to write blog
  732. 29:34articles, one hashtag was equivalent to
  733. 29:36an H1, so it was a header, a very large
  734. 29:39title. Then there was the H2 with two
  735. 29:42hashtags which was a slightly more
  736. 29:44important subtitle, the H3, and then
  737. 29:45the dashes which are perhaps the bullet
  738. 29:48points. Actually, it's a simple text
  739. 29:51file. If you look at it, you might say,
  740. 29:53"Wow, it looks like code," but it's not
  741. 29:55code. Where there are two asterisks,
  742. 29:57that means bold text and so on.
  743. 29:58Yes, exactly. It is a text file that
  744. 30:05follows conventions where, if we put
  745. 30:07specific characters before a string of
  746. 30:10text, that string becomes a title, a
  747. 30:12subtitle, a comment, or a list. Okay?
  748. 30:18So,
  749. 30:20to reassure people, I always say that
  750. 30:22if you use Cloud Code or artificial
  751. 30:24intelligence, it's often the AI itself
  752. 30:26that writes and creates these files.
  753. 30:30It's not like I ever sit down and write
  754. 30:32the markdown files I need to describe
  755. 30:34procedures and such myself. So, being
  756. 30:40super lazy, one thing I do is use a
  757. 30:42computer extension, a computer app
  758. 30:44called Super Whisper—but there are
  759. 30:46many others like Whisper Flow—where
  760. 30:48you can talk to the software you use
  761. 30:50for Cloud Code. Now, Pietro uses it via
  762. 30:55the terminal, but I, for example, use
  763. 30:57VS Code, and from VS Code, I talk to
  764. 30:59the Cloud Code chat and tell it: "I
  765. 31:01need to develop a file where we explain
  766. 31:03this, that, and the other thing, we do
  767. 31:05it this way, etc.," and then it writes
  768. 31:08the whole file and the procedures for
  769. 31:10me.
  770. 31:11Which is exactly what I did, too; in
  771. 31:13the sense that of what you see here, I
  772. 31:15wrote very few lines, meaning I always
  773. 31:17gave Cloud Code the task of compiling
  774. 31:19these files. And I, for example, don't
  775. 31:22remember the MD file syntax by heart at
  776. 31:24all, so I check it every time; so,
  777. 31:26exactly, it is not necessary to
  778. 31:28memorize it. But why is this file
  779. 31:31important? Because this cloud.md file
  780. 31:38is a file that Cloud Code loads during
  781. 31:40every turn of the dialogue obligatorily
  782. 31:42, so it contains information that is
  783. 31:44always made available to the language
  784. 31:46model when we use Cloud Code. So, in
  785. 31:56here, there is information that is
  786. 31:58important and must always be
  787. 32:00obligatorily taken into account by the
  788. 32:01agent whenever we run it. Okay? So, by
  789. 32:07agent in this case, I mean Cloud Code
  790. 32:09as a whole. And that is the reason. So,
  791. 32:11for example, when Cloud Code has to
  792. 32:13work on a project, inside that project
  793. 32:15folder, there is a cloud file. It is
  794. 32:21the master file where the entire
  795. 32:22project is described: the components,
  796. 32:24what is inside the folder, and the most
  797. 32:26important, fundamental rules that Cloud
  798. 32:28Code must interpret when it works
  799. 32:30within that folder. Is that correct?
  800. 32:34Did I understand that right?
  801. 32:35Absolutely correct. Well, let's say,
  802. 32:38perhaps put more technically, its
  803. 32:40content is always in the agentic
  804. 32:42context, always. So, in every turn of
  805. 32:46the dialogue, this content is passed
  806. 32:48along and it always has it in memory,
  807. 32:50because there are other files—exactly
  808. 32:52what we were saying earlier, for
  809. 32:54example, data, the calendar, the price
  810. 32:56list—that don't need to be passed
  811. 32:57continuously; those will only be used
  812. 32:59when needed. To explain what we were
  813. 33:03saying earlier, I would add that, quite
  814. 33:05often, we have said that adding too
  815. 33:07much information degrades, it lowers
  816. 33:09the quality of the output, of the
  817. 33:11agentic work. So, cloud.md, as Pietro
  818. 33:15was saying, is always loaded into
  819. 33:17memory: it's the agent's identity,
  820. 33:19right? Of the macro-orchestrator agent;
  821. 33:22it is always loaded in memory, whatever
  822. 33:24it does. So, at any moment you write
  823. 33:26anything, these are the pieces of
  824. 33:28information our agent always has with
  825. 33:30it. Instead, what we include in other
  826. 33:38documents, in other contexts, other
  827. 33:39subfolders, are documents, texts, and
  828. 33:41information that are only used if we
  829. 33:43have defined in the agent's behavior
  830. 33:45the methods, the moments, and the
  831. 33:47instructions for the agent to use that
  832. 33:49information so as not to overload it.
  833. 33:58So, for example, the information
  834. 34:00regarding the date when I am available
  835. 34:02to provide the work will be used as
  836. 34:04information loaded into memory only at
  837. 34:05the moment when the agent—whose name
  838. 34:07I don't remember right now, which we
  839. 34:09are building—has to go and create the
  840. 34:11action plan and decide by which dates
  841. 34:13we will develop the project, right?
  842. 34:18Exactly. And so, let's say we see that
  843. 34:23in this Cloud.md, which is the central
  844. 34:25file that, let's say, is what
  845. 34:26determines the parent orchestrator
  846. 34:28agent, we describe exactly this: what
  847. 34:30this orchestrator must do, right? So it
  848. 34:36tells it, "Look, you have office rules,
  849. 34:38" so let's say these are the office
  850. 34:40manager's rules, and it tells it, "Look
  851. 34:42, you have five specialists: the
  852. 34:44analyst, the estimator, the planner,
  853. 34:46the editor; you are the orchestrator."
  854. 34:49Okay? And this is something it must
  855. 34:52always keep in mind. It doesn't do the
  856. 34:55jobs, it assigns them, okay? So its
  857. 34:57role is emphasized to it. And then, for
  858. 35:00example, it describes who the agents
  859. 35:02are, right? And, well, practically, to
  860. 35:05whom to assign the work. When the user
  861. 35:09reports a new customer request, okay,
  862. 35:11it triggers, you start your whole crew
  863. 35:14of agents, right? You have the analyst,
  864. 35:18and pay attention, there's an order
  865. 35:20here too, this is important. Okay? So
  866. 35:22it says, "Look, you have an initial
  867. 35:24agent that is the analyst, who must be
  868. 35:26called first because they need to read
  869. 35:28the user's request. Often customers
  870. 35:32don't write entirely clear requests and
  871. 35:33often we waste a lot of time trying to
  872. 35:35understand exactly what is being asked
  873. 35:37of us. Because it seems like a trivial
  874. 35:42role now, but imagine a sub-agent that
  875. 35:44is truly capable of schematizing in 3
  876. 35:46seconds the request of a client who has
  877. 35:48sent you three emails, four phone calls
  878. 35:50, five WhatsApp messages, and you no
  879. 35:52longer understand anything of what they
  880. 35:54want. Okay? Imagine this highly
  881. 35:59developed sub-agent that has access to
  882. 36:00all this information and creates a very
  883. 36:02precise instance regarding what the
  884. 36:04user wants, perhaps even knowing the
  885. 36:06history of that same user, so it
  886. 36:08becomes an interesting role. So, first
  887. 36:12phase: analysis of what is being
  888. 36:14requested by the client. Then, in
  889. 36:18parallel—this is underlined because
  890. 36:20this phase here, where we have the
  891. 36:22estimator and the planner work, is a
  892. 36:23phase where these two workers have two
  893. 36:25completely separate tasks that have
  894. 36:27nothing to do with each other, but are
  895. 36:29both important to move the work forward
  896. 36:31. So I, as let's say the company
  897. 36:36manager, tell them: work together, go
  898. 36:38ahead. Okay? And this can be said,
  899. 36:40yes, it's not that one has to wait for
  900. 36:41the other to finish before starting.
  901. 36:44You can work together, or rather
  902. 36:45simultaneously more than together.
  903. 36:48Exactly. What must the drafter do
  904. 36:50instead? The drafter must wait for the
  905. 36:53estimator and the planner to finish and
  906. 36:55give them the cost of what was
  907. 36:56requested. Okay? And the timelines.
  908. 37:04When the drafter has received this
  909. 37:06information passed by the agents who
  910. 37:07worked in parallel, they can move
  911. 37:09forward. In the meantime, they wait.
  912. 37:16When this information arrives, they
  913. 37:18create a quote and plan summary,
  914. 37:19meaning all the information needed to
  915. 37:21then be sent as an email to the
  916. 37:23customer, telling them," Okay, this is
  917. 37:25our response, this is our proposal,
  918. 37:27accept it. "The archivist agent here
  919. 37:32does nothing but take the information
  920. 37:34from the reply email that the drafter
  921. 37:36created and save it in a file. Even
  922. 37:40here it might seem like overkill in
  923. 37:42this case, but consider that this can
  924. 37:44be saved to a database, an email can be
  925. 37:46sent, then a message can be sent via
  926. 37:48WhatsApp or Telegram. So the archivist
  927. 37:52can do a thousand things: it can log
  928. 37:54all the operations that have been
  929. 37:56performed, it can notify the company
  930. 37:58director:" Look, the quote has been
  931. 37:59sent. "Okay? So all these sub-agents
  932. 38:06can actually be expanded and even have
  933. 38:08sub-agents of their own that perform
  934. 38:10further operations, reaching a level of
  935. 38:12complexity and granularity capable of
  936. 38:14mapping and executing operations even
  937. 38:16for companies with extremely complex
  938. 38:18workflows. And the last step is showing
  939. 38:23the result to the user. General rules,
  940. 38:26this is interesting. Each specialist,
  941. 38:30therefore each sub-agent, receives all
  942. 38:32the text it needs in its assignment.
  943. 38:35The specialists don't talk to each
  944. 38:36other, okay? So, this interesting
  945. 38:38isolation, what does it mean? Each
  946. 38:40specialist receives all the text it
  947. 38:42needs in its assignment. It tells them,
  948. 38:47" Be careful that when one of the
  949. 38:48sub-agents returns the result to you,
  950. 38:50pass that result completely to the next
  951. 38:52agent. "Don't make any evaluations
  952. 38:56yourself; you just have to act as a
  953. 38:58pass-through. Okay?
  954. 38:59Okay.
  955. 39:01Don't—don't summarize, don't shorten,
  956. 39:03don't add anything. Okay.
  957. 39:06And why don't the specialists talk to
  958. 39:08each other? Specialists don't pass
  959. 39:11information, they don't talk to each
  960. 39:13other by design, in the sense that when
  961. 39:15you have—by design in this context,
  962. 39:17meaning that if you want the agents to
  963. 39:19be in series or parallel, having
  964. 39:21isolated tasks,
  965. 39:23ok,
  966. 39:24it is necessary that they don't talk to
  967. 39:26each other. This is the first phase,
  968. 39:29let's say, it's the first model and it
  969. 39:31is the basic agentic implementation
  970. 39:33model. There are design patterns that
  971. 39:37provide for inter-agent dialogue, okay?
  972. 39:40But maybe we'll see those later on,
  973. 39:42also because, for example, Cloud Code
  974. 39:44implements it with a design pattern
  975. 39:46that I think is called Agent Teams, but
  976. 39:48since it's in beta, if I remember
  977. 39:50correctly, precisely because it's not
  978. 39:52yet solid and makes a few little errors
  979. 39:54. Okay? Um, so let's say that the basic
  980. 39:57structure, which in my opinion you
  981. 39:59should keep in mind, covers 70-80%of
  982. 40:05cases, um, is this architecture which
  983. 40:07provides for the verticalization of
  984. 40:10agents by assigning limited scopes.
  985. 40:16Which means that each of these
  986. 40:17sub-agents has its own closed context
  987. 40:19that only it sees and that the others
  988. 40:21do not see. This is cleanliness and
  989. 40:25focus. Okay? While I'm giving a quick
  990. 40:29introduction, we're talking about a
  991. 40:31horizontal multi-agent design pattern
  992. 40:33where sub-agents can talk to each other
  993. 40:35. Wait, what is a design pattern? I
  994. 40:40mean, I understand when you talk, but
  995. 40:42...
  996. 40:42Yes, you're right. A design pattern,
  997. 40:46how to explain it...it's a standard
  998. 40:48scheme, a standard way of doing things,
  999. 40:50okay? When there's, when you have to do
  1000. 40:55something complex, okay? So, maybe an
  1001. 41:01operation that requires various steps
  1002. 41:03together, that have a specific order,
  1003. 41:05that must be done in a certain way, and
  1004. 41:07you refine this process over the years
  1005. 41:10because you say," Look, to make this
  1006. 41:12cake, I need this, this, and this. I
  1007. 41:17follow these steps, and it turns out
  1008. 41:19well. "Okay? And so I created my own
  1009. 41:22scheme for how to make that type of
  1010. 41:24cake, or how to make all cakes of that
  1011. 41:26type. If I write this scheme down, and
  1012. 41:29say, for example, watch out—
  1013. 41:32Watch out, never put cold butter in the
  1014. 41:35cake; first, let it warm up a bit
  1015. 41:37outside. I am creating a design pattern
  1016. 41:42to perform a specific operation that
  1017. 41:44can be associated with multiple
  1018. 41:45operations of that type. Every one of
  1019. 41:48them.
  1020. 41:49Certainly. So a design pattern is,
  1021. 41:51let's say, the way you conceive the
  1022. 41:53right way to do things, and the right
  1023. 41:55repeatable way to do things. Exactly.
  1024. 41:59While keeping in mind, though, that
  1025. 42:01there can be different ways to do it.
  1026. 42:03So this is your way. If I have to build
  1027. 42:11Notre Dame tomorrow, I could decide to
  1028. 42:12start by going to collect the right
  1029. 42:14bricks to build the building, or think
  1030. 42:16about the foundations first and then go
  1031. 42:17acquire the right materials to build
  1032. 42:19the architecture once I've finished the
  1033. 42:21foundations, right? So I imagine that
  1034. 42:30every developer has their own signature
  1035. 42:32, their own way of conceiving work,
  1036. 42:34their own patterns for design, product,
  1037. 42:36development, and in this case, for
  1038. 42:38agentic design; because I might decide
  1039. 42:40—for the same task—I could do it
  1040. 42:42with different agents structured in a
  1041. 42:44different way, while Pietro does it
  1042. 42:45another way that is more obvious,
  1043. 42:47clearer, and more effective for him.
  1044. 42:51Exactly. Uh, but there is also, let's
  1045. 42:54say, this is a classic topic in
  1046. 42:56software engineering. When you have to
  1047. 43:01build extremely complex things and
  1048. 43:03someone has already created a design
  1049. 43:05pattern that allows you to build them
  1050. 43:07in a solid, scalable, secure, and fast
  1051. 43:09way, we often study that design pattern
  1052. 43:11and reimplement it. Okay? Let's just
  1053. 43:17say programmers like to say," Don't
  1054. 43:18reinvent the wheel. "Right? Sure, if
  1055. 43:22someone has already solved a certain
  1056. 43:24problem in a complex way,
  1057. 43:27we borrow it,
  1058. 43:29feel free to test that kind of
  1059. 43:30procedure as well. Then maybe many
  1060. 43:33programmers, for instance, prefer to do
  1061. 43:35it their own way; in some cases, I'm
  1062. 43:37someone who strictly follows design
  1063. 43:39patterns because I trust them and I
  1064. 43:41know they're the best. In other cases,
  1065. 43:43I say no, this is overkill, it's a mess
  1066. 43:45to over-engineer it, it's just mental
  1067. 43:47gymnastics for engineers. Let's leave
  1068. 43:49it be, let's keep it simple, okay?
  1069. 43:51Let's make an MVP, let's make a simple
  1070. 43:53and functional product and forget about
  1071. 43:55the standard design patterns floating
  1072. 43:57around. So it's absolutely the user's
  1073. 44:00choice, but I recommend getting
  1074. 44:02informed about the design patterns that
  1075. 44:04are out there and seeing, let's say,
  1076. 44:06how they are made, what problems they
  1077. 44:08solve, and what problems they create.
  1078. 44:12Because any architecture solves some
  1079. 44:14problems, but it also creates others.
  1080. 44:17Right? Yeah.
  1081. 44:19Like in any architecture, even with
  1082. 44:21buildings, there's always some weak
  1083. 44:23point.
  1084. 44:24Exactly, exactly, exactly. There is no
  1085. 44:27rule. The important thing is that the
  1086. 44:29points don't collapse.
  1087. 44:30The important thing is that the points
  1088. 44:31don't collapse. And so, compared to
  1089. 44:35what we were saying earlier, the
  1090. 44:36inter-agent dialogue, meaning between
  1091. 44:38sub-agents, requires more engineering
  1092. 44:40because you have to define the
  1093. 44:42communication methodologies and
  1094. 44:43communication repositories between
  1095. 44:45users, so how sub-agents communicate
  1096. 44:47with each other, where they write, and
  1097. 44:49what they write. Okay. And it also
  1098. 44:54seems to me like something that greatly
  1099. 44:56increases the probability of ending up
  1100. 44:58in a probabilistic environment instead
  1101. 45:00of a deterministic one. Am I wrong?
  1102. 45:02Spot on.
  1103. 45:04I mean, there's a lot more chaos. If
  1104. 45:08you take many agents that you're
  1105. 45:09already struggling to manage and you
  1106. 45:11have many agents talking to each other
  1107. 45:13and passing the ball back and forth,
  1108. 45:14there's a high probability that you'll
  1109. 45:16find yourself not understanding what
  1110. 45:18it's doing and not getting an output
  1111. 45:19like you had imagined.
  1112. 45:22Exactly. So you're moving in the
  1113. 45:24direction of greater autonomy, but
  1114. 45:26you're also moving in the direction of
  1115. 45:28less control. Therefore, the moment
  1116. 45:31that type of architecture isn't really
  1117. 45:34solid, stable, and controllable, you
  1118. 45:36risk ending up with a system that makes
  1119. 45:41a mess and isn't efficient. But, man,
  1120. 45:49this stuff is really cool, because so
  1121. 45:51many people don’t realize this and
  1122. 45:53dream of an artificial intelligence
  1123. 45:54where you just give it a simple task
  1124. 45:56and it does everything; then they go
  1125. 45:58around complaining on forums, on Reddit
  1126. 46:00, that AI sucks or that you spend more
  1127. 46:02time reviewing and fixing errors than
  1128. 46:03the time you actually saved because you
  1129. 46:05didn't get what you dreamed of. The
  1130. 46:14reality is that, in my opinion, the
  1131. 46:16more time you spend building the right
  1132. 46:18architecture—making it as clear,
  1133. 46:19perfect, and functional as possible—
  1134. 46:21the more time you save later by
  1135. 46:23avoiding problems and fundamental
  1136. 46:25errors in the work performed and
  1137. 46:26delivered by your agents. But this puts
  1138. 46:30us in a position to understand just how
  1139. 46:33damn important this work of structuring
  1140. 46:35, clarifying, and exemplifying
  1141. 46:36everything that needs to be done, how
  1142. 46:38it should be done, in what order, and
  1143. 46:40in what way, really is. And in the end,
  1144. 46:44this is the pattern design you were
  1145. 46:45talking about, which is perhaps where
  1146. 46:47the real intelligence in working with
  1147. 46:49AI lies, and it’s not something so
  1148. 46:50obvious that everyone can do. I mean,
  1149. 46:56this is why even today, someone with a
  1150. 46:58software engineering or developer
  1151. 47:00approach still has a huge competitive
  1152. 47:02advantage over a person who just takes
  1153. 47:04ChatGPT or Claude and plays around with
  1154. 47:06them a bit, because, let's be honest,
  1155. 47:08building custom projects on Claude, Web
  1156. 47:10, or ChatGPT is absolutely not
  1157. 47:12comparable to what we are talking about
  1158. 47:14in this video. Here, it’s not about
  1159. 47:19knowing how to develop, but knowing how
  1160. 47:21to architect, which is still something
  1161. 47:23very important if you are an
  1162. 47:24entrepreneur, if you work in business,
  1163. 47:26or generally if you are capable of
  1164. 47:28building something good in life,
  1165. 47:29because I realize that intelligence is
  1166. 47:31often something horizontal, not
  1167. 47:33vertical. It’s not" oh, he knows how
  1168. 47:36to develop, so he’s mega-intelligent,
  1169. 47:37"or" he knows how to do his homework,
  1170. 47:39he’s good at math, he can solve a
  1171. 47:41Rubik’s cube in 10 seconds, "those
  1172. 47:43are just specific skills. In my opinion
  1173. 47:46, intelligence is something horizontal
  1174. 47:48that allows you in life to succeed in
  1175. 47:50building and architecting an existence,
  1176. 47:52a job, a profession, or a business that
  1177. 47:54carries with it principles capable of
  1178. 47:56bringing order to chaos and
  1179. 47:58systematizing complexity. Exactly.
  1180. 48:03Balance, and so I completely agree with
  1181. 48:06you; I mean, pure human intelligence is
  1182. 48:08exactly this: knowing how to architect
  1183. 48:10and keep the various components of life
  1184. 48:12in balance—even if it might seem
  1185. 48:14off-topic now, I'll say it: physical
  1186. 48:16intelligence, right? I mean, having a
  1187. 48:23good relationship with one's body, with
  1188. 48:25the things around us, living peacefully
  1189. 48:27in our own living space, the
  1190. 48:29environment we live in, is, let's say,
  1191. 48:31not so disconnected from this way of
  1192. 48:32thinking; and it is also important
  1193. 48:34because, uh, compared to the
  1194. 48:36discussions we had other times, um, it
  1195. 48:38makes us understand how important we
  1196. 48:40still are despite the presence of
  1197. 48:41artificial intelligence, which can
  1198. 48:43automate a lot of the work, right? On
  1199. 48:50the contrary, there is even more
  1200. 48:52responsibility to properly architect
  1201. 48:54our processes from beginning to end. Um
  1202. 48:58,
  1203. 48:59let's
  1204. 48:59then, let's, let's go ahead. Uh, so we
  1205. 49:03were at Cloud MD, which is the central
  1206. 49:05file that organizes, that orchestrates,
  1207. 49:07let's say, the parent agent. The other
  1208. 49:12agents are, are, are, are in here,
  1209. 49:15inside cloud. Agents. Ok.
  1210. 49:19That's why specifically Cloud and
  1211. 49:20agents, I mean, it's a folder that must
  1212. 49:22, if you build agents, they necessarily
  1213. 49:24have to be inside cloud and inside an
  1214. 49:26agents folder.
  1215. 49:27Yes, in cloud code, yes. If we use
  1216. 49:30cloud code, the naming and nesting must
  1217. 49:33be exactly this. So, uh, point clode uh
  1218. 49:40, agents, and generally one file per
  1219. 49:42agent. Let's open one at random, let's
  1220. 49:45see what's inside. They're always MD
  1221. 49:47files anyway, by now you've understood,
  1222. 49:49you've got it. Uh, what is generally
  1223. 49:52inside a file that describes an agent?
  1224. 49:56The name, the description, uh, the
  1225. 49:59tools. This is perhaps a bit more
  1226. 50:02complex, but we can look at it. Uh, so,
  1227. 50:04for example, this is the analyst. The
  1228. 50:07description reads a client's request,
  1229. 50:09turns it into an organized sheet. Ok?
  1230. 50:14Uh, read tools read. What does that
  1231. 50:17mean? This is a security specification.
  1232. 50:21Ok? So here we are limiting what that
  1233. 50:23agent can do. This agent must not write
  1234. 50:27files, must not send messages, must not
  1235. 50:29send emails, must not execute code, it
  1236. 50:32must only read, uh, an instance and
  1237. 50:34understand it. Ok?
  1238. 50:36So you are building an action perimeter
  1239. 50:38, I mean, are you defining the action
  1240. 50:39perimeter here? It's reading the
  1241. 50:41incoming files, but not writing
  1242. 50:42anything else.
  1243. 50:43Exactly. I tell it, look, you can only
  1244. 50:46read; since you only have to read, you
  1245. 50:48can only read, ok? Uh, this is the
  1246. 50:52principle of least privilege, it's
  1247. 50:54called, ok? In IT, not just IT, it's
  1248. 50:59extremely important: if you have a
  1249. 51:01process, an agent, a program, a
  1250. 51:03software, a system, whatever
  1251. 51:05technological thing you have,
  1252. 51:07configuring it to do more than what it
  1253. 51:09needs to do is introducing a risk. Ok?
  1254. 51:15So if you have, um I don't know, a
  1255. 51:21camera at home that only needs to look
  1256. 51:23at room A, room B and that's it, you
  1257. 51:25have to prevent it from being able to
  1258. 51:26look at room C. Okay? You'll ask me,
  1259. 51:30why this? Because in case I somehow
  1260. 51:36manage, voluntarily or involuntarily,
  1261. 51:39to modify the behavior of this, of this
  1262. 51:41, okay? If I am a malicious actor, or
  1263. 51:47simply if the language model is
  1264. 51:49hallucinating and thus wants to use my
  1265. 51:50agent in a negative or dangerous way.
  1266. 51:54Here it has a block, it has a block
  1267. 51:56that tells it, look, you can only read
  1268. 51:57anyway, so at most you read poorly, you
  1269. 52:00don't write something dangerous, you
  1270. 52:01don't take active actions, okay?
  1271. 52:05Therefore, when defining agents, it is
  1272. 52:07good practice to only define, to assign
  1273. 52:09to that agent the minimum privileges
  1274. 52:11necessary to perform the task it must
  1275. 52:13do.
  1276. 52:17In this case, Tools colon read with a
  1277. 52:19capital R, is that a convention? Is it
  1278. 52:21something that must be precise and
  1279. 52:23written like that or
  1280. 52:24Yes, yes, yes. This, this is a schema,
  1281. 52:27by the way, the Yaml format, but anyway
  1282. 52:29, let's leave that aside. It's, so this
  1283. 52:32is, the name must be name equals name,
  1284. 52:34description, description colon
  1285. 52:36description tools. These must be the
  1286. 52:39Cloud Code tools, read, bash, write,
  1287. 52:42etcetera, etcetera. There are, there is
  1288. 52:44a list of them, they can be found. Or
  1289. 52:45you ask Cloud, who knows them better
  1290. 52:47than anyone, and anyway, then here you
  1291. 52:49tell it what it is. You are an analyst,
  1292. 52:55always produce, always produce a text
  1293. 52:57to send back to the parent orchestrator
  1294. 52:59where you must put what is being asked,
  1295. 53:01what the constraints are, and if there
  1296. 53:02are any open questions. For example,
  1297. 53:07what the client doesn't say and should
  1298. 53:09be asked. Uh, rules, one item line by
  1299. 53:12line, so write, write them for me line
  1300. 53:15by line. So it is, it is a fairly
  1301. 53:17simple agent. Let's see if there is
  1302. 53:19something a bit more complex. Here,
  1303. 53:22maybe this one.
  1304. 53:23I'll ask a question now. Here we are
  1305. 53:25doing a stylistic exercise, a very
  1306. 53:27simple example so that people
  1307. 53:29understand how the architecture of a
  1308. 53:31project running on AI agents is
  1309. 53:32structured. But, for example, if you
  1310. 53:35had to develop a product tomorrow and
  1311. 53:38you need agents that are, in short,
  1312. 53:40functional and effective in the field,
  1313. 53:42to what extent do you delve as much as
  1314. 53:44possible into the agent's work? Meaning
  1315. 53:48, what is the right balance between too
  1316. 53:50much and too little? I mean, should
  1317. 53:55these documents where you specify how
  1318. 53:57the agents should work be as
  1319. 53:59comprehensive as possible and specify
  1320. 54:01everything, or, since Cloud Code agents
  1321. 54:03are already trained on an infinite
  1322. 54:05amount of information, do we take for
  1323. 54:07granted that they already know how to
  1324. 54:09do many things and do them very well?
  1325. 54:14You've asked the question of the
  1326. 54:16century, in the sense that it is a
  1327. 54:18problem that already exists in software
  1328. 54:21in other ways, but regarding agents, it
  1329. 54:23is a very hot topic in these last few
  1330. 54:25months; that is, how to break things
  1331. 54:27down, what is the level of
  1332. 54:29fractionation and atomization of
  1333. 54:30agentic operations. Right? Well,
  1334. 54:37generally speaking, it is very rare to
  1335. 54:39start with a precise and perfect
  1336. 54:40architecture where you create the right
  1337. 54:43number of agents with the correct
  1338. 54:44number of instructions for each one.
  1339. 54:49What you do is get a general and
  1340. 54:51balanced idea, okay? Trying not to
  1341. 54:55overload them with information, but
  1342. 54:57also not creating stupid agents that
  1343. 54:59perform only a single operation. Right?
  1344. 55:02I cannot just ask an agent to tell me
  1345. 55:04how many files are in a directory. I
  1346. 55:06don't make an agent that just does that
  1347. 55:08, okay? Instead, I create an operation,
  1348. 55:11a tool that does that, so I try to
  1349. 55:13semantically identify the operations to
  1350. 55:16isolate. Then I build an agent. If I
  1351. 55:21then see that I am asking it to do too
  1352. 55:23many things, I am probably overloading
  1353. 55:25it in that case and I need to
  1354. 55:26re-fractionate the agent so that
  1355. 55:32So, for example, if I have an agent
  1356. 55:34that needs to develop an offer and the
  1357. 55:36offer becomes a quote, and the quote
  1358. 55:38must have a well-written writing
  1359. 55:39component, a PDF construction component
  1360. 55:41with a good design, and all these
  1361. 55:43things, at a certain point I might no
  1362. 55:45longer have just the agent that
  1363. 55:46develops the quote, but I will have two
  1364. 55:48agents. One that writes the copy or the
  1365. 55:53body of the quote text that then passes
  1366. 55:55it to the designer, and the designer
  1367. 55:57who goes, according to different
  1368. 55:59specifications you gave it, to build
  1369. 56:01the design of the PDF, pastes it inside
  1370. 56:02, and then exports it. That could be an
  1371. 56:05example,
  1372. 56:06right? It's a perfect example that also
  1373. 56:08applies to the real world, isn't it?
  1374. 56:09Because if you start a business and
  1375. 56:11maybe hire one or two people who do a
  1376. 56:13whole set of operations, then you see
  1377. 56:15that the work grows and it has to
  1378. 56:17become more and more complex and more
  1379. 56:19and more specific. Right? For example,
  1380. 56:21I don't know, you have to develop
  1381. 56:23software, you hire a full stack dev who
  1382. 56:25does both the design, the frontend, and
  1383. 56:27the backend, then you start making
  1384. 56:29increasingly complex software or you
  1385. 56:30want greater specialization,
  1386. 56:32You take on the frontend, you take on
  1387. 56:34the quality assurance, and then, as we
  1388. 56:36were saying before, when it's not clear
  1389. 56:38who is responsible for a task because
  1390. 56:40the task is too broad, it usually all
  1391. 56:41falls through the cracks.
  1392. 56:43Exactly. Exactly. Here, here is the
  1393. 56:46quote generator. Why am I showing it to
  1394. 56:48you quickly? Because it's a bit more
  1395. 56:50complex than the other one and because
  1396. 56:52there's the shift from probabilism to
  1397. 56:53determinism. Okay? So, for example,
  1398. 56:55here name, quote generator, description
  1399. 56:57, transforms a list of requests into a
  1400. 57:00quote using exclusively the project
  1401. 57:02price list because, watch out,
  1402. 57:03it's in all caps and all caps has an
  1403. 57:05effect on LLMs, okay?
  1404. 57:07Yes, yes, it has weight, it has weight,
  1405. 57:09meaning people say," Wow, he wrote it
  1406. 57:11in all caps, it must be important. "
  1407. 57:13Exactly.
  1408. 57:13So it's the same thing that happens in
  1409. 57:15my mind when Denise sends me a message
  1410. 57:17with something written in all caps.
  1411. 57:19It means you have to, you have to focus
  1412. 57:21.
  1413. 57:21Buy the eggs. Remember.
  1414. 57:24This time remember it. Exactly. Yes,
  1415. 57:28yes, it works like that. So, let's say,
  1416. 57:31this also means they should be used
  1417. 57:32with a grain of salt because
  1418. 57:34highlighting too many things is like
  1419. 57:36highlighting nothing at all. Sure.
  1420. 57:40Um, here it is highlighted precisely
  1421. 57:42because here a quote needs to be made,
  1422. 57:44the correct prices must be taken. So I
  1423. 57:49want to emphasize, I want this agentic
  1424. 57:51process to actually work this way, not
  1425. 57:53for it to make up prices or invent
  1426. 57:55discounts for the user, okay? So I
  1427. 58:01start by telling it that it must only
  1428. 58:03use the project price list, so first of
  1429. 58:05all I write the data for it in an Excel
  1430. 58:07file or somewhere else so that it is
  1431. 58:09absolutely impossible for it to make up
  1432. 58:10data and I tell it to use that. Okay?
  1433. 58:18Um, so I reinforce, I try to reinforce
  1434. 58:20in every way and limit as much as
  1435. 58:22possible the option that it might
  1436. 58:24actually do something it shouldn't or
  1437. 58:25read data it shouldn't read. The tools
  1438. 58:31here, um, it has three: read, grep.
  1439. 58:37Read the files. Grep is borrowed from a
  1440. 58:41very famous Linux command used to
  1441. 58:42search for occurrences in files. Find
  1442. 58:46me all the files where I mentioned that
  1443. 58:47client. Um, Bash instead is a tool that
  1444. 58:51the agent can use to actually execute
  1445. 58:53code or commands. This is extremely
  1446. 58:56sensitive, but we need it. Why do we
  1447. 58:58need it? Because look at what we tell
  1448. 59:01the quote generator. Your only source
  1449. 59:03of prices is the file. You must quote,
  1450. 59:06you must quote correctly. You must use,
  1451. 59:11um, you must use the script that allows
  1452. 59:13you to read Excel, okay? And you must
  1453. 59:19read the price list .xlsx, okay? and
  1454. 59:23you must never do it any other way. So
  1455. 59:26every time you need to provide a quote,
  1456. 59:28you must run specific commands that
  1457. 59:30read the files and obtain the data from
  1458. 59:32those files. Okay? In this way, there
  1459. 59:36is a shift from probabilism to
  1460. 59:37determinism. Okay? And language models
  1461. 59:45have become very, very good at what is
  1462. 59:47called tool calling, which is the
  1463. 59:49transition from text to the execution
  1464. 59:51of a tool. Okay? Uh, so in this
  1465. 59:56specific case, this is where the
  1466. 59:58transition happens. Here, the agent
  1467. 1:00:02will use the data within the Excel file
  1468. 1:00:04by using this Python script, which is
  1469. 1:00:07read_excel.python. And then the other
  1470. 1:00:11instructions are, let's say, semantic,
  1471. 1:00:14right? Uh, create an entry for each
  1472. 1:00:16request. Compose the table with item,
  1473. 1:00:19price, list price, and note. Anything
  1474. 1:00:21not on the price list has no price; put
  1475. 1:00:23it in the off-list section. to
  1476. 1:00:26calculate the totals. Here too. Now, if
  1477. 1:00:31it's three or four digits, probably
  1478. 1:00:33three or four items on a price list, uh
  1479. 1:00:35, language models probably won't make
  1480. 1:00:37mistakes, but imagine a very complex
  1481. 1:00:39system that might have to work with
  1482. 1:00:41many figures, perhaps even with commas
  1483. 1:00:43or in different formats, and maybe
  1484. 1:00:45across hundreds of products, okay? So
  1485. 1:00:50maybe even a large company or thousands
  1486. 1:00:52of products. I need the totals to be
  1487. 1:00:54correct. Okay? Even here, do you see
  1488. 1:00:57what I'm saying? Totals are never
  1489. 1:00:59calculated in your head. Never.
  1490. 1:01:01Totals are never calculated in your
  1491. 1:01:03head.
  1492. 1:01:03Never in your head. You must use the
  1493. 1:01:06sum amounts script written in Bash.
  1494. 1:01:09Okay. And this Bash tool will be used
  1495. 1:01:12here. So it must have this in order to
  1496. 1:01:14run that. Uh, and you give it an
  1497. 1:01:17example. So run it like this, pass it
  1498. 1:01:20all the amounts, and the script itself
  1499. 1:01:22will give you the actual result of the
  1500. 1:01:24amounts. Don't make it up yourself. Uh,
  1501. 1:01:27close the quote with the total, total
  1502. 1:01:29options, etcetera, etcetera. So, let's
  1503. 1:01:33say this was a slightly more complex
  1504. 1:01:35agent that I wanted to show you, but in
  1505. 1:01:37the end, they are all like this. So
  1506. 1:01:41here we can list all the agents we have
  1507. 1:01:43created in this agents directory folder
  1508. 1:01:45. Then there is the setting.json file.
  1509. 1:01:48Anyway, this isn't very important, but
  1510. 1:01:50we'll open it to see what's inside. Uh,
  1511. 1:01:53here, so, this is a security
  1512. 1:01:55instruction that I wanted to give. I
  1513. 1:01:59mean, here Cloud Code allows you to
  1514. 1:02:01create this file in this strange format
  1515. 1:02:03called JSON, where I told it:" Never
  1516. 1:02:05dare to remove anything, so never
  1517. 1:02:07delete anything; there is never any
  1518. 1:02:09case where you should delete anything,
  1519. 1:02:11never do it. "And this...and this
  1520. 1:02:14blocks it. Okay? Because in my system,
  1521. 1:02:17you don't
  1522. 1:02:19use JSON files instead of MD in these
  1523. 1:02:21cases.
  1524. 1:02:23But why, then? Because a JSON file is a
  1525. 1:02:26file that is read deterministically.
  1526. 1:02:28Okay.
  1527. 1:02:29Okay. So, for each line, what is inside
  1528. 1:02:32is actually executed. It's not
  1529. 1:02:33evaluated, it's actually executed. Eh,
  1530. 1:02:36what am I telling it here?
  1531. 1:02:37Script context.
  1532. 1:02:40It's not a script, it's a, it's a, it's
  1533. 1:02:42a data structure, let's put it that way
  1534. 1:02:44. Okay. Okay, okay.
  1535. 1:02:46But because it contains scripts, for
  1536. 1:02:48example, look here. So it contains
  1537. 1:02:50scripts.
  1538. 1:02:52And here, for example, I'm...I'm in the
  1539. 1:02:54allow list, I'm telling it...I'm
  1540. 1:02:56telling it:" Look, um, these these
  1541. 1:02:58three operations read Excel, calculate
  1542. 1:03:01missing days, sumamounts.sh are are
  1543. 1:03:03scripts I made, they are safe, you can
  1544. 1:03:05always execute them; don't bother
  1545. 1:03:07asking me: can I execute this, this,
  1546. 1:03:09and that. "I made those, go ahead this
  1547. 1:03:13way. Why did I do this? I did this
  1548. 1:03:17because this way there is no need for a
  1549. 1:03:19man-in-the-loop during the agentic
  1550. 1:03:21phase, okay? So the agent goes ahead,
  1551. 1:03:24does all the steps we saw before, so
  1552. 1:03:26analyst, estimator, assembler, etcetera
  1553. 1:03:29, etcetera, until the end, because
  1554. 1:03:31these operations are assigned as valid
  1555. 1:03:33by default. Eh, that's all. So this
  1556. 1:03:38settings JSON, obviously this is an
  1557. 1:03:40example of a settings JSON, you might
  1558. 1:03:41find huge ones with everything inside,
  1559. 1:03:43but it's useless to look at all the
  1560. 1:03:45scenarios. And that's it, we're done.
  1561. 1:03:49Then what else is there to see? There's
  1562. 1:03:53, here I also made an example file with
  1563. 1:03:55the client's email where, uh, there is
  1564. 1:03:57the email subject.
  1565. 1:04:00Ah, we already saw this one before.
  1566. 1:04:02Actually,
  1567. 1:04:03we already saw this one before. There
  1568. 1:04:05is also another one with
  1569. 1:04:06the price.
  1570. 1:04:07There's also this other one here, eh? A
  1571. 1:04:11website for a trattoria. Okay. These
  1572. 1:04:14are two client emails, which are
  1573. 1:04:16therefore the actual input.
  1574. 1:04:24If, for example, here in this small
  1575. 1:04:26company of agents we are developing, we
  1576. 1:04:28had wanted the agent, the first agent,
  1577. 1:04:30to go and fetch the emails directly
  1578. 1:04:32from our Gmail account, we could have
  1579. 1:04:35simply asked Cloud Code to interface
  1580. 1:04:37with our account's MCP. Gmail and check
  1581. 1:04:44every morning at 9:00 a.m. for emails
  1582. 1:04:46and import every quote request email.
  1583. 1:04:50Exactly. Exactly. Meaning that,
  1584. 1:04:53obviously, we didn't go and agentize
  1585. 1:04:55this portion of this example, but it's
  1586. 1:04:57something that is absolutely done and
  1587. 1:04:59must be done in these types of systems.
  1588. 1:05:04I'm not the one reading the emails and
  1589. 1:05:06saving them in here, but through MCP or
  1590. 1:05:08an ad hoc script, or well, there are a
  1591. 1:05:11thousand ways to retrieve client emails
  1592. 1:05:13, identify the new ones, and start
  1593. 1:05:15working on them. Now let's see, just
  1594. 1:05:19out of curiosity, if the agents have
  1595. 1:05:21been registered. There is a command
  1596. 1:05:25inside Claude Code that tells us which
  1597. 1:05:27agents are registered. Ah, yes, look,
  1598. 1:05:31here there's analyst, archivist,
  1599. 1:05:33planner. Then here starts a ton of
  1600. 1:05:36those from Minimaco, let's let's skip
  1601. 1:05:38them. An infinite list, but you see,
  1602. 1:05:44Claude Code registered them correctly,
  1603. 1:05:46so we have them and he can use them. If
  1604. 1:05:53you want, I'll try to
  1605. 1:05:54Go ahead, let's run a test.
  1606. 1:05:57Okay. So,
  1607. 1:06:03this is Claude Code from the terminal.
  1608. 1:06:05Obviously, I, for example, use VS Code
  1609. 1:06:07or perhaps there are people who use it
  1610. 1:06:09directly from the Claude app. Exactly.
  1611. 1:06:13Now I will tell him," Look, the tattoo
  1612. 1:06:16studio request has arrived, the request
  1613. 1:06:18from the client has arrived, it's here.
  1614. 1:06:28What's it called? Request
  1615. 1:06:33tattoostudio.md. You see, I use the at
  1616. 1:06:36symbol, I don't know if you do it too,
  1617. 1:06:39when I want to reference a file so that
  1618. 1:06:41it is
  1619. 1:06:42already inside working, right? Sure, so
  1620. 1:06:44he's sure he doesn't have to search for
  1621. 1:06:46it because he already knows what the
  1622. 1:06:48path is. Eh, process it, let's see what
  1623. 1:06:55it does. Let's try to do
  1624. 1:06:57play-by-play commentary of what Claude
  1625. 1:06:59is doing. Okay. He activated the read
  1626. 1:07:04tool and read the file, and the main
  1627. 1:07:06agent is already starting to dialogue
  1628. 1:07:08with us, right? He says, "Look,
  1629. 1:07:11so it's the orchestrator, this
  1630. 1:07:12is the orchestrator, eh, says:" I'm
  1631. 1:07:14starting the standard flow, first the
  1632. 1:07:16analyst to produce the sheet. "Okay, he
  1633. 1:07:18has already launched the analyst, in
  1634. 1:07:20fact, we see it here at the bottom as
  1635. 1:07:22well. You see that there are two agents
  1636. 1:07:24currently working at the same time.
  1637. 1:07:27You can also enter the analyst and you
  1638. 1:07:29can go back to the main. I did it a bit
  1639. 1:07:31fast just now.
  1640. 1:07:31Okay. To see specifically the agent's
  1641. 1:07:34work
  1642. 1:07:34and what he is doing. Exactly. The
  1643. 1:07:38analyst is at work on the Ago
  1644. 1:07:40Inchiostro request. As soon as he
  1645. 1:07:44delivers the card, remember the analyst
  1646. 1:07:46extracts the requests from the client's
  1647. 1:07:48instance and passes them in parallel to
  1648. 1:07:50the estimator and the planner.
  1649. 1:07:53Because they had to work simultaneously
  1650. 1:07:55.
  1651. 1:07:55Because they had to work simultaneously
  1652. 1:07:57for the sake of process optimization,
  1653. 1:07:59right? So here too, there is the effort
  1654. 1:08:01of determining what can be done
  1655. 1:08:02simultaneously in my company to avoid
  1656. 1:08:05wasting time, and what cannot. In fact,
  1657. 1:08:08you can see down here that the
  1658. 1:08:10estimator has been activated, and now
  1659. 1:08:15the planner too, do you see? So now
  1660. 1:08:18there is the main one, and there are
  1661. 1:08:20two others working in parallel. Uh, by
  1662. 1:08:24the way, it says it here, there are two
  1663. 1:08:26agents in the background, so right now
  1664. 1:08:28we have three working. Tattoo site
  1665. 1:08:32estimate, planning, and scheduling the
  1666. 1:08:34timeline for the site. And so, and so
  1667. 1:08:40basically, every time I have to figure
  1668. 1:08:42out whether to choose to have my agents
  1669. 1:08:44work in parallel or sequentially, right
  1670. 1:08:46? So what I do in parallel is have them
  1671. 1:08:49do things that are not interdependent
  1672. 1:08:51on one another. So, for example, if I
  1673. 1:08:56have a client and for that client I
  1674. 1:08:57have to develop a website design and
  1675. 1:08:59then some social media graphics, these
  1676. 1:09:01two things are not necessarily
  1677. 1:09:03interdependent, so I can have two
  1678. 1:09:05separate processes. But if for the same
  1679. 1:09:09site I have to develop the copy and the
  1680. 1:09:11design, obviously the designer will
  1681. 1:09:13wait to start and will wait for the
  1682. 1:09:15copywriter's work, who sends them the
  1683. 1:09:16copy and the text to put on the web
  1684. 1:09:18pages, because it wouldn't make sense
  1685. 1:09:20to start designing if you don't first
  1686. 1:09:22know how much text has to go in, how
  1687. 1:09:23many sections, what is written, and so
  1688. 1:09:25on, right? Exactly. This is a typical
  1689. 1:09:33way of proceeding in architectural
  1690. 1:09:35planning that is very, very important,
  1691. 1:09:37and considering that these systems can
  1692. 1:09:39parallelize hundreds of processes
  1693. 1:09:41simultaneously, the more we can
  1694. 1:09:42parallelize, the more efficiency and
  1695. 1:09:44effectiveness we have. Okay? So I gave
  1696. 1:09:51this example precisely because the
  1697. 1:09:53effort we were talking about earlier on
  1698. 1:09:54the part of the entrepreneur to
  1699. 1:09:56understand how their own company works,
  1700. 1:09:58identifying these important nodes
  1701. 1:09:59ensures that the agentic construction
  1702. 1:10:01by the software house or the programmer
  1703. 1:10:03building it for you is even more
  1704. 1:10:04effective, right? So if we remember to
  1705. 1:10:08tell them, look, these things can be
  1706. 1:10:10done together,
  1707. 1:10:11it already knows and develops them in
  1708. 1:10:13parallel.
  1709. 1:10:14Let me ask you a question. Go ahead.
  1710. 1:10:18Uh, when I work with Cloud Code,
  1711. 1:10:19working inside VS Code, I usually have
  1712. 1:10:21my screen where I see the files on the
  1713. 1:10:23right, I have my chat on the left, and
  1714. 1:10:25look, I can even show it to you. I'll
  1715. 1:10:29share my screen too.
  1716. 1:10:30Yes.
  1717. 1:10:31Uh, share screen, window, vscode. Here
  1718. 1:10:35it is. So you see it appearing. No,
  1719. 1:10:38wait, I need to show it here. Wait. Ok,
  1720. 1:10:42here it is. Add to stage. I'll remove
  1721. 1:10:45yours for a second. I'll add mine. Here
  1722. 1:10:47I have my Cloud Code, and as you can
  1723. 1:10:49see, on the right, I have the chat with
  1724. 1:10:51Cloud, right? And on the left, I have
  1725. 1:10:53the entire structure of my Cloud folder
  1726. 1:10:55, and here I have an open document.
  1727. 1:10:59If I start chatting here, for example,
  1728. 1:11:01I can write: start two agents in
  1729. 1:11:03parallel. One, uh, executes executes
  1730. 1:11:09skill. Hello world. The other one does
  1731. 1:11:19a Reddit search on the news I'm
  1732. 1:11:21interested in today, right? This way,
  1733. 1:11:28uh, he will launch, I think two, or
  1734. 1:11:30maybe he'll ask me questions before
  1735. 1:11:32launching one of them if he needs more
  1736. 1:11:34context. What I'm wondering is, right
  1737. 1:11:38now I've started two agents in parallel
  1738. 1:11:40, if they start, right? Now he will
  1739. 1:11:41reason. I imagine that right now I'm
  1740. 1:11:43talking to Cloud Code. Cloud Code will
  1741. 1:11:45understand what I asked him, he will
  1742. 1:11:46ask me questions, or rather, he will
  1743. 1:11:48launch the two agents in parallel
  1744. 1:11:49immediately to do these two things. My
  1745. 1:11:51hello world skill does a ton of stuff,
  1746. 1:11:53and even there I have agents that are
  1747. 1:11:55launched in sequence instead. What I'm
  1748. 1:11:59wondering is, if instead of doing this
  1749. 1:12:01thing here, which I'll stop now, I had
  1750. 1:12:03done two different chats, so here I
  1751. 1:12:04said hello world, so the skill starts,
  1752. 1:12:06and then I start a new chat and ask
  1753. 1:12:08something else here, would anything
  1754. 1:12:10have changed compared to launching two
  1755. 1:12:12agents in parallel?
  1756. 1:12:15Uh, they don't have they can't share
  1757. 1:12:17the context if you launch two instances
  1758. 1:12:19of Cloud Code. Ok. Basically, yes.
  1759. 1:12:23Basically, the convenient thing is that
  1760. 1:12:24if I do everything in a single chat,
  1761. 1:12:26the moment the two agents return from
  1762. 1:12:28the orchestrator agent, so in the chat,
  1763. 1:12:30and give me the two responses, at that
  1764. 1:12:32point in the chat I have the double
  1765. 1:12:34context of both agents and I can work
  1766. 1:12:36simultaneously on the context that is
  1767. 1:12:37returned to me.
  1768. 1:12:39is returned to me. Ok. The important
  1769. 1:12:43thing to say about eh parallel agents
  1770. 1:12:45is that the important rule is that you
  1771. 1:12:48need to be sure they don't go and do
  1772. 1:12:50the same thing, or for example, go and
  1773. 1:12:52modify the same file. Ok? This is a
  1774. 1:12:56typical software engineering topic;
  1775. 1:12:58it's called a race condition, ok? So,
  1776. 1:13:03to work in parallel, you must be sure
  1777. 1:13:05they don't do the same thing, otherwise
  1778. 1:13:07you might find your output ruined
  1779. 1:13:09because both agents didn't know the
  1780. 1:13:11other one was also working on that file
  1781. 1:13:13. Ok?
  1782. 1:13:16So,
  1783. 1:13:18they work very well if they are eh if
  1784. 1:13:20they are completely separate.
  1785. 1:13:23Yes. Ok. Let's go back to our eh friend
  1786. 1:13:27, and see what he is doing.
  1787. 1:13:29Actually, our friend has finished.
  1788. 1:13:31Ok, let's see. So,
  1789. 1:13:33our friend has finished. Now let's see
  1790. 1:13:36a bit what he told us, eh. He says:"
  1791. 1:13:38Chain completed, offer ready and filed
  1792. 1:13:41in summary, base total 2600 VAT, bla
  1793. 1:13:44bla bla ". Request sheet: so it
  1794. 1:13:49summarizes what the analyst produced,
  1795. 1:13:51the constraints eh contained in the
  1796. 1:13:53client's request, open questions (for
  1797. 1:13:55example, something that was not clear
  1798. 1:13:57from the from the from the client's
  1799. 1:13:59request), the quote calculated based on
  1800. 1:14:02the price list in a deterministic way,
  1801. 1:14:09time plan. The planner, so earliest
  1802. 1:14:11useful date, calculated the first
  1803. 1:14:13available start date based on
  1804. 1:14:15commitments, ok? Eh, the standard
  1805. 1:14:19duration and the delivery also based on
  1806. 1:14:21the company holidays.
  1807. 1:14:24Ah.
  1808. 1:14:25Eh, and so he did he did everything and
  1809. 1:14:27also created the email. Ok. So the
  1810. 1:14:29email,
  1811. 1:14:30by the way, I also found the verdict
  1812. 1:14:32with the whole scope: by August 29th we
  1813. 1:14:33can't make it. We can make it if the
  1814. 1:14:35bookings slide to phase two, so site
  1815. 1:14:37online Friday, August 28th
  1816. 1:14:39the day before the convention. Booking
  1817. 1:14:41Friday 4th week. Ok. Ok. Perfect. And
  1818. 1:14:45so he created, then he went to create
  1819. 1:14:47this file inside offers, he created he
  1820. 1:14:49created it here which is the equivalent
  1821. 1:14:51. This too is also written in Markdown.
  1822. 1:14:58But you see, this is the output of this
  1823. 1:15:00agentic work which seems trivial, but
  1824. 1:15:02it is an email written with language,
  1825. 1:15:04with language that was chosen in the
  1826. 1:15:06ways that were chosen, which reasoned
  1827. 1:15:08on the client's request, which reasoned
  1828. 1:15:10on the company's prices, which reasoned
  1829. 1:15:13on company availability, it is work.
  1830. 1:15:16Whoever has
  1831. 1:15:17Sure. Whoever is a freelancer or
  1832. 1:15:19whoever has a small agency, small or
  1833. 1:15:21large, knows that this is the result of
  1834. 1:15:23work. If this work is done well by a
  1835. 1:15:25team of agents, it really saves a lot
  1836. 1:15:27of time and provides high quality. The
  1837. 1:15:30price is the analysis we saw earlier
  1838. 1:15:32and the implementation of the code we
  1839. 1:15:34have seen until now.
  1840. 1:15:36Yes, by the way I want to say one thing
  1841. 1:15:38because very often people come to me
  1842. 1:15:40and say" Yes, but it seems like super
  1843. 1:15:42complex stuff to me ". Actually, very
  1844. 1:15:44often everything we have seen now can
  1845. 1:15:46Cloud Code teach us how to do it, or is
  1846. 1:15:48it Cloud itself that does it for us? It
  1847. 1:15:52is obvious, however, that it is always
  1848. 1:15:54important to have awareness of what one
  1849. 1:15:56is doing and what all the processes are
  1850. 1:15:58that should be delegated to Cloud Code.
  1851. 1:16:02As long as we're doing Cloud, as long
  1852. 1:16:03as we're doing things that aren't too
  1853. 1:16:05complex, it's unlikely we'll build
  1854. 1:16:07anything dangerous, but obviously, what
  1855. 1:16:09can be dangerous is wasting a lot of
  1856. 1:16:10time doing something that doesn't work
  1857. 1:16:12the way we want. And earlier, I was
  1858. 1:16:24looking for a message I received
  1859. 1:16:26earlier from someone, because I had
  1860. 1:16:27mentioned we were going to make this
  1861. 1:16:29video, and there was a person who
  1862. 1:16:31criticized me, saying:" Yeah, it's all
  1863. 1:16:33nice, but the truth is there's a lot of
  1864. 1:16:34wasted time because, more often than
  1865. 1:16:36not, these processes we try to delegate
  1866. 1:16:38to AIs don't bring the results we dream
  1867. 1:16:40of, because the complexity of all the
  1868. 1:16:42things that need to be added time and
  1869. 1:16:43again to patch up what doesn't work
  1870. 1:16:45often takes more time than we would
  1871. 1:16:47spend doing things the way we wanted
  1872. 1:16:49ourselves. "I'm looking for the little
  1873. 1:16:59message, let's see if I find it.
  1874. 1:17:01Lorenzo, maybe it was this one. No, it
  1875. 1:17:04wasn't this one either. Nothing, I
  1876. 1:17:06can't find it. Too many messages lately
  1877. 1:17:09, but hey,
  1878. 1:17:11let's say it's a fair objection, in the
  1879. 1:17:13sense that it requires you to reflect
  1880. 1:17:15on whether the game is worth the candle
  1881. 1:17:17. Okay? So, if I tell you:" Look, I
  1882. 1:17:21need to cross the street, go here and
  1883. 1:17:23there, "and you say:" Well, maybe it
  1884. 1:17:25would be cool to do it on a Vespa, but
  1885. 1:17:27I don't have a Vespa, let me wait to
  1886. 1:17:29buy it, have it delivered, just to
  1887. 1:17:30cross the street, "maybe it's overkill.
  1888. 1:17:35But if I have to go to work every day,
  1889. 1:17:37and my work is 25 km away in traffic,
  1890. 1:17:39then probably buying that Vespa, which
  1891. 1:17:42costs me time, money, effort, etc., has
  1892. 1:17:44long-term value for me. Anyway, that's
  1893. 1:17:49how I see it. What I realize is that
  1894. 1:17:52what really makes the difference in my
  1895. 1:17:54specific case is working in an
  1896. 1:17:56extremely granular way.
  1897. 1:18:00I mean, I see many people trying to
  1898. 1:18:01build macro-roles like" you are my
  1899. 1:18:03assistant for developing my social
  1900. 1:18:05media editorial plan. "" Every day you
  1901. 1:18:11have to find good ideas that I can
  1902. 1:18:13bring into my content work, "and then
  1903. 1:18:15you propose 10 ideas and they're, well,
  1904. 1:18:17they're crap. Instead, what I realized
  1905. 1:18:22is that I built many small agents that
  1906. 1:18:24run every day and have specific
  1907. 1:18:26functions. So, for example, I used to
  1908. 1:18:29think that something I wasted a lot of
  1909. 1:18:31time on was catching up and looking at
  1910. 1:18:33all the news; I had to go to every site
  1911. 1:18:35that interested me, Reddit, The
  1912. 1:18:37Economist, The Atlantic, and so on. Now
  1913. 1:18:41I've built a series of agents that go
  1914. 1:18:43to all these sites every morning,
  1915. 1:18:44analyze every post that has come out,
  1916. 1:18:46and they know. I gave them a list of
  1917. 1:18:50all the sources I'm interested in, all
  1918. 1:18:52the subreddits that interest me most,
  1919. 1:18:54the topics I find most fascinating, and
  1920. 1:18:56so on. So, based on this dataset and
  1921. 1:19:01the information I provided, they
  1922. 1:19:02analyze all the posts and give me only
  1923. 1:19:04the 50 news items or 50 posts worth
  1924. 1:19:06opening, with a short brief on what's
  1925. 1:19:08written and so forth. For me, this is
  1926. 1:19:15super effective because over time it
  1927. 1:19:16started saving me a lot of time, and
  1928. 1:19:18then I began to transform it all
  1929. 1:19:20because, in the beginning, it was just
  1930. 1:19:22a small list I received in a daily MD
  1931. 1:19:24format. In my offline database. Then,
  1932. 1:19:32over time, I started making it more
  1933. 1:19:33complex, eventually building much more
  1934. 1:19:35sophisticated things like the one I
  1935. 1:19:37showed you the other time, which is my
  1936. 1:19:39information supply source that I called
  1937. 1:19:41a dashboard. Now let's see if I can
  1938. 1:19:45share it here. Um, okay, I need to stop
  1939. 1:19:48yours for a second. I'll activate mine,
  1940. 1:19:51which is this one, right? If I analyze
  1941. 1:19:53it this way, it seems like a super
  1942. 1:19:55complex thing, and, in fact, it is.
  1943. 1:19:57It's quite complex if you look at it,
  1944. 1:19:59let's say, in its entirety. But what I
  1945. 1:20:04mean is that to get to having developed
  1946. 1:20:06this over time, I built all the little
  1947. 1:20:08grains that do small things, which then
  1948. 1:20:10, once I validated the various things
  1949. 1:20:12—like the agent analyzing Reddit,
  1950. 1:20:14boom, it worked for four weeks, that
  1951. 1:20:16one's set. Then I made the agent that
  1952. 1:20:22somehow has to manage to catalog the
  1953. 1:20:24information, decide which is a target,
  1954. 1:20:26which has a higher potential for
  1955. 1:20:28virality, which could get more
  1956. 1:20:29engagement if I talk about that news
  1957. 1:20:31item. And having validated that, I
  1958. 1:20:35moved on to the next one, until I put
  1959. 1:20:37together this thing that is now online
  1960. 1:20:39and available to the team of marketers
  1961. 1:20:41working in the company, which, however,
  1962. 1:20:43seen like this, looks very difficult.
  1963. 1:20:49If I had started with this idea in mind
  1964. 1:20:51from the beginning and said," Wait, let
  1965. 1:20:53me build all of this, "it probably
  1966. 1:20:54would have turned out like crap,
  1967. 1:20:56because the moment you start wanting to
  1968. 1:20:58put everything together to build a
  1969. 1:21:00giant project, you usually can't
  1970. 1:21:01achieve that level of detail and depth
  1971. 1:21:03in the processes, roles, and so on,
  1972. 1:21:05which are necessary to slowly build up
  1973. 1:21:07the broader vision. So, exactly
  1974. 1:21:12returning to the architecture parallel,
  1975. 1:21:14if you want to build Notre-Dame, you
  1976. 1:21:16need foundations. If you want to end up
  1977. 1:21:18developing something more complex, at
  1978. 1:21:20the beginning you must first ask
  1979. 1:21:21yourself: what do I want to start from?
  1980. 1:21:23What are the foundations? What are the
  1981. 1:21:26main roles, the main actors—in this
  1982. 1:21:27case, the main agents—that I need to
  1983. 1:21:29develop those small things I want to
  1984. 1:21:31start with today? And so, if I'm an
  1985. 1:21:37entrepreneur, if I start again from
  1986. 1:21:39process mapping, maybe I find that
  1987. 1:21:41there's a professional or an agency; I
  1988. 1:21:43discover there are extremely
  1989. 1:21:45deterministic processes where little
  1990. 1:21:47creativity comes into play, which are
  1991. 1:21:49easily describable and transformable
  1992. 1:21:51into written procedures that, then, if
  1993. 1:21:53taken and passed to an agent
  1994. 1:21:54circumscribed within its perimeter—
  1995. 1:21:56you know, of action, instruction, etc.
  1996. 1:21:59—become very easy to, uh, delegate.
  1997. 1:22:04If, on the other hand, I start from" I
  1998. 1:22:07want to make my personal assistant that
  1999. 1:22:09helps me manage social media for me,
  2000. 1:22:11make content "and I enter, correct me
  2001. 1:22:13if I'm wrong, an extremely
  2002. 1:22:14probabilistic environment where it
  2003. 1:22:16becomes very easy, uh, to build
  2004. 1:22:18something complex that runs every day,
  2005. 1:22:20costs me tokens, costs me money, costs
  2006. 1:22:22me effort, and I look at the output and
  2007. 1:22:25say:" Meh, that wasn't what I imagined.
  2008. 1:22:27"
  2009. 1:22:27Yeah, yeah, yeah, yeah. In the sense
  2010. 1:22:30that this architectural effort is
  2011. 1:22:32important; so, on one hand, having the
  2012. 1:22:34general image of what we want to do,
  2013. 1:22:36but knowing that it's impossible to
  2014. 1:22:38generate it from 0 to 100 in a second.
  2015. 1:22:40So, isolating the components,
  2016. 1:22:42modularizing, starting to run tests
  2017. 1:22:44with small modules starting from those
  2018. 1:22:47that are most useful, those that solve
  2019. 1:22:50my biggest emergencies, those that seem
  2020. 1:22:52clearest to me; playing, trying to
  2021. 1:22:55develop them, implementing them and, uh
  2022. 1:22:57, once you have 1, 2, 3, 4 working.
  2023. 1:23:00Then, at that moment, you say," Maybe
  2024. 1:23:02putting them together, orchestrating
  2025. 1:23:04them, making them act together can
  2026. 1:23:07start to mean agentizing my work in a
  2027. 1:23:09complete way. "
  2028. 1:23:11But 100%.
  2029. 1:23:13Hey! Pietro, we've been together for an
  2030. 1:23:15hour and 23.
  2031. 1:23:17It flies! I don't know, I don't know if
  2032. 1:23:19there's anyone who made it to the end
  2033. 1:23:20and got this far. In that case, guys,
  2034. 1:23:22we want to say thanks. Thank you for
  2035. 1:23:24being with us, and we hope we've given
  2036. 1:23:26you something of value, a series of
  2037. 1:23:28directions and information that, in my
  2038. 1:23:30opinion, have been useful both for
  2039. 1:23:31beginners and for those who are perhaps
  2040. 1:23:33already halfway through their work and
  2041. 1:23:35are experimenting in the agentic world;
  2042. 1:23:37still, you know, having some structure
  2043. 1:23:39in the information, in learning things,
  2044. 1:23:41always helps. Let us know if you want
  2045. 1:23:44more tutorials and maybe we can go even
  2046. 1:23:46more into specifics, if you want
  2047. 1:23:48simpler or more advanced stuff, if it
  2048. 1:23:50was at your level or if you found it
  2049. 1:23:51too complex. We thank you and we'll see
  2050. 1:23:53you in the next episode. Pietro, thank
  2051. 1:23:55you.
  2052. 1:23:55Bye. Thanks a lot. Bye Dario, thanks to
  2053. 1:23:57you.
  2054. 1:23:57Bye. Bye everyone. Bye. Bye.

About this transcript

This page contains the full transcript of Come creare un'azienda agentica con gli Agenti AI di Claude Code 😎 by Dario Vignali, generated from the public captions YouTube serves with the video. The transcript has 13,283 words across 2,054 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.

What you can do with it

Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.

Free YouTube transcript tool

YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.