Configuration rules for building real-time voice agents with the Grok Voice Agent API.
# Grok Voice Agent Configuration Rules ## Connection Setup - Connect via WebSocket to Voice Agent API endpoint - Compatible with OpenAI Realtime API specification - Available via official xAI LiveKit Plugin - Direct audio processing without speech-to-text conversion ## Session Configuration - Configure tools in session.update message - Built-in tools: file_search, web_search, x_search, Custom Functions ## Custom Function Flow 1. Agent sends response.function_call_arguments.done 2. Your code executes the function 3. Send result via conversation.item.create 4. Send response.create to continue ## Voice Options - Multiple voices available - Dozens of languages supported - Audio format configuration for I/O - Real-time processing with minimal latency ## Best Practices - Keep function execution fast for conversational flow - Handle WebSocket disconnections with reconnection - Implement error handling for function calls - Test for naturalness and accuracy - Monitor audio quality and latency
System rules for Grok to provide real-time analysis with source attribution, bias awareness, and structured output from X/Twitter data.
Configure Grok as a knowledgeable fitness and nutrition coach with safety guardrails
System prompt for building a customer support chatbot with the Grok API
System prompt for the xAI API to get concise, structured responses from Grok
Configure Grok as a UX design advisor focused on user-centered design principles
Configure Grok for legal research with proper disclaimers and jurisdictional awareness