-
Notifications
You must be signed in to change notification settings - Fork 393
Description
Description
I am trying to start a conversational AI session that is associated with a specific user_id. The goal is to maintain user-specific context across different sessions.
Code Snippet: The following code demonstrates how the Conversation object is initialized and the session is started. The user_id is provided to the constructor as expected.
from elevenlabs.client import ElevenLabs
from elevenlabs.conversational_ai.conversation import Conversation
# Assume client, AGENT_ID, audio_interface, and callbacks are defined
user_id = "UNIQUE_123"
# The user_id is passed during initialization
conversation = Conversation(
client=client,
agent_id=AGENT_ID,
user_id=user_id,
requires_auth=True,
audio_interface=audio_interface,
# ... other callbacks
)
print("🎙️ Starting session...")
conversation.start_session()What happened instead:
The user_id is passed to the Conversation class during its initialization. The session starts successfully without any client-side errors when conversation.start_session() is called. However, the session on the backend does not appear to be associated with the provided user_id. It behaves like an anonymous session, and no user-specific context seems to be carried over or maintained.
Any relevant parameters or configurations:
SDK Version: elevenlabs==2.20.0
Python Version: 3.10
Code example
No response
Additional context
No response