Outlook uses the same Case 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
Mail.ReadWritefor draft replies andMail.Sendfor automatic replies. New Outlook connections request both permissions. - Access to the IrisAgent dashboard as an admin. Enabling deflection is admin-only.
If Save as Outlook draft is unavailable, reconnect the existing Outlook integration once to approve
Mail.ReadWrite. Follow Reconnect an existing Outlook mailbox to enable drafts.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.
Choose draft or automatic delivery
On the dashboard, go to Automate → Case Triggers. The AI Email Replies card includes a Delivery method menu:- Save as Outlook draft creates a reply in the connected mailbox’s Drafts folder. Nothing is sent to the customer. An agent can open the draft in Outlook, review or edit it, and send it manually.
- Send automatically sends the AI reply to the customer as soon as the trigger runs. No agent review is required.
Option 1: Create replies for all eligible emails
Use this when you want IrisAgent to create a reply for every email that has an AI answer.- On the dashboard, go to Automate → Case Triggers.
- On the AI Email Replies card, choose Save as Outlook draft or Send automatically.
- Turn on the AI Email Replies switch.
We recommend starting with draft delivery or Option 2 below. This lets agents validate answer quality on real traffic before you enable automatic replies for the whole mailbox.
Option 2: Create replies only for emails matching conditions
Use a custom trigger when AI replies should run only for a specific part of your email volume.- On the dashboard, go to Automate → Case 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 AI email reply.
- In Delivery method, choose Save as Outlook draft or Send automatically.
- In the text box, add
{{irisgpt.case.answer}}. This is replaced with the AI answer and its source links when the action runs. 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 happens to the reply
- In draft mode, the reply is saved in the connected mailbox’s Drafts folder. It is not visible to the customer until an agent sends it from Outlook.
- In automatic mode, the reply is sent immediately without agent review.
- The draft or sent reply is attached to the existing email thread, so it keeps the subject line and threading intact.
- It uses the connected mailbox, not 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. If there is no answer, IrisAgent does not create a draft or send an email.
- One reply per email, per action. Once a trigger action creates a draft or sends a reply on a conversation, it will not run again on that same conversation.
- 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 reply content:
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.