The Pipecat JavaScript SDK provides a lightweight client implementation that handles:Documentation Index
Fetch the complete documentation index at: https://daily-mb-ui-agent.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
- Device and media stream management
- Connecting to Pipecat bots
- Messaging with Pipecat bots and handling responses using the RTVI standard
- Managing session state and errors
Installation
Install the SDK and a transport implementation (e.g. Daily for WebRTC):Example
Here’s a simple example using Daily as the transport layer:Explore the SDK
Client Constructor
Configure your client instance with transport and callbacks
Client Methods
Core methods for interacting with your bot
Callbacks & Events
Handle bot events, messages, and state changes
Transport Packages
Daily, SmallWebRTC, WebSocket, and other transports
UI Agent Protocol
Send UI events and dispatch UI commands with PipecatClient
A11y Snapshots
Stream the document’s accessibility tree to the server as
<ui_state>