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.
And the first thing I'm gonna do is just confirm it has access to my Gmail. And in order to give it access,
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
oauth
token
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
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.
If you haven't done that, you would come here and just type Gmail
Gmail API and then you would just enable it. So I'm gonna come up here to
APIs and services. We're gonna go to credentials.
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.
We're gonna create OAuth client ID application. We're gonna use web application,
YouTube demo.
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,
drop it right there and then the client secret, I'm gonna copy that
right here
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,
allow
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
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
an email assistant
that checks
my
email every
thirty minutes,
it should automatically
remove
any spam like sales pitches.
By remove, I just mean
remove it from the inbox.
If any emails
look urgent or important,
make sure to send me a DM with the sender and
summary.
And then also
create a way for me to
send an email. Go ahead and add
that to the schedule
and also
create the
required
skills.
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
from here but this is actually interacting
with Cloud Code on the back end
and it's using their SDK
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
committing everything. So it says send work, so I'm assuming that means that if I go to
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
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,
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
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
my current inbox
and
pretend the email is
important
and
justifies
you sending me a DM
summary
of that email.
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
and seeing I have an email from David and it just sent me an update
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,
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
to a specific Telegram bot
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,
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,
if I come to my profile here and I put in my first name,
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
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,
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
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.