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 FYI AI in a Custom Automation Process to analyse incoming client emails and automatically create draft replies using AI-generated content.
By combining an AI Prompt with the Create Email step, practices can identify client requests, generate personalised responses, and prepare draft emails for review before sending.
The AI Prompt step analyses the content of a document or email and generates a response that can be inserted into an email using Output Merge Fields. The Create Email step then creates a new email or a reply to an existing email.
AI-generated responses should always be reviewed for accuracy before sending them to clients. The examples in this article configure emails to be saved as Draft in FYI rather than sent automatically.
You can also download the Create Draft emails example custom process and import it directly into your practice, ready to customise, review, and test.
Preparing the process
Before creating the process:
- Consider the type of client emails that should trigger a draft response.
- Identify any practice-specific instructions, preferred terminology, or external information that should be considered for the AI prompt. Refer to Including AI prompts in automations.
Creating the Document View
Create a Document view containing the incoming emails to be processed. For example, create a view named Received Emails with the following filters:
- Type: Email
- Workflow: Not Started
- Delivery: Received
Creating 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, "Create Draft Email Replies using AI".
- Description: Enter a description of the process.
-
Trigger: Consider whether you want the process to run:
- Document Filed: when an incoming email is filed to FYI, or
- Manual: take control of running the automation yourself on specific emails.
- Filter: Select the Received Emails Document view.
Add the AI Prompt step
The AI Prompt step uses FYI AI to analyse the incoming email and generate a response.
The AI Prompt reads the content of an email body, not email metadata such as To, From, or CC. Where an email contains attachments, AI will read up to five attachments. Configure your prompt accordingly if you don't want to include an analysis of attachments.
To add the AI Prompt step:
- Select Add Step, then select FYI AI function.
- Select AI Prompt.
- Configure the Prompt to analyse the email and identify whether a reply is required. Enter instructions for FYI AI to generate a professional draft response to the client's request.
- If required, enable Web Search if the response requires external information.
- Configure the Output Merge Fields to return specific values to use in later steps.
- Save the step.
Configure the Output Merge Fields
Output Merge Fields allow certain information generated by the AI Prompt to be used in subsequent process steps.
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 | Purpose |
| Response | Contains the AI-generated draft response to be inserted into the email body. |
| Action Required | Identifies whether the email contains a new actionable request. Used by the Stop step to determine whether the Automation should continue. |
| Reason | Explains why the AI Prompt determined that action was or was not required. |
Add the Stop Step
Use the Stop step to prevent the process from creating a draft reply when FYI AI determines that no response is required.
To add the Stop step:
- Select Add Step, then select FYI Actions.
- Select Stop.
- Configure the condition using:
- Stop when: Field conditions met
- Field: Use the Action Required Output Merge Field from the previous AI Prompt step.
- Check: Not equal to
- Value: True
Add the Create Email Step
The Create Email step creates the draft email using the response generated by FYI AI.
In this example, the process creates a generic AI-generated reply to the incoming email, automatically maintaining the existing email conversation. Refer to the section Using a custom email body in Process step details: Create Email for more options.
- Click Add Step, then select the FYI Actions.
- Select Create Email from the list of functions.
- In Reply To, select the incoming email using Trigger Document.
- Enable Use Custom Body.
- Click the Merge Field icon to display the Merge Field Editor.
- Insert the Response Output Merge Field from the previous AI Prompt step into the email body.
- In Save or Send, select Draft in FYI.
- Save the step.
The Reply To option automatically threads the draft to the original email conversation, retaining the subject and configuring Reply All to include the original recipients.
Test and run the process
Before activating the process, test the process to confirm that FYI AI analyses the incoming email and generates an appropriate draft response.
Test the process using sample incoming emails, including an email with a new client request and an email that does not require a response.
Testing the process will create a draft email in FYI. Ensure Save or Send is set to Draft in FYI so AI-generated responses are not automatically sent to clients.
Review the AI conversation to ensure:
- The AI Prompt identifies whether a response is required.
- The Output Merge Fields contain the expected information.
Review additional process details, for example:
- The Stop step prevents the Create Email step from running when no response is required.
- The Create Email step inserts the AI-generated response into the draft email.
After testing, review the draft email and confirm the content, formatting, and recipients are correct.
Once you're satisfied with the results, activate the process.
Additional Create Email options
The Create Email step can also be used to create new emails rather than replies.
When configuring the process, ensure the selected view includes the records you want the process to run against.
To create a new email instead of replying to an existing email:
- Review the Automation Filter and select a Document view or Client view containing the records you want to process. For example, select a Document view containing existing documents that require follow-up, or a Client view containing clients you want to contact.
- In the Create Email step, leave Reply To unselected.
- Configure the Recipients field to identify who should receive the email.
- Enable Use Custom Body.
- Insert the Response Output Merge Field from the AI Prompt step.
- Set Save or Send to Draft in FYI.
- Save the step.
This allows the process to create new emails using FYI AI. For example, to request additional information from clients after analysing existing documents.