AI agent that follows up with leads by text
How to put an AI agent on a real phone number so it texts new web leads within a minute, runs a short follow-up sequence and hands the conversation to a rep the moment the lead asks for a call.

It is 9:40 on a Tuesday night. Someone fills in the quote form on a roofing company's site, ticks the box that says they are happy to get texts, and puts the phone down. The rep sees it at 8 the next morning. By then the lead has filled in two more forms and is talking to whoever answered first.
An agent on a phone number closes that gap. The form submits, the agent texts within a minute, the lead answers from the couch and the rep walks in to a qualified conversation instead of a cold name in a spreadsheet.
What the first minute looks like
Your form handler posts the lead to your backend as it always has, and the backend now also calls POST /v1/messages from your AgentPhone number with a short opener: who you are, what they asked about, one question. The reply hits your webhook as an agent.message event with the thread's recentHistory, your model writes the next message and sends it on the same number. Nothing in that loop needs a human until the lead wants one.
curl https://api.agentphone.ai/v1/messages \-H "Authorization: Bearer $AGENTPHONE_API_KEY" \-H "Content-Type: application/json" \-d '{"number_id": "num_abc123","to_number": "+14155550199","body": "Hi Marcus, this is Priya from Ridgeline Roofing. Thanks for the quote request. Is the leak at the roof line or around a vent? Reply STOP to opt out."}'
Form handlers retry, and a lead who gets the same opener twice assumes you are a bot, so key the first send on your lead ID and skip it if that ID has already been texted.
The sequence
Two to five touches is the range that works. More than that and you are the roofing company that would not stop texting.
- Touch 1, under a minute: acknowledge and ask one qualifying question.
- Touch 2, next morning if no reply: a different angle. "Still interested in a quote on the roof? Happy to come by this week."
- Touch 3, two days later: last nudge, with an easy exit. "No worries if the timing is off. Reply anytime and I will pick it up."
- Touches 4 and 5 only if your sales team already runs that long by hand.
Each touch is another POST /v1/messages. Your scheduler owns the timing, the agent owns the words. Any reply stops the sequence and starts a conversation: an inbound agent.message for that conversationId cancels the scheduled touches.
Consent is captured on the form, not invented later
Carriers do not allow cold outreach by text. The lead has to have agreed. The clean way is a checkbox on the form next to the phone field, unchecked by default, that says they agree to receive texts about their request from your company and that message rates may apply. Keep a screenshot of that form. It is what the 10DLC registration asks for, and it is what gets the registration through rather than bounced.
Outbound texting from a US local number needs that 10DLC registration. We submit it from the dashboard and review it before it reaches the carriers. $25 once for a sole proprietor or standard brand or sole proprietor, $70 if you are a high-volume sender.
STOP and HELP are recorded per number and enforced on sends, so a lead who replies STOP is blocked on the next send without you writing that logic.
Handing to a rep
The lead writes "can someone just call me". Your model answers in the thread ("Yes, Dan will call you in the next ten minutes"), pushes the lead and the thread into your CRM or Slack and stops replying on that conversation. A flag in conversationState such as {"owner": "rep"} tells your handler to stay quiet on every later event. The rep keeps texting from the same number, so the lead never sees a second one.
If you would rather the agent place the call itself, POST /v1/calls dials the lead from the same number, at $0.13 per minute when your own model is on the line or $0.22 per minute hosted.
What it costs
| Item | Price |
|---|---|
| Number | $3 per month |
| Each touch sent | $0.02 per segment |
| Each reply received | $0.02 per segment |
| 10DLC registration | $25 once for a sole proprietor or standard brand (standard or sole prop), $70 high volume |
| Agent calls the lead from the number | $0.13 per minute, webhook mode |
| Number lookup before the first text | $0.009 per number |
Three hundred leads a month at an average of three touches and one reply is roughly $24 in messages plus the number. Prices are from the pricing page.
Where it fits
Home services, mortgage brokers, solar, auto dealers, insurance agencies, SaaS trials with a phone field. It is a poor fit for lists you bought or scraped. There is no consent there and the carriers will shut the number down.
FAQ
How fast can the agent text a new lead? As fast as your form handler calls the API, usually under a minute from submit. The message leaves on a real local number so replies come back to the same thread.
Do I need 10DLC registration for lead follow-up? Yes, for outbound from a US local number. AgentPhone submits it for you for $25 (sole proprietor or standard brand) and carrier approval usually lands in one to three business days. Replies from leads work before registration is approved.
What counts as consent for texting a lead? A clear, unchecked-by-default box on your form saying they agree to receive texts from you about their request. Keep a screenshot of the form for the registration.
How does the agent hand off to a salesperson? When the lead asks for a call or a person, your handler marks the conversation in conversationState, alerts the rep and stops auto-replying. The rep continues on the same number.
Can I run the follow-up over iMessage instead? Yes, on an AgentPhone iMessage line at $250 a month with nothing per message. For most lead volumes SMS at $0.02 a segment is cheaper, and the API and webhook are identical.


