Outlook uses the same Rules & Triggers engine as your ticketing system, so conditions, actions, and variables work the way they do on tickets. See Tickets for the full set.
Prerequisites
- Your Outlook mailbox is connected as a data source. See the Outlook connection guide for the initial setup.
- The OAuth connection includes the
Mail.Sendscope. This is requested during the standard Outlook connection flow, so no extra step is needed. - Access to the IrisAgent dashboard as an admin. Enabling deflection is admin-only.
How Outlook emails become tickets
IrisAgent groups your mailbox into conversations:- A new inbound email (the start of a conversation) becomes a ticket.
- A reply on an existing conversation becomes a comment on that ticket.
Option 1: Auto-respond to all emails
Use this when you want every email with an AI answer to receive an automatic reply.- On the dashboard, go to Automation -> Rules & Triggers.
- Toggle on the Enable Case Deflection switch.
We recommend starting with Option 2 below. Scoping deflection to a known-safe slice of email first, for example password resets or billing questions, lets you validate answer quality on real traffic before opening it up to the whole mailbox.
Option 2: Auto-respond only to emails matching conditions
This is the recommended way to roll out auto-response on email.- On the dashboard, go to Automation -> Rules & Triggers, and click Create New Trigger.
- Click Add conditions and add the conditions that decide which emails get a reply. See the table below for what works on Outlook.
- From the Actions panel, add the action Auto-respond to customer.
- In the text box, add
{{irisgpt.case.answer}}. This is replaced with the AI answer and its source links when the email goes out. You can write your own text before and after it, such as a greeting or a line about how to reach a human. - Name the trigger using the pencil icon at the top.
- Click Add New Trigger to save.
Conditions on Outlook
What the customer receives
- The reply is sent as a reply on the existing email thread, so it keeps the subject line and threading intact.
- It is sent from the connected mailbox, not from an IrisAgent address.
- The body is HTML formatted: the AI answer, followed by a bulleted list of the source links it drew from.
- Any text you added around
{{irisgpt.case.answer}}in the trigger is rendered alongside it.
Guardrails
- An AI answer is required. No answer means no email goes out.
- One reply per email, per action. Once a trigger action has run on a conversation, it will not run again on that same conversation, so customers do not receive duplicate replies.
- Recent email only. IrisAgent evaluates triggers against a recent window of activity rather than reprocessing your entire mailbox history.
Other variables you can use
Besides{{irisgpt.case.answer}}, the following are available in the auto-response text:
If you have Custom APIs configured, you can also call them inline using
{{action_name()}} to pull live data into the reply.
Related pages
- Outlook connection guide covers connecting the mailbox in the first place.
- Tickets covers the full set of trigger conditions and actions.
- Ticket Deflection walks through auto-response setup in more detail.