WEBVTT

00:00:00.160 --> 00:00:58.485
Cloud Code has been allowing me to build things that used to take me hours in just minutes. So that's exactly what I'm gonna be teaching you guys today even if you don't know how to code and even if you've never touched an IDE before. IDE stands for integrated development environment, but if you didn't know that, it's still completely fine. It's crazy how fast the technology is evolving every single day. When you stick people this long with manual code was significantly reduced when n n came out because we could drag and drop nodes and build workflows that way. And now that has once again been significantly reduced with the release of things like Cloud Code and anti gravity. Now I'm not out here saying that n n n is dead or that Claude code completely replaces n n n. They're slightly different, but I am gonna show you how easy it is to build automations with Claude code today. If you've never touched Claude code before or even watched a video about it, you're in the right spot. Because my job is to make confusing things as simple as possible. So in today's agenda, I'm gonna be going over the interface, what do you need to know because there's lot of stuff, but I'm just gonna tell you what's actually important to understand. We're gonna go over the framework that we use to actually build automations. I'm gonna talk about planning and the importance of clear communication.

00:00:58.565 --> 00:01:49.565
We're talk a little bit about the superpowers that you can give Cloud Code like MCP servers and skills. We're gonna talk about testing and how you actually optimize your workflow, and then talk about deployment, which means actually kinda turning it on or pushing it into production. I'm not just gonna be talking. Throughout all of this, I'm actually gonna build a full work flow in front of you guys and deploy it by the end. So after this video, you'll have everything you need to go build your first automation in Cloud Code, and you're gonna see how easy it really is. Alright. So we're just gonna jump right into it. This is the interface. We're gonna be using Visual Studio Code, which has been around for a long time. And if you go to Google and type in Versus Code, can just go ahead and go to this link and just download it. It's free to download. And then in here is where we're gonna actually be using Claude Code. So this is what it should look like. What we're seeing here is just kind of the welcome page. You can see we can open new files, new folders. Can do some of these walk throughs. But what I'm gonna do here is I'm gonna go over to this left hand side and click on extensions

00:01:49.885 --> 00:01:51.885
and just type in Claude code.

00:01:52.125 --> 00:02:22.755
And then you'll see right here that this extension pops up which lets us use Claude code inside of Versus Code. So what you're gonna do here is go ahead and install it. You could also do this in anti gravity or in cursor or somewhere else or you could even use the Claude code kind of app by itself and install that locally. But wherever you choose to use it, you're gonna log in and then we'll get started. I'm just using Versus Code in today's tutorial. It'll prompt you to sign in with your Anthropic account and then you'll be all set. Now in order to access Claude code, you do have to be on a paid plan of Claude. As you can see, if you're on the $17 a month plan of with pro,

00:02:22.915 --> 00:02:24.035
you get Claude code.

00:02:24.590 --> 00:02:45.345
But you will probably find pretty quick that you'll wanna upgrade to max or the the higher version of max because you'll be doing a lot of automations in there, and you don't wanna hit your limit and then have to upgrade. But you could always start on pro and then upgrade later. So once we got that extension installed, I'm just gonna go ahead and click on this button in the top right, which looks like the Anthropic logo. And I'm just gonna open up Claude Code. I'm gonna close out of this window,

00:02:45.745 --> 00:02:57.510
and now you can see that we have basically a chat GBT like looking interface where we have Claude Code right here. So So on the left hand side, instead of looking at the extensions marketplace, we're gonna click on this button up at the top that says explore.

00:02:57.670 --> 00:03:15.655
And what it tells us right here is that you have not yet opened a folder, so it prompts you to open a folder. So before we go ahead and open one up, let's talk about why and what we're looking at. So this is kind of the environment that we're looking at right now. We've got our files on the left hand side and this is where we're gonna actually build our project, our system prompts, our workflows, our tools.

00:03:15.895 --> 00:03:52.360
And then on the right hand side, we have the agent. So this is where we talk to Claude code. We have it help us with a plan. It asks us questions, and then it actually executes on those actions. So left hand side is files. Right hand side is the agent. It's gonna be super simple, and I'm gonna show you how we can keep our file structure really clean so it doesn't get overwhelming and confusing on this left hand side over here. So whenever you're in Cloud Code, you have to be working inside a project, and that's why it prompts you to open up a folder. So what I'm gonna do is in my documents, I've got a folder called AgenTic workflows, and I've got a bunch of ones that I've been playing around and testing with. But I'm just gonna go ahead and open up a new blank folder for today's video. I'm gonna go ahead and call this one YouTube

00:03:53.000 --> 00:03:54.120
analysis,

00:03:54.360 --> 00:03:55.880
and then I've created that folder.

00:03:56.120 --> 00:04:46.205
So now when I go back into Cloud Code, I'm just gonna open up that folder. Cool. So I just opened it up and it changed what we were looking at over here. On the right hand side, we've got, like, Versus Code's agent, so I'm not gonna worry about that and just close out of that. And then on the left hand side, you can see we're now in the YouTube analysis folder, but there's nothing in there yet. So once again, I'm just gonna reopen Cloud Code, close out of this one. You can see you can have multiple different files open on the right hand side. So if you wanted to have, like, five Cloud Code agents running or you wanted to look at five different files or system prompts, you could do so. But right now, we're just gonna keep it open to one. So the first thing that we need to do is we need to give Cloud Code a system prompt for this project, and that's the first thing that you should do whenever you open up a new project in Claude code. And we call this system prompt a Claude dot m d file, dot m d just standing for markdown. So I'll show you guys that in a sec. But without a system prompt, it's like we have an n n n AI agent like an expert copywriter,

