HomeVideos

I Gave GrokBot a Credit Card (Here’s What It Bought)

Now Playing

I Gave GrokBot a Credit Card (Here’s What It Bought)

Transcript

436 segments

0:00

Today, I'm going to show you how easy it

0:01

is to create a Grockbot and give him its

0:04

own email and credit card. For those of

0:07

you who don't know, Grockbot is the

0:09

fastest growing general agent platform

0:11

in the world, created by Cursor, now

0:13

owned by SpaceX. And today, we're going

0:16

to create an email for our Grockbot and

0:19

set up a web hook. So, every email my

0:21

bot receives triggers him to take

0:24

action. Then we're going to give him the

0:26

ability to make purchases with a virtual

0:29

card using the new Stripe link

0:31

integration. So my agent can

0:33

autonomously buy things. Let's go. So

0:36

here we are in the fastest growing agent

0:38

platform in the world right now, which

0:40

is Grockbot by SpaceX. And here's my

0:44

team of Grockbots over here on the left.

0:47

And what we're going to be doing today

0:48

is we're going to be creating a new

0:50

Grockbot. And we're going to be giving

0:51

it an email and a credit card. And what

0:55

does this mean? Just one of these bots

0:57

right here will be able to send emails

1:01

on its own address. So it'll have its

1:04

own email address. And then also this

1:07

agent will be able to buy things

1:10

autonomously, right? You can just tell

1:12

it to go buy whatever it is that you

1:14

want. And this Grockbot will be able to

1:16

do that. And you'll be able to set this

1:18

up in like 5 to 10 minutes. Okay. So

1:20

let's move into part one, which is

1:22

giving our agent an email. And so you

1:24

might be wondering what are the benefits

1:25

of giving Grockbot an email. Well, the

1:27

first one that I've noticed by doing

1:30

this is I can just forward things

1:31

directly to my Grockbot. If I'm using my

1:34

email and I get an email that I don't

1:37

really want to think about or I want my

1:38

Grockbot to do research, I'll just

1:40

forward Grockbot the email and it can

1:42

respond to it, which is really

1:43

interesting. And the next cool thing

1:45

about this, and this is what makes

1:48

Grockbot unique compared to say Claude

1:50

Co-work or GBT Work or any of the other

1:53

agent platforms, is bots can be

1:55

triggered by the emails that we're about

1:59

to set up. And this is due to a very

2:01

specific feature that they have, which

2:03

are routine web hooks. Let me explain.

2:07

You see, most of the agent platforms

2:09

have these things called automations or

2:11

routines. And normally they look

2:13

something like this, like weekdays at 10

2:14

am do this thing. However, with

2:16

Grockbot, you can actually create a

2:18

routine that runs on a trigger. And this

2:21

trigger can be any of these predefined

2:24

ones like a Slack message. But they also

2:27

have this thing called web hook. It's a

2:29

little bit advanced, but you'll be able

2:31

to set this up in like two or three

2:32

minutes. And what this will allow your

2:34

agent to do is be triggered by emails

2:37

immediately. When your Grockbot receives

2:39

an email, it will be triggered to work

2:41

immediately, which is very cool. Um, and

2:43

the third reason is bots can reach out

2:45

to people and receive email in their own

2:48

isolated inbox. You could give an email

2:50

to all of your Grock bots if you wanted

2:52

to. Okay, so let's get started here,

2:54

shall we? What we're going to do first

2:56

is we are actually going to create a new

2:58

agent. And this is also known as a new

3:02

bot or a new Grockbot. So, we're just

3:04

going to create a new bot. And we're

3:06

gonna this bot we're going to be giving

3:07

an email and a credit card. And what

3:10

we're going to be doing here is you are

3:12

named Jimmy and you buy um you are an

3:18

executive assistant for [snorts] our

3:21

company agent native. You will have an

3:25

email and you will buy things for the

3:28

office when people ask you. people at

3:30

the company can message you to buy

3:32

things and that is your main

3:35

functionality and you are going to be a

3:37

useful agent.

3:40

So creating an agent is as easy as just

3:42

telling the name and what it's going to

3:45

do. And as you can see here right now

3:47

it's named new bot, but the bot will

3:50

actually update this automatically. And

3:52

there you go. Got it. I'm Jimmy agent

3:54

natives EA. I'll buy office stuff when

3:56

people ask. you approve every purchase

3:58

and chase contractor payments. And you

4:01

can see here it updated um the

4:04

description. And I can add a little um

4:06

coh thing here which says um I'll just

4:09

put EA. And so right now this is an

4:11

unassigned bot. I'm actually going to

4:12

pin this bot to the top. And Jimmy is

4:16

now part of the team. Okay. So I need to

