Recipe: Assembling a Document Using an Interview

This page provides a step-by-step guide on how to assemble a document based on the information entered by a user during an interview.
 

Step 1 - Create a work item 

All documents in HotDocs Advance start with a work item. A work item is a named location in HotDocs Advance where you choose a template, enter and edit answer data, and assemble documents from that template and answer data.

See: Creating a work item

Step 2 - Begin an assembly session

Before you can gather data, you must create a new version of your work item. This begins an assembly session, which is a distinct instance of the document assembly process for a work item.

See: Begin an assembly session 

Step 3 - Display an interview

To collect data from your template users, you can present an interview to them. An interview is a set of questions that are generated by HotDocs based on the variables and dialogs defined in your template. After receiving a response from the begin assembly session request you can use the Core Assembly Service JavaScript API to embed the interview for the assembly session into a web page. 

See: Display an Interview

Step 4 - Complete the assembly session

To generate documents, you need to finish your assembly session. When you complete an assembly session, Advance processes the data it has gathered and creates the new version, including the assembled documents and the new answer set.

See: Complete the assembly session

Step 5 - Download assembled documents

After completing an assembly session, you can query the API for the assembled documents, then download the assembled documents by handling the response stream.

See: Download Assembled Documents