Resuming Chats
Guide to preserving context from previous Chat sessions.
EVI supports reconnecting to an ongoing chat session, preserving all prior conversation context. This is especially useful in cases of unexpected network failures or when a user wishes to pick up the conversation at a later time, enabling continuity without losing progress.
If data retention is disabled, the ability to resume chats will not be supported.
Resuming a chat
See steps below for how to resume a chat:
-
Establish initial connection: Make the initial handshake request to establish the WebSocket connection. Upon successful connection, you will receive a ChatMetadata message:
Chat metadata -
Store the ChatGroup reference: Save the chat_group_id from the
ChatMetadata
message for future use. -
Resume chat: To resume a chat, include the stored
chat_group_id
in the resumed_chat_group_id query parameter of subsequent handshake requests.When resuming a chat, you can specify a different EVI configuration than the one used in the previous session. However, changing the system prompt or supplemental LLM may result in unexpected behavior from EVI.