00:04:46.460 --> 00:05:05.405
and we don't actually give it a system prompt in here. So without a system prompt, it wouldn't actually really be an expert copywriter. It would be super generic. It wouldn't understand the tools it has, the product that we're trying to sell, or where the documents live and what those look like. So that leads me into the next part of the video, which is talking about the framework, which is how we actually build these automations.

00:05:05.885 --> 00:05:13.645
So here's a really, really simple visualization of what we're actually doing here. We've got our agent, which is Claude code, and the agent is gonna help us build workflows.

00:05:14.190 --> 00:05:15.390
Workflows meaning

00:05:15.550 --> 00:05:16.430
processes,

00:05:16.510 --> 00:05:17.470
SOPs,

00:05:17.550 --> 00:05:40.145
instructions of what we actually wanna do. And inside those workflows, we're gonna give it access to tools, and tools means actually executing actions. So send email would be a tool. Research a YouTube channel would be a tool. So it's really similar to the way that we have workflows and tools in NNN. Here you can see is an NNN workflow for a daily news summary. And inside the workflow, which is a specific set of instructions in a specific order, so it's a deterministic process,

00:05:40.640 --> 00:05:56.125
We have different tools. We've got a tool here for Tavoli to do research. We've got a tool here for an AI agent to do the newsletter writing, and we've got a tool at the end to send a Gmail message. So hopefully that all makes sense. It's gonna be really simple. We're We're gonna have a folder for workflows, and in there will be all of our processes.

00:05:56.205 --> 00:06:24.075
We're gonna have a folder for tools, and in there will be all of the actual things that it can execute. And then the agent basically helps us set up those tool files and workflow files and then execute those actions. So what I'm gonna do is drag in this Claude file, and you can see it's a Claude dot m d. This could be called agents dot m d, Gemini dot m d, whatever you want. In this case, we're using Claude code, so I'm calling it Claude dot m d. But let me go ahead and expand this one, and let's briefly read through it so you understand exactly what I just talked about with the workflows agents and tools.

00:06:24.635 --> 00:06:40.270
So this is the agent instructions for this specific project. You're working inside of the WAT framework, which stands for workflows agents tools. This is a three layer framework, it basically separates concerns so that the probabilistic AI handles reasoning while deterministic code actually handles the execution.

00:06:40.430 --> 00:06:56.985
And that is what makes these systems actually reliable. So like I said, layer one is the workflows, the instructions. So these are markdown SOPs stored in the workflows folder, which will be created in a sec. Each workflow defines the objective, the required inputs, which tools to use, expected outputs, and how to handle edge cases.

00:06:57.465 --> 00:07:54.065
It's written in completely plain language the same way that you brief someone on your team. And by the way, when I say markdown, it basically just means this structure. This is a markdown file right here where we have, like, headers and subheaders and bold font and things like that. Layer two is the agent. So this is the actual Cloud Code agent that we talk to. This is your role. You're responsible for the coordination between workflows and tools. You read the relevant workflow, you run tools in the correct sequence, and you handle failures. You ask clarification questions when needed. Layer three, we have the tools. And these are actually gonna be Python files. So right here, can see Claude is a markdown file, so it's Claude dot m d. We said that our workflows were gonna be markdown files, so it will be like scrape website dot m d. But then in the tools, which we will have another folder for over here, we're gonna have tools that are gonna be dot p y, so a Python file. So in this case, we can see there's a example tool called scrape single site dot p y, which would be a Python script that would execute an action. These can be API calls, data transformations,

00:07:54.065 --> 00:08:02.390
file operations, database queries. And a lot of times in these tools, we'll need an API key, but we're not gonna actually store them in the tool code logic itself

00:08:02.550 --> 00:08:45.015
because if that got exported or pushed that onto the web, then our API keys would be exposed. So we're gonna handle secrets by storing them in dot ENV files. You have don't to understand exactly what that means or how that works right now. We'll show you. So then we talk a little bit about, like, why this matters, how to operate. So you look for tools first. You learn and adapt when things fail because these agentic workflows are basically self healing. So as we're going through and building this workflow, you will see that it says, okay. I ran into an error here. Let me figure out what happened, and let me fix it. So fix the script and retest, document what you learned. So if it ran into an error and it fixed it, it will go ahead and change the workflow file so it doesn't run into that error again. So an example could be you get rate limited on an API. You dig into the docs, so you do research. You discover a batch endpoint.

00:08:45.255 --> 00:09:00.600
You refactor the tool to use it. You verify that that works, and then you update the workflow so that it never happens again. This is once again where we talk about that self improvement loop. We talk about the file structure, and you can see that it's gonna create this for us. And, basically, the bottom line is that you sit between what I want, which are workflows,

