← View all articles
Grok BotAI Tutorials12 / 26

Reviewing External Actions: How to Check Commands Before Approving

Published Last updated

Why a Simple Prompt Cannot Replace True Permission Controls

The scariest AI scenario is simple: an unreviewed email goes out to a client, production records get altered, or an unexpected action runs silently. Many newcomers assume typing “never delete anything” in chat—or saving it to memory—locks the door.

Chat reminders and Bot memory are not real security locks. External webpages, incoming emails, and third-party outputs count as untrusted input that could contain hidden instructions. Before running terminal commands, calling apps, or operating the cloud computer, Grok Bot routes actions through an independent Auto Review check that can allow, prompt, or block—yet it does not guarantee a prompt card for every single risky move. Mandatory stops require explicit Ask first rules tested with safe data.

Understanding the Three Primary Card Actions

An approval card pops up only when Auto Review flags an action or an Ask first rule matches. It displays the exact operation and target path with three typical buttons:

  • Allow once: Approves this single step without creating a lasting rule.
  • Always allow: Runs the action and saves an automatic allow rule for matching future actions.
  • Deny: Rejects the action immediately; the Bot halts and waits for your next prompt.

Button wording shifts slightly by context: shell commands often show Allow / Skip, while custom review rules may show Allow / Not now.

Rule Limits and Conflict Resolution

In Auto-review settings, each account can save up to 20 Allow automatically rules and 20 Ask first rules (max 1,000 characters each). Whenever two rules conflict, Ask first always wins. Note that clicking Always allow once your 20 allow slots are full overwrites the oldest allow rule—and on team accounts, admin-enforced policies cannot be turned off by members.

Comparison of Approval Contexts

Trigger Source Response Timeout Card Action Options Outcome on Inaction or Interruption
Interactive chat message No timer; waits indefinitely Allow once, Always allow, Deny Sending a new message or changing settings closes the card with an Expired label
Scheduled routine or background job Expires after 30 minutes Allow, Deny, or context-specific choices Card expires automatically, preventing unreviewed background execution
Shared Bot or group conversation Only the requesting member can approve Group cards disable Always allow; private chats offer standard options Other teammates see an awaiting-approval indicator without authorization buttons

Setup and Safe Instruction Template

Before wiring up live accounts, store passwords and API keys inside Secure Form cards or Vault—never raw chat. Practice approval rules inside an isolated cloud test folder first.

Copy this safe verification prompt:

Please inspect the non-sensitive draft draft_report.txt in the isolated cloud test folder and create a copy named draft_report_backup.txt.
Notice: Operate strictly on this path. Pause and request human approval before executing any write or file copy action, explicitly detailing the target path and expected change. Do not perform any unlisted operations.

Practical Exercise: Testing Approvals with Mock Drafts

Never test guardrails on live databases or real inboxes. Walk through five steps with a dummy file:

  1. Open Settings > Auto-review and add an Ask first rule for creating or overwriting backup files inside your cloud test folder.
  2. Send the template prompt above in chat.
  3. Inspect the target path and command on the approval card when it pops up.
  4. If no card appears, stop and fix your rule rather than touching real files. Once it appears cleanly, click Deny first and confirm no backup file was created.
  5. Re-send the prompt and click Allow once to verify single-step completion.

Troubleshooting Common Issues

The most common surprise is finding Expired on a routine approval card. Routine cards time out after 30 minutes if nobody responds, safely aborting the step. Schedule sensitive routines during hours you are online, or have the Bot write a draft file first for later review.

Another risk is prompt injection hidden on external webpages. While Auto Review treats web pages as untrusted input, pairing critical actions with explicit Ask first rules gives real protection—if an approval card ever shows an unfamiliar URL or unrequested command, click Deny right away.

Verification Checklist

  • Passwords and API keys stay in Vault or Secure Form cards, never plain chat.
  • High-risk writes and outbound actions have explicit Ask first rules configured.
  • Target paths and parameters are checked carefully on every approval card.
  • Shared group chats leave approvals strictly to the teammate who issued the request.
  • All approval tests run against mock files in an isolated cloud folder.

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.