Creating and replying to emails 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 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.
5337_create_draft_email_custom_process_example.gif

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:

  1. Select Add Step, then select FYI AI function.
  2. Select AI Prompt.
  3. 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.
  4. If required, enable Web Search if the response requires external information.
  5. Configure the Output Merge Fields to return specific values to use in later steps.
  6. Save the step.

5338_create_AI_prompt_step_example.gif

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:

  1. Select Add Step, then select FYI Actions.
  2. Select Stop.
  3. Configure the condition using:
    1. Stop when: Field conditions met
    2. Field: Use the Action Required Output Merge Field from the previous AI Prompt step.
    3. Check: Not equal to
    4. 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.

  1. Click Add Step, then select the FYI Actions.
  2. Select Create Email from the list of functions.
  3. In Reply To, select the incoming email using Trigger Document.
  4. Enable Use Custom Body.
  5. Click the Merge Field icon to display the Merge Field Editor.
  6. Insert the Response Output Merge Field from the previous AI Prompt step into the email body.
  7. In Save or Send, select Draft in FYI.
  8. 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.

5339_create_email_step_draft_reply_example.gif

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:

  1. 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.
  2. In the Create Email step, leave Reply To unselected.
  3. Configure the Recipients field to identify who should receive the email.
  4. Enable Use Custom Body.
  5. Insert the Response Output Merge Field from the AI Prompt step.
  6. Set Save or Send to Draft in FYI.
  7. 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.

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.