-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
Hi. I have been trying to use FlowiseChatEmbed on my website, i created a chatbot using agentflows and is already working well, but i am still missing one step, i cant load my conversation history, even when i start my FlowiseChatEmbed like this:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Flowise Agent Test</title>
<body>
<script>
startChat();
async function startChat() {
const { default: Chatbot } = await import("https://cdn.jsdelivr.net/npm/flowise-embed/dist/web.js");
Chatbot.init({
chatflowid: "anychatid",
apiHost: "https://cloud.flowiseai.com",
chatflowConfig: {
"sessionId": '7626db17-25d9-4912-b672-0f6741f2b10a',
}
});
}
</script>
</body>
</html>It always start a new chatID when i go to a private window. Would be good to got back to the same chatId if i got a sessionId configured. It is possible?
Example:
Step 1 - I sent a message to Flowise throught my FlowiseChatEmbed, on my HTML file.

Step 2 - I launched the chat on my private window sending a specific sessionId thinking about keeping my conversation history, but it starts blank.

Use case would be something like this:
- User log in on my website and start using the chatbot through FlowiseChatEmbed
- His login will be used as a parameter(sessionId) to start the chat
- He finish what he was doing with the chat and log off
- Next day he will log back on my website on a different computer
- He want to see what the chat history about what he was doing yesterday
Any help would be welcome, i have been looking to the code to figure it out how FlowiseEmbedChat handles conversation history but i could not figure it by myself yet.