4:21

give you an email. And so in order to

4:25

give it an email, we're going to be

4:26

using a plugin. And so the plugins that

4:28

I have, I have 14 plugins installed

4:31

right now. These are the plugins. It

4:33

fully controls Slack, notion. It has

4:36

Gmail, has access to my ClickUp X, and a

4:40

bunch of other things. The plugin that

4:41

we're going to be using is called agent

4:44

mail. It's literally called agent mail.

4:46

And so I want to use agent mail. Let's

4:51

set that up. That's what I'm going to

4:52

say. Let's do the plugin. Set it up. And

4:57

it says that we will be getting a

4:59

connect card, which just means it's

5:01

going to give me a little UI component

5:02

that I can set up this thing called

5:04

agent mail. Okay. So, it just gave me

5:06

this little card here. We can authorize

5:09

agent mail. And here we're just going to

5:11

click allow. So, all you have to do is

5:13

create an account. And then it says

5:15

authorization complete. Now, I can just

5:19

say complete. Let's do this.

5:23

What can we make his email address and

5:28

then give me link to the dashboard?

5:33

Okay, here. I like it. That's fine. I

5:36

like that email. So, Jimmy's email is

5:41

jimmy-bot

5:43

at agentmail.to.

5:45

And I'm just going to say put this in

5:47

your description. Never forget this that

5:51

this is your email. Now what we can do

5:54

here is we can go to our agent mail

5:57

console which is just where agent mail

5:59

is and we can see our inboxes and we can

6:04

see that it configured this email called

6:06

jimmy-bot

6:08

at agentmail.to

6:10

and just to test that this email

6:12

actually works I can copy this link

6:14

right here. What we can do is we can

6:17

paste in this email right here and we

6:19

can just say test testing Jimmy inbox

6:23

and we can send off that email. And

6:25

there you go. So this email address

6:27

works. So from Riley agentnative.inc, we

6:30

send an email to jimmy-bot

6:33

agentmail.to.

6:35

And so now I can go to my bot and say,

6:37

"Uh, please tell me if there's any

6:41

emails on this address." And now Jimmy

6:46

will respond.

6:48

And he said, "Ceing

6:49

Jimmy-bot@agentmail.to

6:52

now." Yep. And here it goes. One unread

6:55

from you, Riley.

6:57

And subject is test body testing Jimmy

7:00

inbox. Very good. So, our agent has an

7:02

email address and it can view it. And

7:05

so, what we want is we want Jimmy to be

7:07

able to watch the email address so that

7:10

if anybody sends Jimmy an email, Jimmy

7:14

will immediately be aware of this email.

7:16

And in order to do this, we need to use

7:19

something called web hooks. And so, what

7:21

I'm going to do is I'm going to go to

7:23

Jimmy and I'm going to use this prompt

7:25

right here. I want to configure a

7:26

routine where you can watch this email

7:29

address, use web hooks. Please set it up

7:32

and then give me full instructions on

7:34

how to set up this automation fully on

7:38

agent mail. So, I'm going to run this

7:40

prompt and it's going to create the

7:42

routine. Found how other bots wire agent

7:45

mail web hooks matching that? Then I'll

7:47

save yours. Okay, here we go. As you can

7:51

see here, it created a routine. And so

7:54

when we click on this, when a web hook

7:57

fires, it will do these instructions. So

8:00

read the web hook, fetch the full thread

8:03

from agent mail, do not rely on the web

8:05

hook preview alone, tell Riley in the

8:07

chat in a short message who sent it,

8:09

subject, etc., etc. So it'll basically

8:11

give me an update right here. What we

8:14

need to do is make this actually work.

8:16

And so here it gave us some

8:18

instructions. And what we're going to do

8:20

is we are going to navigate to agent

8:22

mail. Now over here we're going to see

8:25

this thing called web hooks. We're going

8:27

to click on web hooks and we are going

8:30

to add an endpoint. So we're going to

8:32

add an endpoint right here. And then

8:34

what we're going to do is we're going to

8:35

navigate to Grockbot. And what we need

8:38

to do is we need to go over to this web

8:39

hook and we're going to click on this.

8:41

And here it has this post to. So I'm

8:44

going to select this and I'm going to

8:46

copy it. And what I'm going to do is I'm

8:48

going to go back to Google Chrome and

8:51

agent mail. I'm going to paste this in

8:53

right here. And I'm just going to give

8:54

this a description. Jimmy's uh inbox web

8:58

hook. Now, what we're going to be doing

9:01

is subscribing to events. And so,

9:04

basically, it'll turn these events into

9:06

a web hook or or it'll trigger the

9:08

automation. And so, I'm just going to

9:10

