WEBVTT

00:00:00.000 --> 00:00:28.275
Everyone's talking about AI agents like OpenClaw, but most of them are a pain to set up and that keeps people from actually using them. And that's why I built this easier system that you can use for free. And in this video, I'll prove it by creating an example assistant that monitors my email, kills all the spam, and can reply to emails on my behalf. And then I'll show you exactly where to get it and how to install it. By the end of this video, you'll be building agents to run your own life twenty four seven. Let's get into it. Alright. So here I am inside of the Popebot. I started a new chat. It feels a lot like Claude or ChatGPT.

00:00:28.275 --> 00:00:32.810
And the first thing I'm gonna do is just confirm it has access to my Gmail. And in order to give it access,

00:00:33.130 --> 00:00:44.410
I'm gonna click on this little key here and we're gonna add a new secret. Manual is for adding normal API keys but for stuff like Gmail, you have to use OAuth. So I'm gonna click OAuth and I'm just gonna type Gmail

00:00:44.665 --> 00:00:45.625
oauth

00:00:45.945 --> 00:00:46.825
token

00:00:47.145 --> 00:01:13.540
and under provider, I'm gonna go ahead and select Gmail. And now inside the Google Cloud, I need to get a client ID and a client secret. Now in order to do that, you will need to log into the Google Cloud. I've already got an existing project that I can use. But if any of this is new to you, feel free to use the system. You can start a new chat and just ask it a question. How do I set up a Google Cloud project, Gmail API, and get my OAuth client ID in secret? If you type that and just run that, it's going to give you precise step by step instructions

00:01:13.995 --> 00:01:27.915
on how to do that. And so I like to show people this because a lot of times people feel like they need somebody to show them things but you can use these agents to actually show you how to do it. So now from here, already have an existing project. I've already enabled the APIs for Gmail.

00:01:28.310 --> 00:01:31.990
If you haven't done that, you would come here and just type Gmail

00:01:32.470 --> 00:01:36.870
Gmail API and then you would just enable it. So I'm gonna come up here to

00:01:37.030 --> 00:01:39.910
APIs and services. We're gonna go to credentials.

00:01:40.245 --> 00:01:50.485
If you haven't set up an OAuth screen, you're gonna need to do that first. And again, just rely on the AI agent itself to give you step by step instructions. It's a lot more empowering that way. And I'm gonna come here. I'm gonna create credentials.

00:01:50.725 --> 00:01:54.725
We're gonna create OAuth client ID application. We're gonna use web application,

00:01:55.300 --> 00:01:56.820
YouTube demo.

00:01:57.380 --> 00:02:10.340
And now here for authorized redirect URLs, I'm gonna come back to our ad secret and I'm gonna grab this URI right here. Copy. Paste that in there just like that and we'll go ahead and create it. It's gonna give me the client ID. I'm just gonna grab that here,

00:02:11.215 --> 00:02:15.855
drop it right there and then the client secret, I'm gonna copy that

00:02:16.495 --> 00:02:17.455
right here

00:02:18.895 --> 00:02:25.775
and then we'll just go ahead and authorize and this is going to give your AI agent access to your Gmail, make sure you pick the right Gmail,

00:02:26.210 --> 00:02:27.010
allow

00:02:27.090 --> 00:02:36.930
and now the token is saved. So now I'm gonna come back to the message here and I'm just gonna run that, confirm you have access to my Gmail. It's gonna use that credential to

00:02:37.170 --> 00:02:45.585
log in to Gmail and just make sure everything's working. Alright. So now from here, all we have to do is tell our agent what we want to build. I'd like to create

00:02:45.665 --> 00:02:47.505
an email assistant

00:02:47.505 --> 00:02:48.785
that checks

00:02:48.945 --> 00:02:49.585
my

00:02:49.745 --> 00:02:51.025
email every

00:02:51.330 --> 00:02:52.450
thirty minutes,

00:02:52.930 --> 00:02:54.850
it should automatically

00:02:54.850 --> 00:02:55.650
remove

00:02:55.890 --> 00:02:59.170
any spam like sales pitches.

00:02:59.170 --> 00:03:01.650
By remove, I just mean

00:03:01.890 --> 00:03:04.370
remove it from the inbox.

00:03:04.690 --> 00:03:07.125
If any emails

00:03:07.205 --> 00:03:09.605
look urgent or important,

00:03:09.845 --> 00:03:15.525
make sure to send me a DM with the sender and

00:03:15.685 --> 00:03:16.485
summary.

00:03:16.805 --> 00:03:18.165
And then also

00:03:18.620 --> 00:03:21.180
create a way for me to

00:03:21.500 --> 00:03:24.860
send an email. Go ahead and add

00:03:25.100 --> 00:03:26.940
that to the schedule

00:03:27.020 --> 00:03:28.060
and also

