Most AI voice demos start with a telephony API. You get webhooks, clean call events and an audio stream, and the interesting problem is the conversation.
My Google Voice Dispatch Agent doesn't get any of that. It drives Google Voice inside a real Chrome window, and that changes where the hard work is. The AI reply turned out to be the easy part. The hard part was knowing, with confidence, whether someone had actually picked up.
This post walks through how the agent is put together, based on what's in the repo.
Repo: https://github.com/mafzalkalwardev/google-voice-dispatch-agent (MIT licensed)
What it does
In short, it's an outbound AI calling console for Windows:
Selenium controls Google Voice using a persistent Chrome profile and dials contacts from a CSV/XLSX list or CRM data.
It watches the call state: ringing, connected, ended, failed, voicemail.
Once a call is really connected, a realtime loop runs: voice activity detection, speech-to-text, an LLM reply via Groq, and text-to-speech played back…