LongCut logo

How I've been automating tasks with Claude Code

By Underfitted

Summary

Topics Covered

  • Automate nagging tasks weekly
  • Zapier MCP unlocks 8000 tools
  • AI parses bank emails to sheets
  • Infer clients from Stripe payments
  • Extract unsubscribe links automatically

Full Transcript

All right. So, here is what this video is about. I'm going to show you a bunch

is about. I'm going to show you a bunch of tasks that I've automated using clock code. These are noncode related tasks.

code. These are noncode related tasks.

Okay? So, we're not going to be talking about programming here. I'm going to be talking about using clock code as the brain to automate a bunch of things that

were nagging me before. Things that I had to do every single day in my life and now they're gone. I don't have to

worry about them because all of them get done with AI. And this is one of the most difficult things right now is

thinking of ideas of things that you can actually automate. So over the past I

actually automate. So over the past I don't know maybe maybe two three months every Friday I try to take a little bit of time to think about the previous week

to identify things that are nagging me things that I'm doing more than once and then I take those things and then start

experimenting to find ways to automate them. So you're going to see hopefully

them. So you're going to see hopefully today that you're going to find different levels of automation. Some of

the things that I do are done end to end with clock code which is amazing. Some

of the things are just helping me in one step of the whole process. But either

way I'm saving a bunch of time just using this tool. Now I'm using clock code here is where I spend most of my

time. There are many automation tools

time. There are many automation tools out there. You can probably do all if

out there. You can probably do all if not I mean most if not all of these tasks that I'm going to show you with other tools. That's great. I'm going to

other tools. That's great. I'm going to show you how I do them with clock code.

Okay. Clock code is the brains of the operation. Now you're going to see that

operation. Now you're going to see that in order to do a bunch of the these things we need to connect code with tools. I'm going to show you how to do

tools. I'm going to show you how to do that. There are a couple things that I

that. There are a couple things that I rely heavily on. Number one is clot

skills and number two is commands. So

clot skills is where I teach clot how to do something and then I can reuse that skill over and over again. Now I have a

bunch of skills that I've created before. For example, I'm going to show

before. For example, I'm going to show you one skill which is if I can type here.

I have a skill that's called compress.

And this will take this video when I finish it recording this video and will compress the video down. So basically

will encode the video. It will rename it. It will add a date to it and it will

it. It will add a date to it and it will upload that video so I can publish it.

And all of those operations used to take me I don't know maybe two three minutes and now I can just call the command and

it will do the whole process for me just one automation without me having to actually write software to automate that. So this is just one little example

that. So this is just one little example of something that you can do. I can

teach my clock code through those skills which are markdown files how to do these operations. Now that's not uh it's not

operations. Now that's not uh it's not even part of the list that I have here.

So I'm going to show you some other stuff that I'm automating. But before we can get to the automation part, we need to think about the tools because clock

code acts as the brains of the operation but it's not capable uh of connecting with external applications. For that we

need MCP servers. Okay. So MCP is basically a protocol that will allow us to connect to other tools outside of

clock code. So for example, I connect to

clock code. So for example, I connect to Gmail, to Stripe, to Google Sheets. You

can connect to Slack, to Jira, to I mean there are thousands and thousands of applications out there. Now, how do I do

that? Well, I have a Zapier MCP tool.

that? Well, I have a Zapier MCP tool.

Here is my MCP that I created in Zapier.

The way you do this is very, very simple. You're going to type Zapier MCP.

simple. You're going to type Zapier MCP.

that will take you to a page. You're

going to go to that page and you are if obviously if you don't have an account, you are going to have to create an account in Zapier. But as soon as you get to this page, you can start creating

your MCP server. You can have an MCP for specific clients that what Zapier lets you do. As you can see, I already have

you do. As you can see, I already have one MCP for clock code. You can create one MCP for cloud, the desktop application, chat GPT, cursor, I mean

you name it. There are a bunch of different tools that will accept Zapier as the NCP provider. I created one for

clock code. That's the one that I use

clock code. That's the one that I use every day. You can see I have Stripe, I

every day. You can see I have Stripe, I have Google Sheets, and I have Gmail connected to this MCP. Now I I obviously I have to authenticate

on Gmail. I have to authenticate on

on Gmail. I have to authenticate on Google Sheets. I have to authenticate on

Google Sheets. I have to authenticate on Stripe. That authentication

Stripe. That authentication is provided to my clock code through Sappir. So I know it's secure is

