← View all articles
Grok BotAI Tutorials07 / 26

Set Working Rules and Manage Memory in Grok Bot

Published Last updated

Understand the Purpose of Working Rules

Nothing drains energy faster than repeating the same instructions in every new thread: keep summaries under five bullets, verify prices against the source file, stop before sending anything.

Writing durable rules into Grok Bot lets it remember your formatting habits, stable context, and review boundaries across future sessions automatically.

Distinguish Memory from Authoritative Sources

Keep one clear boundary in mind: memory is a preference notepad, not a live database. Volatile figures—like current pricing or on-hand stock—must always be fetched fresh from source files or online links during each run, never guessed from last week’s chat.

Memory never replaces explicit permissions either. Anything that emails someone or updates live records still needs an approval gate.

Single Tasks Versus Long-Term Rules

Every chat instruction belongs to one of two buckets: one-off instructions apply only right now (“turn these notes into three bullets”), while durable rules apply every time similar work comes back (“always cite exact source links”).

Keep Sensitive Information out of Memory

Account passwords, card numbers, and private contact details belong in Vault or Secure Form cards—never inside Bot memory. Memory has no secret masking; storing credentials there risks exposing them in generated drafts.

How Bot Memory Behaves

Personal Bots do not have a separate memory management menu—you inspect, edit, and erase memories right inside chat using plain words.

Information Type Intended Scope Storage and Behavior Reset or Removal Impact
Task Instruction Single-turn execution or draft generation Conversation history Discarded when a new conversation starts
Durable Working Rule Review steps, formatting standards, boundaries Bot-specific memory Survives chat resets; view, edit, or forget items in chat (never delete the whole Bot just to wipe memory—that permanently erases chats, routines, and files)
Shared Profile Fact Name, specified IANA time zone Shared across your personal Bots Updating via one Bot syncs to others; must be removed at source
Volatile Data Product pricing, inventory counts Source files, online links, connected apps Never trusted from memory; must re-read source directly

An IANA time zone refers to the standard international regional identifier; if left blank, the Bot must ask first before running.

Inspect, Correct, and Remove Memories

Curious what your Bot currently remembers about your rules? Ask directly in chat:

What do you remember about my preferences, working rules, and profile?

Spot something outdated? Tell it plainly to overwrite or forget that line:

That policy is outdated. Update your rule: never publish or notify external contacts without manual confirmation. Also, forget the temporary launch notes from last week.

Have it read the rule back afterward to confirm. And remember: never delete an entire Bot just to clear memory—deleting a Bot permanently wipes all its chats, memories, routines, and attachments.

Practical Exercise: Establish a Reporting Rule

This rule locks in time zone handling, 7-day math, and fresh price checks in one shot. Grab a test spreadsheet, check your IANA time zone placeholder <YOUR_IANA_TIMEZONE> (ask first if unset; reports must display active time zone and dates), and send:

Please remember these ongoing working rules:
1. When compiling metrics, always calculate dates using `<YOUR_IANA_TIMEZONE>` (ask first if not set; the report must state the active time zone and start/end dates).
2. When reviewing the last 7 days, include the execution day plus the preceding 6 calendar days, and display the active time zone and start/end dates in the header.
3. Always fetch product pricing from the provided online source link; never rely on past figures in memory.
4. Stop for confirmation before sending reports or syncing files to connected tools.

Then run a sample file through it and verify the header shows the active time zone and exact 7-day calendar boundaries.

Troubleshooting and Verification Checklist

If your Bot still cites an old figure later, it leaned on memory instead of reading the file. Correct it directly: “Prices in memory are obsolete. Re-read the designated link and verify all figures against the live document.”

Double-check these five habits:

  • Passwords and private keys stay completely out of memory prompts
  • Date and schedule rules include an IANA time zone placeholder (ask first if missing) and require reporting active boundaries
  • The 7-day window explicitly covers today plus the previous 6 calendar days
  • Volatile numbers like pricing and inventory require fresh reads from live sources
  • Tested listing, editing, and forgetting memories directly in chat

Privacy settings

You can allow traffic measurement and masked interaction replays on selected pages. Choose either one in settings.

Essential features

Remember your choice, display preferences and protect the contact form. Always available.

Reducing permissions reloads this page to stop loaded trackers. Save any unfinished form first. Your choice is remembered for up to 180 days.