HomeVideos

Templates in Grok Bot

Now Playing

Templates in Grok Bot

Transcript

214 segments

0:00

Today I want to talk about templates in

0:01

Rockbot. Templates allow you to share

0:03

your bots with others and use bots that

0:05

others have created in your own app. So,

0:07

quick facts about templates. First,

0:09

creating a template creates a blueprint

0:11

for another user to create a copy of

0:13

your bot. That means they're not getting

0:15

an exact one-to-one clone of your bot,

0:17

which is important because it means

0:19

sensitive information and things like

0:21

custom code or custom scripts, custom

0:24

MCP servers are not included. Now, we do

0:27

include first-party plugins and

0:29

connectors that are available in

0:31

Rockbot, but we'll talk more about that

0:34

later and we'll talk more about exactly

0:35

what that means. So, when you create a

0:38

template, you are creating a copy of the

0:41

instructions, a copy of the relevant

0:43

memories and skills that your bot has,

0:46

and a copy of the plugins. So, I'm going

0:48

to walk through exactly how they work.

0:49

Let's jump into it. To get started, I

0:51

have my Loop bot here. In my Loop bot, I

0:54

used to write software at SpaceX.

0:56

Um and if I come into the settings here,

0:59

what you'll notice is is that there's a

1:00

a share as template button in the bottom

1:02

right. If I click that button,

1:04

what the bot's going to do is package

1:06

itself up and make itself available for

1:09

you to share with other people by giving

1:10

you a link. Now, when you click this

1:12

button, nothing's going to go live. So,

1:14

don't worry clicking the share as

1:16

template button is going to make your

1:17

bot public. That's not going to happen.

1:19

And moreover, templates are an

1:21

anonymized private version of the bot

1:24

that you're sharing. You can think about

1:26

them like a recipe rather than sharing a

1:29

meal. Now, let me explain what I mean by

1:31

that. If you're sharing a recipe with

1:33

someone, that person then goes and

1:35

recreates the meal in their own kitchen.

1:38

So, if I give you a recipe, you're going

1:39

to create your own version of that meal.

1:41

And that version might look a little

1:43

different than exactly what I created

1:45

when I had the recipe in mind. And the

1:47

reason for that is the bot is actually

1:49

packaging up a copy of itself that has

1:53

all the plugins, the instructions, and

1:55

the memories that you created with the

1:57

bot. That's explicitly different from

2:00

sharing a meal. Now, if I invited you

2:02

over to my house to have a meal, I have

2:04

a nice little apartment here.

2:06

Um we'd be creating the same meal

2:07

together. We'd each be interacting with

2:10

the same food and the same ingredients.

2:12

That's more like an isolated copy of a

2:14

bot and that is not what a template is.

2:16

So, when I click

2:19

share as template, you're going to get

2:20

essentially a blueprint for creating

2:23

your own bot. We'll talk about the

2:25

specifics of what that means later, but

2:27

for now, I'll show you what it means to

2:29

take that template and install it into

2:31

your own environment. So, let's look at

2:33

this template as an example.

2:36

So, when I created a template for my

2:37

loop spot, it read through memories, it

2:40

read through skills and routines and

2:43

plugins. So, routines are just the

2:45

triggers that you might have for a bot,

2:46

how often it runs on its own. Um and

2:49

then it decided what to keep. So, it

2:51

kept memories and plugins and it left

2:54

out personal or internal memories. So,

2:56

by default, the bot is going to exclude

2:59

things that are personal or specific to

3:01

you that might not be applicable to a

3:02

template. So, it's really on the bot to

3:04

create that template. And now we have

3:06

our unpublished template. If we click

3:08

view details, you can see actually

3:10

exactly what's included. So, there's

3:12

some context and memories

3:16

and some integrations. So, I use

3:18

Pystack, shout out Lauren, and GitHub

3:20

for this bot. Um now, this bot is also

3:24

tightly coupled with the cursor

3:26

integration. Um so, what you might

3:28

notice when you're creating templates is

3:30

that there are other instructions that

3:31

you need to give. I'll give you some

3:33

tips on that in a second.

3:35

This template is not live. We can choose

3:37

to make it live for the public or for

3:39

our team only. Now, since this bot is

3:43

very specific to coding at SpaceX, if I

3:45

wanted to share it internally, I might

3:47

select team only.

3:48

Clicking publish is going to make that

3:50

template live and you're going to get a

3:51

link. So, you can see there I clicked

3:53

