Custom Prompts: Tailored for Your Documents

Doc Auto Team
Doc Auto Team
  • Updated

In certain situations, data points that are not natively stored in Athennian (eg. director remuneration), or information that varies each time you generate certain documents (eg. loan amount), can still be automated by using custom prompts.

Setting Up Custom Prompts

  1. Go to the settings of the document you would like to add a custom prompt to and click “Prompt.”
    Screen_Shot_2021-09-23_at_3.49.55_PM.png

  2. The Custom Prompt pop up will give you the option to choose a pre-existing custom prompt or to create a new one. Click “New” to create a new prompt.
    Screen_Shot_2021-09-23_at_3.50.18_PM.png
  3. Create a new variable name.

    • Follow the camel case naming convention. (e.g., camelCase)

    • Do not include spaces

    Screen_Shot_2021-09-23_at_3.53.58_PM.png

  4. Type your question in the question box.
    Screen_Shot_2021-09-23_at_3.54.58_PM.png
  5. Choose a fill type.

Fill Types

Text Fill

Text Fill will provide the user with a multiple choice question. Use the choices tab to provide the choices.

The Answer box will be what the user sees while the Fill Text will be the output in the document.

Screen_Shot_2021-09-23_at_4.40.13_PM.png

User View at the time of document generation:

Screen_Shot_2021-09-23_at_4.45.01_PM.png

True/False

True/False provides the user with boolean choices. You can provide more than 2 choices, however the output will only be true or false.

Screen_Shot_2021-09-23_at_3.55.24_PM.png

User view at the time of document generation:

Screen_Shot_2021-09-23_at_4.33.14_PM.png

User Fill

User Fill will provide the user with a freetype text box. The output will be exactly what the user types into the box.

Screen_Shot_2021-09-29_at_11.11.50_AM.png

User view at the time of document generation:

Screen_Shot_2021-09-29_at_11.12.32_AM.png

Using Custom Prompts

Custom prompts can be used in a variety of different ways depending on the output of the prompt.

Variable

You can use the custom prompt as a simple variable.

Sample Custom Prompt Settings

Variable name: {assemblerInitials}

Fill type: User Fill

Question: Please provide the assembler initials.

User Response

JPA

Coded Document

The assembler’s initials are {assemblerInitials}.

Generated Output

The assembler’s initials are JPA.

 

Sample Custom Prompt Settings

Variable name: {paymentType}

Fill type: Text Fill

Question: How will payment be made?

Option 1 - Cash
Option 2 - Promissory Note

User Response

Cash

Coded Document

The type of payment is {paymentType}.

Generated Output

The type of payment is cash.

Logic

You can also use custom prompts in logic. See this article for more on logic: Conditions: IF statements

Below is an example of custom prompts in logic.

Sample Custom Prompt Settings

Variable name: {assemblerExists}

Fill type: True/False

Question: Does an assembler exist?

Option 1 - Yes (true)
Option 2 - No (false)

User Response

Yes (true)

Coded Document

{#assemblerExists==true}This sentence will print if the assembler exists.{/}{#assemblerExists!=true}This sentence will print if the assembler does not exist.{/}

Generated Output

This sentence will print if the assembler exists.