Package 

Interface ConversationClient


  • 
    public interface ConversationClient
    
                        

    Main entry point for ElevenLabs Conversational AI SDK

    This interface provides the primary API for starting and managing conversations with ElevenLabs AI agents. It supports both public and private agents, text-only and voice conversations.

    Usage:

    val session = ConversationClient.startSession(
        ConversationConfig(agentId = "your-agent-id")
    )
    • Method Summary

      Modifier and Type Method Description
      abstract ConversationSession startSession(ConversationConfig config) Start a new conversation session with the specified configuration
      abstract Unit endSession() End the current conversation session
      abstract Unit sendMessage(String message) Send a text message in the conversation
      abstract Unit sendFeedback(Boolean isPositive) Send feedback for the last agent response
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • endSession

         abstract Unit endSession()

        End the current conversation session

      • sendMessage

         abstract Unit sendMessage(String message)

        Send a text message in the conversation

        Parameters:
        message - The message content to send
      • sendFeedback

         abstract Unit sendFeedback(Boolean isPositive)

        Send feedback for the last agent response

        Parameters:
        isPositive - true for positive feedback, false for negative