Voice

Grok phone secretary

Answers with Grok, can create leads, and transfer live calls to employees (Twilio Dial) when the directory is set. Google Voice still needs to forward into Twilio.

Twilio status

Compliance under review — transfer code is ready; live dial waits on Twilio approval + public webhook.

  1. Buy a Voice number (~$1.15/mo)
  2. Webhook POST → https://YOUR_HOST/api/voice/incoming
  3. Test call · then forward your 2014 Google number

Until then: use the simulator below (try “Can I speak to Matt?”). Guide: TWILIO-SETUP.md

Employee transfer directory

Transfer: configuredDefault: Matt
NamePhoneAliases
Matt+194***3873matt, matthew, owner, boss, manager
Matthew+194***3873matthew, matt, owner, boss, manager
Andy+176***6206andy, andrew
# apps/marketing-account/.env.local
SECRETARY_TRANSFER_ENABLED=true
SECRETARY_TRANSFER_DIRECTORY=Matt:+1949XXXXXXX,Joe:+1949XXXXXXX,Office:+1949XXXXXXX
SECRETARY_TRANSFER_DEFAULT=Matt
SECRETARY_TRANSFER_TIMEOUT_SEC=25

Caller says “speak to Matt / Joe / owner / dispatch” → Grok matches directory → Twilio <Dial> rings their phone. If no answer (~25s), caller hears a callback message.

How it works with your Google number

  1. Keep your Google Business / Google Voice number as the public listing number (customers still dial the same digits).
  2. In Google Voice (or your carrier): forward unanswered or all calls to a Twilio number (≈$1/mo + per-minute).
  3. Twilio Voice webhook → this app: /api/voice/incoming then /api/voice/gather
  4. Grok classifies the call (quote / schedule / emergency), speaks a reply (Twilio TTS), and logs a lead on Prospects.
Twilio env: not set yetXAI: ready

Env when you go live: TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN, public HTTPS URL (ngrok or Vercel) for webhooks. Until then, use the simulator below.

Practice simulator (works now)

Type what a caller would say. Grok replies and can create a prospect.

Scripts on file

Main greeting
Hi, thanks for calling SweeperGuys. For rates, press 1. For sales and H O A's, press 2. For construction questions and scheduling, press 3. For Spanish, press 9.
Quote intake
Happy to help with a quote. I'll need: job city, type of work (track-out, lot, street), approximate hours or area size, and preferred day/night.
Typical regenerative air is around $175/hr, mechanical broom $185/hr, power wash around $205/hr — often a 4-hour minimum.
What's the city and job type?
Urgent / storm
Understood — if this is an urgent track-out or storm debris issue, I'll flag it for same-day callback.
Please share the address/city, site contact name and number, and what you need cleared.
Human handoff
I'll have a SweeperGuys team member call you back shortly. What's the best number and a short note for them?

Call log 20

WhenFromIntentStatusSummary / reply
7/21/2026, 8:55:37 PM
+19494846315
quoteai_handled
Menu · rates · en · regen/mech + 4hr min
Our current rates from the rate sheet: Regenerative air sweeper is 175 dollars per hour. Mechanical broom sweeper is 185 dollars per hour. There is a minimum 4 hour charge.
7/21/2026, 8:51:37 PM
+19494846315
quoteai_handled
Menu · rates · en · regen/mech + 4hr min
Our current rates from the rate sheet: Regenerative air sweeper is 175 dollars per hour. Mechanical broom sweeper is 185 dollars per hour. There is a minimum 4 hour charge.
7/21/2026, 7:19:35 PM
+19492263873
transfertransferred
Transfer completed (employee answered)
7/21/2026, 7:19:17 PM
+19492263873
schedulingtransferred
Menu · construction/scheduling → Matt · en
Connecting you to construction and scheduling with Matt. One moment.
7/21/2026, 7:18:46 PM
+1
schedulingtransferred
Menu · construction/scheduling → Matt · es
Lo comunicamos con construcción y programación, Matt. Un momento.
7/21/2026, 7:18:27 PM
+1
otherai_handled
Menu · switch to English
Hi, thanks for calling SweeperGuys. For rates, press 1. For sales and H O A's, press 2. For construction questions and scheduling, press 3. For Spanish, press 9.
7/21/2026, 7:18:26 PM
+1
transfertransferred
Menu · sales/HOA → Andy · es
Lo comunicamos con ventas, Andy. Un momento.
7/21/2026, 7:18:26 PM
+1
quoteai_handled
Menu · rates · es · regen/mech + 4hr min
Nuestras tarifas actuales: Barredora de aire regenerativo, 175 dólares por hora. Barredora mecánica de cepillo, 185 dólares por hora. Hay un cargo mínimo de 4 horas.
7/21/2026, 7:18:26 PM
+1
otherai_handled
Menu · Spanish (press 9)
Gracias por llamar a SweeperGuys. Para tarifas, oprima 1. Para ventas y asociaciones de propietarios, oprima 2. Para preguntas de construcción y programación, oprima 3. Para inglés, oprima 8.
7/21/2026, 7:13:05 PM
+19492263873
quoteai_handled
Menu · rates · regen/mech + 4hr min
Our current rates from the rate sheet: Regenerative air sweeper is 175 dollars per hour. Mechanical broom sweeper is 185 dollars per hour. There is a minimum 4 hour charge.
7/21/2026, 7:12:14 PM
+1
schedulingtransferred
Menu · construction/scheduling → Matt
Connecting you to construction and scheduling with Matt. One moment.
7/21/2026, 7:12:14 PM
+1
transfertransferred
Menu · sales/HOA → Andy
Connecting you to sales with Andy. One moment.
7/21/2026, 7:10:03 PM
+1555
schedulingtransferred
Menu · scheduling → Matt
Connecting you to scheduling with Matt. One moment.
7/21/2026, 7:10:03 PM
+1555
transfertransferred
Menu · sales → Andy
Connecting you to sales with Andy. One moment.
7/21/2026, 7:10:03 PM
+1555
quoteai_handled
Menu · rates · regen/mech + 4hr min
Our current rates from the rate sheet: Regenerative air sweeper is 175 dollars per hour. Mechanical broom sweeper is 185 dollars per hour. There is a minimum 4 hour charge.
7/21/2026, 7:01:26 PM
+19492263873
transfermissed
Transfer no-answer — no connect
Employee did not answer; asked caller to leave message
7/21/2026, 7:01:09 PM
+19492263873
quoteai_handled
Construction inquiry for Irvine job site.
Okay, Irvine construction. What's your name or company?
7/21/2026, 7:00:55 PM
+19492263873
quoteai_handled
Caller specified construction sweeping; asked for location to qualify.
Got it, construction. What's the city or job location?
7/21/2026, 6:58:50 PM
+15551112222
quoteai_handled
New caller needs sweeper for track-out in Irvine.
Got it, track-out in Irvine. What's your company name?
7/21/2026, 6:55:55 PM
+15551212
otherai_handled
Caller said hi, initial greeting.
Hi there, SweeperGuys. How can I help you?