What the agent does
This is for a heating, cooling and plumbing company whose phone line is answered by an AI agent on a LumisReach number after hours and when the office is busy, with dispatchers taking the rest. Most calls end well: a visit is booked or a question answered. Some do not. A caller with no heat hangs up while the agent reads out the service area, a landlord asks for a quote for three units and is told someone will call back, a caller's card fails during booking. Each of those is a job the company has already paid to attract. Every weekday morning before the trucks leave, an agent reads yesterday's calls and hands the dispatcher a list of the ones that need a person.
The office manager connects LumisReach once with an API key made in LumisReach under Settings, Developer API: POST /me/connections {"type": "mcp", "name": "lumisreach", "url": "https://mcp.lumisreach.com/mcp", "auth": {"mode": "bearer", "token": "<LumisReach API key>"}}. LumisReach's docs say a key made there is unrestricted and works on every tool, including the ones that place calls and send texts, so the prompt names the tools the agent may use and forbids the rest. Rush stores the key encrypted and never returns it.
On a run the agent calls list_calls with direction set to inbound and yesterday's time window. LumisReach returns each call, AI-answered and human, with a speaker-labelled transcript, an AI summary and tags. The agent reads the summary first and the transcript when the summary leaves it unclear whether the caller got what they asked for. It keeps calls where the caller wanted a visit, a quote or a callback and the transcript shows no time agreed: hang-ups mid-call, callers told someone would ring back, failed bookings and calls the AI agent could not answer. It also keeps calls under twenty seconds from a number that never called back, since those are often someone who heard a machine and gave up.
For each kept call it calls get_contact with the caller's number to get their name, address, notes, tags and consent status, and list_calls again filtered by phone_number to see whether they called back later or the office already called them. It sorts the list by urgency from the caller's own words (no heat, water on the floor, gas smell first; a quote for next month last) and drafts a two-line note for the dispatcher with what the caller asked for in their own words. It never calls start_ai_phone_call, start_ai_text_conversation, send_quick_text, send_sms or place_call, and never fetches a recording.
Start it with one API call
POST https://api.phoenix.so/o/{org}/sessions with this body:
{
"agent": "claude",
"input": "Morning callback list for Northside Heating & Plumbing. Yesterday was Monday 2026-11-23, time zone America/Chicago (00:00 to 23:59). Use the lumisreach connection. Allowed tools: list_calls, get_call, get_contact, list_messages. Never use any tool that places a call, sends a text or email, buys or changes a number, or fetches a recording. 1) list_calls with direction inbound for yesterday, every page. 2) Using each call's summary, tags and, when unclear, its transcript (get_call), keep calls where the caller wanted a service visit, a quote or a callback and no appointment time was agreed: hang-ups, 'someone will call you back', failed card or booking, questions the AI agent could not answer, and calls under 20 seconds. 3) For each kept call: get_contact by phone number (name, address, notes, tags, consent status) list_calls filtered by phone_number from yesterday to now, to see whether they called again or we called them, and list_messages for the same number to see whether they texted; drop callers who have since booked. 4) Rank urgency: 'emergency' for no heat, no hot water, water leaking or a gas smell; 'today' for a broken system with a workaround; 'this week' for quotes and maintenance. Return JSON only: {callbacks: [{urgency, caller_name (omit if unknown), phone, address (omit if unknown), called_at, handled_by ('ai' or 'staff'), what_they_needed (their own words, at most 25 words), why_not_booked, already_followed_up (true/false), consent_status (omit if unknown), call_id}]}, emergencies first, then by time of call.",
"connections": [
"lumisreach"
]
}- 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
What comes back is the callback list as JSON in the session's result, ranked emergencies first, with the caller's name and address where LumisReach has them, what they asked for in their own words, why the call ended without a booking, and whether anyone has already followed up. The office can show it on the dispatch screen or print it for the morning meeting, and the session's transcript keeps every list_calls and get_call answer the agent read.
What the dispatcher checks before calling anyone back: an emergency ranking based on a caller's words alone, by reading the summary or opening the call in LumisReach; a caller whose consent status says they do not want to be contacted; and a caller marked as not followed up whom a technician may have phoned from a personal mobile. The callbacks themselves are made by a person, from the office line.
Run it on every weekday morning
In the console, a Project automation with a schedule trigger, cron 30 6 * * 1-5 and timezone America/Chicago, runs a saved agent whose connections name lumisreach with this prompt. The schedule fills in no date, so the saved instructions say "yesterday, or since Friday when today is Monday" and the agent works out the window on each run, so Monday's run also reads Saturday and Sunday.
After a cold snap, when calls pile up through the afternoon, the office manager can start the same saved agent by hand from the console at lunchtime with "since 6:00 this morning" in place of yesterday.
The use case this job follows, with its automation and trigger: Produce a report or file, no repo.
Why run it on Rush?
The LumisReach key lives in Rush's connection, encrypted, rather than in a script on the office computer, and the agent only reads it through the tools the prompt allows. Because the key can place calls, keeping it out of laptops and spreadsheets matters more than usual; removing the connection stops every run at once.
Each run has its own computer and a record of every call it read, so when the owner asks why a caller with a leak was ranked 'this week', the dispatcher opens that morning's session and reads the summary and transcript the agent saw. The session's total_cost_usd sits beside the jobs the list recovered, which is the comparison the owner cares about.
Frequently asked questions
Does this need the LumisReach AI agent to answer calls?
No. list_calls returns AI and human calls, inbound and outbound, so a company whose staff answer most calls on LumisReach numbers gets the same list. The transcript and AI summary are what the agent reads in both cases.
Why not let the agent call the customers back?
A callback about a gas smell or a flooded basement needs a person who can promise a truck. The agent drafts the list and the notes; the dispatcher decides who goes first and makes the call.
Does the agent listen to recordings?
No. LumisReach's docs say fetching a recording is audit-logged, and the transcripts and summaries carry what the list needs. The prompt forbids get_call_recording.
What about texts?
The prompt allows list_messages, so a caller who hung up and then texted the same number is matched to their call and not listed twice.
More LumisReach jobs
More jobs like this: Produce a report or file, no repo
- Which Campaign Links Are Sending Visitors to a 404? A Marketing Agency's Weekly Check of Client Sites on Netlify (Netlify)
- Which Checkout Errors Did Shoppers Hit This Week? An Online Store's Monday Report From Axiom Logs (Axiom)
- Did Any Client's Contact Form Fail Yesterday? A Web Design Agency's Morning Check of Its Vercel Runtime Logs (Vercel)