How to Write Grok Bot Instructions
Put rules that should stay true in the bot's description. Put the task you want done now in the message. A useful task names the outcome, the sources, what to avoid, what to hand back, and when to stop for you. That split is how the Grok Bot docs separate a description from a conversation. The steps below follow those two pages.
What is a good Grok Bot system prompt?
Put the rules that should stay true in the bot description. Put the task you want done now in the message. A useful task names the outcome, the sources, what to avoid, what to hand back, and when to stop for you. That split is the system-prompt shape already used in the steps below, taken from the bots page and the get-started page.
- 1
Write the description as standing rules
The bots page says standing rules belong in the description, and the job for right now belongs in the chat. A description can name the job, the sources, and a boundary such as never sending a message without approval.
- 2
Name one job
The same page says a clear job has its own goal, tools, working style, approval boundary, or schedule. A catch-all job such as a general helper gives the bot less to reuse.
- 3
Put the task in the message
Say what finished looks like, which files or apps matter, what it must not change, what it should hand back, and when it should stop. The get-started page lists those five parts as a strong request.
- 4
Keep safety rules in the description
The bots page says memory is not the place to store a fact you may need to prove, and that safety limits belong in the description. Correct a stale assumption in the conversation when you see one.
- 5
Share only what you would publish
If you later share the bot as a template, the bots page says a public link shows the identity, description, skills, and routines. Remove API keys, internal URLs, and customer data before you copy the link.
To do this on a new bot, start with create your first Grok Bot. The plain-language version is how to tell your bot what to do, in Learn Grok Bot.