An approval-gated AI agent does the reading, the thinking and the drafting, then stops and waits for a person before anything is sent, published or spent. I am an AI automation engineer in the Philippines, and I have run my own work this way since July 2026. The gate lives in code. A prompt that says “ask first” is not a gate.
What the gate looks like on WhatsApp
My chat agents read client groups and draft replies. The WhatsApp side started from an open-source bridge, and I added the sending rules on top.
- Every outgoing message is a stored draft. The bridge saves the recipient, the exact text and a SHA-256 hash of any attachment.
- A draft is single-use. Once it is sent, or the send fails, it is spent.
- A change voids it. A different recipient, a different word or a different file needs a new draft. If the attachment’s hash changes, the draft is marked invalid.
- Approval is checked outside the AI. A hook reads the conversation before the send tool runs. The last thing I typed has to be a plain send phrase, typed after the full draft was shown to me with its recipient.
- A failed send is never retried blind. The draft is closed with a state that says check the chat first.
- One machine owns sending. I work on two laptops. A local file names which one may send, so they cannot both answer.
- Drafts expire. After 24 hours an unsent draft is gone.
The bridge listens only on the local machine, and its old open send route is closed.
The five patterns I reuse
The same ideas show up in every system I build.
- Draft, then approve. WhatsApp replies, job applications from Joven, and email. The agent prepares, a person releases.
- Allowlist plus an exact phrase. My GHL workflow kit only writes to accounts on its allowlist, and only when it is given a confirmation phrase that names the operation, the account and the workflow. A loose “yes” cannot push a change through.
- Back up, then read back. Before the kit changes a workflow it saves the current one. After the write it reads the result from the CRM again and compares. Publishing is a separate step.
- Read-only by construction. The tool that reads my own Telegram has no send, delete or mark-read function at all. The safest permission is the one that was never written.
- A hard stop on spend. A written budget is not a limit. The agent reads the account’s real usage counter before each paid call and stops when the number is reached.
What each channel is allowed to do
| Channel | What the agent can do |
|---|---|
| Draft. Sends after my go | |
| Slack | Sends after my go, then reads the message back to confirm it landed |
| Telegram, my own account | Read only |
| Reads the inbox. Sends on a go or a button tap | |
| CRM workflows | Saves drafts. Publishing needs the allowlist and the phrase |
Where I let agents send on their own
Not everything waits, and I would rather say so than pretend. Alerts, reminders and a daily community roundup send by themselves, because the worst outcome is a repeated post.
I have also opened the gate twice for chats where the owner asked for automatic replies. One is a single allowlisted group with an expiry date, a 600 character cap, a list of blocked words and a log of every reply. The other sends delayed replies in one client’s chats. Both were decisions by a person, written down, and neither changes the default.
The failures that wrote the rules
Each rule above exists because something went wrong first.
- A duplicate send from doing two things at once. The agent rechecked the chat and sent in parallel. The fix: recheck, then send, in that order, one message at a time.
- A batch that half failed. Four drafts went out together. The main note failed and three captions arrived without it. Batches now send one by one and stop on the first failure.
- A timeout that was not a failure. An email send timed out, was treated as failed and was sent again. The person got it twice. A timeout now means check, not retry.
- A go given too early. I approved before the draft existed. The hook refused it, which is what it should do.
- A message I had already typed myself. I answered on my phone, and the agent then sent the approved draft too. The chat is now re-read right before every send.
- A budget that was only words. A written cap of 7,500 characters on a paid service ran to 64,704 before anyone looked. That is where the counter check came from.
- A reply that was queued instead of sent. Go now means send now.
How to add a gate to your own agent
- Put the check in the tool, not in the prompt.
- Approve a fixed thing: this text, to this person, with this file.
- Make the approval expire and work once.
- After a write, read the result back from the real system.
- Decide per channel what may send alone, and write the limits down.
Getting started
If you want agents that work inside your own chats and tools with these rules around them, send the project brief. I reply with a written plan, then we continue on WhatsApp. The service page is AI agents and custom MCP servers, and the wider method is in my guide to MCP servers.