00:09:00.760 --> 00:09:02.680
and what actually gets done, which are the tools.

00:09:02.920 --> 00:09:27.050
Your job is to read instructions, make smart decisions, call the right tools, and keep improving the system as you go. So So I know we skimmed through this kinda fast, but you guys will get access to this exact same system prompt. I'll leave it in my free school community. The link for that will be down in the description. That way you can just go ahead and grab this, paste it in, and then when you wanna follow along and build some workflows in Cloud Code, you've got this right here for you. So now what we need to do is just set up our environment with the different folders. So I'm gonna talk to Claude code and just say,

00:09:27.530 --> 00:09:40.375
initialize this project based on the Claude dot m d file. So go ahead and shoot that off. And when we talk to Claude, what it does is it basically just tells us exactly what it's doing and what it's thinking. What you'll notice right here is that I'm on a mode called bypass permissions,

00:09:40.855 --> 00:09:45.015
and you might not see this initially. You'll see ask before edits, edit automatically,

00:09:45.015 --> 00:10:25.690
and plan mode, but it is really helpful to be able to turn on bypass permissions. So the way that you do that is you go to the bottom left to settings. You're gonna go to settings once again. You'll type in Claude code, and then you're just gonna turn on this option that says allow bypass permissions mode, and that's what allows you to do that so that you can let your agent run and you don't have to approve every step. Now as this is running, what you'll notice is on the left hand side, we're seeing some files and folders pop up. So we've got a temporary folder, which just means anything that it needs to store and then, like, delete later just temporarily, it can do so in there just to keep everything clean. We've got our tools folder. We've got our workflows folder, and then we have a dot ENV and a dot git ignore. This So is gonna help us just basically keep our project clean, but also the agent knows exactly where everything is.

00:10:26.250 --> 00:10:48.140
Cool. So the project is now initialized using our WAT framework, and it showed us what it created. So now let's move on to section three of the video where we're gonna be talking about planning and communicating with our agent. So what I'm gonna do is I'm going to clear out this conversation. If I wanted to access past conversations, I could do so up here. I'm gonna go to plan mode, and this is really important. Whenever you're doing something that actually

00:10:48.780 --> 00:11:04.585
involves, like, creating something, you need to describe the goal, and you need to be able to describe it super, super clearly. And it's not just the goal. You need to also describe the features that you want. And if you were to just describe something and then chuck clogged code at it and you would do bypass permissions, you probably wouldn't get a great output.

00:11:04.825 --> 00:11:30.135
So what you always wanna do when you're creating an idea is you wanna go on plan mode. Because what you're gonna see is when I'm on plan mode, it thinks extra hard and it looks at everything in the folder, and it's gonna ask me tons of questions that I might not have thought of, which is really, really helpful because it gets a really, really good understanding of what we want and it brainstorms options, and then it actually will do it after it's confident. So let's explain the workflow that we wanna build today. Hey, Claude. I need your help building an automation.

00:11:30.375 --> 00:12:07.180
I want this automation to basically scrape tons of YouTube videos and YouTube channels in my niche, which is AI and AI automation. I want to get insights about what videos are trending, what's working well, and kind of what the AI space is feeling like so that I can create more content that people wanna see and that will be beneficial for them. I need your help understanding how we can actually get this data. So look into different APIs or MCP servers. Also, me know if there's any skills that would be helpful because after you've done this research, what I want you to do is I want you to create a slide deck for me. So I want to get an actual deliverable that will be sent to my email using Gmail,

00:12:07.340 --> 00:12:46.235
and it should be a really nice professional looking slide deck with charts and images and all of these different graphics so that I can understand what's going on in the industry. So that's what I've got. Let me know if you have any questions or if you have any recommendations for things that I haven't thought of about this automation system. Cool. So that was my little brain dump, and it's gonna come back and ask me a ton of questions, which is just gonna help make this project a lot lot better. So I know a lot of you guys might be looking at this, and it seems overwhelming and confusing. And I agree. Like, when I first wanted to dive into Claude Code, I watched some YouTube videos, and I just it didn't click. The only way it's truly gonna click is if you get in here and you do it yourself. Because once you send off these messages,

00:12:46.475 --> 00:12:55.195
just read everything it's doing. Read every single line, and you'll start to understand the way that these models think and what they try to do. And that's truly the best way. So after this video,

