selfhosted:

docassemble

A free, open-source expert system for guided interviews and document assembly, based on Python, YAML, and Markdown. (Demo, Source Code).

Live Preview
docassemble