AI Chat HTML

Python tool

Use the local conversion tool.

The Python tool is the full local workflow. It is best when you want repeatable file-based conversion, CSS templates, download packages, and command-line control.

What the Python tool adds

The online converter is useful for quick paste-and-copy work. The Python tool adds local files, repeatable outputs, CSS template behaviour, downloadable project packages, and a better fit for GitHub or folder-based workflows.

Local files

Read a transcript file and generate HTML, CSS and optional Word-friendly output in the same folder.

Templates and themes

Use built-in themes or provide your own CSS template for a repeatable house style.

Quick command

Put your marked transcript in aichat.txt, then run:

python3 aichatprocess.py

Common options include:

python3 aichatprocess.py --theme dark --write-css overwrite
python3 aichatprocess.py --word-output aichat-word.html
python3 aichatprocess.py --source mychat.txt --output mychat.html

Reference list

OptionPurpose
--sourceChoose the input transcript file.
--outputChoose the generated chat-style HTML file.
--cssChoose the CSS file linked by the HTML page.
--themeChoose a built-in visual theme such as default, dark, minimal or warm.
--css-templateUse an external CSS template when writing CSS.
--write-cssChoose whether CSS is written, skipped, written if missing, or overwritten.
--word-outputCreate a Word-friendly HTML transcript as well as the chat page.
--mathControl optional maths rendering where supported by the tool.

Related pages

Use Styles for theme guidance, Word for Word-friendly output, and Online if you want the browser-only route.