Overview
LemonSlice integrates with Pipecat, an open-source framework for building multimodal conversational agents by Daily. TheLemonSliceTransport object connects your Pipecat app to a LemonSlice avatar for real-time voice conversations with synchronized video.
Jump to the starter projects section for ready-to-use repos. For production UI patterns (avatar readiness, error handling, timeouts), see Production checklist.
Prerequisites
- A LemonSlice account and API key associated with an active subscription. Create a key at lemonslice.com/developers.
- A reference image for your avatar. See our guide for recommendations on how to design your avatar image to achieve the best quality possible.
- Pipecat Python Application
- Either your own existing application, or follow the Pipecat quickstart to create one.
How to use
1
Install the plugin
Within your Pipecat app, install the LemonSlice transport:
SHELL
2
Authenticate
In your Pipecat app, set
LEMONSLICE_API_KEY in your .env file3
Create the LemonSlice transport layer
Create an instance of Parameters for
LemonSliceTransport by providing your bot name, LemonSlice API key, session request, and additional parameters.PYTHON
LemonSliceTransport:Parameters for
LemonSliceNewSessionRequest.Parameters for
lemonslice_properties.4
Insert the LemonSlice transport layer into the pipeline
Add the LemonSlice transport layer to your processing pipeline.
PYTHON
The LemonSlice avatar participant is automatically filtered out from
transport.on_client_connected and transport.on_client_disconnected events. Only human participant connections trigger these event handlers.Implementation Details
- LemonSlice uses Daily as the underlying transport layer, so all Daily features and configuration options are available through the inherited
DailyParams. - The transport automatically manages interruptions and sends appropriate control messages (
interrupt,response_started,response_finished) to the LemonSlice session. - The LemonSlice avatar’s microphone is automatically muted to prevent audio feedback loops.
- The Daily video UI should filter out the Pipecat bot participant from being displayed. This participant only exists to facilitate passing audio between the user, Pipecat, and LemonSlice.

