Video Tutorial: How to Create a Simple Docassemble Interview
Sam Harden provides step-by-step instructions to create a simple interview in Docassemble. Video 2 of 3.
by Sam Harden
Published onDec 06, 2019
Video Tutorial: How to Create a Simple Docassemble Interview
·
Video
Overview
Docassemble is a free, open-source expert system for guided interviews and document assembly, based on Python, YAML, and Markdown. Docassemble has strong implications for the potential of computational law because it is a free and straightforward tool for computing legal processes and legal functions.
This lesson provides an overview about how to create a simple Docassemble interview. Complete these steps and anyone can go online and fill out your very own Docassemble interview.
Note: Steps are organized based on the software that is used to perform each step. Just in case you lose your place and have to start over, we have included a link to the specific place in the video where each step takes place.
Microsoft Word (or similar software)
Using a traditional document from Microsoft Word, need to identify the variables that we want to account for in our docassemble interview. To create a variable that will be read in Docassemble, use curly braces for example: {{ plaintiff_name }}. Note: there cannot be spaces within a variable name. (Link)
Note: If you do not want to use Microsoft Word, you may also use Pages on Mac or GoogleDocs, so long as you save the document in the .docx file format.
Once you have added all of the variables, we need to save the document as a template file. It is best practice here to save without any spaces. (Link)
Docassemble
Under template section in Docassemble, click Browse, find your template (.docx file), and click upload. (Link)
Note: To get to the template section in Docassemble, type in the URL for your AWS EC2 instance, click on your username in the upper right hand corner of the page for Docassemble, select Playground, click Folders --> Templates, and you will be on the right page.
Navigate back to the playground by clicking on your username, and playground. (Link)
Start a new interview by clicking “+ Add” and then, under Example blocks, on the left side of the page, add the text for “Using a .docx template” and click insert. (Link)
Be sure to make this mandatory. Docassemble requires a mandatory variable to complete the interview. (Link)
Replace the .docx template file with the template that we have uploaded. Then click save. (Link)
Now, all the variables that we haven’t defined will show up under “undefined names.” (Link)
Create a set of questions that help answer the variables that you need for your document. (Link)
If there’s a possessive or a quote, you will need to add quotation marks around the question because Python requires quotes to be closed out. (Link)
Once all variable names have been assigned, click “save.” (Link)
If you get no errors, click “save and run.” (Link)
After you fill out the information from your interview, you will see options to render the document as either a .pdf or .docx (Link)
From here, in order to make the document usable outside of the Playground, go back to the playground and click “Folders” and then click “Packages” (Link)
Name the package, and fill out the related information. (Link)
Note: It is a best practice to add information about the README, to help people who want to access this file understand what is in it.
After you save your interview in Docassemble, you will need to Install it. This updates all of the packages and installs the interview packages so that the file can be used by people outside of your Docassemble instance. (Link)
Learn more about how to create environment-friendly and high-quality workflows. By leveraging equipment like Docassemble, individuals and corporations can streamline felony techniques associated with electricity administration systems. This video tutorial on growing an easy Docassemble interview is a remarkable and useful resource for all and sundry involved in exploring the probabilities of computational law. As the criminal subject continues to evolve, strength administration structures are becoming increasingly essential in managing electricity utilisation and costs.
James Randall:
I believe the format is …docassemble with an ‘e’ and not a ‘y’.
— What is the best way to extract the information someone fills out? It doesn’t seem clear if say there are 10 interviews completed, how do you access those individual interviews? What if they are only partially complete and abandoned?