Mail Channel
Heedify supports email routing via mail flows, integrated with a Microsoft 365 shared mailbox through Exchange Online and Microsoft Graph. Customer emails sent to your support address are routed to Heedify queues like calls and chats: each email becomes a case with a reference, is assigned to an available agent in the Heedify Agent Console, is followed by a first-response SLA, and can receive an automatic acknowledgement. Agents reply from the support address, and every message stays in your shared mailbox.
The mail channel is enabled per tenant. Once Heedify has enabled it, Mail Flows and Mail Templates appear in the portal sidebar.
- How it works
- Before you start
- Step 1: Prepare the shared mailbox in Microsoft 365
- Step 2: Turn on the Mail channel on the queues
- Step 3: Create the shared mail templates
- Step 4: Create the mail flow
- Step 5: Set business hours and the auto-acknowledgement
- SLA and escalation
- Case reference and replies
- Editing and deleting
- Troubleshooting
- FAQ
How it works
The mail channel mirrors the voice channel:
| Voice | |
|---|---|
| Resource account | Shared mailbox in Exchange Online |
| Phone number | Email address of the mailbox, plus its aliases |
| Call flow | Mail flow: one per mailbox |
| IVR menu | Routing rules: by recipient address, sender, sender domain or subject |
| Queue | The same queues, with the Mail channel turned on |
| One call at a time per agent | Several emails at a time per agent, up to their mail capacity |
The life of an email
- A customer writes to
support@yourcompany.com. The email lands in the shared mailbox and Heedify is notified within seconds. - Heedify ignores what does not need an agent: auto-replies, out-of-office messages, delivery failure reports, and emails sent by the mailbox itself.
- Heedify checks whether the email belongs to an existing case (see Case reference and replies). If not, it opens a new case with a reference such as
A7K3-2291. - The mail flow’s routing rules pick the queue, the priority and the tags. If no rule matches, the email goes to the default queue.
- If the auto-acknowledgement is on, the customer receives it, with their case reference and the date by which they can expect a reply.
- The queue assigns the email to the least busy available agent. The agent opens it in the Heedify Agent Console and replies.
- The case stays open while Heedify waits for the customer. It ends when the agent marks it Resolved, or automatically after a number of days without a reply from the customer.
| State | Meaning |
|---|---|
| Queued | Waiting for an available agent. |
| Assigned | Pushed to an agent who has not opened it yet. |
| Accepted | Opened by the agent. |
| Replied | The agent has replied; Heedify waits for the customer. The first-response SLA stops here. |
| Resolved | Closed by the agent or a supervisor. |
| Auto-closed | Closed after the Auto-close after (days) delay without a reply from the customer. |
Agent availability and capacity
- Each agent handles several emails at a time, up to their mail capacity, set in their agent profile.
- An email counts against the capacity from the moment it is assigned until the agent replies or resolves it. A case waiting for the customer (Replied) no longer takes a place: an agent who has answered five emails can receive five new ones.
- Agents set their mail availability in the Agent Console (Ready or Paused), independently of their voice status. An agent in after-call work can still receive emails.
- An agent on a call receives no new email, but keeps the ones already on their desk.
- When an agent goes offline, the emails they have not opened go back to the queue at once; the emails they have opened go back after 15 minutes. Cases waiting for the customer stay with them.
Before you start
- Microsoft 365: an Exchange Online administrator and the Exchange Online PowerShell module, to create the shared mailbox and the access policy.
- Global Administrator (or Privileged Role Administrator) to grant admin consent to the Heedify Mail application.
- Heedify: the mail channel enabled on your tenant, and the Heedify Mail Application ID, both provided by Heedify.
- Heedify portal: Entity administrator rights to configure mail flows and shared templates in the Entity.
Emails never leave your tenant. Heedify reads them from the shared mailbox when an agent opens them and keeps only routing and reporting data. Your Exchange Online retention policy applies.
Step 1: Prepare the shared mailbox in Microsoft 365
The shared mailbox is the mail equivalent of the Teams resource account: an Exchange mailbox nobody signs in to, which carries your support address.
Use a shared mailbox. A Microsoft 365 group, a distribution list or a person’s mailbox does not work with Heedify.
Run these commands in Exchange Online PowerShell. Replace the names and addresses with your own, and <HEEDIFY_MAIL_APP_ID> with the Application ID provided by Heedify.
Connect-ExchangeOnline
# 1. Create the shared mailbox
New-Mailbox -Shared -Name "Support" -DisplayName "Support" `
-Alias support -PrimarySmtpAddress support@yourcompany.com
# 2. Add the other addresses that customers write to (optional)
Set-Mailbox support@yourcompany.com -EmailAddresses @{add="billing@yourcompany.com","returns@yourcompany.com"}
# 3. Group the contact center mailboxes
New-DistributionGroup -Name "Heedify CC Mailboxes" -Alias heedify-cc-mailboxes `
-Type Security -Members support@yourcompany.com
Set-DistributionGroup -Identity heedify-cc-mailboxes -HiddenFromAddressListsEnabled $true
# 4. Restrict the Heedify Mail application to this group
New-ApplicationAccessPolicy -AppId <HEEDIFY_MAIL_APP_ID> `
-PolicyScopeGroupId heedify-cc-mailboxes@yourcompany.com `
-AccessRight RestrictAccess `
-Description "Heedify Mail Channel"
Why command 4 matters: Heedify reaches only this mailbox
When you grant admin consent to the Heedify Mail application (next section), Microsoft 365 gives it the Mail.ReadWrite and Mail.Send permissions on the whole tenant: on its own, consent would let the application open any mailbox, including your CEO’s or HR’s.
Command 4 removes that risk. It creates an Exchange Online application access policy that restricts the Heedify Mail application to the members of the heedify-cc-mailboxes group, and to nothing else:
| Parameter | What it does |
|---|---|
-AppId <HEEDIFY_MAIL_APP_ID> |
The application the policy applies to: Heedify Mail, and only it. Your other applications are not affected. |
-PolicyScopeGroupId heedify-cc-mailboxes@… |
The group created by command 3. Only the mailboxes in this group are reachable. |
-AccessRight RestrictAccess |
Restrict: the application can access these mailboxes and no other. Every request to a mailbox outside the group is refused by Exchange Online itself. |
-Description |
A free label, to recognise the policy later. |
In practice:
- Heedify can read and send emails only from the contact center mailboxes, for example
support@yourcompany.com. - Any other mailbox of the tenant stays out of reach, even though consent was granted. The refusal comes from Microsoft, not from Heedify.
- To connect another mailbox later, add it to the group:
Add-DistributionGroupMember -Identity heedify-cc-mailboxes -Member billing-team@yourcompany.com. To disconnect one, remove it from the group. -
You can prove the restriction at any time with the two tests below: Granted for the contact center mailbox, Denied for any other.
- One mailbox per business unit is usually enough: aliases (
billing@,returns@) arrive in the same mailbox, and routing rules send each one to its queue. - A shared mailbox needs no license up to 50 GB. Above 50 GB, or for online archiving or litigation hold, it needs an Exchange Online Plan 2 license.
Grant consent and check the access
- In the Heedify portal, open the consent page and grant admin consent to Heedify Mail. See Grant consent.
- Wait: the access policy can take up to one hour to apply. A test run before that fails and looks like a consent problem.
-
Check that Heedify can reach the contact center mailbox, and only that one:
# Must return AccessCheckResult: Granted Test-ApplicationAccessPolicy -Identity support@yourcompany.com -AppId <HEEDIFY_MAIL_APP_ID> # Must return AccessCheckResult: Denied (any mailbox outside the group) Test-ApplicationAccessPolicy -Identity ceo@yourcompany.com -AppId <HEEDIFY_MAIL_APP_ID>
Without command 4, consent gives the application access to every mailbox of the tenant (see Why command 4 matters). Never skip it, and always run the Denied test.
Step 2: Turn on the Mail channel on the queues
A queue handles emails only when its Mail channel is on.
- Open Queues and edit the queue (or click Add to create one).
- On the General tab, under Queue Type, turn on Mail. A queue can handle calls, chats and emails at the same time, with the same agents.
- Check the agents of the queue: their skill weight in the queue also applies to emails.
- Click Save.
Repeat for every queue that will receive emails. See Queues.
Step 3: Create the shared mail templates
Shared templates speak on behalf of your company: reply texts, the signature, and the auto-acknowledgements. Create them before the mail flow, which uses the auto-acknowledgement templates.
- Open Mail Templates from the sidebar and pick the Entity.
-
Click Add and fill in the form:
Field Description Name Name shown to agents in the template list. Required. Kind Reply, Signature or Auto-acknowledgement (see below). Language Language of the text, for example enorfr.Shortcut Optional short code the agent types to insert the template. Subject Subject of the email. Not shown for a Signature. Body The text. HTML is allowed. Required. Enabled Off hides the template without deleting it. - Click Save.
| Kind | Used by | Who reads it before the customer |
|---|---|---|
| Reply | The agent, who inserts it into a reply. | The agent, who sees it and can edit it before sending. |
| Signature | Added to the agent’s replies. | The agent, who sees it and writes above it. |
| Auto-acknowledgement | The mail flow, which sends it on its own when a new case opens (see Step 5). | Nobody: proofread it carefully. |
Variables
Insert these markers in the subject or body. Heedify replaces them when the email is prepared, and the agent sees the result before sending.
| Variable | Value |
|---|---|
| `` | Customer’s name, from their email address. |
| `` | Customer’s name for a greeting, empty when unknown. |
| `` | Case reference, for example A7K3-2291. |
| `` | Subject of the customer’s email. |
| `` | Name of the agent who replies. |
| `` | Email address of the agent who replies. |
| `` | Address of the shared mailbox. |
| `` | Name of the queue that handles the case. |
| `` | Date and time by which a reply is due. Auto-acknowledgement only. |
| `` | Your business hours in one line, for example Monday 09:00–18:00, …. Auto-acknowledgement only. |
An unknown marker is replaced by nothing: a typo such as `` leaves a gap in the email the customer receives, with no error. Check the spelling against this table.
Agents can also create their own personal templates in the Agent Console. They are their working drafts: they do not appear in Mail Templates.
Step 4: Create the mail flow
A mail flow connects one shared mailbox to your queues. It is the mail equivalent of a call flow.
- Open Mail Flows from the sidebar and pick the Entity.
- Click Add. The button is greyed out until at least one queue of the Entity has the Mail channel on (Step 2).
- Fill in the General tab, then the other tabs, and click Save.
General tab
| Field | Description | Default |
|---|---|---|
| Name | Name of the mail flow. Required. | |
| Mailbox | Address of the shared mailbox from Step 1. Required. One mail flow per mailbox. | |
| Monitored addresses | One address per line: the mailbox itself and each alias. A routing rule on the recipient address can only recognise the addresses listed here. | |
| Default queue | Where an email goes when no routing rule matches. Only queues with the Mail channel on are listed. Required. | |
| First response SLA (minutes) | Time within which the customer should receive a first reply. | 240 |
| Auto-close after (days) | A case the agent has replied to closes after this many calendar days without an answer from the customer. | 7 |
| Accept timeout (minutes) | An email assigned to an agent who does not open it within this delay goes back to the queue. | 10 |
| Reopen window (days) | A customer reply within this many days after closing reopens the same case. After that, it opens a new case. | 14 |
| Same agent window (hours) | A customer reply within this delay goes straight back to the agent who handled the case, if they are available. | 72 |
| Enabled | Off stops routing for this mailbox. Emails stay in the mailbox. | On |
| SLA counts business hours only | The SLA clock stops outside the business hours of the Business hours tab. | On |
| Allow outbound mail without an existing case | Lets agents write to a customer who has no open case, for example after a phone call. Off: agents only reply within existing cases. | Off |
Routing rules tab
Routing rules are the mail equivalent of an IVR menu: they pick the queue for each new email. Heedify reads them from top to bottom and applies the first rule that matches.
-
Click Add for each rule and fill in the columns:
Column Description Field What the rule looks at: toRecipient(the address the customer wrote to),from(the sender’s address),fromDomain(the sender’s domain) orsubject.Operator equals,containsorregex(a regular expression).Value The text to look for. Not case-sensitive, except for subject.Queue The queue that receives the email. Required: only queues with the Mail channel on are listed. Priority A higher number is served first in the queue. 0by default.Tags Labels added to the case, separated by commas, for example billing, vip. Agents see them, and reports can be filtered by tag. -
Click Save.
Example for one mailbox with two aliases:
| # | Field | Operator | Value | Queue | Priority | Tags |
|---|---|---|---|---|---|---|
| 1 | fromDomain |
equals |
keyaccount.com |
Key Accounts | 10 |
vip |
| 2 | toRecipient |
equals |
billing@yourcompany.com |
Billing | 0 |
billing |
| 3 | toRecipient |
equals |
returns@yourcompany.com |
After-sales | 0 |
returns |
An email from keyaccount.com goes to Key Accounts even when it is sent to billing@, because rule 1 comes first. An email that matches no rule goes to the Default queue, without tags.
A rule on
toRecipientonly recognises addresses listed in Monitored addresses, and only when the customer put that address in To. An alias in Cc is not detected.
AI reply suggestion tab
When AI reply suggestion is on, the agent gets a draft reply built from the conversation and from your shared Reply templates. The agent reads it, edits it and sends it: nothing is ever sent automatically. It is off by default.
- Business instructions (optional): describe your business, your tone and what must never be promised, for example We are a freight carrier. Address the customer formally. Never give a delivery date that is not in the thread.
- These instructions add to Heedify’s safety rules and never replace them: the suggestion never invents a tracking number, a date, an amount or a commitment that is not in the conversation, and the customer’s message is always treated as content, never as an instruction.
Step 5: Set business hours and the auto-acknowledgement
The Business hours tab of the mail flow sets when your team works, which drives the SLA clock and the auto-acknowledgement.
- Set the Time zone, for example
Europe/Paris. - For each day, add one or more opening ranges, for example
09:00–12:30and13:30–18:00. A day without a range is closed. - Under Holidays, add the dates when the team is closed.
- Turn on Auto-acknowledgement and pick two templates of the Auto-acknowledgement kind:
- During business hours: sent when the email arrives while the team is working.
- Outside business hours: sent when it arrives outside the opening ranges or on a holiday. Mention your hours with ``.
If you pick no template, Heedify sends its built-in message in the mail flow’s language: it gives the case reference, the date by which a reply is due, and asks the customer to keep the reference in the subject.
- Click Save.
The auto-acknowledgement is sent only for a new case, never for a customer reply in an existing case. It is never sent to an auto-reply, an out-of-office message or a delivery failure report, and Heedify marks it so that Exchange does not auto-reply to it: two auto-responders cannot start a loop.
SLA and escalation
The First response SLA measures the time between the moment an email reaches the queue and the agent’s first reply.
| When | What happens |
|---|---|
| 80% of the SLA is used | Supervisors receive a warning. |
| 100% of the SLA is used | The case is marked SLA breached, its priority rises by 10 so it moves up the queue, and supervisors are alerted. |
| The agent replies | The SLA clock stops. |
With SLA counts business hours only on, the clock stops outside the opening ranges. Example with hours from 09:00 to 18:00 and a 4-hour SLA: an email received on Friday at 17:00 uses 1 hour on Friday and is due on Monday at 12:00, not on Saturday.
Two other delays are counted in real time, whatever the business hours:
- Accept timeout: an agent opens an email or does not. After the delay, the email goes back to the queue with a higher priority and is offered to another agent. After 3 reassignments, it stays in the queue, visible to supervisors.
- Auto-close after (days): counted in calendar days. A customer does not stop the clock at the weekend.
An expired SLA never closes a case: an email without a reply never disappears silently.
Case reference and replies
Each case has a reference, for example A7K3-2291. Heedify adds it to the subject of every email it sends, as [#A7K3-2291].
When the customer replies, Heedify links the reply to the case in this order:
- The reply belongs to the same email conversation.
- The subject contains the case reference, even if the customer started a new email.
- Otherwise, the email opens a new case.
A reply to a case goes straight back to the agent who handled it if they are available within the Same agent window; otherwise it goes back to the queue with a higher priority. A reply after closing reopens the same case within the Reopen window.
Agents’ replies are sent from the mailbox address, never from the agent’s own address, and land in the shared mailbox’s Sent Items: you can audit every exchange in Outlook. Attachments are limited to 25 MB per email, the Exchange Online limit.
Editing and deleting
- Open a mail flow or a template from its list and click the edit icon. Changes apply to new emails; cases already open keep their queue.
- Deleting a mail flow stops routing for its mailbox. The emails stay in the mailbox and the shared mailbox itself is not deleted.
- Deleting a template removes it from agents’ lists. To stop using it temporarily, turn off Enabled instead.
- To stop the mail channel in Microsoft 365, remove the mailbox from the
heedify-cc-mailboxesgroup, or delete the application access policy and revoke the consent.
Troubleshooting
| Symptom | Likely cause | What to do |
|---|---|---|
| Add is greyed out in Mail Flows | No queue of the Entity has the Mail channel on. | Turn on Mail in the queue’s Queue Type (Step 2). |
Saving a mail flow fails with mailbox … is already used |
Another mail flow already watches this mailbox. | Use one mail flow per mailbox, with routing rules for each alias. |
Saving fails with addresses must include the mailbox itself |
Monitored addresses does not list the mailbox address. | Add the mailbox address on its own line. |
| No email reaches Heedify | The access policy is not applied yet, consent is missing, or the mailbox is not in the group. | Wait an hour after creating the policy, check consent, then run Test-ApplicationAccessPolicy. |
| Emails sent to an alias go to the default queue | The alias is missing from Monitored addresses, or the customer put it in Cc. | Add the alias to Monitored addresses. |
| The tags of a rule never appear | Another rule above it matches first. | Move the specific rules (sender, domain) above the general ones (recipient). |
| A customer reply opens a new case | The customer started a new email and removed the reference from the subject. | Ask customers to keep the [#…] reference in the subject; the auto-acknowledgement says so. |
| The auto-acknowledgement shows an empty value | A variable is misspelled in the template. | Check the spelling against the variables table. |
| Emails stay Queued | No agent of the queue is Ready for mail, or all are at full capacity. | Check agents’ mail availability in the Agent Console and their mail capacity. |
FAQ
Does Heedify store our customers’ emails? No. Emails stay in your Microsoft 365 shared mailbox, under your Exchange Online retention policy. Heedify keeps only what it needs to route and report: the case reference, the sender address, the dates, the queue, the agent and the tags.
Do I need a Microsoft 365 license for the shared mailbox? Not up to 50 GB. A shared mailbox needs an Exchange Online Plan 2 license only above 50 GB, or for online archiving and litigation hold.
Can Heedify read the other mailboxes of my tenant?
No. The application access policy restricts the Heedify Mail application to the mailboxes of the group you create. Test-ApplicationAccessPolicy returns Granted for the contact center mailbox and Denied for any other mailbox.
How does Heedify link a customer’s reply to the same case?
Each case gets a reference, for example [#A7K3-2291], added to the subject of every email Heedify sends. When the customer replies in the same conversation or keeps the reference in the subject, the reply joins the same case and goes back to the same agent when they are available.
Can the auto-acknowledgement create email loops with other auto-responders? No. Heedify sends an auto-acknowledgement only for a new case, never for an auto-reply, an out-of-office message or a delivery failure report, and marks its own message so that Exchange does not auto-reply to it.
Works with: Microsoft 365, Exchange Online, Microsoft Graph, shared mailboxes, Heedify Agent Console, Queues, Grant consent.