click message here and scroll down and

9:13

hit done. So, now it is Jimmy's inbox

9:19

web hook. So after we've created this

9:21

endpoint, we need to do one more thing.

9:23

We need to go to this advanced tab and

9:25

you're going to come down to this custom

9:27

headers part right here. This is the

9:29

final step in setting this up. You need

9:31

to go back to Jimmy and what you need to

9:33

do is you are need to type just follow

9:35

my lead here. You're going to copy this

9:37

key right here, this sender key. You're

9:41

going to go back and all you're going to

9:43

type in is authorization.

9:47

and you're going to type it exactly as

9:49

it appears right here. Then you're going

9:52

to type this right here which is bearer.

9:54

You're going to type bearer and then

9:57

you're going to paste this after

10:00

pressing space.

10:02

So just like that bearer space then this

10:06

key right here. That's it. Now you're

10:08

going to press this button. Now we've

10:09

added it. And now we've added this key

10:13

right here. Okay. So, now it should be

10:16

connected. Now, let's give it a try. I'm

10:19

going to send a message to

10:20

jimmy.bot@agentmail.to.

10:23

Hey, uh, please update me on my August

10:28

YouTube metrics. How many views did I

10:32

get in August? And what were my best

10:38

videos? So, I'm going to send it. Now,

10:40

what we want to see immediately is this

10:44

firing.

10:45

We'll see.

10:48

Oh, there we go. Jimmy's inbox. Watch.

10:52

It's spinning. And you can see that it's

10:54

working. And if you click on this right

10:56

here, you can see the run history. And

10:59

you can see that it's running just now.

11:01

And so, you can see that this automation

11:04

works. It should have seen my message.

11:07

And we'll see what it says here. You can

11:10

tell that it's working. Okay, here it

11:11

is. New mail on jimmy.-bot

11:15

at agentmail.to from Riley Brown. And

11:18

here it shows what I said. Now I can

11:20

say, okay, um, research it and uh, send

11:25

an email back. And now, Gro, now

11:29

Grockbot or Jimmy should be able to do

11:32

the research because it has contacts and

11:34

it will be able to send an email back in

11:36

the future. I or I could have easily set

11:38

that up so the routine would

11:40

automatically respond. Actually, I can

11:43

say that and in the future when it's me

11:47

emailing you, respond here and via email

11:54

and then it should update this routine

11:56

so that it does that. And here it said

11:58

it locked that in. You email Jimmy, I

12:01

answer here and on the thread. Anyone

12:03

else just gets a ping here. That's

12:05

probably ideal. All right. Right. So

12:06

there you go. It did the task that was

12:08

in the email and we now have it set up.

12:11

So our Grockbot now has email. Now time

12:16

for step two and we need to give

12:18

Grockbot, more specifically, we need to

12:21

give Jimmy a credit card. And so here's

12:25

why I'm really excited about Jimmy

12:27

getting a credit card. The first thing

12:29

is that this means the agent can

12:31

research for hours and then make a

12:34

purchasing decision and then it can just

12:36

check out. Then you can also set up

12:39

routines to buy things. So every day on

12:41

Friday I need you to order this thing or

12:43

that thing. We can set that up on a

12:45

routine. And then the final benefit that

12:47

I think is really important for right

12:49

now in the state of AI agents is I will

12:51

get approval. So, I will get a

12:53

notification on my phone that says, um,

12:56

do you want to approve this transaction?

12:58

And then all I have to do is press one

12:59

button and the agent will complete the

13:01

transaction, which is really cool. And

13:03

so, for this, I'm going to set up link.

13:06

So, I'm going to tell Jimmy, yo, I want

13:09

you to be able to buy things using link.

13:10

Set that up.

13:12

That's all you have to type in. And we

13:15

could say like, let's configure plugin

13:18

link. And it says installing link now.

13:22

All right. And so here it sent me this

13:24

little card here. So I can go ahead and

13:27

authorize this

13:29

link. So I'm going to hit allow.

13:33

Authorization complete. You can close

13:35

this tab. And now it said connects card

13:38

is in the chat. Hit it when you're

13:40

ready. So

13:43

tell me, are you ready to make payments?

13:48

Is that possible now? And it says yes.

13:52

Link is connected as Riley Brown with a

13:54

visa at 5160. I can buy. You still

13:57

approve every charge first. That is

14:02

amazing.

14:05

So now what I want you

14:09

uh to do is change your automation like

14:13

our routine that we set up. If you get

14:15

an email from me telling you to buy

14:16

something, I want you to go through with

14:18

it. Um, if it's from that email above,

14:22

right? I want the ultimate end goal is I

14:24

want to be able to email my bot and then

14:26

it will go off and buy something for me,

