Skip to content

Independent directorynot affiliated with xAI

Catalog refreshed Nobody pays to be listed or rankedSponsor a slot

Prompt Studio

Grok system prompt and Bot instruction generator

Build a clean, single-job Grok Bot brief — plus a ready-to-run xAI Responses API (`https://api.x.ai/v1/responses`) snippet — without hand-rolling boilerplate. Already wrote a prompt? Switch to the Prompt auditor tab to check for missing approval stops, secret leaks and expensive schedule loops before pasting it.

Want ready-made examples instead of building from scratch? Browse our Grok prompts library or search the full public template directory.

  • Verified against docs.x.ai
  • Deterministic 6-point safety & cost auditor
  • Runs locally · nothing sent to a server
What makes a reliable Grok Bot instruction or system prompt?
Six concrete parts: one clear job, the exact apps and sources it may touch, a light schedule (or on demand), a defined output format, an explicit stop rule for external actions, and a fallback when inputs are missing.
How do you pass a system prompt to the xAI API?
In the xAI Responses API (`POST https://api.x.ai/v1/responses`), pass your standing brief in the top-level `instructions` field (or a `system` role item in `input`), select a model like `grok-4.7`, and declare any `web_search`, `x_search` or `mcp` tools.

Grok system prompt & Bot instruction studio

Generate a clean Bot brief and xAI Responses API request, or switch to the Prompt Auditor to check any existing prompt for safety and cost risks.

Presets:

1. Define the Bot specification

Audit 6/6
Connected apps (least privilege)2 selected
xAI Responses API options (for curl / JSON tabs)
811 chars · 129 words · ~203 tokens
You are Inbox Triage Desk. Your single job is to Sort unread mail into urgent replies, can-wait items and safe-to-skip newsletters, with a one-line summary for each urgent thread.

Cadence: Run once each weekday morning at 08:00 local time.

Connected apps: Use only Gmail / Email, Google Calendar. Do not request or browse unrelated accounts.

Sources & scope: Unread inbox messages from the last 24 hours and today's calendar attendees.

Output format: One plain-text digest with three headed lists, newest first, showing sender, subject and reason.

Boundaries: Save proposed replies, posts or PRs as drafts only. Never send, publish, merge or delete without my explicit approval.

When uncertain or blocked: If the inbox is empty or Gmail access fails, report that in one line instead of inventing a digest.
On this page 6 sections
  1. Builder & Auditor
  2. Anatomy of a Grok Bot instruction that holds up
  3. From Bot brief to xAI Responses API and Remote MCP
  4. Checking your prompt before publishing a template
  5. Questions people ask
  6. Sources

Anatomy of a Grok Bot instruction that holds up

Most broken prompts fail for the same two reasons: they pile four unrelated jobs into one Bot, and they forget to say what the Bot must not do. Whether you paste the text into a new Grok Bot or send it as `instructions` to the xAI API, structuring it into six explicit lines prevents drift.

  • Single job: one outcome per Bot. Split inbox triage from code review so each Bot needs fewer connected apps.
  • Scoped sources: tell the Bot which folders, channels, repos or time windows to read and forbid browsing outside them.
  • Fixed output shape: name the sections, word cap or table columns so routine digests stay readable.
  • Approval stop rule: explicitly write read-only, drafts-only or ask-first — and back it up with a Grok Bot Custom Rule.
  • Empty-state rule: require a one-line notice when nothing needs attention so the Bot never invents busywork.
  • Sane cadence: start on demand or weekday mornings; hourly loops burn weekly pools fast.

Sources: Create and manage BotsApprovals, security, and privacyGrok Bot routines (Cursor Help)

From Bot brief to xAI Responses API and Remote MCP

When a workflow outgrows a personal Bot and belongs inside your own app or backend, the exact same brief moves straight into the `instructions` field of xAI's Responses API (`https://api.x.ai/v1/responses`).

Because xAI models have no live web access by default, enable `web_search`, `x_search` or a Remote MCP server in the `tools` array only when the job truly needs live data. You can estimate token and tool costs in our xAI API pricing calculator before deploying.

Sources: Grok API models and context windowsRemote MCP tools (xAI API)xAI API pricing

Checking your prompt before publishing a template

Sharing a Bot as a public `x.ai/bot/…` template exposes its instructions, skills and routines to anyone with the link. Run the Prompt auditor above and walk through xAI's pre-publish checks before clicking Publish, then submit your link if you want it indexed with creator credit.

  • Remove any personal email addresses, internal URLs, customer names or API keys.
  • State clearly in the description which apps a recipient will have to reconnect.
  • Spell out whether the Bot is read-only, saves drafts or waits for approval.
  • Check that any included routines are paused or light before sharing.