Sappir. So I know it's secure is protected. Clock code does not have

protected. Clock code does not have access to your authentication whatsoever. It only has access to the

whatsoever. It only has access to the tools that you enabled for this MCP.

Like for example in Gmail here the only thing that I've created I've given cloud MCP uh cloud code access to is to find

emails you're going to see how I use that Google sheets a lot more uh you know many more permissions many more tools that clock can use stripe it can

do all of these here it cannot delete invoices it cannot delete customers but it can find customers etc now look at this if If I wanted to add more

capabilities to my cloud code, I can just click on add tools and I can find here whatever I want. Let's say Slack. I

want to do things with Slack. You type

Slack and here you get Slack. And now

you can select here the specific tools you want to give your cloud code instance. So if you want to add reaction

instance. So if you want to add reaction to messages, you will uh create this tool. Obviously, when you finish this

tool. Obviously, when you finish this dialogue, when you're done selecting your tools, you can connect to your Slack specific Slack with username

password and that will give access to your sap your MCP. Your clock code will be able to access your Slack that way.

So, this is very important. I keep this as stripped down as possible. Only give

your AI access to the things that you really really need. Don't give access to all of the tools because that's going to make it hard for the model to select the

proper tool. Okay. So after you have the

proper tool. Okay. So after you have the MCP created on Zapier, there's going to be a connect here. And this connect will tell you exactly what to do. Like for

example, this is the command that you have to run on your computer to load cloud and load it with access to that MCP. You do this only one time. And once

MCP. You do this only one time. And once

you are inside, you will see now if I'm here inside and I type MCP, you're going to see now the list of MCP servers that I have access to. Notice that I have

Sappir right here and is connected.

Okay, the first time you do this, you're going to have to authenticate that MCP server, which is very simple. You come

here, you go to a, you click there, like you hit enter there. It's gonna open a web page. You're gonna authenticate with

web page. You're gonna authenticate with Zapier and that's it. That will

establish the connection between clock and Zapier. So now clock code has access

and Zapier. So now clock code has access to all of the tools that Zapier has access to. Okay. So let me give you an

access to. Okay. So let me give you an example what you can do with this with this new power that we just created.

Well, I can say how many emails have I received today, right? So,

supposedly my clock code has access to my Gmail account. Therefore, I can do things like

account. Therefore, I can do things like this and let clock code use the sapier

Gmail tool to find all of the emails from specific dates, count them, and give me an answer. Obviously, it's going to take a few seconds to come back, but

it will give you an idea of the things that you can do. So, there are three uh automations that I want to show you.

I've done more. These three I think are going to drive the point home. Okay. The

first automation it works like this. I

receive deposits in my bank account and my bank sends me email notifications whenever I get one of those deposits. I

don't want AI to be uh what happened here? You received 25 emails today.

here? You received 25 emails today.

There we go. So there are just sort of like a very high level stuff of what I received today. 25 emails today. Jesus,

received today. 25 emails today. Jesus,

it's 10:51 a.m. at the time I'm recording this. It's a lot of emails.

recording this. It's a lot of emails.

So, anyway, from the bank, I don't want AI accessing my bank, but my bank sends me notifications anytime I receive some

money. Now, I have on a spreadsheet. I

money. Now, I have on a spreadsheet. I

keep track of the money that I get from my bank or payments that I get from other companies. Whenever that money

other companies. Whenever that money gets deposited, uh, I keep track of it so I know exactly how much to set aside for taxes, how much to set aside for

savings, how much to use to pay credit cards, etc. So all of that process was manual before. So I had to check every

manual before. So I had to check every morning, did I receive money? Did do I have an email here? Had to go inside that email. Had to check the amount um

that email. Had to check the amount um on that email. Sometimes the bank sends one email with multiple deposits. So I

had to copy manually copy all of those deposits, paste them in the spreadsheet and have the spreadsheet calculate all of the savings and taxes and whatnot.

That completely automated right now. How

did I do that? I'm going to show you.

I'm going to go out here from clock and I'm going to show you the skill that does that here. So if I go I'm going to go inside the clock folder. There's

skill folder and if I list here you're going to see there is a deposits.md

file. So we can open that deposits MD and you're going to see here the skill where I I tell clot what to do. Now

there is a combination of two MCP servers here. First, I'm going to parse

servers here. First, I'm going to parse or check all of my emails from the last three days, finding those bank notifications. Then, I'm going to parse

notifications. Then, I'm going to parse the emails. I'm going to extract the

