Why does `session.say` not trigger the conversatio...
# ask-ai
b
Why does
session.say
not trigger the conversation_item_added event?
t
Thanks for reaching out, Stefanos. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
session.say
does trigger the
conversation_item_added
event in LiveKit. When
session.say
is called, it creates a message from the agent and adds it to the chat history. This then triggers the
conversation_item_added
event with the new message as the payload. If you’re not seeing this happen, it could be due to how the event listener is set up or how the method is being called. Please feel free to reach out if you'd like some help troubleshooting this—I’m here to assist you! Sources: examples/other/text_only.py | Events and error handling | LiveKit Docs