Skip to main content
SearchLoginLogin or Signup

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.

Published onDec 06, 2019
Video Tutorial: How to Create a Simple Docassemble Interview
·

Video

How to Create a Simple Docassemble Interview

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.


Microsoft Word (or similar software)

  1. 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.

  1. 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

  1. 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.

  1. Navigate back to the playground by clicking on your username, and playground. (Link)

  2. 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)

  3. Be sure to make this mandatory. Docassemble requires a mandatory variable to complete the interview. (Link)

  4. Replace the .docx template file with the template that we have uploaded. Then click save. (Link)

  5. Now, all the variables that we haven’t defined will show up under “undefined names.” (Link)

  6. Create a set of questions that help answer the variables that you need for your document. (Link)

  7. 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)

  8. Once all variable names have been assigned, click “save.” (Link)

  9. If you get no errors, click “save and run.” (Link)

  10. After you fill out the information from your interview, you will see options to render the document as either a .pdf or .docx (Link)

  11. 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)

  12. 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.

  1. 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)

  2. Click Return. (Link)

  3. The docassemble interivew will then generate a URL. A helpful tip is to name the package the same as the YAML file. (Link)

Bonus

Note: the formula for the URL is [name of your ec2 domain] + “interview?i=docassembly.” + [package name] + ":data/questions/" + [yaml file name]

  1. For ease of use, it is best to get rid of questions from Example Blocks that are not needed. (Link)

  2. For variables that need to be setup with rails, it is helpful to list a series of choices or datatypes (e.g., integers, choices) (Link)

  3. Each time you complete a new interview, increment to the latest version of the document. (Link)


Want to learn more about what Sam Harden is up to?

Follow his latest work on his youtube channel, LegalTech School or check out his website samharden.github.io

Comments
4
?
blackhadwolrd wolree:

betflix fan online game in thailand how to fill good thank

?
blackhadwolrd wolree:

good game betflik how to play eazy winner game

?
Andersen Labs:

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?