14:28

right? Because that we're using both use

14:30

cases, the email and the credit card.

14:32

So, I'm going to go ahead and try it

14:33

like that. Okay, so it's done. And so

14:36

now what we can do is we can let's go

14:38

ahead and go to email. And so I can

14:40

email my bot. So, let's go ahead and

14:43

email Jimmy. So, we're going to email

14:45

Jimmy and say, "Hey, I need you to buy

14:49

something. I need you to buy a nice

14:53

notebook from Amazon so it gets here

14:58

ASAP. I want a red one. Make it a nice

15:02

one, please." So, now I can fire this

15:05

off.

15:07

There you go. The web hook fired. And so

15:11

Jimmy just received an email to his own

15:13

email address. And now he's going to go

15:16

buy with a credit card the item that we

15:19

asked him to buy in the email, which was

15:22

the notebook. And look at this, Jimmy.

15:25

He's using his computer. You can

15:28

literally watch him use his computer.

15:29

He's doing research. He found this uh

15:32

lecture notebook hard cover.

15:36

Very cool. I'm just going to keep

15:38

letting him cook. Okay, he's got he's on

15:41

the uh delivery address page. Okay, so I

15:44

have my phone out right here and I

15:46

should get a notification and then all I

15:48

have to do is approve it and we'll be

15:50

good.

15:51

Okay, so it is asking for approval. I

15:54

just hit allow. And after you hit allow,

15:58

it shows the breakdown. You can see the

16:00

total cost with tax. And now what I want

16:03

to show you is if I wasn't on uh my

16:06

computer or anything, I would have

16:08

gotten a notification. And I want to

16:10

show you what this notification would

16:11

look like. And look at this. Grockbot is

16:14

requesting to spend 2776

16:18

on Amazon. I'm just going to click

16:20

approve. And then I'm going to do my

16:22

Face ID. So anytime your agent will try

16:25

and purchase anything, you'll get one of

16:26

these notifications on this link app.

16:29

And there you go. We just approved it.

16:32

And there you go. It just said link

16:34

approved. And this would all be

16:35

happening in the background if I wasn't

16:37

watching. I'm on Amazon Checkout. I'll

16:39

ping you when it confirms. So, let me

16:42

explain what's happening here. The AI

16:45

went on its virtual computer because um

16:48

Grockbot has access to a computer. In

16:50

fact, it's still using it right now. And

16:52

what it did is it determined the exact

16:55

cost for the purchase and then it used a

16:57

link to spin up a new virtual card for

17:00

the exact price of the item. It then

17:04

pinged me and I approved the creation of

17:07

this card. And now it's automatically

17:09

going to use this card to make the

17:11

purchase in just a few seconds. And

17:14

there you go. Ordered. It ordered this

17:17

notebook for 2776. It arrives Wednesday,

17:21

September 2nd, Amazon order. And then it

17:23

gave me this order uh number. And there

17:27

you go. I sent an email to Jimmy. And

17:30

then Jimmy, my Grockbot, who has a

17:33

credit card, went on Amazon and made the

17:36

purchase. So we gave our Grockbot an

17:39

email and a credit card. For email, we

17:41

used agent mail. And for the credit

17:44

card, we used link, which is by Stripe,

17:47

by the way. It's really easy to set up.

17:49

It's super trustworthy because it's

17:51

Stripe. And when your agent goes to make

17:54

a payment, it will determine the price

17:57

and then it will spin up a new card. So,

17:59

it'll spin up a new card and let's say

18:02

the price is like it was I think it was

18:05

like 2736.

18:07

Once it determined that, it then asked

18:10

me for approval. So then it got approval

18:15

to create a card that was also for 2726.

18:20

Then it automatically used the card to

18:23

make purchase. And I'm assuming pretty

18:26

soon we're going to get rid of this

18:28

approval step. I just think right now

18:30

since this is such a new thing, you do

18:32

kind of need this approval step. And I

18:34

do think it's pretty important right now

18:36

and it's pretty fun. Anyway, we gave

18:38

Grockbot an email and a credit card.

18:40

Thank you guys so much for watching.

18:41

Please like and subscribe to this video.

18:43

It helps me out a ton.

Interactive Summary

This video provides a step-by-step tutorial on how to enhance a Grockbot agent by integrating an isolated email address and a virtual credit card using Stripe Link. The creator demonstrates how to configure an email via the 'agent mail' plugin and set up automated webhooks so that the bot can be triggered by incoming emails. Furthermore, the video shows how to connect a virtual payment card, enabling the AI agent to perform autonomous research and purchasing tasks while maintaining security through a mandatory approval process via a mobile notification.

Suggested questions

3 ready-made prompts