00:12:55.515 --> 00:14:52.270
restart it from the beginning, open up Cloud Code, and just kinda follow along with what I'm doing, and it will all start to click. I promise. And by the way, you can see that as it's making this plan for us, it's doing research. So it's not just thinking. It's also searching the web to find out how we can scrape the YouTube analytics and how we can use MTP servers and things like that. Okay. So we got some questions now from Claude. It says, what specific YouTube channels do you wanna track? Should I discover top AI automation channels automatically, or do you have a list? Let's just go with auto discover top channels. Frequency is how often should this report be sent. I'm gonna go ahead and do weekly. Then it asks us if we want to track all this data in sheets. Yes. Absolutely. Let's do that. And then for delivery, it says what email address should the reports be sent to? And I'm gonna go ahead and say, send to my Gmail. So I shut off those answers, and now it's gonna keep updating the plan. Alright. So the plan is finished. The objective is to build an automated system that scrapes YouTube data for the AI niche. It analyzes trends and gets performance metrics and then generates a professional slide deck with charts and visualizations and sends that to me over Gmail. We've got the workflow, which is YouTube weekly report. We've got the agent layer. We've got different tools. It's gonna build out these seven different Python tools that it mentioned. So fetching YouTube data, analyzing YouTube data, generating charts, generating slides, sending the email report, exporting sheets, and discovering channels. And now it needs to actually create this workflow. So we could obviously read through all of this and we could give it some feedback if we wanted to, but I'm just gonna go ahead and accept these because I wanna see how well it did with just one iteration of our plan, took me a few minutes. So you can see what it does is it starts a to do list. So it's basically just gonna knock off one of these at a time, and that's really nice because it helps the agent stay on track, but it also means that you could go to your other monitor here and work on something else and just kind of keep peeking in on it and checking on the to do list to see how much is left to run. Okay. So the to do list is done. The workflows and tools have been built. So here's where we're at. We've got our seven tools have been created. So if I open up the tools folder, we should see we now have these seven Python files. And each of these, like I said, are actual Python code that will execute some sort of action.

00:14:52.590 --> 00:14:59.310
So those have been built. We've also got the workflow. So this is our markdown file, YouTube weekly report, which is an actual process.

00:14:59.545 --> 00:15:05.785
I'm So not gonna read this whole thing, but it has the actual steps that we would be doing here. So now it says to get started, we have a few dependencies.

00:15:05.785 --> 00:15:36.035
So the first one is we need to install something. The second one is to add a YouTube API key. The third one is to set up Google OAuth for Gmail and Sheets. And then the fourth one is just to run the actual workflow. So a lot of times when Cloud Code's done and it has some action items, it actually just tells you to do some stuff that it could do itself. So right now, we would obviously have to go get our YouTube API key, and then we could just give it to it and say, hey. You go update the dot ENV. I don't wanna touch that. You just go do it. But first, what it's doing is it's asking us to do this. So we could obviously just install this right now, or I could just say,

00:15:36.435 --> 00:16:34.645
can you please go ahead and install the dependencies? I'll go grab my YouTube API key. Cool. So I went ahead and installed that stuff just like I told it to, and now it's asking for a YouTube API key. So instead of just adding it to the file, I'm just gonna drop it in right here. And then the one thing I will have to go do manually is step three. So I'll have to enable the YouTube data API and Gmail and Google Sheets and then create the credentials and just drag in the JSON file, which I will do that in a sec. And here's another thing I'm doing with my API key. It should only be added to the dot ENV file. It shouldn't be listed in the workflows or the tools. Okay. So I added everything that I needed to. And if you're confused about how to do that, just say, hey. Where do I go? What do I click on? How do I do that? And it'll walk you through. And now what it's doing is because it has all our credentials, it's actually just testing out if the things work. So you can see the YouTube API is working. Now let's run the full data collection pipeline. So it's basically just testing that the flow works, then we'll give it a full run. But we can see that it just ran the full pipeline, so that was our first initial test. It found 30 channels. It fetched a 187 videos. It generated analysis.

00:16:34.725 --> 00:16:45.900
It made six charts. It built a nine slide PowerPoint deck for us, exported it to sheets, and then it emailed us the report. So let's go take a look at all that. Okay. So here's the email that I got. AI automation, YouTube analytics.

00:16:46.060 --> 00:17:24.040
So the weekly report for January 20, we got 30 channels tracked, 187 videos. We have some top videos from the week. We have recommendations, and then we also have our PowerPoint right here, which we can see we have similar information. We've got median views, median engagement, trending topics. We've got top performing videos, so we have this laid out by title and by views. We've got top channels by subscribers. Unfortunately, I do not see my name up there, so please hit the subscribe button. We've got engagement analytics. We've got trending topics by keywords in the AI automation, posting patterns, and then we have some recommendations to kind of close us off here. So keep in mind, this is not perfect, and we obviously would wanna come back and make this a little bit more tailored for us.

00:17:24.585 --> 00:17:25.145
But

00:17:25.545 --> 00:17:50.950
this was one prompt. Cloud Code asked us questions, and then I basically just sat down, and then I came back over here when it was done, and this is what we have ready for us. What we also see is that we got this exported to a Google Sheet. So if I click on this, remember that we didn't create the sheet, we didn't create these different tabs, or the actual, like, schema of this. But we've got three tabs. The first one is channel stats. So this pulled channel stats from today's date, which is January 20. We have the channel IDs.

00:17:51.275 --> 00:18:26.035
We have the actual channel names, and then we've got subscribers, total views, and video count. We can see nice that Nate Herc ad automation did make it in this scrape. We've also got top videos. So once again, this was ran based on today's analytics. We got the video ID. We've got the title of the videos. We've got the channel, the views, the likes, the comments, the engagement rate, which is pretty cool, and also how old the videos are. So we can see that we're getting real accurate, like what's trending right now. And then we get a weekly summary. So this is supposed to run every single week. We can see the day that it ran, the channels it tracked, the videos it analyzed, the median views, the median engagement score, and the top keyword

