Open AI hears our prayers and answers them. They delivered chat history, so you can keep various chat conversations and basically AI personalities in order and archived. Anyhow, you still might want some tool to export the content created to your local device. Especially since there can be some random unexpected deletion of your archive 🙂 or even any temporary downtime of Open Ai server.
I think there are already some browser extensions or maybe even apps to somehow export content from bot’s conversation in one form or another. Feel free to look it up, however i devised my own convenient method of exporting the content in suitable format for me and that is HTML which I suppose many of you should be familiar with.
You can open HTML file in web browser and see the exported result. With just a tiny bit of technicality behind it, you can use my method right away without installing anything and start exporting your conversations.
Now before I scare you with a code, a script, which you must use, let me just say, if you are not tech person and are not interested in trying to understand it, don’t 🙂 You don’t have to, I will tell you how to use it very simply right below it.
let nodeList = document.querySelectorAll('.text-base .whitespace-pre-wrap');
let html = '';
nodeList.forEach(function(node) {
html += node.outerHTML;
});
let link = document.createElement('a');
link.href = 'data:text/html,' + encodeURIComponent(html);
link.download = 'file.html';
link.click();
Just so it is said, this is Javascript code. When you use this code, it will simply download the entire active conversation in your browser window into a HTML file to your device.
When you have your conversation with Chatbot generated, in your browser window, open the browser’s console which should be done by pressing CTRL + SHIFT + I.