Daily

From FrancoStino/opencode-skills-collection · View interactive version

Daily is an AI agent skill from the GitHub repository FrancoStino/opencode-skills-collection. Documentation and capabilities reference for Daily

How to use this skill

Skill file

When to Use

Capabilities

Pipecat enables agents to build production-ready voice and multimodal AI applications with real-time processing. Agents can orchestrate complex AI service pipelines that handle audio, video, and text simultaneously while maintaining ultra-low latency (500-800ms round-trip). The framework abstracts away the complexity of coordinating multiple AI services, network transports, and audio processing, allowing agents to focus on application logic.

Key capabilities include:

Skills

Pipeline Architecture & Frame Processing

Agents can construct pipelines that connect frame processors in sequence to handle real-time data flow:

pipeline = Pipeline([
    transport.input(),              # Receives user audio
    stt,                            # Speech-to-text conversion
    context_aggregator.user(),      # Collect user responses
    llm,                            # Language model processing
    tts,                            # Text-to-speech conversion
    transport.output(),             # Sends audio to user
    context_aggregator.assistant(), # Collect assistant responses
])

Agents can create custom frame processors to handle specialized logic, work with parallel pipelines for conditional processing, and manage frame types (SystemFrames for immediate processing, DataFrames for ordered queuing).

Speech Recognition & Audio Input

Agents can integrate 15+ speech-to-text providers including OpenAI, Google Cloud, Deepgram, AssemblyAI, Azure, and Whisper. Services support:

Text-to-Speech & Audio Output

Agents can choose from 30+ text-to-speech providers including OpenAI, Google Cloud, ElevenLabs, Cartesia, LMNT, and PlayHT. Features include:

Language Model Integration

Agents can integrate with 20+ LLM providers including OpenAI, Anthropic, Google Gemini, Groq, Perplexity, and open-source models via Ollama. Capabilities include:

Function Calling & Tool Integration

Agents can enable LLMs to call external functions and APIs during conversations:

# Define functions using standard schema
weather_function = FunctionSchema(
    name="get_current_weather",
    description="Get the current weather in a location",
    properties={"location": {"type": "string"}},
    required=["location"]
)

# Register function handlers
async def fetch_weather(params: FunctionCallParams):
    location = params.arguments.get("location")
    weather_data = await weather_api.get_weather(location)
    await params.result_callback(weather_data)

llm.register_function("get_current_weather", fetch_weather)

Function results are automatically stored in conversation context, enabling multi-step interactions and real-time data access.

Context Management & Conversation History

Agents can manage conversation context automatically or manually:

Voice Activity Detection & Turn Management

Agents can configure sophisticated turn-taking strategies:

Transport & Connection Management

Agents can connect users via multiple transport options:

Multimodal Processing

Agents can build applications combining multiple modalities:

Custom Frame Processors

Agents can create specialized processors for application-specific logic:

class CustomProcessor(FrameProcessor):
    async def process_frame(self, frame: Frame, direction: FrameDirection):
        await super().process_frame(frame, direction)

        if isinstance(frame, TranscriptionFrame):
            # Custom logic here
            pass

        await self.push_frame(frame, direction)

Structured Conversations with Pipecat Flows

Agents can build complex conversation flows with state management using Pipecat Flows:

Metrics & Observability

Agents can monitor pipeline performance and usage:

Client SDKs for Frontend Integration

Agents can build client applications using:

All SDKs implement the RTVI (Real-Time Voice and Video Inference) standard for interoperability.

Deployment & Scaling

Agents can deploy applications to:

Workflows

Building a Voice Assistant

  1. Create transport for user connection (Daily, WebRTC, WebSocket)
  2. Initialize STT service (Deepgram, OpenAI, Google Cloud)
  3. Create LLM context with system message
  4. Initialize LLM service (OpenAI, Anthropic, Gemini)
  5. Initialize TTS service (ElevenLabs, Cartesia, OpenAI)
  6. Create context aggregators for user and assistant messages
  7. Assemble pipeline with all processors in correct order
  8. Create PipelineTask with parameters and observers
  9. Run with PipelineRunner and handle lifecycle events

Implementing Function Calling

  1. Define function schemas using FunctionSchema or direct functions
  2. Create ToolsSchema with function definitions
  3. Pass tools to LLMContext during initialization
  4. Register function handlers with LLM service
  5. Implement handler logic to call external APIs
  6. Return results via result_callback
  7. LLM automatically incorporates results into conversation
  8. Function calls and results stored in context automatically

Building a Phone Agent with Twilio

  1. Set up Twilio account with phone numbers
  2. Create DailyTransport with WebRTC configuration
  3. Configure Twilio SIP integration with Daily endpoint
  4. Handle on_dialin_ready event to forward calls
  5. Build standard voice pipeline with STT, LLM, TTS
  6. Deploy to cloud with proper scaling configuration
  7. Monitor active sessions and call metrics

Handling Interruptions & Turn-Taking

  1. Configure VAD analyzer (Silero recommended for low latency)
  2. Set up user turn strategy (VADUserTurnStartStrategy or SmartTurnDetection)
  3. Configure silence thresholds and minimum word requirements
  4. Enable interruption handling in pipeline
  5. Register interrupt event handlers
  6. Test with various speech patterns and network conditions
  7. Tune VAD parameters based on user experience feedback

Managing Long Conversations

  1. Enable context summarization in assistant aggregator params
  2. Configure summarization triggers (token count, message count)
  3. Set preserve_recent_messages to keep recent context
  4. Monitor token usage with metrics
  5. Implement fallback strategies for context window limits
  6. Use context.messages to inspect current state
  7. Manually append messages when needed with LLMMessagesAppendFrame

Deploying to Pipecat Cloud

  1. Create Dockerfile with bot.py entry point
  2. Define bot() async function as entry point
  3. Configure environment variables and secrets
  4. Push to container registry (AWS ECR, GCP Artifact Registry)
  5. Create agent via Pipecat Cloud REST API or CLI
  6. Deploy with pipecat cloud deploy command
  7. Monitor logs and active sessions
  8. Scale based on demand with capacity planning

Integration

Pipecat integrates with:

Context

Real-time Processing: Pipecat achieves 500-800ms round-trip latency by streaming data through the pipeline rather than waiting for complete responses at each step. This creates natural conversation experiences.

Frame-based Architecture: All data moves through pipelines as frames (audio, text, images, control signals). Processors receive frames, perform specialized tasks, and push frames downstream. This modular design enables swapping services without code changes.

Automatic vs Manual Control: Context management happens automatically through aggregators, but agents can manually control context with frames for advanced scenarios like bot-initiated conversations or context editing.

Service Flexibility: Pipecat abstracts service differences through adapters. Function schemas defined once work across all LLM providers. Context format automatically converts between OpenAI and provider-specific formats.

Production Considerations: For production deployments, use WebRTC instead of WebSocket for better media transport. Pre-cache large models in Docker images. Monitor metrics for latency and token usage. Use Pipecat Cloud for managed scaling or self-host with proper resource allocation.

Turn-Taking Complexity: Natural conversations require coordinating VAD (detects speech), turn detection (understands completion), and interruption handling. Silero VAD provides low-latency local processing. Smart Turn Detection uses AI to understand conversation context. Tuning these parameters is crucial for user experience.

Multimodal Challenges: Combining audio, video, and text requires careful pipeline design. Use ParallelPipeline for independent processing branches. Ensure frame ordering for synchronized output. Test with various network conditions and device capabilities.


For additional documentation and navigation, see: https://docs.pipecat.ai/llms.txt

Limitations

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.