00:18:26.355 --> 00:18:43.810
and top keyword two, which actually it's funnily enough spells out Claude code, which is why you're seeing this video right now. Okay. So let's recap what we've done. We have familiarized with the interface. We have built out the actual structure of our project using a Claude dot m d file, which is like a system prompt. Now we have our workflows.

00:18:43.810 --> 00:18:45.010
We have our tools,

00:18:45.170 --> 00:18:52.095
and we have actually gone through the whole planning stage with Claude code to build out the initial you know, workflow automation that we need.

00:18:52.415 --> 00:19:04.650
So what comes next now is we wanna talk about a few other things. We wanna talk about superpowers, so MCPs and skills, and then we're gonna test it a little bit more, and then we're gonna actually deploy the automation live. So to start off with superpowers,

00:19:04.730 --> 00:19:05.530
MCP

00:19:05.530 --> 00:19:25.785
servers. So I'm not gonna dive super, super deep into MCP servers in this video, but I did wanna bring it up. So if you remember in plan mode, I basically said, hey. I wanna scrape YouTube data. Can you just go figure out if I should use an MCP server or, like, an API? And it ended up finding out that the YouTube API was gonna work better, so that's why we did it in this workflow. But, essentially, just think of an MCP server as

00:19:26.185 --> 00:19:35.810
an app store. So Gmail has an MCP server. Calendar has an MCP server. Lots of these services do. And this is, like, one of the most common visualizations because it's like a universal

00:19:36.050 --> 00:19:37.890
micro USB port.

00:19:38.210 --> 00:20:04.200
Because instead of having to go to Calendar's API and have one different API request to create an event, one different one to update event, one different one to delete an event, All we have to do is connect once to the whole server, and then the agent can figure out how to go use different endpoints and parameters. It just simplifies the whole process. Now what I did wanna talk about a little bit more was the idea of Claude skills because this is a little bit newer. So, essentially, skills are instructions or resources that Claude can load in dynamically.

00:20:04.200 --> 00:20:09.800
And that's kind of the key piece here is that instead of just reading it every time in its system prompt, it basically understands

00:20:09.960 --> 00:20:29.555
what is the request. Let me go look at all the skills I have access to. If one of them is relevant, I'll pick that one. I'll read it all, and then I'll take action. And this process basically just improves Claude's consistency, speed, and performance, and also saves you tokens. Like I said, when you ask Claude to do something, it reviews the available skills. It loads in only the relevant ones, and then it applies those

00:20:29.790 --> 00:20:44.030
So we're gonna go ahead and try to implement a skill into this workflow, and I'll actually show you what the skill document entails so then it will all start to make a little bit more sense. But before we do that, I did wanna real quick cover the difference between skills and projects and skills and MCP. So the first one is about projects.

00:20:44.515 --> 00:21:40.815
You're in a project, and basically what we have is access to whatever is in here. So it's kind of static documents and background information. And a lot of times these skills are installed globally. So what you'll notice actually in our project is that we don't have any skills in this project. Normally, there will be like a thing that will be like dot agents and then you drill down in that folder and you'll see like agent skills or Claude skills, and that's more installed on the global level. And that's actually really good because what that means is if I close out of this project and I opened up a different one, I would still have access to all the same skills that I've already installed. So you can see right here that I just asked Claude code what skills do you have, and it came back and showed that it has a front end design, it has n and n skills, and those are the only eight that it actually has even though we don't see them in this specific project. Now we have skills versus MCP, and these are also very different. MCP is basically to get data and take action. So like I said, if you want to connect Claude to something like Gmail, to read emails, or to send emails. But skills are more like knowledge,

00:21:40.815 --> 00:21:41.855
custom instructions.

00:21:42.015 --> 00:22:07.955
So if you ever find yourself constantly repeating something to your Claude code agent, then maybe that's a good sign to put it either in the claude.md file or create your own custom skill for it. So like the example of the front end design, if you wanted to use Claude code to build yourself a landing page or a website, using the front end design significantly improves its ability to actually design things. So what we're gonna be doing in this example now is I want to use a skill, and I'm gonna be looking at this Claude code templates website,

00:22:07.955 --> 00:22:16.195
which has a bunch of agents and commands and MCP servers and skills and hooks. And I'm gonna be looking for one that helps us create, like, better looking PDFs.

00:22:16.195 --> 00:22:29.720
I'll also leave a link to this in the description of the video. I So went ahead and searched for design, and you can see there's a skill right here called canvas design. And if I view details here, it says create beautiful visual art in dot PNG and dot PDF documents using design philosophy.

00:22:29.880 --> 00:22:57.710
So we're gonna go ahead and try this one out. I've never used it before. We'll see how it works. But this is actually like the code of the skill itself. And you can see it basically is just natural language instructions. So it's just a custom prompt that someone built or you built yourself, and now I can load this into Cloud Code. So when we have it design a PDF, it can use this, it will probably just come out a lot better because it's prompted. So we've got installation right here where we can use this code. So what I would try is just copying this, going into Versus Code. I'm gonna go ahead and open up a

