Back to catalog / Agent workflows
Query large datasets safely from a realtime voice agent
Design data-heavy function calls for a Realtime voice agent, filtering by relevance before returning context.
Goal
Design data-heavy function calls for a Realtime voice agent, filtering by relevance before returning context.
Steps
- Define fields, size, and filtering for large tool responses; never send the full dataset. [source-openai-serve-large-reference-data-in-realtime-voice]
- Call a server-side function and return only top-k relevant results and a summary. [source-openai-serve-large-reference-data-in-realtime-voice]
- Measure latency and context size; ask follow-ups when data is insufficient and avoid silent truncation. [source-openai-serve-large-reference-data-in-realtime-voice]
How to verify
For fixed queries, match `searchDraftProspects` summary IDs to source data, call `getProspectDetails` only on demand, and record payload bytes and time to first audio.
Troubleshooting
If context grows, remove redundant nested fields from detail results; when summary search returns none, ask for filters instead of guessing.
Permissions
Prerequisites
- OpenAI Realtime API, a data service, Python/JS client, and test audio sessions.
Permissions
- Sends user audio/conversation to the Realtime API and calls read-only data search; disclose recording/data use, expect API charges, and do not write search results back to the source store.
Limitations
Run the source on isolated test data, then check outputs and dependency versions before adapting it.
Pinned upstream source
- Repository
- openai/openai-cookbook
- File path
- examples/Data-intensive-Realtime-apps.ipynb
- Pinned commit
5bd6cb40b6b84b69b2032d810610aa85064102df- Source checked
- 2026-10-14 · Reviewed against the pinned upstream source
Repository metrics
These values describe the upstream repository, not popularity or likes for an individual skill or playbook.
- Stars
- Not collected
- Forks
- Not collected
- Observed at
- Not collected
No metrics snapshot is available yet.
License: MIT
Main topic
Turn ecommerce campaign materials into a reviewable weekly brief