A friend and I hacked this together to turn PDFs, docs and raw text into an easy-to-fill online form.
The hardest part was getting the prompts to work reliably. We're using PDF.js to parse the document, asking OpenAI to extract the questions and calling the Fillout API to create the form.
Let me know what you think: https://fillout.com/ai-form-builder (free to use + no sign up needed)