Updating document filing details using FYI AI steps

Plan: Not Available: Intermediate Available: Pro or Elite

Users: Not Available: All users Available: FYI Admins or User Group permissions

Practice Management Source: Available: All sources

This example details how to use a Custom Process with the AI Prompt and Alter Document steps to automatically rename and file documents using FYI AI.

The AI Prompt step analyses document content and identifies filing information, such as the document name, Cabinet, Keywords, and Year. The Alter Document step then uses Output Merge Fields from the AI Prompt to update the document's filing details.

When using FYI AI to automatically file documents, ensure the process is configured to process targeted Document views or documents created in earlier Automation steps. Processing large volumes of documents can increase processing times, affect performance, and may result in errors.

You can also download the Attachment document filing example custom process and import it directly into your practice, ready to customise, review, and test.

Creating the Document view

Create a Document view containing the documents to be analysed and filed by the process.

For example, create a view named Invoices for AI Filing with filters to identify the relevant PDF invoices.

Ensure the view includes only documents that should be processed by the Automation. For example, use the document Type, Cabinet, Category, or other relevant filters to identify invoices requiring updated filing details.

When configuring the Document view, exclude documents where Source is FYI Automation to prevent documents from being processed repeatedly.

Create the Custom Process

Create a Custom Process and configure the Process Controls to suit your practice.

Configure the following Process Controls:

  • Name: Enter a name that identifies what the process does. For example, "Filing documents using AI
  • Description: Enter a description of the process.
  • Trigger: Consider when you want the process to run.
  • Filter: Select the Document view containing the documents to be processed.

Adding the AI Prompt Step

The AI Prompt step uses FYI AI to analyse the document and extract specific information required for filing.

FYI AI analyses the document content, not the existing FYI filing metadata. Where additional information is required, use the appropriate Merge Fields to include it in the prompt.

To add the AI Prompt step:

  1. Select Add Step, then select FYI AI function.
  2. Select AI Prompt.
  3. Configure the Prompt to analyse the document and identify specific information.
  4. Configure the Output Merge Fields to return the information required by the Alter Document step.
  5. Save the step.
    5355_FYI_AI_prompt_step_update_filing_example.gif
Example AI Prompt

Review this document and extract the following details for filing:

Primary Date (for Filing): If the document is an invoice, statement, or credit note, use the invoice or statement date. If it is a letter, form, legal demand, or notification, use the document creation date. All date output formats should always be DD-MM-YYYY.

Then, determine the financial year: If the date falls between 1 July [Year] and 30 June [Next Year], return Next Year. If no date is available, default to 2026. Output: Return the year only, in YYYY format, with no additional text.

Then, suggest the Cabinet.

Then, suggest the name of the document. Type: Determine the overall type of this document. Sender: Identify the organisation or individual that sent or created this document. Document Name: Generate a document name using the format Sender - Type - Date. Ensure the date is in DD-MM-YYYY format to maintain consistency and enhance searchability. Output must only be the document Name, it must use the smallest amount of characters possible.

Exclude any of the following document types:
- Email
- Zip
- Other
- Meeting
- Phone 
- File Note
- Form
- Tiff
- Web link

Configuring Output Merge Fields

Output Merge Fields allow the information identified by FYI AI to be used in subsequent Automation steps.

Each Output Merge Field can have its own Prompt to provide specific instructions to FYI AI about the information to return for that field. This is useful when extracting different types of information from a document, as you can specify the expected format or criteria for each field.

When prompting FYI AI to return Cabinet, Category, or Keyword values, specify the options available in your practice. This helps ensure the returned values match the filing options configured in your platform.

 Keep your Output Merge Field prompts clear and concise, and explain the expected value. FYI AI may leave an Output Merge Field blank if it cannot determine a relevant response.

The Response Output Merge Field is a mandatory field. Configure additional Output Merge Fields, for example:

Output Merge Field Type Purpose
Document Name Text Generates a document name using the information extracted from the document.
Cabinet Text Identifies the Cabinet where the document should be filed.
Year Text Identifies the financial year based on the document date.
Keywords Text Identifies relevant Keywords to apply to the document.
5079_AI_Prompt_Editor_Automatic_File_Example.gif

Adding the Alter Document step

When the process runs, the Alter Document step uses the information returned by Output Merge Fields to update the selected document's filing details.

Only configure fields that should be updated by the process. Other filing details can remain unchanged.

To add the Alter Document step:

  1. Select Add Step, then select FYI Actions.
  2. Select Alter Document.
  3. In Document, select Trigger Document to update the document identified by the Automation Filter.
  4. Configure the Filing details, where required:
    1. Disable AutoFile.
    2. Name: select the Merge Field icon and choose the Document Name Output Merge Field from the previous AI Prompt step.
    3. Cabinet: select the Cabinet Output Merge Field.
    4. Year: select the Year Output Merge Field.
    5. Keywords: select the Keywords Output Merge Field.
  5. Save the step.

5080_FYI_AI_Alter_Document_Step_example.gif

Test and run the process

Before activating the process, test the process to confirm that FYI AI generates the appropriate Output Merge Fields.

Testing the process will update the document. Consider using sample documents when testing FYI AI responses.

Review the AI conversation to ensure:

  • The AI Prompt extracts the correct filing information
  • The Output Merge Fields contain the expected values
  • The Output Merge Fields contain the expected information.
  • The document name, Cabinet, Year, and Keywords are updated correctly.

Once you're satisfied with the results, activate the process.

Was this article helpful?
0 out of 0 found this helpful

Stay Up-To-Date

  • Events

    We host a range of product demos, training webinars, workshops and more.

  • Service Status

    Check for updates on the FYI Platform

  • What's New

    Round-up of new features, fixes, and other important announcements.