00:03:28.620 --> 00:03:29.820
create the

00:03:30.140 --> 00:03:31.500
required

00:03:30.965 --> 00:03:31.765
skills.

00:03:32.245 --> 00:03:39.365
So once you have that, you can go ahead and hit send and it'll get to work. Now just keep in mind what's happening here is that we are sending messages

00:03:39.365 --> 00:03:41.605
from here but this is actually interacting

00:03:41.845 --> 00:03:44.245
with Cloud Code on the back end

00:03:44.660 --> 00:03:47.220
and it's using their SDK

00:03:47.300 --> 00:04:25.670
as a mechanism to do the work and it's gonna create the skills and it's gonna make sure everything is set up. And if you want, can always open these up to see what it's actually doing here. And so we'll just let it continue but what it's gonna do is just gonna investigate what it needs to investigate and it's gonna build the skills, it's gonna add the skills, it's gonna add that to the schedule every thirty minutes and then we should be good to go. Alright. So it's got a plan, it's building out the skill, it's creating the email assistant with its own system prompt and job prompt. This job prompt will be what is run every 30. It's creating a Gmail label AI triage so that whenever the agent does something we know who did what and it's adding the cron and it's gonna test the skill end to end before actually

00:04:25.995 --> 00:04:31.515
committing everything. So it says send work, so I'm assuming that means that if I go to

00:04:32.395 --> 00:04:39.755
my Gmail, it looks like it sent a test message right here. So that's good. And again, if you're ever curious, just feel free to investigate

00:04:40.570 --> 00:05:25.625
exactly what it's doing at any given time. You know, I'm just looking at the to dos that it created and which ones it's completed. Cool. And then it gives you a response back on what it did. So it created the new skill. It's able to list the inbox. It can get archive and label emails. It can send emails and it's using my Gmail OAuth token and it tested everything end to end. It created a specialized agent called email assistant. It created the system prompt. It created a claw dot m d and it also created the schedule, the cron job that will check the email every thirty minutes. And then down here in the admin area, if you ever wanna check-in on the cron, you can check that right here. So we have email triage is enabled. And then while we're here, did wanna show you this as well. If you also wanted to access the agent secrets from the admin section, you go to event handler and then agent secrets,

00:05:25.705 --> 00:05:36.090
you can do that here. You can also adjust all of your LLM providers whether it's Anthropic or OpenAI or Google or DeepSeek. It supports all of the major platforms

00:05:36.170 --> 00:05:50.250
and it also supports all of the different coding agents as well. There's a lot of different settings here. I'll do other videos to explain everything and then make sure you see all those videos. Make sure to like and subscribe now. But for now, let's go back to the chat and I'm just gonna run a test. Can you check

00:05:50.625 --> 00:05:52.545
my current inbox

00:05:53.345 --> 00:05:53.985
and

00:05:54.305 --> 00:05:56.545
pretend the email is

00:05:56.785 --> 00:05:57.665
important

00:05:57.665 --> 00:05:58.465
and

00:05:58.545 --> 00:05:59.585
justifies

00:05:59.985 --> 00:06:02.865
you sending me a DM

00:06:02.865 --> 00:06:03.425
summary

00:06:03.790 --> 00:06:04.990
of that email.

00:06:05.230 --> 00:06:12.830
So I just wanna make sure that it has the ability to check. This is an email from my accountant and I wanna make sure I can read that inbox

00:06:12.830 --> 00:06:16.830
and seeing I have an email from David and it just sent me an update

00:06:17.425 --> 00:06:40.670
on exactly what that is via Telegram. And then it just gave me a note here that it did not apply the AI triage label to this just as a demo. But I'm just gonna tell it to go ahead and do that as well just so I can see. And so if we come back over here, you can see that it added the AI triaged label. Alright. So now let me show you a few other things that the Popebot has that no other agent that I've seen has and that is the support for multiple users. So I'm logged in here as myself,

00:06:40.910 --> 00:06:50.985
but if I had other users, I could create users for them as well. And what's cool about that is that in the event handler here, in this section here where we set up Telegram, the Pope bot here is connected

00:06:51.145 --> 00:06:53.465
to a specific Telegram bot

00:06:54.265 --> 00:07:01.940
and it can communicate with any of the users or all of them at the same time. Okay? So when you come to the event handler,

00:07:02.020 --> 00:07:15.955
is what we are in right now, this is the main chat interface. If you come to Telegram, you can create a Telegram bot and then you just put that API key here and then you just set up the webhook by registering it right here. It's very simple to do. You just go through that process. And then once we have the bot connected,

00:07:16.195 --> 00:07:19.555
if I come to my profile here and I put in my first name,

00:07:20.435 --> 00:07:30.030
Steven, and my last name and a nickname, then in the system, if I were to say send Steve a message, like if I were to come back here and just say send

