What the agent does
This is for a landscaping and garden-design company that quotes every job in QuickBooks Online: a patio and planting scheme, a season of lawn care, a retaining wall after a storm. In spring and autumn it sends dozens of estimates a week, and the ones that are never answered are lost to whichever company called back first. The owner knows a polite follow-up wins some of them, and knows nobody has time on a Monday to work out which estimates to chase. The agent writes that list and the emails, and the owner sends them.
The owner connects QuickBooks once with POST /me/connections {"type": "app", "name": "quickbooks"} and signs in on Intuit's page, choosing the company. Rush's QuickBooks app asks Intuit for the com.intuit.quickbooks.accounting scope and reaches the QuickBooks Online Accounting API. The prompt keeps the run to the query endpoint, so it reads estimates and changes none.
On a run the agent sends SELECT * FROM Estimate WHERE TxnDate >= '2026-08-01' to the Accounting API's query endpoint, paging with STARTPOSITION and MAXRESULTS until it has every estimate from the last three months and a half. Intuit's schema marks TxnStatus as filterable only in QuickBooks Desktop, so the agent filters after reading: it keeps the estimates whose TxnStatus is Pending, and leaves out Accepted, Closed and Rejected. For each it records DocNumber, the customer from CustomerRef, TxnDate, ExpirationDate, TotalAmt, BillEmail and EmailStatus, and works out how long the estimate has been waiting and how long until it expires.
It sorts them into three groups by the company's own rules in the prompt: Expiring this week, Waiting more than ten days, and Recent, which it leaves alone. For each estimate in the first two groups it drafts a short email to the BillEmail address in the company's voice, naming the job from the estimate's lines and the date it expires, and offering a call. An estimate whose EmailStatus says it was never sent, or that has no BillEmail, goes in its own list, because the customer may never have seen it. The agent sends nothing and changes nothing in QuickBooks.
Start it with one API call
POST https://api.phoenix.so/o/{org}/sessions with this body:
{
"agent": "claude",
"input": "Use the QuickBooks connection. Today is 2026-11-16. Query every Estimate with TxnDate >= '2026-08-01' through the query endpoint, paging with STARTPOSITION and MAXRESULTS 1000. Keep estimates whose TxnStatus is Pending. For each record DocNumber, customer (CustomerRef name), TxnDate, ExpirationDate, TotalAmt, BillEmail, EmailStatus, days since TxnDate, days until ExpirationDate, and a one-line job description from the line items. Group: expiring (ExpirationDate within 7 days), waiting (more than 10 days old and not expiring), recent (the rest). Write estimates.csv with every pending estimate and its group. Write follow-ups.md with one draft email per customer in expiring or waiting, under 120 words, friendly, naming the job and the expiry date, signed Green Hollow Landscapes, offering a call on 555-0142. List separately estimates with EmailStatus NotSet or NeedToSend and estimates with no BillEmail. Read only: do not send, change, void or delete anything in QuickBooks.",
"connections": [
"quickbooks"
]
}- Get an API key. In the console, open Settings, then API keys, and create a key for your org. Send it in the Authorization header as a Bearer token.
- Send the request. POST the body in request.json to https://api.phoenix.so/o/{org}/sessions. The run starts in its own cloud sandbox.
- Read what came back. Follow the run on its live stream or wait for the run.completed webhook, then read the result and its trajectory.
What comes back
The session returns estimates.csv and follow-ups.md as artifacts. The CSV lists every pending estimate with its group, value, age and expiry; the Markdown holds one draft email per customer to chase, and a short list of estimates that were never emailed or have no address, which the owner deals with first because those customers may be waiting on the company.
What the owner checks before sending: that an estimate still marked pending was not accepted by phone or in person (update it in QuickBooks so it stops appearing), that the job description reads the way the customer would describe it, and that a customer with two estimates gets one email, not two. The owner sends each email from the company's own mailbox; nothing reaches a customer from the run.
Run it on every Monday morning
The owner saves the agent with POST /o/{org}/agents, naming the quickbooks connection and the grouping rules, and adds a console automation with a schedule trigger (0 7 * * 1 in the company's timezone). A schedule fills nothing into the prompt, so the saved instructions say "today" and "the last three and a half months" rather than fixed dates.
In the busy weeks of spring and autumn, a second schedule on Thursday catches estimates that will expire before the next Monday.
The use case this job follows, with its automation and trigger: Draft outreach from your CRM.
Why run it on Rush?
The QuickBooks sign-in can see every customer and every dollar the company has quoted, so it belongs in Rush's connection, refreshed by Rush, rather than in a spreadsheet macro or a token on the office computer. Each run reads QuickBooks as that sign-in, and a session's accounts names the QuickBooks company it read.
Each Monday's run has its own computer and a record of every query it sent and what its model calls cost, so the owner can see what the weekly list costs beside the jobs it helps win. When a customer says they never heard back, the session for that week shows whether their estimate was on the list and what the draft said.
Frequently asked questions
Why read three months of estimates instead of only pending ones?
Intuit's schema says TxnStatus can be filtered only in QuickBooks Desktop, so a QuickBooks Online query cannot ask for pending estimates directly. The agent reads estimates by date, which can be filtered, and keeps the pending ones itself.
Can the agent send the follow-ups?
It drafts them, and the owner sends them. A follow-up to a customer who already said yes on the phone, or who has just complained, does more harm than none, and the owner is the one who knows.
Will it mark lost estimates as rejected?
No. The prompt forbids changing anything in QuickBooks. When a customer says no, the owner marks the estimate rejected in QuickBooks, and it drops off the next Monday's list.
What if an estimate has no expiration date?
ExpirationDate is optional in QuickBooks. An estimate without one is never in the expiring group; it moves to waiting after ten days, so it is still chased.