docassemble
A free, open-source expert system for guided interviews and document assembly, based on Python, YAML, and Markdown.
Alternatives
Tech stack
No tech stack added yet. Sign in to suggest some
Overview
docassemble is a free, open-source expert system for guided interviews and document assembly. It sets up a website that collects information from users through a question-and-answer flow, then generates PDF, RTF or DOCX documents based on their answers, which users can download or send by email.
The name emphasizes document assembly, but an interview doesn't have to produce a document. It can also be used to submit applications, direct users to other web resources, store user input, interact with third-party APIs, or simply provide information to users.
The project was created by Jonathan Pyle, a developer who is both a lawyer and a programmer. It was originally built to automate legal work, but it is a general-purpose platform that can be used in other fields as well.
Key Features
- WYSIWYG templates: Write templates as .docx files (with a Word add-in) or .pdf files, and sync them with the server via Google Drive, OneDrive or a command-line tool
- Electronic signatures: Capture touchscreen signatures and embed them in documents
- Live assistance: Online chat, screen sharing and remote screen control
- AI capabilities: Use machine learning to process user input, or use a large language model (LLM) to converse with users
- SMS and email: Send text messages, or use the SMS interface as an alternative to the web interface; supports sending and receiving email and sending faxes
- OCR: Optical character recognition on images uploaded by users
- Multilingual: The same interview can be offered in multiple languages
- Multi-user: Supports applications with multiple participants, such as mediation or consultation interviews
- Background tasks: Tasks can run in the background even when the user is not logged in
- API integration: Integrate with third-party applications through APIs, or pass in inputs and extract outputs with code
Core Strengths
Development in plain text
Interviews are written in YAML files, the text of questions and documents is formatted with Markdown, and the flow logic is expressed with Python if/then/else statements. According to the project, developers don't need programming experience; they usually only need to write simple conditions that read close to natural language.
No flowcharts needed
Developers don't need to design the flow of an interview. docassemble looks at the information needed to produce the result and automatically decides which questions to ask and in what order, skipping unnecessary ones. For example, if the condition is "disabled or older than 60" and the user has already answered that they have a disability, the age question is not asked. Developers only need to prepare a question for each variable. When a fixed question order is needed, it can also be specified manually.
This lets developers focus on the end result. In the project's words, lawyer-developers can concentrate on the legal questions rather than the interview flow.
Secure and scalable
- Supports security features such as server-side encryption, two-factor authentication and document redaction
- Can be deployed across multiple machines to handle high traffic
- Can be extended with Python
Open ecosystem
Interviews can be packaged and shared with the community through GitHub and PyPI. The front end is built on Bootstrap and adapts to both mobile and desktop.
Target Users
- Legal tech settings such as law firms, legal aid organizations and courts
- Governments, nonprofits and businesses that need to automate complex forms and document generation
- Developers who want to build rule-driven Q&A or eligibility-determination systems
Deployment and Technical Requirements
docassemble is a self-hosted web application. The official website provides an online Demo, Documentation, Download and Deploy guides. For specific deployment methods and system requirements, please refer to the deployment documentation on the official website.
License and Support
- The code is licensed under the MIT License, and the documentation under CC BY 3.0
- You can get real-time help from community developers in the official Slack group, and bugs can be reported as issues on GitHub
Discover more
Revel
Open-source event management, ticketing and membership platform for communities, clubs, independent venues and independent artists.
Bitpoll
Conduct polls about dates, times or general questions.
Fider
Open platform to collect and prioritize feedback (alternative to UserVoice).
Apprise
Apprise allows you to send a notification to almost all of the most popular notification services available to us today such as: Telegram, Discord, Slack, Amazon SNS, Gotify, etc.
ArchiveBox
Create HTML & screenshot archives of sites from your bookmarks, browsing history, RSS feeds, or other sources (alternative to Wayback Machine).
Bitcart
Cryptocurrencies payment processor and development platform.