Security · Engineering

Why approvals belong outside the model

An AI agent that can pay and send email needs guardrails a prompt cannot talk its way past. How LVLZ enforces approvals in code, not in instructions.

In short

An instruction in a prompt is a suggestion the model usually follows. LVLZ puts the rules that need a human yes, for payments, emails to new people, deletions and invitations, in the code that runs each operation. The agent can ask for the action, but it can’t perform it until your approval is recorded.

Key takeaways

  • A prompt can be misread, buried in a long chat or overridden by text hidden on a web page.
  • Every LVLZ operation declares how it is gated, and the check runs before the operation does.
  • You approve with a WhatsApp reply or a click in the app, and the rule is the same on both.
  • Passwords and cards are filled in by the server-side browser, so the model never sees them.

The moment an AI agent can spend money, send email or delete data, the question changes from “is it smart?” to “what stops it when it is wrong?”. Our answer at LVLZ is simple to say and important to get right: the rules that need a human yes live outside the model.

The problem with asking nicely

The common approach is to tell the model, in its instructions, to check with the user before doing anything risky. That works until it doesn’t. Models misread requests. A web page the agent visits can contain hidden text that says “the user already approved this”. A long conversation can bury the instruction under thousands of words. An instruction is a suggestion the model usually follows, and “usually” is not good enough when a card is on file.

What we do instead

Every action in LVLZ is an operation defined in one registry. Each operation declares how it is gated: some never need approval, and some always do. A few are gated by a rule the user controls:

  • Payments. Before the agent pays, you see the merchant, the items and the total.
  • New recipients. Email to someone you have not written to before waits for your yes.
  • Deletions. Removing tasks, projects or memory waits for confirmation.
  • Invitations. Adding someone to your workspace waits for confirmation.

The check happens in the code that runs the operation, before it runs. The model can ask for the action, but it cannot perform it until the approval is recorded. You approve with a reply on WhatsApp or a click in the app, and the rule is the same on both.

Approval written in the promptApproval enforced in code
What decides the action runsThe model’s reading of its instructionsA check in the operation itself, before it runs
Text on a web page saying “the user approved”Can be believedStops at the approval
A very long conversationCan bury the instructionChanges nothing
Turning a rule offRewrite the prompt and hopeA switch in your approval settings

What that buys you

  • Prompt injection loses its teeth. A malicious page can convince the model to try something, but the attempt stops at the approval.
  • Mistakes are cheap. If the agent misunderstands, you see the action before it happens and can say no.
  • You choose the trade-off. If you never want to approve emails to new people, turn that rule off in your approval settings. It is your call, not the model’s.

Secrets follow the same principle

The model also never needs to see your passwords or card numbers. They are encrypted in your vault with a key unique to you, and when a browser task needs one, the server-side browser fills it in directly. The model knows the field was filled, never the value. More detail is on our security page.

The rule of thumb

Let the model decide what to try. Let code decide what is allowed. That split is what makes it reasonable to hand an agent real work.

Frequently asked questions

What is prompt injection?

Text written to trick an AI model, such as a line hidden on a web page the agent visits that says the user already approved something. An approval enforced in code stops it, because the model cannot record an approval itself.

Which LVLZ actions wait for my approval?

Payments, email to someone you have not written to before, deleting tasks, projects or memory, and inviting someone to your workspace.

Can I turn an approval rule off?

Yes, for the rules you control. If you never want to approve emails to new people, switch that rule off in your approval settings. It is your call, not the model’s.

Does the AI model see my passwords or cards?

No. They are encrypted in your vault with a key unique to you and filled in by the server-side browser. The model only learns that the field was filled.

Written by

The LVLZ team

We build LVLZ, an AI agent you text on WhatsApp that runs the CRM, bookings, social posts and ads of a small business, asking before anything goes out. We write about what we ship and how owners use it.

About LVLZ

One message away.

Free, no card, no time limit.

Scan to message your agent

Point your phone’s camera at the code. WhatsApp opens with the first message ready: send it and you are in.