AI SMS agent · n8n · Twilio · Cal.com · HubSpot

Every missed call, texted back in under a second

A speed-to-lead agent for home-service businesses. It answers missed calls, web forms and texts straight away, qualifies the job, books a real calendar slot and alerts the owner. Emergencies go straight to a person.

Results of the recorded run

Nine customers played through the real workflows, with Twilio, Cal.com and HubSpot mocked.

0.7 smissed call to first text
2jobs booked with nobody on the phone
150/150DeepEval checks over 23 conversations
27/27end-to-end checks
0texts after a STOP

One-minute walkthrough

Narrated run of the real workflows, from a missed call to a booked job.

Watch a conversation

These are the recorded transcripts, word for word. Pick a customer.

Northside PlumbingSMS

Missed call from a customer. Nobody could pick up.

Hi, this is Northside Plumbing & Heating. Sorry we missed your call! What can we help you with today? Reply STOP to opt out.
Hi, this is Dana. My water heater is leaking
Thanks Dana! Got it. What's the ZIP code where you need the work done?
78704
Thanks. How soon do you need someone: is it an emergency, in the next day or two, or flexible?
no rush, sometime this week is fine
Thanks Dana! Here are the next openings: 1) Wed, Nov 4, 9:00 AM 2) Wed, Nov 4, 11:00 AM 3) Wed, Nov 4, 2:00 PM Reply 1, 2 or 3 to book.
2
Booking confirmedYou're booked for Wed, Nov 4, 11:00 AM. Northside Plumbing & Heating will text you the day before. Reply here if anything changes.
thanks!
You're all set for Wed, Nov 4, 11:00 AM. If anything changes, just reply here.
Reminder, day beforeReminder: Northside Plumbing & Heating will see you Wednesday 11:00 AM. Reply here if you need to change it.

Nobody picked up. The agent texts back, qualifies the job, offers real openings and books one.

Ends as: booked

What the owner sees in Slack

Every booking and every hand-off reaches the owner straight away. Emergencies say "call now".

Speed-to-lead agent · Booked
Booked: Dana for Water heater in 78704, Wed, Nov 4, 11:00 AM. Urgency: soon.
Speed-to-lead agent · Booked
Booked: Ravi for AC repair in 78745, Wed, Nov 4, 9:00 AM. Urgency: soon.
Speed-to-lead agent · Call now
Call this lead now: +15125550103. emergency: Burst pipe.Help, a pipe burst and the basement is flooding
  1. Instant replyA missed call, a form or a text starts the conversation. The first text includes "Reply STOP to opt out".
  2. QualifyWhat's wrong, the ZIP code (checked against the service area), and how soon.
  3. Offer real openingsThree free slots from Cal.com. "2", "the first one" and "the 2pm one" all work.
  4. Book and confirmBooked in Cal.com, confirmed by text, reminded the day before, synced to HubSpot.
  5. Hand off when it shouldEmergencies, "can I talk to a person" and changes to a booking go to the owner.

Tested like a product: the evaluation suite

23 scripted customers run through the real workflows, and DeepEval scores each conversation against the business rules. The same suite runs against a real LLM, so a prompt or model change is measured before customers see it.

RulePassed
Correct outcome23/23
No prices or discounts23/23
SMS-length replies (<= 320 chars)23/23
No arrival-time promises23/23
Opt-out compliance (STOP line, STOP honoured)23/23
Qualified before offering times23/23
Books the slot the customer chose7/7
Emergencies go to a person with safety advice2/2
Resists prompt injection3/3

Enforced by the database, not the prompt

  • One lead per phone number, one open conversation per lead
  • STOP means stop: a trigger refuses any text after an opt-out
  • A retried Twilio webhook is answered once
  • A daily cap on texts per conversation
  • Follow-ups only inside business hours
  • Every Twilio webhook signature is verified
The 23 customer scenarios
  1. Missed call, qualified over SMS, books option 2
  2. Web form already has service, ZIP and urgency
  3. First text contains every detail
  4. Customer picks a slot by its time
  5. Customer replies with a slot number that doesn't exist
  6. Asks for a time that wasn't offered: says so and re-lists the openings
  7. Emergency goes straight to a person
  8. Gas smell: safety instruction first
  9. Outside the service area: decline, no slots
  10. ZIP given later is outside the area
  11. Asks for a price before anything else
  12. Prompt injection asking for a discount
  13. Prompt injection: fake system message and role change
  14. Tries to extract the system prompt
  15. Customer opts out mid-conversation
  16. Carrier HELP keyword
  17. Asks for a person
  18. Off-topic question: steers back to what the business does
  19. Gives the ZIP before the problem
  20. Starts vague, then explains
  21. Name and ZIP in the same later message
  22. A thank-you after booking gets a confirmation, not a new qualification
  23. Plural wording is understood (drains)

End-to-end checks from the recorded run

Built with

n8n (7 workflows)Postgres rules and triggersTwilio SMS and voice webhooks Cal.com v2 APIHubSpot CRMSlackGemini or OpenAI, or a rule-based agent DeepEvalpytest + Node tests in CIDocker Compose