How to save AI conversations without losing formatting?

I regularly use AI tools like ChatGPT, Gemini, and Claude for coding, content creation, and research.

At the moment, I usually copy and paste useful conversations into a document. The problem is that formatting such as code blocks, tables, headings, and lists often gets lost, so I have to fix everything manually.

This is manageable for short conversations, but when a chat is 10 pages or longer, it becomes very time-consuming.

Does anyone know a fast and reliable way to save AI conversations without losing the original formatting?

4 Likes

I use script to do that in bash and use the cli interfaces. Works in all *nix that have a somewhat modern bash. How to Use 'script' Command in Bash Script for Session Logging Without Immediate Termination — linuxvox.com

2 Likes

The proper setup: Run your own UI (openwebui) and use their services as the backend. This does answer your question though.

The next best thing is to use your browser - most of them have some kind of an archiving feature. There could be some blowback from the providers so I cannot speak for them and each browser. This seems to be the best solution for you and you should explore there.

Finally, the copy and paste should work with editors that support HTML and that includes editors work with plain text like VSCode and markdown.

It’s been less than 20 days since this was asked last. Please search

1 Like

Short answer,

Hermes is made to keep an ongoing collection of past chats and can connect to alot of different applications, and automated tasks, and safer the open claw.

If you mean AI conversations in a web browser, here are a few options:

For short chats, I usually press Ctrl + P and save the page as a PDF. You can also ask the AI to create a Word or PDF file, although the results may vary.

For longer conversations where I want to keep code blocks, tables, and other formatting, I use a Chrome extension called AI Chat Exporter.

Note: This is chrome extension, so you need to check the vendor’s requirements first, but it’s basically been approved by Google

I think I answered a similar question about a month ago.

3 Likes

Thank you. It looks like the extension is suitable for my situation.
It’s true that I posted it before, but I can’t remember where it is anymore. :grin:

1 Like

I will try this

1 Like

For what it’s worth, you should look into Obsidian notebook if you want to maintain a notebook that includes this kind of stuff.

I’ve been using Obsidian as a notebook for years, and it’s a markdown-based notebook (with many plugins, too!)

…and to answer your question, for this exact purpose I tell my LLM to output their answers in a ā€œobsidian-flavored markdown-friendly outputā€ so either it will output codeblocks that i can copy to my notebook (or save it directly into the notebook directory).

(or I just establish this rule in the instructions for a ā€œProjectā€ within Claude, my primary LLM of choice)

I have a lot of articles in my obsidian notebook that uses ā€œobsidian flavoredā€ markdown, and by that - I include things such as Obsidian callouts.