All jobs

Database Reactivation Texts to Past Customers

An HVAC company runs an agent each month that finds past customers who went quiet a year ago in LumisReach and drafts reactivation texts for the office to approve.

Run this on RushOpens the console with this prompt ready to send. Connect LumisReach there first.

What the agent does

This is for a heating and cooling company with a few technicians whose phone line is answered by an AI agent on a LumisReach number. Over a few years that line has talked to thousands of homeowners, and most of them called once, had a furnace or an AC unit fixed, and were never heard from again. Marketing agencies call contacting them again database reactivation: a short text to people who already know the company, offering the visit they are due for. Done as one blast it annoys people and ignores who agreed to texts. Done each month for the customers whose last visit was about a year ago, it fills the slow weeks with maintenance calls.

The office manager connects LumisReach once with POST /me/connections {"type": "mcp", "name": "lumisreach", "url": "https://mcp.lumisreach.com/mcp", "auth": {"mode": "bearer", "token": "<LumisReach API key>"}}, with a key made in LumisReach under Settings, Developer API. LumisReach's server takes an API key rather than a sign-in, so this is the company's own work on its own account, and every run names "connections": ["lumisreach"]. Texts draw on the LumisReach wallet, which needs a card under Settings, Billing; without one, a paid action is refused with 402 payment_required.

The first turn reads and drafts, and texts no one. The agent pages through list_contacts, which lists everyone the business has called, texted or emailed, most recent first, with per-channel counts. For each contact it reads list_calls and list_messages filtered to that contact_id to find the date of the latest call or text and what it was about from the call's summary and tags, and get_contact for the name, phone, notes, tags and consent. It keeps contacts whose last call or text was 11 to 13 months ago, whose call was about service at their home, and whose consent shows they agreed to hear from the company by text. Everyone else in that window is listed with the reason they were left out: no recorded consent, a do-not-contact tag, a commercial account, or a text thread that ended in an opt-out.

For each kept contact it drafts a first text of at most 300 characters in the company's voice: the name, what was serviced last year in the customer's own words from the summary, and the offer in the prompt. The office manager reads the list. Once they approve, the company's backend sends POST /o/{org}/sessions/{id}/messages with the approved contact ids, and in that turn the agent starts one start_ai_text_conversation per contact with its to_numbers, a goal to find a day and time window for the visit, the approved first_message and max_messages 6. A third follow-up two days later has the agent read get_quick_action_status for each job and list who asked for a visit, who declined and who opted out.

Start it with one API call

POST https://api.phoenix.so/o/{org}/sessions with this body:

{
  "agent": "claude",
  "input": "Prepare this month's reactivation texts for Ridgeline Heating & Air. Do not text or call anyone in this turn. 1) Page through list_contacts. For each contact, read list_calls and list_messages for that contact_id to find the latest call or text date and its summary and tags, and get_contact for name, phone, notes, tags and consent. 2) Keep contacts whose latest call or text was between 2025-11-01 and 2025-12-31, whose summary is about service at a home (furnace, heat pump, AC, thermostat), and whose consent shows they agreed to texts. List every other contact in that window under left_out with the reason: no recorded consent, tag do-not-contact or commercial or an earlier thread that ended opted out. 3) For each kept contact, draft a first text of at most 300 characters from Ridgeline Heating & Air: their first name, what we serviced last year in plain words from the summary, and this offer: a winter furnace tune-up with the same technician team, booked for a weekday in December or January. No prices, no discount, no urgency, no claims about their equipment. 4) Return JSON {window: '2025-11-01 to 2025-12-31', to_text: [{contact_id, name, phone, last_contact, last_service, first_message}], left_out: [{contact_id, name, reason}]} and write reactivation.csv with the same rows.",
  "connections": [
    "lumisreach"
  ]
}
  1. 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.
  2. 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.
  3. 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

A list of past customers due for a check-in comes back, each with a drafted first text. Each row has the date of their last call and what it was about, and a second list names the contacts in the same window that the agent left out and why. Both are in reactivation.csv, for the office manager to read before anything is sent.

The office manager checks consent before content. A contact with no recorded consent is left out even when they were a good customer, because LumisReach's own guidance is to text only people who have agreed to hear from the business. Then the drafts: a summary that misread a call can put the wrong appliance in a text, and that row is fixed or dropped. Only the contacts the manager approves are sent in the follow-up turn.

After the texts go out, LumisReach honours STOP on its own and ends the thread, adds opt-out wording to the first message to a new recipient, and sends from a shared number on its approved 10DLC campaign. The two-day follow-up turns each conversation into a row for the office: asked for a visit with the window they gave, declined, no reply, or opted out. A person books the visit; the text agent collects a day and time window and promises no appointment.

Run it on every month, for customers last seen a year ago

On the first weekday of each month the company's scheduler calls POST /o/{org}/sessions with the window of last year's same months in input and a request_id that is a UUID v5 of the company and the month, so a retried job starts no second list. The session stays parked between turns, so the approval and the two-day check are follow-ups to the same session, with the first turn's list still in front of the agent.

The window moves forward a month at a time, so each past customer comes up once a year at most, and a contact who opted out shows up in left_out every time after.

The use case this job follows, with its automation and trigger: Draft outreach from your CRM.

Why run it on Rush?

The LumisReach key sits in Rush's connection, not on the office computer, and reaches a run only when the run names it. Splitting the job into turns keeps the agent from texting anyone until a person has read the list: the first turn's prompt forbids it, and the approval arrives as its own message with the contact ids in it, which the transcript shows beside what was sent.

Each run has its own computer and a record of every list_contacts, get_contact and start_ai_text_conversation call with its arguments, so when a customer asks why they got a text, the office can show the consent and the last call it was based on. The session's cost covers the model's reading and drafting; LumisReach bills the texts to its own wallet.

Frequently asked questions

What is database reactivation?

Contacting people already in a business's records who have not bought in a while, to offer something they are likely due for. For a heating and cooling company that is usually a seasonal tune-up for customers whose last visit was about a year ago.

Who decides who gets a text?

The office manager. The agent keeps only contacts whose LumisReach record shows consent to texts and lists everyone else with a reason. Nothing is sent until the approval message names the contact ids, and the rules for marketing texts where the company operates are for the company to follow.

Can the text agent book the appointment?

In this prompt, no. Its goal is to learn whether the customer wants a visit and which days and times suit them, and the office books it in its own scheduling system. That keeps the booking with the person who knows the technicians' calendar.

What if a customer replies STOP?

LumisReach honours STOP automatically and ends the thread, and the status of that contact's job reads opted out. Next month's run sees the opt-out in their message history and leaves them out.

More LumisReach jobs

More jobs like this: Draft outreach from your CRM

Keep reading