When participant first wish to join a room, I crea...
# ask-ai
f
When participant first wish to join a room, I create an access token that performs automatic agent dispatching as well, whereby if the participant uses that access token to join the room, then the agent would be dispatched into the room. For a participant to rejoin the room, is it possible to create a new access token for that very same room? and for the participant to resume conversation with the agent again?
t
Thanks for reaching out, Mok. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Absolutely! A participant can definitely rejoin the same room with a new access token and pick up the conversation with the agent, as long as a few important things are in place: • The new access token includes the right permissions (like
roomJoin
and
canSubscribe
). • The room is still active and accessible. • Your application keeps the chat history or state somewhere safe (such as participant metadata or external storage) so the conversation can continue smoothly. LiveKit is designed to support reconnection scenarios, and you can restore the chat context programmatically when someone rejoins, helping the agent continue the conversation seamlessly. If you'd like, I’m here to help with any details on token generation or managing rooms—just let me know! Sources: pkg/rtc/room.go | agent/main.py | Authentication | LiveKit Docs | Connecting to LiveKit | LiveKit Docs | Managing participants | LiveKit Docs