the emails. I'm going to extract the amount from the bank notifications.

Then, I'm going to check those email.

I'm going to save those emails, the state of those emails, so they never get processed again. So, I don't duplicate

processed again. So, I don't duplicate the processing of one email. Then I'm

going to go to a spreadsheet. I'm going

to find where to track that the final row that's available or it's empty and then it's going to add that in the spreadsheet. So all of this process

spreadsheet. So all of this process happens with a single skill by me calling one skill. CL code does this

automatically. Now I can pre-program

automatically. Now I can pre-program cloth to run this command from on a Chrome job. So I don't even have to

Chrome job. So I don't even have to execute it manually. So this skill right here will tell you everything or will tell cloud everything that it needs to

do. You're going to see the ID here.

do. You're going to see the ID here.

What is the worksheet? You see that I added income 2026. The target column, the row, everything. I explain here like

it's like imagine the clock was like an intern. I explain here step by step what

intern. I explain here step by step what it needs to do. Okay, this is the state file and the state file is where it's

going to save the latest email. So I

don't have to pre-process it again.

Notice that I even tell the skill which tools it should execute. So it doesn't have to figure that out for me. Here is

the good news. To create these skills, which is very verbose and you can see there is a lot of information here, right? To create this skill, I just had

right? To create this skill, I just had to provide little information and then ask Claude. So as I cla I I was asking

ask Claude. So as I cla I I was asking step by step do this and now do this and now do this and then at the end of it when I was happy I asked Claude create a

skill with all of this information.

Okay. And Claude created this. Clot

looked at all of the steps, summarized them into this skill. And it created it for me. And now this skill is something

for me. And now this skill is something that CL can do over and over again. Now,

let me show you something else here. I'm

going to go outside. You're going to see if I list all of the files. You're going

to see there is one that says uh all of these are skills obviously. Let me go outside. Let me see where they are.

outside. Let me see where they are.

Okay, there we go. So, you can see there is a deposit state.json.

This is the state file where cloud keeps track of the latest emails it saw. Okay.

So, I don't have to re-execute or or one email does not get executed twice.

Again, little naggings that were part of my daily uh routine that are now gone thanks to the skills. Okay, when I go

inside clot, let me go outside. Let me

just load clot.

You can see that I have a command here that's called deposits. So this here is going to run the deposit skill. I can

execute that on demand and it's going to check my email and it's going to do the whole processing. But I don't have to do

whole processing. But I don't have to do this because I pre-programmed that.

Okay, so that's the first skill. The

second skill is similar. Okay, the third skill is going to be the one they're going to like the most. But the second skill is about tracking payments and

keeping track of invoicing. Okay, so

whenever uh a company pays for my services, Stripe sends me an email. That

email, however, does not include the invoice ID that is automatically generated for that client. So a client comes to my website, decides to contract

me to hire me, they click on a button, they pay and in the back end, Stripe automatically generates an invoice. I

keep track of client and invoice on a separate system. So I need that invoice

separate system. So I need that invoice ID, but that invoice ID is not part of the email that Stripe sends me. So

before I had to go to the email, click on a link that will open Stripe, search for the invoice ID, copy the invoice ID, copy the client name, and enter that

information in the spreadsheet that tracks the rest of the stuff. Okay?

Again, not a big deal. If um if I'm very popular and a lot of clients are paying for my services, then I have to do this, I don't know, maybe three, four, five times a day. Uh, usually not a huge

amount of time, but it adds up. Right

now, I have a skill that does all of that automatically. It connects to

that automatically. It connects to Stripe, Gmail, and the spreadsheet. It

starts by searching Gmail, finding those email notifications, grabbing the ID of the customer, inferring the name of the customer.

Here's the thing. Sometimes when people pay, when companies pay, they do not enter the name of the company. So I have to infer the company based on their

email address. So maybe the email

email address. So maybe the email address is I don't know atapple.com and I can infer that oh this is from Apple just because of the email address.

Sometimes it's part of the company name.

So, I ask my skill uh please list out the company name, the date the payment was made, the amount of the payment, the the product that they bought because I

sell multiple products. What products

did they buy and the invoice ID and I use the Stripe integration through Zapier to find search for that invoice

ID given a payment ID. Again, not a huge deal if you have to do this task only once. If you have to do it two, three

once. If you have to do it two, three times a day, it becomes a real nuance uh or problem. These here are two of the

or problem. These here are two of the skills. The third one, which is the

