SQLiteSession: Building Persistent Conversations for AI Agents
Learn how to use SQLiteSession in the OpenAI Agents SDK to build persistent multi-turn conversations with automatic history retrieval, storage, and session limits.
Browse older CallSphere articles on AI voice agents, contact center automation, and conversational AI.
From the blog
Learn how to use SQLiteSession in the OpenAI Agents SDK to build persistent multi-turn conversations with automatic history retrieval, storage, and session limits.
End-to-end tutorial for building a production-ready stateful customer service agent with database integration, order history, multi-turn issue resolution, and persistent sessions.
Build real-time voice agents using StreamedAudioInput with continuous microphone streaming, voice activity detection (VAD), turn detection, and lifecycle events for natural conversational flow.
Configure STT and TTS models for OpenAI voice agent pipelines — Whisper integration, language and prompt settings, voice selection, streaming TTS, and custom model implementations.
Connect your AI voice agents to real phone systems using SIP, Twilio, and WebSocket transport with the OpenAI Realtime API for inbound and outbound call handling.
Learn how to systematically test and red-team your AI agent guardrails with adversarial prompt injection detection, guardrail bypass attempts, automated test suites, and continuous evaluation pipelines.
Implement secure MCP agents with static and dynamic tool filtering using create_static_tool_filter, ToolFilterContext-based dynamic filters, and granular approval policies for safe tool execution.
Learn how to implement tool input and output guardrails in the OpenAI Agents SDK to validate function arguments, skip dangerous calls, and replace tool outputs before they reach the agent.
Learn how to use tool_namespace() in the OpenAI Agents SDK to group, organize, and dynamically load agent tools at scale, preventing name collisions and improving maintainability.
Get notified when we publish new articles on AI voice agents, automation, and industry insights. No spam, unsubscribe anytime.
Try our live demo -- no signup required. Talk to an AI voice agent right now.