Package 

Class ConversationConfig


  • 
    public final class ConversationConfig
    
                        

    Configuration class for conversation sessions

    This class defines the parameters needed to start a conversation with an ElevenLabs agent. It supports two distinct authentication modes:

    Public Agents (no authentication required):

    • Use agentId only

    • SDK automatically generates conversation token

    • No API key needed

    Private Agents (backend authentication required):

    • Use conversationToken only (generated on your backend with API key)

    • API key should never be in client-side applications