skills. The third one, which is the latest one that I've been working on, it's the unsubscribe skill. Okay, so I'm going to show you here. I don't have that skill yet. I've been teaching

Claude how to do that. So, I want to show you here on the screen because I think you really are going to like this.

This is going to save you so much time.

At least for somebody like me who receives a lot of promotions and stuff, it's very very uh helpful. So, look at this. I'm going to type here. Sorry,

this. I'm going to type here. Sorry,

it's not telling me. I I just paste it like a a prompt. You're going to see now in a second. I'm going to execute it. It

says, "Find promotional or marketing emails from retailers, SAS products, and brands. I'll put a list with the sender

brands. I'll put a list with the sender and the unsubscribe link I should use to unsubscribe from emails." Here is the

thing. To unsubscribe from some of these

thing. To unsubscribe from some of these lists, you need to open a web page. So,

sometimes you even need to fill out a form in order to unsubscribe. So, clock

code cannot do that. Clock code is a terminal application. It cannot open a

terminal application. It cannot open a separate window and do that. But clot

work can. So if you open clot like the desktop application and you go to the the uh I think it's co-work tab then the

name I I don't want to open it here just because I don't have it uh in a decent state. It's going to be a bunch of

state. It's going to be a bunch of private information there. But the

co-work tab will show you where you can create a task where clock can actually go and open browsers and do things for

you. So how am I automating this? Well,

you. So how am I automating this? Well,

first of all, you can ask clock code to just go to your email. Remember, I'm

connecting to that email through the zap your MCP and extract this type of information. Find me the marketing

information. Find me the marketing emails and give me the unsubscribe links. You don't have to provide URLs.

links. You don't have to provide URLs.

You don't have to provide anything else.

It's just telling Clico just find me anything here that looks promotional, looks marketing, looks like uh from a SAS application and give me the

unsubscribe links that they you know they hide those links within the email body. If you had to do this manually,

body. If you had to do this manually, you would have to spend an hour. So what

happens in my case is that these emails start piling up because I never have time to just go and unsubscribe from there. Okay, unfortunately that's not

there. Okay, unfortunately that's not the way my life works. So with this from time to time I can run this, get that

list and either click on each one of those links which is going to be very neatly in front of me. Great. I click

unsubscribe, click unsubscribe or I take that entire list, give it to clot co-work and ask co-work go through this

list and unsubscribe from everything and what before would have taken hours to complete now it takes a few minutes and a few minutes because it takes time for

this to come back. So, I don't know, maybe on Friday I come paste this prompt, which is a regular prompt. I'm

going to turn this into a skill right now just because I'm still working on it. I haven't figured out uh all of the

it. I haven't figured out uh all of the steps that I want to go through. But

here you just call that scale, call that command uh or paste your prompt, get your list, do something else, get your list when this is done. And with that

list, paste it on co-work and co-work will do the dirty work of unsubscribing from all of your emails. This is again it's just little by little you can

identify different tasks that are taking up your time every single day and you can automate it and it's incredible how much

head space that frees up for other things that you want to do. So not

needing to keep track of my bank deposits is just been incredible. Look

at this list. Here is the whole list that he put together for me. Dolce

Gabbana, Dod Snider, Smid the Iron Wear, all of those are either things that I've bought or for some reason I'm part of their lists. And now I have an

their lists. And now I have an unsubscribe link here that I can click on and get unsubscribed or I can just

paste, copy this, paste this uh on cloud co-work and get it over with. It says to not extract unsubscribed links from these senders. You'll need to open the

these senders. You'll need to open the email directly in Gmail and use the unsubscribe link button there. So all of these senders, they are hiding somewhat

their unsubscribe link to a point where clock code couldn't figure that out.

It's fine. I can just take this entire thing and I can copy this list, give it it to co-work, and co-work will open those emails for me. So again, this is

just copying this, pasting it in coowwork, asking co-work unsubscribe from all of this. Co-work will have access to your Gmail. You can connect your Gmail to co-work and it will do

that for you. Incredibly helpful,

useful, timesaver for your work.

Hopefully this at least gives you ideas of the type of automations that you can build. Again, I'm keeping it very

build. Again, I'm keeping it very simple, but you can connect through the Zapier MCP. You can connect to more than

Zapier MCP. You can connect to more than 8,000 tools out there. So, whatever

tools you're using in your life, chances are there is an MCP server that you can use to do or to automate things. So,

hopefully this has been helpful and I'll see you in the next one. Bye-bye.

Loading...

Loading video analysis...