00:22:58.110 --> 00:23:08.995
you know, kinda clear the conversation and just paste that in and see what happens if I drop that in Okay. So I dropped it in, and then it actually ran the command in our terminal to install it. And it says that it's been installed, and we have skill.md

00:23:08.995 --> 00:23:25.020
for the instructions for the skill. And then we've also got a bunch of fonts. And what it did is it actually created a new folder here called dot claud, and then we do have skills right here. So you can see that it put it in this project. So now I'm a little confused because I don't know, okay. We have a skill here, but we also have skills globally. So I would literally just say,

00:23:25.500 --> 00:23:28.220
it looks like you created this skill in this project.

00:23:28.460 --> 00:24:08.015
Is this gonna be installed globally, or will it only be accessible through this project? So right now, it basically says, yeah. This was installed just locally in this project, and that's fine. And if you wanted it to be global instead, you would just say, okay. Actually, just make that global, and then it would. So, anyways, gonna clear out this conversation one more time. I'm gonna go back into plan mode, and I'm going to give it a prompt. And actually, one more thing before I prompt it. I'm gonna drag in the AI automation society plus logo just over here on the left hand side. And you can see it's right here and the file pops up. Right? So what I'm gonna do is prompt it, but I want it to actually have this logo on all of the PDFs that it generates. Hey, Claude. So I just gave you a skill for Canvas design. And instead of outputting a PowerPoint presentation,

00:24:08.175 --> 00:24:34.205
I want you to now take the same research when you do your analysis from YouTube videos, but I want you to use that Canvas design skill to create a PDF. It needs to be professional, but it needs to be aesthetically pleasing. And what I want you to do is make sure you're including the AIS plus logo PNG that I dropped in this folder as well because I want the whole presentation to be branded so I can share it with my team. So I'm shooting this off in plan mode, and I'll let you know when it comes back with some questions.

00:24:34.685 --> 00:24:40.125
Interesting. So it came back and said that that Canvas design skill that we just installed creates PDFs interactively,

00:24:40.125 --> 00:24:51.270
which means step five of our workflow changes from fully automated to semi automated. So how do we wanna handle this? Let's just go ahead and just say keep it fully automated because that's kind of the whole point. We wanna be able to push this live to run on a schedule trigger.

00:24:51.510 --> 00:26:06.295
Okay. So the new plan is to replace the PowerPoint output with a branded PDF report. So it's gonna make a new tool to replace the generate slides tool. We have our current workflow state. We've got our logo. It has some proposed changes here. We're gonna be looking at the PDF structure. And, of course, what it has to do is update the actual workflow. So it's gonna look at this YouTube weekly report markdown file, which is the actual workflow, of course. It's gonna change that. It's gonna update some of the other tools like the email tool. And then, of course, it's got some other implementation steps for us. And in this case, what I'm gonna go ahead and do is just auto accept these changes. And so right now, it's just setting up a to do list to actually implement those changes. We're not gonna be running the workflow again. We're just gonna make the changes, and then we'll go ahead and test it. And just a reminder, when you guys are in here building your own workflows, just pay attention to what it's actually doing. It does some really interesting things like right here. It installed some dependencies to actually be able to create the PDF a little bit better. And then here it says the PDF was generated, but it's using a fallback using whatever this is, and it would look better if it had proper title and closing pages. So it's gonna install something else and then try it again. It's just a reminder of using this framework of an agent that sits between workflows and tools as it's building them out, as it's testing them, it's continuously improving them, seeing errors, seeing things that could be improved, and then just going ahead and doing that for you. So that's where it's really powerful. And this testing and optimization phase is really important because once you actually deploy your automation,

00:26:06.455 --> 00:26:39.700
you're not deploying the agent. You're just basically deploying the workflow that's connected to tools, and that's important to understand. The workflow itself would be put up into the cloud where it could run on a schedule trigger, but the agent still lives locally in Cloud Code, which means if a workflow which means if your workflow is running every week, it's not going to be self improving and self healing. So if you wanted to do that, you would come over to Cloud Code, you'd edit the workflow, you'd improve it, and then you just push that version back to modal or wherever you're hosting them. But, anyways, this finished up. So it created a new tool. It modified a few other things. It changed the actual workflow itself.

00:26:40.020 --> 00:26:50.740
And then what also it did is it made a test PDF just to see how that worked. And you can see here it's stored as a temporary file. So in our temp folder, which is right here, you can see right there we have a YouTube report PDF.

00:26:51.145 --> 00:26:57.385
And let me just make this bigger. We've got our logo right here. We've got our AI and automation YouTube analytics report,

00:26:57.545 --> 00:27:11.280
and we have the thank you slide. So it basically just tested to see if it worked. But now we're gonna go ahead and run that full workflow, and then we're gonna see if we're ready to actually push it up into production. So I'm on bypass permissions, and I'm just gonna shoot off run the YouTube analysis

00:27:11.280 --> 00:27:23.135
workflow. And it's not even called that, but it will be able to search through the workflows that it has, and it's gonna understand which one to run. It's gonna execute all of those Python scripts in order, and then we should have a finished product.