00:07:30.030 --> 00:08:43.575
Steve a test message, the system is smart enough to look at my nickname and then route that to the proper person and then you can see here it sent the test message. So if you were to come to your users and then you were to add another user, they would be able to come to their profile as well, add their first name, last name, and their nickname and then the POP bot would be able to send them a message as well. So it's a very powerful system in terms of Telegram. And then in the profile here is where you actually connect up your specific user to the Telegram chat. That way the POP bot only listens to messages coming from authorized people. Otherwise, the bot would literally be able to take messages from anyone. Now another thing I wanted to mention as well, this entire session here happened through Cloud Code. Now you might be used to using Cloud Code through the terminal and if you'd like to do it that way you still can. This is the chat mode. This works really good in mobile and it works good just for a nicer interface. But if you really wanted to go into the Cloud Code CLI where you can interact with it this way, then you just click that button there and it will open up. And if you notice here, the entire dialogue of what we did is still here. So you can continue and pick up right where you left off. And not only that, but if you wanted additional Claude code sessions,

00:08:44.055 --> 00:08:59.740
you can just click that on the tab here. If you wanted a shell, you could go right into the shell so that you can see the files and interact with it that way. And you can even access a file editor if you wanna manually modify things. So this is the interactive mode versus

00:08:59.740 --> 00:12:39.970
just the headless mode and if you close session, you come right back to here and then you can continue your conversation from here. And then if you wanna do voice to text, you can just turn that on and if you talk, it's just going to add that directly into the message box. And what's also cool too is that you have these messages over here, which is a duplicate of what's being sent to Telegram. So the messaging system and your chat platforms, it's all integrated into one seamless system. Now one other thing I wanna show you, I'm gonna come up here to new chat. When you come to create a new chat and you are in agent mode, an agent mode is what we've been discussing here. I've done other videos on code mode. You can check that out. This is if you're developing software. In this case, I'm developing an agent. When you're developing an agent, you'll see this drop down here. And essentially what this allows you to do is if I'm in the root position here, then I'm working within the Pope bot itself and all of the agents. Right now, we just added the email assistant. I had this test agent that I wanted to add before. And the purpose of that is is that if I wanted to scope down, like if if I wanted to have this chat so that it only was working with the email assistant, I could do so. And then that way it's not gonna be as distracted by all of the other agents or tools or skills that I might be creating in the lifespan of my specific install of the Popebot. Because you might end up creating 20 different agents. Each of those agents might have three or four different skills. And if it was all just one big agent, it's gonna get harder and harder for the agent to be successful. So we have this concept of scoped agents and if I start a chat here, then it's only going to be operating from within this email assistant. It's not gonna have access to all of the other agents and skills and system prompts that might be distracting. And so you can see here it's saying send message to agent's email assistant. And so if I jump into interactive mode here just so I can show you around a little bit, I'm actually just gonna open the editor here. So we're seeing the full scope here. This is everything related to the PopeBot. But if I come in here to agents, we have our email assistant and the test agent I made before and then we've got the system prompt and the cloud prompt. So when you use this scoped agent, it scopes the agent with just this specific system prompt so that it's highly targeted towards the email assistant. Now if I were to start the conversation this way, it would work. It would work fine. It would go and it would read the email assistant and it would do everything that needs to do. All of the prompts and the the configuration are there. For instance, if I come here to the Cloud MD, notice if I scroll down, it lists the agents that are here. So if I were to say send an email, it would be able to find the agent. It would just take a little bit longer and there'd be a little bit more context for the PopeBot to figure out before it was able to get to work. Whereas if you use the scoped agents, it's it's gonna be able to figure things out a lot faster and it won't get distracted by all of the other features that you might be adding to your specific agent system as a whole. Alright. So now to install the Popot, all you have to do is go to the link in the description below then and you're just gonna scroll down to the installation instructions. There are some prerequisites that you need to have installed on your computer. It works on Windows, Mac, or Linux, but you'll need to have these installed. And then there are these two simple steps that you can go through and the wizard's gonna walk you through exactly how to get everything installed. If you want video instructions on how to do this, I do have a video on my YouTube channel and I'll link that below as well. Once you have it installed, if you do need support, go ahead and click that link and we'll be there. And there is an upgrade system as well, so as I release new upgrades, it will show you those as those become available. You just click on this and then you'll be able to upgrade to the newest version. And if you're interested in learning more about agents, make sure to jump into my community, the AI architects. We've got a full classroom. You can post a thread to get support or jump over to the calendar and I've got calls with me every Tuesday and Wednesday. And the networking calls on Friday are a great place to meet other people and just talk about your projects and let people see what you're building. So I'd love to see you inside the community. Either way, I hope you enjoyed this video and I'll see you on the next one.
