Connect your AI without giving it the keys: set the gates first
Before Claude or ChatGPT makes its first request, set the gates. Which StoryOS moves are held, gated once declared, or not gated, and the steps.
You want Claude or ChatGPT to do real work on your customers, jobs and invoices. You also fear the wrong email going to a customer, or a delete you did not mean. The answer is not to keep the AI out of your data. It is to decide what needs your yes before the AI asks for anything.
StoryOS is the one place a small business’s real things live (customers, jobs, orders, invoices), so you run the business and your own AI does the work inside it. A gate is a rule that holds one kind of action until a person decides. Below are the steps to set before the first request, in the product’s own words, and a table of which moves are held. Not connected yet? The three connection steps are in Connect Claude or ChatGPT to your real business data.
What is a gate, and why set it before the first request?
A gate holds an action until a person decides. It is enforced by the platform, not by the prompt, so an AI that ignores its instructions still cannot get past one. Set gates before the first request because some are on by default, some exist only once an admin declares them, and some moves are not gated at all.
The prompt on our connect page ends by telling the AI to ask before it deletes anything or sends anything outside StoryOS. That is a request, and it is worth keeping. A gate is different: it does not depend on the model remembering anything in a long chat. For the wider picture, see What an AI needs from your business software.
Which moves does StoryOS hold, gate or leave open?
It depends on the move. An email to an outside address is held by default. A delete is held only after an admin declares a delete gate. A field change through your own Claude or ChatGPT connection is not held. An email to a colleague in your workspace is not held either. The table has the rest.
“Gated by default” means the hold is on until someone turns it off. “Gated once declared” means nothing holds the move until an admin sets the gate. “Held” means the move waits in your Inbox as an approval.
| Move | Status today | What holds it, and who sets it |
|---|---|---|
| Email to a customer, sent by an automation rule | Gated by default, held in the Inbox | If nobody has set the rule’s approval, StoryOS checks the recipients when it runs: one outside address and the send waits. Only an admin can save it with approval off. |
| Email where every recipient is in your workspace | Not gated | It sends straight away unless the rule’s approval is on. An agent’s own approval policy can be set to hold it too. |
| Slack message, webhook or API call fired by a rule after an agent on a Runner changes a record | Held in the Inbox | Held whatever the rule says. A change made with an ordinary personal access token is not covered; the rule’s own setting decides. |
| Delete records, by an agent, an automation, an API token or a connected AI | Gated once declared, then held | An admin declares the delete gate through the API, for the workspace, a space or a database. Until then your role decides, unless a hired agent on a Runner has a policy that holds deletes, and a deleted record goes to the trash. A person clicking in the web app is never held. |
| Delete a whole database | Gated once the delete gate applies | Held as one approval covering every live record in it. Deleting a space that contains a gated database is refused. |
| Delete a comment, attachment or document | Not covered by the workspace delete gate | Held only for an agent on a Runner whose Approval policy lists delete. A deleted comment has no trash. |
| Change a field, or create a record | Not gated by default | Held only if an admin gates an agent’s creates and updates, through the API or by ticking Changing a record on the Hire an agent card. That covers an agent, not your own connection. A wrong field name or option is refused either way. |
| Invite someone to the workspace | Not an approval gate; admin only | Inviting belongs to the admin role. The docs’ list of tools for your AI has only read-only ones for members and invites, and no invite tool. |
| Approve a held move, or change a gate | Not open to the AI | Only a person in the Inbox can approve or reject. Your AI can’t approve its own held actions or change your approval gates. Automation rules are an admin surface, so an admin’s connected AI may be able to edit a rule, including its approval setting; connect from a non-admin account if that matters. |
| Outbound webhook subscription, Google Calendar linked to a database | Not gated | An admin fixed the destination in advance, so these run as configured. |
Every cell was read, not measured. We took each from the approvals page, the agents page and the approval gates docs on 11 November 2026, plus the docs on automations and on access and roles. We have not clicked every row through on a live workspace; step seven lets you do that on yours.
The safety net under the delete rows: a deleted space or database waits in the Trash for 30 days.
How do I set the gates before the first request?
Seven steps, in this order: choose the role you connect from, declare the delete gate, check your email rules, set each agent’s approval policy, connect to one workspace, ask your AI to read the gates back, and try one delete on a throwaway record. Step two needs an admin and is an API call today.
-
Choose the role you connect from. A connection is limited by your own role and space grants on every request, so it reaches no further than you do. Only admins manage members and invites; members create their own personal tokens. If a teammate is not an admin, connecting from their account gives the AI less to reach.
-
Declare the delete gate. An admin sends one request to the API, with the action class
delete_records, an optional space or database, and a named approver:POST /api/v1/workspaces/{ws}/action-gates { "action_class": "delete_records", "database_id": "<optional>", "approver_id": "<a person>" }The most specific scope wins: a database’s gate beats its space’s, which beats the workspace’s. The approver is a person, notified when something is held. There is no settings page for this yet, and your AI has no tool to declare it for you. If you do not make API calls yourself, hand this one step to someone who does.
-
Check every rule that sends email. Open Buttons & automations on the database and read the Automation rules tab. For each rule with a send email action, leave approval on. Any member can turn it on; only an admin can turn it off. In the demo below, the third rule is the one to check: it sends the email.
Three rules on one database. Only the last one sends an email. -
Set each agent’s approval policy. If you hire an agent that runs on a Runner, the Hire an agent card has four Asks before boxes (three unless you are an admin, because Changing a record is admin-only), all ticked to begin with: Sending an email, Anything that leaves the workspace, Changing a record and Deleting anything. Untick only what you trust the agent to do alone. An agent you hire on this card starts switched on; an agent that comes with a template installs switched off, so read what it does before turning it on.
-
Connect to one workspace. On the Allow page, choose the one workspace the AI needs instead of all of them. Connectors have no read-only switch. To keep your AI away from some tools, switch them off in Claude or ChatGPT, or connect with a personal access token capped at read. The AI apps list (Settings → Connect your AI) shows each connection; Disconnect ends one immediately.
-
Ask your AI to read the gates back. Try: “Which gates are declared in this workspace, and which agents have write gates?” From an admin account it can read both lists, not change them. An empty answer means step two has not happened yet.
-
Try one delete on a throwaway record. Make a record you do not care about and ask your AI to delete it. With the gate declared, nothing is deleted: the tool reports that an approval is pending. The AI should tell you so and not retry. Open the Approvals tab in your Inbox, read the card and reject it with a reason. Then ask for a field change on another throwaway record. That one goes through unless you gated it, as the table said.
What happens to a held move, and who decides?
A held move waits in one Inbox, whichever rule held it. Nothing is applied until a person approves, and approving applies exactly the values that were staged, nothing added afterwards. Rejecting discards them, with an optional reason. Your AI can see what is waiting, but it cannot approve itself, and a token or connected AI that tries is refused.
What a held move looks like: the email is staged, and a person chooses Approve or Reject.
The card names what caused it: the agent and the run, or the person. A decision is final: pressing Approve twice changes nothing, and the opposite decision on the same approval is refused.
What does this not do?
It does not gate everything. Delete gates are declared through the API today, there is no page for them, and only deletes of records can be declared. Gates on changes cover an agent, not your own connection. Some outward actions are not held. Reading the table once is not the same as testing it, so test it on your own workspace.
- Not every outward action is held. Emails to members of your workspace and destinations an admin fixed in advance, such as outbound webhook subscriptions and Calendar, are not. The approval gates docs list the details, including a known gap.
- Your own connection’s changes are not held by the agent gates. What protects you there is your role, the check that refuses a wrong field, and the record: AI changes are recorded as an AI’s, under your name.
- Undo is uneven. A deleted record can be restored from the trash for 30 days, and a bulk update through MCP returns a list the AI can use to undo it. A deleted comment has no trash. How far back record history goes depends on your plan.
- The Runner works with Claude Code only, on a computer that has to be on and signed in. The hold on outward actions that an agent’s write fires applies to an agent on a Runner.
- An approval policy has to be set. An owner who leaves it empty has no gate on that agent.
Frequently asked questions
Can Claude or ChatGPT delete my records without asking me?
Only if you have not declared a delete gate. Without one, your AI can delete whatever your role lets you delete, and a deleted record goes to the trash. With one, nothing is deleted: the tool reports an approval pending, and a person decides in the Inbox.
Can my AI turn a gate off or approve its own request?
No. Approving and rejecting need a person signed in to the app. A request from a token or a connected AI is refused, even if the token belongs to an admin, and MCP has no approve tool. Your AI can read the declared gates and has no tool to change them.
Is telling the AI “ask me before you send anything” enough?
It helps, and it is not a gate. An instruction depends on the model following it in every chat. A gate sits in the platform and holds the action whatever the model decides. Use both: the sentence for manners, the gate for moves you cannot take back.
Can I connect my AI read-only?
Not through a connector, which has no read-only switch. You can switch tools off inside Claude or ChatGPT, or connect with a personal access token capped at read.
Run your business on StoryOS.
Open source, self-hostable, and it works with your own AI. Start on a free workspace.