WhoBuilt

Building an AI assistant that makes phone calls

Feb 9, 2025· 51 min· 1.8K views·Watch on YouTube

Speaker

Tom Redmond, head of developer experience at Convex, demonstrates an AI phone assistant and explains how he built it at a Convex workshop for AI Engineer.

A personal assistant that handles calls

Redmond imagines an assistant that knows a user’s context and can handle phone and email tasks. His prototype, Floyd, combines speech recognition, text-to-speech, and other services to talk with people on the user’s behalf.

How requests move through the system

A voice request is transcribed through Google Cloud and saved with user context in Convex. A server reacts to new requests, asks GPT-4 to plan the task, then uses Twilio to place a call. Speech from the other person is transcribed and fed back into GPT-4, while the transcript and status updates stream to the client through Convex subscriptions.

A demo with safeguards and gaps

Floyd calls a simulated school to report that Mara is sick, then tries to order flowers for Christa. When the florist asks for a budget and delivery details Floyd does not have, it ends the call and texts Tom for more information. Redmond says the prototype is not production-ready, routes calls to himself during development, and has not yet handled call menus.

Why Convex simplifies the client

Redmond says Convex helped separate the stateful phone-call work from the client: an Express server handles Twilio and posts updates, while the client subscribes to database changes instead of polling. He describes Convex queries and mutations as type-safe functions defined alongside frontend code and deployed to Convex, with reactive updates keeping the UI current.

Latency, transparency, and trade-offs

A prerecorded greeting gives the system time to start transcription and speech generation after someone answers. Redmond says Floyd should identify itself as AI, and notes that longer prompts and text-to-speech can add seconds of delay. He sees room to reduce latency by shortening prompts and swapping services, while acknowledging that the prototype lacks production safeguards.

Takeaways

  • Treat a phone assistant as a loop of transcription, model response, speech generation, and call streaming; each step adds latency.
  • Persist request status and transcript updates so clients can react to progress without polling.
  • Capture user context for a task, then save only the relevant subset with the request for the call.
  • Give the assistant a way to stop and ask the user when it lacks key details such as budget or delivery information.
  • Disclose that the caller is AI, and add production safeguards before letting a prototype contact real businesses.

Mentioned in this talk

Search inside this talk

What was claimed 13

  • works at
    Head of Developer Experience
    “I’m the head of DX at a company called Convex.”
    YouTube
    Verified2 sources· Talk, Web· archived
  • founded
    Co-founder
    “a really great blog post by our chief scientist, Sujay”
    YouTube
    Verified4 sources· Talk, Web· archived
  • founded
    CTO
    “the CTOs are Jamie and James”
    YouTube
    Verified4 sources· Talk, Web· archived
  • founded
    CEO
    “the CTOs are Jamie and James”
    YouTube
    Verified4 sources· Talk, Web· archived
  • uses
    “the client will simply save that request, the user who made it, and that request into the Convex database”
    YouTube
    Unverified1 source· Talk
  • feature
    Convex database: Reactive queries and subscriptions update clients when data changes
    “It’s not polling; we’re not pinging the server to let it know. It has a reactive query that it’s effectively subscribed to”
    YouTube
    Unverified1 source· Talk
  • integrates with
    Floyd integrates with OpenAI
    “the server then works with OpenAI, using the ChatGPT integration—in this case, GPT-4”
    YouTube
    Unverified1 source· Talk
  • feature
    Floyd: Makes phone calls and converses with people on the user's behalf
    “As the person on the other side of the call speaks, we stream the audio to Google Cloud to be transcribed in real time, then feed it back into GPT-4 to carry on the conversation.”
    YouTube
    Unverified1 source· Talk
Show all 13 facts

Related talks