Skip to main content

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

VariableDescription
clientThe primary client on the case.
spouseThe client's spouse.
advocateThe person running the interview.
notary_publicA notary public.
plaintiffThe plaintiff in the case.
defendantThe defendant in the case.
petitionerThe petitioner.
respondentThe respondent.
legalserver_primary_assignmentThe primary staff member assigned to the case.
legalserver_first_pro_bono_assignmentThe first pro bono assignment record.
legalserver_latest_pro_bono_assignmentThe most recent pro bono assignment record.
legalserver_current_userThe currently logged-in LegalServer user.
initiatorThe person who starts or sends the request.
pbadvocateThe pro bono advocate associated with the matter.

Plural Roles (ALPeopleList)

Access individual items using index notation (e.g., {{ clients[0] }}, {{ witnesses[1] }}).

VariableDescription
clientsPrimary client(s).
usersLegacy AssemblyLine-compatible variable name; it is not guaranteed to be equivalent to clients. Prefer clients.
other_partiesOther parties on the case.
plaintiffs / defendantsParties in litigation.
petitioners / respondentsParties in family or probate matters.
childrenChildren involved in the matter.
witnessesCase witnesses.
trustees / successor_trusteesTrust-related roles.
settlors / beneficiariesTrust-related roles.
guardians / executorsFiduciary roles.
agents / attorneysRepresentative roles.
representativesGeneral representatives.
petsPets involved in the matter.
charitiesCharitable organizations.
healthcare_proxies / healthcare_agentsMedical representatives.
medical_proxiesMedical representatives.
funeral_directorsFuneral arrangements.
financial_advisors / insurance_agentsProfessional contacts.
property_managers / real_estate_agentsProperty-related roles.
digital_executorsDigital asset management.
business_partnersBusiness-related roles.
trustees_of_special_needs_trustSpecialized trust roles.
trustees_of_charitable_trustSpecialized trust roles.
notariesNotary publics (list).
legal_counsels / attorneysLegal representation.
accountants / mediators / arbitratorsProfessional neutrals.
depositaries / fiduciariesFinancial/trust roles.
estate_plannersProfessional contacts.
guardians_ad_litem / conservatorsCourt-appointed roles.
administratorsEstate administrators.
borrowers / lendersLending roles.
co_signers / guarantorsLending roles.
service_providers / vendorsService roles.
licensees / licensorsLicensing roles.
purchasers / sellers / buyersReal estate/transactional roles.
escrow_agents / closing_agents / title_agentsTransactional roles.
mortgage_lenders / home_inspectorsTransactional roles.
property_surveyorsTransactional roles.
prosecutors / defense_attorneysCriminal law roles.
judges / jurors / bailiffsCourt roles.
court_reportersCourt roles.
public_defenders / forensic_expertsSpecialized legal roles.
victim_advocatesSupport roles.
law_enforcement_officersOfficial roles.
divorcing_partiesFamily law roles.
child_custody_partiesFamily law roles.
alimony_recipientsFamily law roles.
family_attorneysFamily law roles.
parental_rights_partiesFamily law roles.
domestic_relations_counselsFamily law roles.
child_support_obligors / child_support_recipientsFamily law roles.

2. LegalServer Data Variables

These variables represent raw data or lists fetched directly from LegalServer.

VariableDescription
legalserver_dataThe raw JSON dictionary of case details. See the LegalServer Data Reference for a detailed field map.
legalserver_caseA helper object for accessing core case fields.
legalserver_assignmentsList of staff assignments.
legalserver_servicesList of services provided.
legalserver_litigationsList of litigation records.
legalserver_chargesList of charges (criminal cases).
legalserver_contactsList of case contacts.
legalserver_incomesList of income records.
legalserver_notesList of case notes.
legalserver_eventsList of calendar events.
legalserver_tasksList of matter tasks.
legalserver_adverse_partiesList of adverse parties.
legalserver_non_adverse_partiesList of non-adverse parties.
legalserver_pro_bono_assignmentsList of pro bono assignments.
legalserver_siteLegalServer 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 / AttributeDescription
trial_court_addressAddress of the trial court.
appeals_court_addressAddress of the appeals court.
clients[i].addressPrimary address.
clients[i].mailing_addressMailing address.
clients[i].service_addressAddress for service of process.
clients[i].previous_addressesList of previous addresses.
clients[i].other_addressesList of other addresses.

4. Case and Docket Numbers

VariableDescription
docket_numbersA list or string of docket numbers.
case_numbersA list of case numbers.
court_case_numberThe primary court case number.
legalserver_matter_uuidInternal LegalServer UUID.
legalserver_site_abbreviationSite name (e.g., abc).
legalserver_site_typeUsually live or demo.

5. Personal Information

Available for any ALIndividual or item in an ALPeopleList (replace clients[i] with your variable name).

AttributeDescription
clients[i].nameThe full name object.
clients[i].ssnSocial Security Number.
clients[i].ssn_last_4Last 4 digits of SSN.
clients[i].birthdateDate of birth.
clients[i].genderGender.
clients[i].marital_statusMarital status.
clients[i].emailEmail address.
clients[i].phone_numberPrimary phone.
clients[i].mobile_numberMobile phone.
clients[i].fax_numberFax number.
clients[i].preferred_languagePreferred language.
clients[i].pronounsPreferred pronouns.
clients[i].aliasesList of aliases.
clients[i].previous_namesList of previous names.
clients[i].signatureSignature object.
clients[i].programAssociated LegalServer program.
signature_dateThe date the document is generated/signed.

6. Signatures and Affirmations

Variable / AttributeDescription
clients[i].signatureThe signature field/image.
clients[i].states_above_trueBoolean for affirmation of truth.
signature_choiceMethod used to sign.
signature_wait_screenScreen shown while waiting for others.
signature_phone_followupFollow-up status for phone signatures.
should_cc_userBoolean for whether to CC the advocate.
cc_emailThe email address to CC.

7. Document Handling & Miscellaneous

VariableDescription
comments_to_clerkInstructions or comments for a court clerk.
adverse_parties[i].name.textFull name of an adverse party.
adverse_parties.there_is_anotherBoolean for whether there are more parties.
organization_holding_recordsName of organization with records.
payment_first_dateDate of first payment.
payment_second_dateDate of second payment.
payment_third_dateDate of third payment.
appointment_dateDate of appointment.
time_setBoolean for whether time is set.
appointment_timeTime of appointment.
attempted_contactBoolean for whether contact was attempted.
final_contact_dateDate of last contact.
documents_for_interviewList 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

FunctionDescriptionExample
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

FunctionDescription
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

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

AttributeDescription
preferred_greetingIf set, overrides the greeting word (e.g. "Hello", "Buenas"). Used by greet(person).
preferred_salutationIf set, overrides the honorific (e.g. "Dr.", "Lic."). Used by salute(person).
languageTwo-letter language code (e.g. "en", "es"). Used to pick the default greeting word.
language_nameFull language name (e.g. "Spanish"). Used as a fallback for the default client language.
preferred_written_languageThe client's preferred written language code. Takes priority over language when picking the default client language.
pronounsPreferred pronouns.