Documentation Index
Fetch the complete documentation index at: https://docs.gainable.dev/llms.txt
Use this file to discover all available pages before exploring further.
Two scopes
Every Autopilot agent runs in one of two scopes. The choice is permanent for the playbook (changing it means a new playbook) and it determines who sees the work, who approves it, and what data the agent reads.| Scope | Runs as | Sees | Drafts go to |
|---|---|---|---|
| App-wide | The org | All app data within configured guardrails | The owner field on each record (e.g. deal.owner) |
| Personal | A specific user | Only data the user has RBAC access to | That user’s Autopilot inbox |
App-wide agents
App-wide agents act on behalf of the org. They watch all relevant data, apply objectives at scale, and route drafts to whichever user is the configured owner of each record.Use for
- Stalled-deal chasers. One playbook, scoped to all deals. Drafts route to each deal’s owner.
- SLA enforcers. One playbook, scoped to all tickets. Escalations go to the team lead and the assigned owner.
- Inventory watchdogs. One playbook for the whole catalog. Reorder drafts go to the operations owner.
- Digest publishers. One playbook that produces an org-wide digest sent to a channel or distribution list.
Permissions
App-wide agents read every record their guardrails allow. The runtime enforces field-level scoping (no PII unless explicitly granted), tool-level scoping (nosend_email unless allowed), and recipient-level scoping (no external email unless the recipient class is allowed).
Visibility
Drafts and activity from app-wide agents appear in the Autopilot of the user who owns the underlying record. A stalled-deal draft for a deal owned by Sarah appears in Sarah’s inbox, not in everyone else’s.Personal agents
Personal agents act on behalf of a single user. They run inside that user’s RBAC boundary. They draft only to the user. They see only what the user is allowed to see.Use for
- Daily briefings. “My pipeline this morning.” Per-user, per-timezone.
- Personal follow-ups. “Remind me to follow up on these three deals next week.”
- My-queue summaries. “Top 5 things on my plate today.”
- Anything that’s about me, not us.
Permissions
A personal agent inherits its owner’s permissions. If the user can’t read a record, the agent can’t either. If the user has read-only access to a collection, the agent can’t write to it. The user is the upper bound on the agent’s authority.Visibility
A personal agent’s drafts appear only in its owner’s Autopilot inbox. No one else can see them, including admins (except in the action log for audit purposes).Choosing scope
| Question | Answer |
|---|---|
| Should a manager review work for their team? | App-wide, scope drafts to the manager |
| Should each user see their own drafts and no one else’s? | Personal |
| Does the work cross multiple users’ records? | App-wide |
| Is this “for me” rather than “for the team”? | Personal |
| Is the data sensitive enough that only the user should see it? | Personal |
Boundary rules (non-negotiable)
These rules are enforced by the runtime, not by the playbook author.- A personal agent never sees data its owner can’t see. RBAC is the floor.
- A personal agent never drafts to anyone but its owner. Cross-user drafting is app-wide territory.
- A personal agent’s outputs are private by default. Activity surfaces in the owner’s Autopilot, not the org-wide feed.
- An app-wide agent runs as the org, not as a user. No “I’ll just elevate myself” path.
- An app-wide agent honors record-level ownership for routing. A draft about Sarah’s deal goes to Sarah, not the whole sales team.
- External recipients are bounded by allow-lists. Both scopes. Neither can email outside the configured allowed domains without explicit graduation.
- The action log is the source of truth for both scopes. Personal agents log to a private slice; app-wide agents log to the org slice. Admins can audit; users can’t read each other’s logs.
Mixed-scope playbooks
You can’t have one playbook that’s both app-wide and personal. You can have two playbooks that share a template:- An app-wide stalled-deal playbook that routes drafts to deal owners
- A personal “my stalled deals” playbook each user can opt into for richer per-user reasoning
Examples
App-wide example
Personal example
Best practices
Default to app-wide for cross-record work
Default to app-wide for cross-record work
If the playbook reasons about more than one user’s records, app-wide is almost always the right scope.
Default to personal for self-directed work
Default to personal for self-directed work
Daily briefings, my-queue summaries, and on-demand drafts belong in personal scope.
Don't try to share state across scopes
Don't try to share state across scopes
Test scope boundaries with simulation
Test scope boundaries with simulation
Simulate on last 30 days shows you exactly which records and which users would have been touched. Use it to verify the boundary is where you think it is.
Learn more
Overview
What Autopilot agents are
Playbooks
Where scope is configured
Inbox
Where drafts surface, scoped accordingly
Action log
The audit trail, sliced by scope