Common Variable Reference
This page is a reference to commonly available Workflow Docs variables. Exact availability can depend on the interview and included support files.
1. Built-in Nouns (People)
These variables represent individuals or groups. They are pre-defined as either ALIndividual (singular) or ALPeopleList (plural).
Singular Roles (ALIndividual)
Use these as-is (e.g., {{ spouse.name.first }}).
| Variable | Description |
|---|
client | The primary client on the case. |
spouse | The client's spouse. |
advocate | The person running the interview. |
notary_public | A notary public. |
plaintiff | The plaintiff in the case. |
defendant | The defendant in the case. |
petitioner | The petitioner. |
respondent | The respondent. |
legalserver_primary_assignment | The primary staff member assigned to the case. |
legalserver_first_pro_bono_assignment | The first pro bono assignment record. |
legalserver_latest_pro_bono_assignment | The most recent pro bono assignment record. |
legalserver_current_user | The currently logged-in LegalServer user. |
initiator | The person who starts or sends the request. |
pbadvocate | The pro bono advocate associated with the matter. |
Plural Roles (ALPeopleList)
Access individual items using index notation (e.g., {{ clients[0] }}, {{ witnesses[1] }}).
| Variable | Description |
|---|
clients | Primary client(s). |
users | Legacy AssemblyLine-compatible variable name; it is not guaranteed to be equivalent to clients. Prefer clients. |
other_parties | Other parties on the case. |
plaintiffs / defendants | Parties in litigation. |
petitioners / respondents | Parties in family or probate matters. |
children | Children involved in the matter. |
witnesses | Case witnesses. |
trustees / successor_trustees | Trust-related roles. |
settlors / beneficiaries | Trust-related roles. |
guardians / executors | Fiduciary roles. |
agents / attorneys | Representative roles. |
representatives | General representatives. |
pets | Pets involved in the matter. |
charities | Charitable organizations. |
healthcare_proxies / healthcare_agents | Medical representatives. |
medical_proxies | Medical representatives. |
funeral_directors | Funeral arrangements. |
financial_advisors / insurance_agents | Professional contacts. |
property_managers / real_estate_agents | Property-related roles. |
digital_executors | Digital asset management. |
business_partners | Business-related roles. |
trustees_of_special_needs_trust | Specialized trust roles. |
trustees_of_charitable_trust | Specialized trust roles. |
notaries | Notary publics (list). |
legal_counsels / attorneys | Legal representation. |
accountants / mediators / arbitrators | Professional neutrals. |
depositaries / fiduciaries | Financial/trust roles. |
estate_planners | Professional contacts. |
guardians_ad_litem / conservators | Court-appointed roles. |
administrators | Estate administrators. |
borrowers / lenders | Lending roles. |
co_signers / guarantors | Lending roles. |
service_providers / vendors | Service roles. |
licensees / licensors | Licensing roles. |
purchasers / sellers / buyers | Real estate/transactional roles. |
escrow_agents / closing_agents / title_agents | Transactional roles. |
mortgage_lenders / home_inspectors | Transactional roles. |
property_surveyors | Transactional roles. |
prosecutors / defense_attorneys | Criminal law roles. |
judges / jurors / bailiffs | Court roles. |
court_reporters | Court roles. |
public_defenders / forensic_experts | Specialized legal roles. |
victim_advocates | Support roles. |
law_enforcement_officers | Official roles. |
divorcing_parties | Family law roles. |
child_custody_parties | Family law roles. |
alimony_recipients | Family law roles. |
family_attorneys | Family law roles. |
parental_rights_parties | Family law roles. |
domestic_relations_counsels | Family law roles. |
child_support_obligors / child_support_recipients | Family law roles. |
2. LegalServer Data Variables
These variables represent raw data or lists fetched directly from LegalServer.
| Variable | Description |
|---|
legalserver_data | The raw JSON dictionary of case details. See the LegalServer Data Reference for a detailed field map. |
legalserver_case | A helper object for accessing core case fields. |
legalserver_assignments | List of staff assignments. |
legalserver_services | List of services provided. |
legalserver_litigations | List of litigation records. |
legalserver_charges | List of charges (criminal cases). |
legalserver_contacts | List of case contacts. |
legalserver_incomes | List of income records. |
legalserver_notes | List of case notes. |
legalserver_events | List of calendar events. |
legalserver_tasks | List of matter tasks. |
legalserver_adverse_parties | List of adverse parties. |
legalserver_non_adverse_parties | List of non-adverse parties. |
legalserver_pro_bono_assignments | List of pro bono assignments. |
legalserver_site | LegalServer site key or hostname component used for API calls. |
3. Addresses
Addresses can be accessed for any individual or list item using these attributes:
| Variable / Attribute | Description |
|---|
trial_court_address | Address of the trial court. |
appeals_court_address | Address of the appeals court. |
clients[i].address | Primary address. |
clients[i].mailing_address | Mailing address. |
clients[i].service_address | Address for service of process. |
clients[i].previous_addresses | List of previous addresses. |
clients[i].other_addresses | List of other addresses. |
4. Case and Docket Numbers
| Variable | Description |
|---|
docket_numbers | A list or string of docket numbers. |
case_numbers | A list of case numbers. |
court_case_number | The primary court case number. |
legalserver_matter_uuid | Internal LegalServer UUID. |
legalserver_site_abbreviation | Site name (e.g., abc). |
legalserver_site_type | Usually live or demo. |
Available for any ALIndividual or item in an ALPeopleList (replace clients[i] with your variable name).
| Attribute | Description |
|---|
clients[i].name | The full name object. |
clients[i].ssn | Social Security Number. |
clients[i].ssn_last_4 | Last 4 digits of SSN. |
clients[i].birthdate | Date of birth. |
clients[i].gender | Gender. |
clients[i].marital_status | Marital status. |
clients[i].email | Email address. |
clients[i].phone_number | Primary phone. |
clients[i].mobile_number | Mobile phone. |
clients[i].fax_number | Fax number. |
clients[i].preferred_language | Preferred language. |
clients[i].pronouns | Preferred pronouns. |
clients[i].aliases | List of aliases. |
clients[i].previous_names | List of previous names. |
clients[i].signature | Signature object. |
clients[i].program | Associated LegalServer program. |
signature_date | The date the document is generated/signed. |
6. Signatures and Affirmations
| Variable / Attribute | Description |
|---|
clients[i].signature | The signature field/image. |
clients[i].states_above_true | Boolean for affirmation of truth. |
signature_choice | Method used to sign. |
signature_wait_screen | Screen shown while waiting for others. |
signature_phone_followup | Follow-up status for phone signatures. |
should_cc_user | Boolean for whether to CC the advocate. |
cc_email | The email address to CC. |
7. Document Handling & Miscellaneous
| Variable | Description |
|---|
comments_to_clerk | Instructions or comments for a court clerk. |
adverse_parties[i].name.text | Full name of an adverse party. |
adverse_parties.there_is_another | Boolean for whether there are more parties. |
organization_holding_records | Name of organization with records. |
payment_first_date | Date of first payment. |
payment_second_date | Date of second payment. |
payment_third_date | Date of third payment. |
appointment_date | Date of appointment. |
time_set | Boolean for whether time is set. |
appointment_time | Time of appointment. |
attempted_contact | Boolean for whether contact was attempted. |
final_contact_date | Date of last contact. |
documents_for_interview | List of documents relevant to the session. |
requested_documents (per requestee) | Per-title file uploads requested from a specific requestee in the multi-party signing flow. Accessed as clients[0].requested_documents["Pay stub 1"]. |
submitted_document_uploads (per requestee) | Ad-hoc uploaded files for a requestee. Accessed as clients[0].submitted_document_uploads[0]. |
8. Functions
These are Jinja-callable functions built into Workflow Docs.
Salutations and Letter Greetings
| Function | Description | Example |
|---|
greet(person) | Returns the full greeting line, e.g. "Dear Ms. Smith" or "Estimada Sra. Smith". Uses person.preferred_greeting if set; otherwise picks "Dear"/"Estimada"/"Estimado" based on the person's language and gender. | {{ greet(clients[0]) }} |
salute(person) | Returns just the salutation form of the name, e.g. "Ms. Smith". Uses person.preferred_salutation if set; otherwise picks a gendered honorific (Mr./Ms./Mx. for English, Sr./Sra./Mx. for Spanish) or falls back to the person's plain name. | {{ salute(clients[0]) }} |
Languages
| Function | Description |
|---|
wfd_default_client_language(person=None) | Returns the default client-language code (en, es, zh-CN, zh-TW, pt, ht, vi, km) for the given person. Looks at preferred_written_language, then language, then language_name. Defaults to "en". |
wfd_client_language_codes(client_key=None) | Pass a client key for that organization's codes; with no argument, returns all supported fallback codes. |
wfd_normalize_language_code(code, default="") | Maps Chinese variants like zh_CN, zh_TW, zh-Hans, zh-Hant to the canonical zh-CN/zh-TW form. |
wfd_filter_language_codes_for_choices(codes) | Turns a list of language codes into a list of {label, value} dicts suitable for a Docassemble code: field. |
wfd_client_language_code_for_name(name, default="en") | Resolves a language name (e.g. "Spanish") to its code (e.g. "es"). |
Dates
| Function | Description |
|---|
format_date(the_date, format=None, language=None) | Formats a date using the current locale (or the given language). See Docassemble date formatting for the supported format values. |
9. Per-Individual Personalization Attributes
These attributes are read on any ALIndividual (e.g. clients[0], advocate, witnesses[i]) to customize generated text.
| Attribute | Description |
|---|
preferred_greeting | If set, overrides the greeting word (e.g. "Hello", "Buenas"). Used by greet(person). |
preferred_salutation | If set, overrides the honorific (e.g. "Dr.", "Lic."). Used by salute(person). |
language | Two-letter language code (e.g. "en", "es"). Used to pick the default greeting word. |
language_name | Full language name (e.g. "Spanish"). Used as a fallback for the default client language. |
preferred_written_language | The client's preferred written language code. Takes priority over language when picking the default client language. |
pronouns | Preferred pronouns. |