Sort a shared Outlook inbox into folders by topic and urgency
Build a Kovca workflow that starts from a new Outlook email, files it in the folder for the Support Triage category, and posts to Slack when the priority is high or a person should review it.
A shared Outlook mailbox (support@, info@, help@) mixes billing questions, how-to questions, bug reports, account and access issues, and mail that is none of those. Someone reads each message to put it in the right folder. Urgent mail waits in the same pile.
This guide builds a workflow that starts when a new email arrives, classifies the subject and the preview, and moves the message into the folder for that category. When the priority is high, or a person should review it, the workflow also posts a line to Slack with the subject, the category, the priority, and a link that opens the message. You'll start from a template, test it, and activate it on the mailbox. Slack is in the template so the urgent line has somewhere to go. Remove Ping channel, Ping text, and Needs review? if the folder is enough.
The template already uses the Outlook New email trigger, Outlook Move message five times, and Slack Send message. It does not store an Outlook or Slack account. You choose the accounts when you activate. Until then the draft saves, and Studio tests simulate the Outlook and Slack steps.
Support Triage returns one of billing, technical, account, product, or other, plus priority (low, medium, or high) and requires_human_review. There is no separate sales category. other is the bucket for something else. This template files other. It does not delete it.
If the shared mailbox is Gmail, Label a shared Gmail inbox by topic and urgency is that job with labels.
If the mailbox only gets a few messages a day, an Outlook rule that moves mail for the senders and the words you list, and a person who reads what is left, is less machinery than this. A rule matches those fixed words and senders. It does not judge the topic and the urgency, and it does not post to Slack when the priority is high or a person should review the message. The workflow is for the inbox where someone is already reading every message to decide the folder and the urgency.
What you'll build
Send real requests is off. The run returned 200 and used 5 credits. File technical and Ping channel are marked sample. category is technical, priority is high, folder_id is folder-technical, needs_person is true, and slack_ts is the sample timestamp.
The false branch goes straight to Result. A message that is not high, and that does not need a person, still gets filed. It does not post to Slack.
Outlook New email connects to Support Triage, then Folder, then Topic. Five File steps sit under Topic and meet at Moved. Ping text and Moved both reach Needs review?. The true branch goes to Ping channel, then Result. The false branch goes to Result. The trigger card shows the account is still to connect.
Watch the test
Watch the Studio test (MP4). It is a screen recording of the production Studio at kovca.io, in light mode, 12 seconds. The frame is the page. Browser chrome is not in the frame. A caption under the picture reads: Studio test. Send real requests is off. Outlook and Slack actions are samples. The clip opens on the canvas, then cuts to the Test tab. Run test shows Running, then the result. The scroll from that running line down to the finished result is cut. Nothing that remains is sped up. No Outlook account is connected, no Slack account is connected, and Send real requests stays off. File technical and Ping channel are marked sample. That is not a message moved in Outlook, and it is not a message posted in Slack. The result stays on screen through slack_ts and the closing brace.
Studio test. Send real requests is off. Status 200. 5 credits. category technical, priority high, folder_id folder-technical. File technical and Ping channel are marked sample.
The recording follows these steps:
- The canvas shows Outlook: New email connected to Support Triage, then Folder, then Topic. The five File steps sit under Topic and meet at Moved. Ping text and Needs review? lead to Ping channel, then Result. The trigger card shows the account is still to connect.
- The Test tab is open. The input is the checkout email: subject "The checkout page will not load", preview "Every attempt to open checkout fails with a 502. We have not taken an order since 9am.", from
alex@example.com. Send real requests is off. The switch's own text says action steps return their sample result and nothing is sent. - Run test. The panel says it is running. The checkout email stays in the input.
- The status is 200. The panel shows 5 credits used for that one Decision AI step. The category is
technical, the priority ishigh, andrequires_human_reviewis false.routeistechnical.folder_idisfolder-technical.movedandneeds_personare true.notifiedis true.slack_tsis1762004012.004900. outlook_move_message_2andslack_send_messagesucceeded and are marked sample. Those steps are File technical and Ping channel. The other four File steps are skipped. That output, includingslack_tsand the closing brace, stays on screen through the end of the recording.
That is the Studio test of the checkout email shown in the recording. The JSON later in this guide is that output. What Support Triage returns on another message depends on that message.
A second Studio test used the double-charge email: subject "Invoice 4412 was charged twice", preview "We were billed twice for invoice 4412 this month. Please send one of the charges back." It came back billing and medium, with requires_human_review false. File billing ran and was marked sample. Ping channel was skipped. notified and slack_ts were null.
Build it in the Studio
1Start from the template
Click Use this template above, or open Outlook inbox folders in Workflows.
The draft opens on the canvas. The components library is on the left. Triggers, AI, Action in an app, Data transformation, Flow, Core, and Human review are the groups. This workflow uses Outlook and Slack, so both are under Triggers and under Action in an app once the draft uses them. Apps you have not connected, and that this workflow does not use, stay behind Connect another app. The pictures below are the production Studio, in light mode, with no Outlook or Slack account connected. The template's step titles are the ones in the table above. The last card on the canvas is Result.
Triggers. General, Slack, and Outlook. Outlook's line says it starts workflows from new Outlook email, and can send, reply to, or move messages. The line under the list points at Connect another app.
Move message is on the first row. Its line says it moves a message to another folder within the specified user's mailbox. Send email and Reply are beside it.
Send message is the first card. Its line says it posts a message to a Slack channel, DM, or private group. Add reaction is next to it.
2The workflow starts from a new email
Select the input step. It is Outlook: New email, not an API request. The account line asks you to connect Outlook. Leave it empty while you test.
The template leaves every trigger setting unset, so a new message in the connected mailbox starts a run. Connect the shared mailbox. If the account also receives mail you do not want filed, set one of the filters below.
The folder control says to connect Outlook to choose a mail folder. Only from, Subject contains, and Only to are empty. Only with attachments is unchecked. Importance displays low. Apply settings is under the fields.
Only in folder watches one Outlook folder. Until an account is connected, the control says to connect Outlook to choose a mail folder. Only from is one sender address. Only to is one address on the To line. A message where the shared address is only on Cc does not match Only to. Subject contains keeps a run from starting unless the subject contains that text. Only with attachments is true or false.
The Importance menu shows low until you choose a value and apply it. The template does not apply one, so it does not limit mail to low importance. That menu is the sender's Outlook flag (low, normal, or high). It is separate from Support Triage's priority.
A live message that does not match a filter you set does not start a run. The Test tab and an API call send the event you provide, so they still run when a filter would have excluded that message.
The trigger description says it fires when a new message is received in the Outlook mailbox. The same message does not start two runs: the event id is message_id. A later message is a new event and runs again, including a reply in the same conversation.
Event fields later steps read:
The event also includes from, received_at, conversation_id, has_attachments, and event_type. from is a JSON object, not an email address. The trigger's sample looks like { "email_address": { "address": "ar@northwind.example", "name": "Northwind Accounts Receivable" } }. This workflow does not read from. A manual run or an API call can omit fields the steps don't read.
preview is described as the first ~255 characters of the message body, as plain text. The field's own limit is 8,000 characters. Support Triage's subject accepts at most 200 characters. The event's subject can be up to 8,000. A longer subject fails this step. message is required, must not be empty, and accepts at most 8,000 characters. An empty preview fails Support Triage.
The trigger's own sample is an overdue invoice, not one of the messages in this guide. Use the template's examples, or mail you have actually seen.
3Classify the email
Select Support Triage. subject is input.subject. message is input.preview. There is no terms field and no criteria list. The node has those two inputs.
subject is input.subject. message is input.preview. The last test result starts with category technical and priority high.
The node returns:
category:billing,technical,account,product, orother.priority:low,medium, orhigh.requires_human_review: true or false.
What each category means, in the node's own wording:
A how-to question and a feature request both sit in product. A bug report and an outage both sit in technical. A sales enquiry is not its own category. Partnerships and job inquiries are examples of other.
priority follows how urgent the message is. low is a general question or feedback, and nothing is blocked. medium is a problem that needs to be fixed, and the customer can still use the product. high is blocked right now: the product is down, a core feature is broken, or they cannot complete their work. A message the node treats as a security problem (unauthorized access, a hijacked account, leaked data, or suspicious activity) also comes back high, even when the urgency on its own would have been lower.
requires_human_review is true when a legal threat is not clearly absent, when a security concern is not clearly absent, or when the category or the urgency is ambiguous. The category and the priority are still the most likely ones. A legal threat sets requires_human_review and does not, by itself, set priority to high. This template sends both cases to Slack: priority high, and requires_human_review true.
4Pick the folder
Select Folder. A lookup maps one value through a table you write. The value is nodes.support_triage.output.category.
Look up is nodes.support_triage.output.category. billing, technical, account, product, and other each map to a folder id. The fallback is folder-other.
Those strings are stand-ins. They are not folder ids from a mailbox. Move message's own description of Folder ID is "The destination folder ID, or a well-known folder name (e.g., 'inbox', 'deleteditems', 'drafts', 'sentitems')." A folder you create in Outlook has its own id. Once an account is connected, Only in folder on the trigger lists the mailbox's folders. Replace each stand-in with an id from that list, or with one of those well-known names, before you activate.
The five categories are the only values the node returns, so the fallback is the row you get if the category is missing. A missing category does not invent a folder name. It uses folder-other, and Topic's default branch files it with File other.
5Route on the category
Select Topic. The switch reads nodes.support_triage.output.category and continues on the first matching case.
Route on is nodes.support_triage.output.category. The cases are billing, technical, account, product, and other. Each case name matches that one value. The description says everything else continues on default.
route in the result is the case that ran. A normal other message has route other. A missing category has route default and still uses File other.
6Move the message
Each File step is Outlook's Move message action. Every one of them sends the same two inputs. The switch decides which one runs.
Connect Outlook is still to do. If it fails is Continue (output.ok is false). Message ID is input.message_id. Folder ID is nodes.lookup.output.result. The last test is marked simulated.
If it fails is Continue (output.ok is false). A missed move does not stop Ping channel, and it does not fail the run. moved is false when the step does not succeed. The step is safe to retry: repeating it has no further effect, and Kovca retries it if Outlook is briefly unavailable.
The step warns that it deletes or irreversibly changes data in Outlook. Moving a message out of the inbox is that change. Test with real requests only on a message you can put back. Choose the Outlook account on each File step before you activate. In a Studio test, with Send real requests off, the step returns its sample and is marked sample. The sample is ok: true and an empty result. That is not a message moved in your mailbox.
Moved joins the five ok values and keeps the first one that has a value. The four steps on branches that did not run have no value, so the result is the File step that did run.
7Decide what to post
Ping text runs on every message. Slack sends it only on the true branch.
The template is the priority, the category, the subject, a Human review line, and the web link. The placeholders are nodes.support_triage.output.priority, nodes.support_triage.output.category, input.subject, nodes.support_triage.output.requires_human_review, and input.web_link.
On the checkout email, with a high technical result and requires_human_review false, that text is high technical: The checkout page will not load, then Human review: false, then the web_link. The line reports requires_human_review. It is separate from needs_person, which is the condition below.
Select Needs review?. A condition continues on true when the rules match. This one continues when any rule matches.
Continue on true when any rule matches. The first rule is priority equals high. The second rule is requires_human_review is true.
A high message takes the true branch even when requires_human_review is false. That is the checkout email: needs_person is true, and the Slack line still says Human review: false. A low or medium message takes the true branch only when requires_human_review is true.
8Post the line
Ping channel is Slack's Send message action. It runs after Needs review? on the true branch.
Channel is the fixed value C08SUPPORT1. Message is nodes.text.output.text. Reply in thread and Also post to the channel are not set. The last test is marked simulated.
C08SUPPORT1 is a stand-in, the same channel id as Send message's sample. Replace it with the channel you want. The field accepts an id or a name.
The step's own line says it is sent once: Kovca never retries it automatically. If it fails is Continue (output.ok is false). A failed post does not undo the move, and it does not fail the run. notified is false when it does not succeed. In a Studio test the step returns its sample and is marked sample. The sample timestamp is 1762004012.004900. That is not a message in Slack.
markdown_text accepts at most 8,000 characters. A very long subject can push the line past that, and the step then fails. With If it fails set to continue, the run still succeeds and notified is false.
Ping channel is optional. If the folder is enough, delete Ping channel, Ping text, and Needs review?, point Moved at Result, and remove the condition field and the Slack fields from Result (needs_person, ping, notified, and slack_ts). The Slack line is the part of this template you can drop without changing how the message is filed.
9Test it
Open the Test tab. Checkout page and Double charge are the template's examples. Sample new email is the trigger's own sample, which is an overdue invoice, not one of these messages. Leave Send real requests off. The File step for the category, and on a high or review result Ping channel, return their samples and are marked sample. Nothing is moved in Outlook, and nothing is posted in Slack.
What Support Triage returns depends on the message. A high result, or requires_human_review true, takes Ping channel. low and medium with review false go to Result after the move, and Ping channel is skipped. notified and slack_ts come back null on the false branch.
Before you activate, run messages you have actually seen, including ones that should be high and ones that should not. When the routes look right, turn on Send real requests once, with both accounts chosen and the stand-in folder ids replaced, on a message where an extra move and an extra Slack line are harmless.
Publish, call it, and activate it
The same workflow can be called over the API. The body uses the trigger's field names. Create an API key under API keys and keep it on your backend.
That curl calls a published workflow. It runs one File step for real, and on a high or review result it runs Send message for real. The steps need the Outlook account on the File step that runs and the Slack account on Ping channel. If an account is missing, the action fails. With If it fails set to continue, the run still succeeds and moved or notified is false. A published call does not return the sample you see with Send real requests off.
The JSON below is the output of the checkout email's Studio test shown in the recording above. File technical and Send message are simulated. This is not a response from a published API call.
The JSON above leaves out credits. A succeeded execute response includes that field. This example is the simulated run, so the actions are not charged. credits for an API call of this shape is 10: 1 for the API run, 5 for Support Triage, 2 for the one File step, and 2 for Ping channel. The Studio test does not charge the run fee, which is why its panel shows 5.
Look up the run later. This returns status, timing, and steps. It does not return the output. Keep the execute response if you need the category or the sample timestamp. Runs are kept for 30 days.
AAMkAGI2DEMOAAA= is a key you choose. The message id is a natural one. Keys are kept for 24 hours. A retry with the same key and the same request returns the original run instead of moving again. A new key can move again. Move message can be repeated without a second effect. Send message cannot: a later run posts another line. Kovca does not store the message or the output.
To run it from Outlook, open Activate. The checklist is what's left: connect Outlook, connect Slack, and, once an account is connected, choose that account on the trigger, on each File step, and on Ping channel. It says up to 23 credits per event. The activate row is Publish and activate: run on every new email. The button on that row says Publish & activate. That publishes the draft and starts it. A live automation runs that pinned version. Later edits don't reach it until you publish them to the automation.
Connect Outlook and Connect Slack are still to do. Tested is checked. Up to 23 credits per event. Publish and activate: run on every new email. The button says Publish & activate.
Connect Outlook and Slack from the checklist, or from the steps, when the routes in the Test tab look right. Until then, leave the accounts empty and keep Send real requests off. You sign in on Microsoft's page for Outlook, and on Slack's page for Slack. The sign-in page names Composio, which holds the account access and uses it only for that app. Kovca keeps an ID for the account.
A new message that passes the trigger settings starts a run when Outlook sends the event. Follow runs on the Runs page (filter by the workflow). While an automation is paused, events that arrive are skipped. Kovca does not keep them to run later. A failed run is not retried on its own, because the Slack message may already have been posted.
If someone already reads the inbox
You don't need this if a person can read the shared inbox and the volume is small. Outlook can move a message with a rule. A rule matches fixed words and senders you list. It does not judge the topic and the urgency, and it does not apply one of these five categories. Power Automate is another way to move Outlook mail without Kovca.
What the workflow adds is the same classification on every new message the trigger accepts, one folder for the category, and a Slack line only when the priority is high or requires_human_review is true. You still choose the accounts, replace the stand-in folder ids, and read a sample of results before you activate it.
Make it yours
- Watch the shared mailbox, or one folder. Leave the filters empty when the connected account is the shared mailbox and every new message should run. Set Only in folder once Outlook is connected if the mail already lands in one folder, and set Only to to
support@example.com(or your real address) if the account also receives other mail. - Replace the folder ids.
folder-billing,folder-technical,folder-account,folder-product, andfolder-otherare not ids from a mailbox. Change them in Folder. Every File step sends that lookup result, so you change the id in one place. A well-known name the action accepts (inbox,deleteditems,drafts,sentitems) works in that cell too. - Leave medium and low mail off Slack. That is already what the false branch does, unless
requires_human_reviewis true. A high message still posts, even when the review flag is false. - Drop the Slack line. Delete Ping channel, Ping text, and Needs review? if the folder is enough, connect Moved to Result, and remove the condition field and the Slack fields from Result (
needs_person,ping,notified, andslack_ts).C08SUPPORT1is a stand-in until you do use Slack. - Do not file a bug tracker issue from here. A
technicalresult only moves the message, and posts to Slack when the priority is high or a person should review it. To pull steps out of an email and open a tracker issue, start from a guide that files an issue. - Keep the subject short enough.
subjecton Support Triage can be at most 200 characters. A longer Outlook subject stops the run there. An emptypreviewstops it too, becausemessageis required. - Change it without surprising a live mailbox. Edit the draft and publish the changes to the automation. The running version stays pinned until you do.
What it costs
Credits, and only for steps that succeed. Billing is the list. Every plan includes 5,000 credits a month in your first workspace. Pay As You Go adds credits beyond that at $0.001 each.
A Studio test skips the run fee. It does not skip Support Triage. That step is 5 credits when it succeeds, including a test with Send real requests off. A simulated action is not charged, and an action that fails is not charged. A skipped action is not charged. With Send real requests off, the File step that runs is simulated, and on a high or review result Ping channel is simulated, so they add nothing.
- An Outlook event: 6 credits for the run.
- A published API call: 1 credit for the run.
- Support Triage: 5 credits when it succeeds.
- The File step that runs: 2 credits when it runs for real and succeeds. Only one of the five runs.
- Ping channel: 2 credits when it runs for real and succeeds, and only on the true branch.
The condition, the switch, the lookup, the merge, and the text step use no credits. A branch that doesn't run isn't charged. The Activate panel adds every step together, including the File steps that do not run on the same event, so its number is an upper bound for a live event. With this template that upper bound is 23 credits per event: the 6 credit event fee, Support Triage, all five File steps, and Ping channel. A live event that files and pings is 15 when the one File step and Ping channel both succeed. A live event that only files is 13. A published API call is 10 when it files and pings, and 8 when it only files. The response's credits field is the run's total. See the workflows API, HTTP actions, and automations.