00:27:23.295 --> 00:27:41.960
Okay. So here's the email. It has the similar structure as far as the actual body of the email, but then at the bottom we should have our PDF which we got attached right here. But what you'll notice is that it's only two pages. So it didn't actually create the right type of PDF that we were looking for. However, it did update the Google Sheet. So it added, you know, those 30 more videos that we originally didn't have on this

00:27:42.280 --> 00:27:47.720
sheet. It added more videos, of course, and then it threw in one more weekly summary where it has a little bit of a different

00:27:48.185 --> 00:27:49.065
metrics.

00:27:49.065 --> 00:28:06.480
And what's interesting is that you can see that it did generate charts and it did do analysis because it actually generated all of these images over here, top channels, top videos, key performance indicators, posting patterns, all this kind of stuff. It just didn't actually include it. So once again, we would go back in natural language and say, hey. You know, we just got that PDF,

00:28:06.720 --> 00:28:30.720
but it was only two slides. So what I did is I said everything seemed to work except for the PDF that I received was only two slides. It was only the title and the thank you page. So it found the issue. It fixed it. It changed the workflow. It changed the tools, and now it's shot me off a new example with nine pages. And this time, we still have the logo. We still have the date, and we also now have all of the actual slides that we need in this PDF with the charts and things like that, recommendations,

00:28:30.720 --> 00:28:47.045
and then we still have the closing off slide. So hopefully you guys understand now how important the planning really is because we did kind of rush through this in this example where we auto accepted changes and we just kind of like sped through things. And it's fine because we're still able to go back and forth and let Claude code investigate and fix,

00:28:47.205 --> 00:29:03.910
but it should show the importance of if you are really, really clear up front and you know exactly what you need, it will be a lot better off the jump, but it's not perfect. Okay. So now let's say we're at the spot where we're ready to basically make this workflow live, where we actually wanna forget about it and just let it run every Monday at 6AM or whatever.

00:29:04.310 --> 00:29:15.895
So we need to deploy it. So the way that we're gonna do that is we're gonna use modal, which is AI infrastructure that developers love. Essentially, modal is is it lets you spin up these kind of, like, computers in the cloud where you can host your automations,

00:29:15.975 --> 00:29:28.630
and it only charges you when they actually run. So you're not getting charged by the minute or by the day. You're only getting charged every time they actually execute. So when you create an account, you'll get $5 for free. And then if you add a credit card, even though it won't charge you yet, you'll get $30.

00:29:28.630 --> 00:29:50.995
And this $30 will last you a long long time. Trust me. So what'll happen is this screen will probably pop up and it will say that you need to download and configure the Python client. So you could basically copy this exact command right here and just put that into Cloud Code, or you could just say, hey, Cloud Code. I want to push this workflow to modal. So just help me get that initialized. But I'll just show you what would happen if you copied this and we came into Cloud Code and said,

00:29:51.670 --> 00:29:53.270
awesome. I want to

00:29:53.670 --> 00:29:56.070
push the YouTube analytics

00:29:56.150 --> 00:30:20.695
workflow to modal so that it can actually run every single Monday at 6AM. And then I'm gonna go ahead and paste in those two things that we just saw, and let's actually do this in plan mode first and just shoot that off. So what it's doing is it's gonna read through the workflow structure and the tools and understand how it can package everything up so it can actually deploy it on modal as an app. So it came back with a plan to deploy this on modal, but there's one more thing that I wanna ask it about before we actually do this. And this last part is security.

00:30:20.775 --> 00:30:26.200
So I basically told it to run a security review and make sure that my API keys aren't exposed and that there's no vulnerabilities.

00:30:26.280 --> 00:30:27.480
Because the reality is

00:30:27.960 --> 00:32:46.200
we just built a ton of code, and I don't know what the code is actually doing. So it's really important to be thinking about this before you put anything out there on the web. Are any webhooks exposed? And if they are, do you have, like, you know, proper protection around that? Are secrets out there? Are API keys out there? What could people do now that this is out there? And as you start to deploy more workflows, whether that's an NNN or whether that's in code like this, you'll start to understand the things to look out for, but you also have one of the smartest reasoning and coding models right here in front of you. So you might as well just ask it, hey. Check the code and let me know if there are any risks. So the security review came back and it found three critical critical issues that need attention. But the good news is nothing is vulnerable, and there's not a GitHub repo, so nothing's been committed out there publicly. And everything is gonna be stored as a modal secret, so the API keys and the JSON token. So nothing will be committed to any repository, so we're good to go. And basically from there, it came back with a plan once more, and I have approved it. So it's going ahead right now, and it's creating the different tools and the different things that we need to actually be able to write this over to modal, and then we'll go ahead and test it out over there. So our deployment is now complete. It had to update the scripts to make sure that they could actually have the right environment variable path. It had to create a modal deployment file so it actually just understands the process of what it just did and schedule the cron or the schedule trigger, and then it had to create modal secrets that we could store over there. So it is now deployed and scheduled. So if I click on this link, this will bring us to our modal environment right here. And what you can see is that we have two different apps. We have the analytics, and then we have the analytics manual. So it had to do a manual run just to see if it worked. So this is the actual app. So if I go back to the main dashboard, you can see that we have this app, and there's kind of, like, the two different, like, endpoints. But if I open up the app, we can see the overview. We can see deployment history. So as you change something in Cloud Code and then push it back over here, you'll see a different version. And then you can also see the app logs when it's running. So when I click into the YouTube analytics one, the one that will be live, it says the next run will be in five days. So it's scheduled at 6AM only on Mondays, America, Chicago time. But what I'm gonna do just to prove to you guys that this is working or at least test if it is working is we can actually just go ahead and run one right now. So I scheduled an immediate run. We're gonna see this pop open right here, and we're gonna see the fact that it's running right now. As you can see, it took two seconds to start up, and now it's running and then we'll see the result of that execution.