Sources: Create and manage BotsTemplates for Grok Bot (Grok Bot Guides)

Questions people ask

Does Grok Bot have a separate system prompt box?

Grok Bot does not expose a developer-style system prompt field. Instead, you give each Bot a standing brief in its setup and reinforce hard boundaries with Custom Rules under Settings → General → Bot → Custom Rules. On the xAI developer API, you pass a system prompt via the `instructions` field or a `system` message.

Sources: Create and manage BotsApprovals, security, and privacyGrok API models and context windows

Does the Prompt Auditor send my prompt text to any server?

No. Both the generator and the prompt auditor run deterministically inside your browser with plain JavaScript rules. Nothing you type or paste is sent to our servers, xAI or any third party, though you should still never paste live secrets into any web form.

Can I mix system, user and assistant messages in the xAI API?

Yes. xAI's model documentation notes there is no role-order limitation on chat models, so you can mix system, user and assistant roles in any sequence. Keeping static system instructions at the front still helps prompt caching reduce your input token cost.

Sources: Grok API models and context windowsxAI API pricing

Sources

Checked

Product facts on this page come from these pages, each read on the date shown. Pages marked first-party are published by xAI or Cursor; we quote community reports only for known bugs.

  1. Create and manage Bots (opens in a new tab)xAI · first-partychecked 18 Nov 2026Creating a Bot, lasting rules, memory, sharing a template (Bot name → Share → Create a copy → Publish → Copy link; Share as Template on iPhone and Android), what a public link exposes, what to remove before sharing, public and team-only links and admin controls, View template details / Update template / Delete Template, deleting a Bot deleting its template, adding a Bot from a template, Connect apps → Bot templates, the third-party bot terms.
  2. Approvals, security, and privacy (opens in a new tab)xAI · first-partychecked 5 Nov 2026Auto Review, approval cards, Ask first rules, approvals expiring after 30 minutes, keeping secrets out of chat, saved cards, local-computer access, least privilege.
  3. Templates for Grok Bot (Grok Bot Guides) (opens in a new tab)xAI · first-partychecked 18 Nov 2026page updated 8 Sept 2026What a template packages (instructions, relevant memories, skills, plugins), what it leaves out (personal or internal memories, private skills, secrets, custom code, scripts, MCP servers), reviewing what's included before publishing, having the Bot write setup steps for keys or MCP servers, reinstalling plugins, "a recipe rather than a meal", and evaluating templates like software.
  4. Grok API models and context windows (opens in a new tab)xAI · first-partychecked 22 Nov 2026Current API model IDs, 500k and 1M context window sizes, Grok 4.7 as the recommended default for chat and coding, and no real-time web access unless server-side search tools are enabled.
  5. xAI API pricing (opens in a new tab)xAI · first-partychecked 22 Nov 2026Text API rates per 1M tokens for grok-4.7, grok-4.6, grok-4.5, grok-4.3, grok-4.20 variants and grok-build-0.1; the 200k-token long-context doubling rule; cached input rates; 20% Batch API discounts; image, video, voice and server-side tool invocation fees (web_search, x_search, code_execution, collections_search, Remote MCP).
  6. Remote MCP tools (xAI API) (opens in a new tab)xAI · first-partychecked 22 Nov 2026Connecting external Streamable HTTP and SSE MCP servers via the Responses API tools array (server_url, server_label, allowed_tools, headers), with token-only billing and no per-invocation fee.
  7. Grok Bot routines (Cursor Help) (opens in a new tab)Cursor · first-partychecked 5 Nov 2026"An hourly schedule, a short interval, or a Slack trigger on a busy channel can use a week of usage in a day"; routine rate limits.

Or start from an existing public template

Already want a whole Bot setup instead of writing instructions from scratch? Browse the full directory.

All templates
  • 1000x Product Engineer

    A full-stack product builder with enough interface taste to move beyond scaffolding.

    • Connects to: No apps named
    • Approval not stated
    • On demand· usage when run
    • Checked 29 Aug
  • Agent Smith

    A maintenance audit for the shared machine and memory your bot team works from.

    • Connects to: No apps named
    • Approval not stated
    • Scheduled· usage every run
    • Checked 29 Aug
  • Ads Operator

    A campaign pack builder for local-service businesses and the people running their ads.

    • Connects to: No apps named
    • Approval not stated
    • On demand· usage when run
    • Checked 29 Aug