r/AIReceptionists • • 8d ago

Daily Work

I've been working on an AI Voice Receptionist that can handle customer calls, book appointments, answer queries, and hand off requests to human staff.

Recently, I implemented a Staff Callback Queue.

The idea is simple: when a customer asks to speak with a human, the system saves their callback request in PostgreSQL and notifies the staff through Gmail.

Some things implemented:

  • Secure staff APIs using API key authentication
  • Retrieve pending callback requests
  • Mark callback requests as completed
  • PostgreSQL as the source of truth, so requests aren't lost if email notifications fail

I've tested the retrieval and completion APIs through Swagger. Still working on improving reliability and testing the remaining flows.

GitHub: https://github.com/vikasya7/voice-ai

Would love to hear feedback, suggestions, or ideas for improving the architecture, especially around reliability and real-world deployment.

5 Upvotes

2 comments sorted by

1

u/Assaf_AI 7d ago

Storing callbacks in Postgres as the source of truth is the right call. In real deployments the weak spot is usually the human side, not the database. Email notifications get buried, so I'd add an SMS or Slack ping and an escalation if a callback sits untouched for 15-30 minutes. Capture the caller's reason and best callback window in the queue so staff aren't calling blind, and send the caller a text confirming someone will call back. Also test what happens when the caller hangs up halfway through the request.

1

u/sr_fishington 7d ago

How does it actually sound? Using a system like Retell or Thunderphone might be worth exploring. Then you can focus on just building the agents and integrations. Looks solid overall but the chunking strategy has an arbitrary overlap and chunk size - any reason to even use vectors here?