Setup
Files
Slack at
/slack and Google Drive at /gdrive, read-only. A Sheet or Doc is a JSON file.Credentials
Five keys the Mirage server holds. The agent never sees them.
mirage CLI, Slack, Google and Notion accounts, two files in
Drive, and five keys.
Accounts and files
Accounts and files
Set up three accounts, and export five keys:
In Google Drive, make a folder named
Onboarding with two files:-
Onboarding tracker, a Sheet with the columnsCustomer,Seats,Start,Account managerandPlan, and a row for each customer. -
Onboarding plan template, a Doc with{{customer}},{{seats}},{{start}},{{manager}},{{goal}},{{champion}}and{{kickoff}}where the values go:
Installation
Installation
- pip
- npm
workspace.yaml
workspace.yaml
workspace.yaml mounts Slack and Drive read-only, keeps /workspace in
memory, and installs the three CLIs. Each credential is read from the
server’s environment:workspace.yaml
mirage daemon restart
stops a server that started without them.
Example
In this example, a deal closes and the CRM posts it to the#deals-won
channel in Slack. The agent starts the onboarding. It picks an account
manager from a tracker in Google Sheets, fills in a plan in Google Docs,
adds the customer to the tracker, opens a project in Notion and replies to
the team in Slack. The CRM posted this in Slack:
Deal won: Northwind Health · 120 seats · start 2026-12-01 · champion Priya Shah (priya@northwind.example) · goal: move clinic scheduling off spreadsheetsThese are the commands the agent runs, in the terminal Setup created. Your agent sends each one with
mirage shell, or through MCP, the
HTTP API, RPC or SSH.
1
Read the deal from Slack
A Slack channel is a folder under It finds Northwind Health, 120 seats, starting 2026-12-01.
/slack, with a folder for each day.2
Pick the account manager
The tracker Sheet is a JSON file under Mei Chen has the fewest seats, so the deal goes to her.
/gdrive, so jq adds up the seats each manager has.3
Write the plan
gws copies the plan template Doc and fills in its placeholders.4
Add the customer to the tracker
5
Open a project in Notion
The agent writes the page to a file, puts in the plan’s link, and A project page with a link to the plan and a kickoff checklist.
ntn creates it.6
Tell the team
slack replies in the thread of the CRM’s message.Full commands
Full commands
Each line runs in the agent’s terminal with
mirage shell, which keeps
variables such as $plan from one call to the next.