SpeechStack
Submit a template
← All templatestemplates / customer-service-agent-with-function-calling-and-order-management
Customnewupdated May 25, 2026 · other · support

Customer Service Agent with Function Calling and Order Management

A reference implementation demonstrating function calling patterns with voice agents, including customer information lookup, order history retrieval, appointment scheduling, and graceful conversation termination. Built with Flask and WebSockets, it showcases natural conversation flow with agent filler messages and UI-based debugging logs.

No demo yetView sourceFork template
The numbers
latency
cost / min
frameworkCustom
The stack
telephonyWeb Only
speech-to-textDeepgram Nova-2
llmGPT-4o
text-to-speechDeepgram Aura-2
System prompt
No prompt published.
Config
config.json
{
  "tools": [
    {
      "name": "customer_lookup",
      "description": "Look up customer information by phone number or email"
    },
    {
      "name": "order_history",
      "description": "Retrieve order history for a customer"
    },
    {
      "name": "appointment_scheduling",
      "description": "Schedule appointments for customers"
    },
    {
      "name": "end_call",
      "description": "Gracefully terminate the conversation"
    }
  ],
  "function_calling": true,
  "mock_data_system": true,
  "browser_audio_output": true,
  "artificial_delay_enabled": true
}
Tools
  • customer_lookupLook up customer information by phone number or email
  • order_historyRetrieve order history for a customer
  • appointment_schedulingSchedule appointments for customers
  • end_callGracefully terminate the conversation
Tags
function-callingflaskwebsocketcustomer-serviceappointment-schedulingorder-management
Voice Notes

Voice AI recipes, picks, and analysis.

Get the useful new templates plus the occasional teardown of what’s working in production voice AI.

contributed by @deepgram-devs · MIT · source: github discoverylanguages: en-US