eastern-cyan•15mo ago
Chat history not persisting across different userid session
Im currently using the chat widget and dynamically changing the userID when entering a different session. When loading a new userid the session state persists as normal but the actual chat history does not appear in the widget.
The chat history is clearly saved in the transcript tab...
can someone help?
7 Replies
To view the chat history for a specific
userID
, you can follow these steps:
1. Access Transcripts:
- Navigate to the Transcripts tab in the left-hand navigation or use the keyboard shortcut 2.
2. Filter Transcripts:
- Use the filters available at the top of the Conversations List to sort and organize transcripts by date (Time Range) and Tags.
3. View Specific Data:
- Configure the type of data you'd like to view, such as Debug Messages and Intent confidence data, using the ... menu above each transcript.
4. Add Utterances to Intents:
- If you have the Intent Confidence set to visible, you can add utterances to intents directly from the transcripts to improve your assistant's training.
For more detailed information, you can refer to the following links:
- Viewing, Sorting and Filtering Transcripts
- Customization & ConfigurationI usually don’t recommend messing with the userId. If you change it to a new id, it will create a new chat and a new transcript will be created. This is the same as signing up for a new account on a website.
What are you trying to accomplish?
eastern-cyanOP•15mo ago
yes thats my goal.
I have built a site that manages the front end with user information / dashboard. Each time a user creates a new page it generates a new userid which is used to manage a unique session state. Everything works great except when a user enters a new chat the history is not restored within the widget. The session state persists as the conversation continues from the last point, only thing is the chat history does not load within the widget.
do i need to fetch the current transcript and load it into the widget? I thought session states and transcripts were managed by voiceflow when interacting with chat widget?
Pretty sure this is not true. If you use a different userId & it has not been used before, it should start a new chat and reset vars.
eastern-cyanOP•15mo ago
Yes that’s right, but if you were to use the same id the history should appear, everything is working as expected. Except the history does not load
any ideas? @W. Williams (SFT)
I'm out of town. Please DM me and I'll have a look in the morning tomorrow .
eastern-cyanOP•15mo ago
appreciate it! dm sent