publish, I got a link. From there, we

3:55

can click copy link and opening that

3:58

link is going to take us to this

4:00

template page where we can add that to

4:02

Grokbot. So, now we're going to flip to

4:04

the other side. Say you're a person and

4:05

you want to install a template. What

4:07

does that look like? Well, if we click

4:09

add to Grokbot, we're going to open that

4:12

link in our bot. And nothing is going to

4:14

happen. We're going to be able to review

4:15

that template. So, now I see the

4:17

context, I see the integrations that

4:20

that bot includes. I can check to make

4:22

sure this is what I'd expect, and I can

4:24

click add to bot.

4:26

And now,

4:27

this is distinctly a new copy of my Loop

4:29

Bot because it doesn't have the same

4:32

um icons or anything like that. I am

4:35

going to watch the bot basically install

4:37

itself. So, I hand you the blueprint,

4:39

you're going to take that blueprint and

4:41

install it into your bot. So,

4:44

what we're doing now is the bot is

4:46

taking that recipe we talked about

4:47

earlier and making its own version of

4:49

the meal, which means that one, it might

4:51

be slightly different from what you

4:54

received, and two, there might actually

4:56

be some setup that I have to do to make

4:57

this work exactly as I want it. So,

5:00

those are the things to keep in mind.

5:02

Bot templates um are independent

5:05

versions of the original bot, and there

5:07

might be some setup. If there are

5:08

plugins that were included in the

5:10

original bot, your new bot here, the bot

5:12

you created when you're using this

5:13

template, is going to have to reinstall

5:15

those plugins, but it comes with them.

5:17

If there are non-standard plugins like

5:19

MCP servers

5:20

um or other scripts or code, those also

5:23

aren't included in the template bot. So,

5:26

you're going to have to be sure to reuse

5:27

those or ensure there's a way to carry

5:31

that code over to the bot. So, you can

5:33

see that this template kind of unpacked

5:35

itself and configured itself. Sometimes,

5:37

for more complex templates, what I like

5:39

to do, the same way I would configure

5:40

maybe a coding project or something like

5:42

that, is effectively have the bot encode

5:45

instructions for setup. So, if we go

5:47

back to the original um bot that I

5:49

created here, I might say something

5:50

like, "Make sure to include all

5:52

instructions for setup and configuration

5:54

in the template. Think through exactly

5:55

what a user would need to replicate my

5:57

flow." And if I send that, what you'll

5:59

notice is that the bot might like

6:00

reflect and improve on the template.

6:02

This is especially important for

6:05

templates and bots that need API keys or

6:07

MCP servers or highly custom. So, if

6:09

you're building really complex

6:10

workflows, it might be worth thinking

6:13

through how you can ask your bot to make

6:15

setup for the end user as easy as

6:17

possible. So, that's just a small tip.

6:19

In practice, you don't need to do this

6:21

and you can kind of rely on our share

6:23

and copy templates flow. So, those are

6:26

templates in Grok Bot. Things you need

6:28

to know: Templates are more like a

6:30

recipe than a meal. So, think about them

6:32

as a blueprint for your bot to then go

6:34

create its own version that doesn't

6:36

carry over personal information.

6:38

Templates do include first-party

6:40

plugins,

6:41

skills, and other things that the bot

6:43

deems important to its workflow. They do

6:46

not include secrets. They do not include

6:48

any sort of personal or private skills

6:51

or private information. And they can be

6:53

shared publicly or with just your team.

6:56

Um templates are installable via a

6:58

single link and they're super easy to

7:00

get started. You're going to see a ton

7:02

of them online and the only thing I

7:03

would say is that evaluate templates

7:05

just like you would evaluate skills or

7:07

software. Be very careful about what

7:09

you're installing in your bot and it's

7:11

probably a good idea to view the details

7:13

and just read through the context, read

7:15

through the integrations, and make sure

7:17

everything in the template is exactly

7:20

what you'd expect before installing it.

7:23

I'm Matt with SpaceX and these are

7:24

templates in Grok Bot. Until next time.

7:26

Peace.

Interactive Summary

This video provides a comprehensive guide on using templates in Grokbot, explaining how they allow users to share bot blueprints while ensuring privacy. It details the process of creating, publishing, and installing templates, while emphasizing that templates function as recipes—providing instructions, skills, and plugins without transferring sensitive data or personal information. The video also offers best practices for creating complex templates and cautions users to review template details carefully before installation.

Suggested questions

4 ready-made prompts