00:32:46.360 --> 00:32:55.880
And actually, I'm glad that this just failed because I can show you what you need to do, but this failed. Right? So we'll click into this and when you click into each of the runs, you'll basically be able to see the logs and the executions.

00:32:56.335 --> 00:33:06.415
So in the log, this is what actually shows us, like, why it failed and what happened. So I don't really know what this means. Right? All I'm gonna do is copy this entire string of text.

00:33:06.655 --> 00:33:07.615
We're gonna go back into

00:33:08.500 --> 00:33:29.275
Cloud Code, and I'm actually gonna go ahead and clear this because we're at 64% context. So just gonna restart fresh. So I just tried to do a manual run of our YouTube weekly report app in modal, and this is the error that I got. And then I paste in all that messy stuff and shoot it off. Okay. So because we tested so much and we were using the free tier of the YouTube data API,

00:33:29.355 --> 00:33:47.630
we actually just hit the daily limit, which was about 10,000 units, and we exceeded that because we were doing so much testing to see how well this thing would work. The good news is if this is actually running weekly, we will never hit that daily quota limit, so we're fine. The bad news is we're not gonna test this one right now, but at least it does suggest other options and some longer term fixes.

00:33:47.870 --> 00:34:00.135
But it's okay because I did wanna end off by showing how you could deploy something with a webhook trigger rather than a scheduled trigger. So what I did is I came into this other workflow that I built the other day, which is a very simple lead webhook notification.

00:34:00.455 --> 00:34:08.800
So it has a webhook as the trigger. We would see a company name and some other data. We would research the company with perplexity and then send an email notification.

00:34:08.960 --> 00:34:14.560
And so I basically just said, hey. Cloud Code, can you push this workflow onto modal as we did earlier?

00:34:14.720 --> 00:35:06.360
And now we have this app in our modal as you can see lead dash webhook. So what I'm gonna do is go to postman so we can actually hit that webhook just to simulate what would happen. We've got the address. We've got the body. And I'll shoot this off. And what this is gonna do is it's gonna trigger this form underscore endpoint in modal. So I'll click into that one. And you can see right now we have a status of pending. This one's gonna start running, and then it will show that we actually get the email in Gmail. And so this is really just to show that once you have your stuff up and running in modal, it will work. And you can also do it based on webhooks rather than just doing it on a cron. So that looks like it finished up. We can see that we just got this email for the new lead Chipotle where it did some research about them, and then, obviously, it gave us a notification here. And now what you could do is because you just went through the process of deploying a workflow to modal and you know that it works because you just validated that it's working, you have all of that history right there. And what you could do is say, okay. Cool.

00:35:06.760 --> 00:36:28.175
Keep this stored either in my claw dot m d file or let's create this as a skill so that every time later when you're building a workflow and you wanna actually push to modal, you have all that information already there whether that's a skill or whether it's in the system prompt of Claude dot m d. So I hope you guys at this point can see how Claude code makes this stuff really, really easy to get automations up and running, whether that means an automation that you wanna be there for and you trigger kind of to use that as like a personal assistant or an automation that you actually want to host somewhere and have it run on some sort of trigger. And you can tap into all of the skills that other people have been building and using because you can find those publicly and then just add those to your own instance. So now you have the super smart model like Sonnet 4.5, Opus 4.5 paired with all of these really good prompts and really good like MCP servers. So you can pretty much do anything in that environment. The more you start to use it, the more you'll realize that you don't have to actually switch around to a bunch of different Chrome tabs and different apps on your desktop. You can do a lot of the stuff that you need to do just in the Cloud Code environment itself. So once again, that cloud dot m d file that you guys can access for free will be in my free school community. The link for that will be down in the description. And if you're looking to dive deeper into this kind of stuff and connect with over 3,000 members who are also kind of all in on AI and building businesses with AI, then definitely check out my plus community. The link for that is also down in the description. We've got full courses in here starting with agent zero for the beginners and then moving all the way up to actually monetizing

00:36:28.255 --> 00:36:56.975
AI automation knowledge. And I promise you guys, I'm gonna bring a lot more of, like, anti gravity and Cloud Code content into this plus community course as well. Also run one live q and a every week, so you can ask me questions about NNN, Cloud Code, or building an AI business, all that kind of stuff. And I'd love to see you guys in the community in those live calls, but that is gonna do it for today's video. So if you enjoyed or you learned something new, please give it a like. It definitely helps me out a ton. And as always, I appreciate you guys making it to the end of the video. I'll see you on the next one. Thanks so much.
