Email parser Twilio integration for SMS lead alerts and replies
An email parser Twilio integration reads an incoming email, pulls out the phone number and the details that matter, and hands them to Twilio to send a text. With ParsedMail you forward lead, order or alert emails to an inbox address, a language model returns typed JSON with a phone field in E.164 format and a confidence score, and a Zapier, Make or n8n step (or your own webhook handler) calls the Twilio Messages API. A portal lead can get its first text in under a minute, without anyone opening the email.
Parse an email above, then compare plans and pricing or read the API docs.
Why text from parsed emails instead of the raw email
Most lead portals, booking engines and monitoring tools still notify you by email. The phone number sits somewhere in a block of text, often in a different place for each sender. A forwarding rule that pushes the whole email into an SMS gives the recipient 900 characters of noise and costs several message segments. Parsing first means the text says exactly what the person needs, such as "New lead: Dana Ruiz, 3 bed in Austin, call +15125550147", and the customer gets a reply addressed to them by name.
Speed is the commercial reason. A buyer who filled in a form on three portals usually talks to whoever answers first. Agents and dispatchers who use this route stop checking the inbox and start acting on a text. The same parsing powers the lead email parsing workflow that writes the lead into a CRM at the same moment the SMS goes out.
What the parsed email looks like before it reaches Twilio
Here is a real shaped example. A portal sends "New inquiry from Dana Ruiz about 418 Oak Ridge Dr, phone (512) 555-0147, wants a showing Saturday morning". The inbox schema asks for five fields, and ParsedMail posts this event to your webhook:
{
"type": "email.parsed",
"data": {
"id": "eml_7Hq2...",
"needs_review": false,
"confidence_avg": 0.97,
"data": {
"name": "Dana Ruiz",
"phone": "+15125550147",
"property": "418 Oak Ridge Dr",
"request": "Showing Saturday morning",
"source": "portal inquiry"
}
}
}
Asking for the phone "in E.164 format" in the field description is the important detail, because Twilio expects numbers like +15125550147 and rejects (512) 555-0147. The model normalizes the number as it reads it, and the confidence score tells you when it was unsure. The full payload and signature rules are in the webhook documentation.
Three ways to send the SMS
| Route | Setup time | Best for | What to watch |
|---|---|---|---|
| Zapier: ParsedMail webhook to Twilio Send SMS | About 15 minutes | Teams without a developer | Each run uses Zapier tasks, add a filter step on needs_review |
| Make or n8n: webhook module to Twilio module | About 20 minutes | Branching, for example text the agent and the customer | Router conditions for missing phone numbers |
| Your webhook handler calls the Twilio API | An hour with tests | High volume or custom routing | Verify the HMAC signature and dedupe on the Idempotency-Key |
The no-code routes are described in the Zapier integration and Make integration guides. For the code route, the handler is short. After checking the signature, send a POST to the Messages endpoint with To, From and Body, as shown in the Twilio Message resource reference:
if ($event['data']['needs_review'] === false && !empty($f['phone'])) {
$twilio->messages->create($f['phone'], [
'from' => '+15125550100',
'body' => "Hi {$f['name']}, thanks for asking about {$f['property']}. "
. "Can we confirm {$f['request']}? Reply YES.",
]);
}
Deliveries are retried 5 times over about 15 hours if your endpoint is down, and the Idempotency-Key header stops a retry from texting the same customer twice.
Common email to SMS workflows
| Incoming email | Fields parsed | Text sent |
|---|---|---|
| Real estate portal inquiry | name, phone, property, request | Instant reply to the buyer, alert to the listing agent |
| Web form or ad lead notification | name, phone, service, zip | Alert to the rep on rotation with a call link |
| Booking confirmation from a platform | guest, phone, date, unit | Check-in instructions the day before |
| Freight tender or load offer | lane, pickup date, rate, broker contact | Alert to the dispatcher on duty |
| Monitoring or system alert email | system, severity, message | Page the on-call person only for high severity |
Each row is a schema you write once. Real estate teams usually start with the first row, and the real estate lead parser comparison covers the portals that send these emails. Bookings and freight have their own pages for booking emails and freight tenders.
Compliance before you text customers
Texting a lead who asked to be contacted is normal practice, but US carriers require business numbers that send application to person traffic over 10 digit long codes to be registered for A2P 10DLC. Twilio explains the process in its A2P 10DLC guide. Register the brand and campaign before you go live, keep a STOP reply in the first message, and send alerts to your own staff from the same registered number. ParsedMail does not send SMS itself, so the number, the consent records and the message content stay in your Twilio account.
What it costs to run
ParsedMail Starter is $49 a month or $24 billed yearly for 1,000 emails and 300 attachment pages. Growth is $149 or $74 yearly for 5,000 emails and 2,000 pages and adds a review queue, so doubtful leads wait for a person instead of getting a text. Twilio bills its messages separately on your own account. A team that receives 400 portal leads a month fits Starter, and if one extra closed deal a quarter comes from replying first, the plan has paid for itself many times. If the leads come from search, the agency that runs the campaigns (for example Agencyseo) fills the top of the funnel, and fast replies decide how much of it turns into revenue. Every limit is on the pricing page.
Frequently asked questions
Can an email parser send SMS through Twilio?
How do I send a text when I receive an email?
Does ParsedMail send the SMS itself?
What happens if the phone number is missing or unclear?
Will a retry text the same customer twice?
Related
See your own email as JSON
Paste one into the demo, describe the fields and look at the result. No account needed.