<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/voice-agent-function-calling-real-time-data-lookup-guide-ursdffsyi" -->

---
title: Voice Agent Function Calling: Real-Time Data Lookup Guide
description: A practical guide to building function calling for voice agents handling real-time data lookups such as order-status checks, covering the two-round-trip CRM...
canonical: https://daily.dev/posts/voice-agent-function-calling-real-time-data-lookup-guide-ursdffsyi
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Voice Agent Function Calling: Real-Time Data Lookup Guide | daily.dev
og:description: A practical guide to building function calling for voice agents handling real-time data lookups such as order-status checks, covering the two-round-trip CRM...
og:url: https://daily.dev/posts/voice-agent-function-calling-real-time-data-lookup-guide-ursdffsyi
og:image: https://api.daily.dev/og/posts/UrsdffsyI.png
og:image:alt: Voice Agent Function Calling: Real-Time Data Lookup Guide
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Voice Agent Function Calling: Real-Time Data Lookup Guide

**[Deepgram](https://daily.dev/sources/deepgram)** · 11 min read · 0 upvotes · 0 comments

## Summary

A practical guide to building function calling for voice agents handling real-time data lookups such as order-status checks, covering the two-round-trip CRM lookup pattern (find_customer then get_orders), the latency budget imposed by first-audio time (roughly 755ms in a cited reference pipeline), why filler functions like agent_filler are needed to cover dead air on phone calls, the three failure modes to script in advance (timeout, empty result, wrong record), client-side vs server-side function execution via the endpoint field, identity binding and authorization concerns per OWASP's LLM06 guidance, logging practices for observability, and a three-call smoke test before launch. Cites research on gap tolerance (600-800ms), a 2024 filler study showing a 1.1-point perceived-delay improvement, and a study showing tool-selection accuracy dropping from 98% at 10 tools to 88% at 100.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://deepgram.com/learn/voice-agent-function-calling-real-time-data-lookup>

## Questions this post answers

### How should a voice agent handle a database lookup that times out mid-call?

Wrap the slow lookup in a timeout you set yourself, since the underlying platform provides no numeric limit and will wait indefinitely if no FunctionCallResponse is ever sent. When the timer fires, return speakable content instead of throwing an exception, for example offering to hold or take a callback number, so the caller hears a line rather than silence.

_Developers wiring failure handling into voice agents can dig into latency patterns like this on daily.dev._

### What is the difference between client-side and server-side function execution in the Deepgram Voice Agent API?

Whether a function runs client-side or server-side depends on one field in its definition: omitting endpoint means the application receives a FunctionCallRequest and must return a FunctionCallResponse itself, while adding an endpoint object (url, method, headers) routes the call to a specified URL so credentials and sensitive operations like database reads stay server-side.

_Engineers deciding where to run sensitive lookups can compare execution patterns like this on daily.dev._

### How much does adding more functions hurt a voice agent's tool selection accuracy?

Selection accuracy degrades as the toolset grows: one study measured a drop from 98% accuracy at 10 tools to 88% at 100 tools. The degradation is driven more by overlapping or similar function descriptions than by raw count, so testing ambiguous phrasings and splitting or merging definitions with distinct triggers matters more than keeping the count low.

_Teams scaling an agent's toolset can weigh these tradeoffs alongside similar findings on daily.dev._

## Similar posts on daily.dev

- [AI Voice Agents in Production \(2026 Developer Guide\)](https://daily.dev/posts/ai-voice-agents-in-production-2026-developer-guide--xxj1vmli1) · Alex CloudStar · 0 upvotes · 0 comments
- [Voice Agent Testing: Evaluate Before Taking Real Calls](https://daily.dev/posts/voice-agent-testing-evaluate-before-taking-real-calls-jx69v2oxa) · Deepgram · 0 upvotes · 0 comments
- [AI voice agent for customer service: Where it works today](https://daily.dev/posts/ai-voice-agent-for-customer-service-where-it-works-today-rxx1zfsd5) · Netguru · 0 upvotes · 0 comments
- [How I built a sub-500ms latency voice agent from scratch](https://daily.dev/posts/how-i-built-a-sub-500ms-latency-voice-agent-from-scratch-neao8lbjr) · Hacker News · 0 upvotes · 0 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#deepgram](https://daily.dev/tags/deepgram), [#llm](https://daily.dev/tags/llm), [#performance](https://daily.dev/tags/performance)

[View this post on daily.dev](https://daily.dev/posts/voice-agent-function-calling-real-time-data-lookup-guide-ursdffsyi)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Voice Agent Function Calling: Real-Time Data Lookup Guide","url":"https://daily.dev/posts/voice-agent-function-calling-real-time-data-lookup-guide-ursdffsyi","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/voice-agent-function-calling-real-time-data-lookup-guide-ursdffsyi"},"datePublished":"2026-09-11T00:00:33.549Z","dateModified":"2026-11-05T02:14:48.333Z","description":"A practical guide to building function calling for voice agents handling real-time data lookups such as order-status checks, covering the two-round-trip CRM...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8a4e7030f79e7a8b274399b4df9a7230?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8a4e7030f79e7a8b274399b4df9a7230?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Deepgram","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Deepgram","logo":"https://media.daily.dev/image/upload/s--e63hOwKU--/f_auto/v1716188454/logos/deepgram","url":"https://daily.dev/sources/deepgram"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/voice-agent-function-calling-real-time-data-lookup-guide-ursdffsyi","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents,deepgram,llm,performance","timeRequired":"PT11M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Deepgram","item":"https://daily.dev/sources/deepgram"},{"@type":"ListItem","position":3,"name":"Voice Agent Function Calling: Real-Time Data Lookup Guide"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/voice-agent-function-calling-real-time-data-lookup-guide-ursdffsyi#faq","mainEntity":[{"@type":"Question","name":"How should a voice agent handle a database lookup that times out mid-call?","acceptedAnswer":{"@type":"Answer","text":"Wrap the slow lookup in a timeout you set yourself, since the underlying platform provides no numeric limit and will wait indefinitely if no FunctionCallResponse is ever sent. When the timer fires, return speakable content instead of throwing an exception, for example offering to hold or take a callback number, so the caller hears a line rather than silence. Developers wiring failure handling into voice agents can dig into latency patterns like this on daily.dev."}},{"@type":"Question","name":"What is the difference between client-side and server-side function execution in the Deepgram Voice Agent API?","acceptedAnswer":{"@type":"Answer","text":"Whether a function runs client-side or server-side depends on one field in its definition: omitting endpoint means the application receives a FunctionCallRequest and must return a FunctionCallResponse itself, while adding an endpoint object (url, method, headers) routes the call to a specified URL so credentials and sensitive operations like database reads stay server-side. Engineers deciding where to run sensitive lookups can compare execution patterns like this on daily.dev."}},{"@type":"Question","name":"How much does adding more functions hurt a voice agent's tool selection accuracy?","acceptedAnswer":{"@type":"Answer","text":"Selection accuracy degrades as the toolset grows: one study measured a drop from 98% accuracy at 10 tools to 88% at 100 tools. The degradation is driven more by overlapping or similar function descriptions than by raw count, so testing ambiguous phrasings and splitting or merging definitions with distinct triggers matters more than keeping the count low. Teams scaling an agent's toolset can weigh these tradeoffs alongside similar findings on daily.dev."}}]}
```

