Connect a Gmail / Outlook mailbox and organise it with rules and AI filing
The user connects their mailbox via OAuth (or app password / IMAP), tests it, reconnects it if the token expires, then organises the inbox: automatic classification, triage rules, folders and the AI organiser. Automation starts off and in draft mode; automatic mode requires the Law 25 notice.
Summary
Who does what, step by step
Steps
- 1
Choose the provider SME marketing team
Email › Mailboxes › « + Connect a mailbox »: Google Workspace / Gmail, Microsoft 365 / Outlook, Yahoo Mail (IMAP app password) or « Other (IMAP/SMTP) ». For Gmail and Outlook « OAuth (recommended) » is preselected; « App password » remains possible.
- 2
Authorise access SME marketing team
With OAuth, « Authorise → » redirects you to the provider: no password is stored; when you return, « Mailbox connected. ». Otherwise for IMAP: address, app password (generated in your provider’s security settings), IMAP host and port, optional SMTP. If the OAuth app is not configured server-side, « OAuth app not configured » offers the app password.
- 3
Test the connection SME marketing team
« Test the connection » shows « ● Connection verified » or the detailed failure. Mailbox states are Connected, Syncing…, Error, Disconnected or Pending; the last sync and message count are shown. To send, the identity must pass « Verify ».
- 4
Reconnect if the token is dead SME marketing team
If the state says « Account not connected » or « Wrong account connected », use « Reconnect account » (Microsoft or Google) or « Reconnect mailbox » by signing in with the mailbox’s own address. Result: « Mailbox reconnected: the connection is restored. »; otherwise the error detail is shown.
- 5
Read and classify the inbox SME marketing team
Email › Inbox: Mailbox, Folder, Category, Priority, Status filters and search; Messages / Conversations toggle. Each message shows sentiment and intent; « Reclassify » or « ✨ Reclassify with AI » fixes category and priority (Low, Normal, High, Urgent).
- 6
Create a triage rule SME marketing team
Email › Rules & automation › « + New rule »: Name, Trigger (Email received or Email classified), Conditions (sender contains, subject contains, keywords, regular expression, category, priority, AND / OR matching, mailbox), Actions (Classify (AI), Set category, Set priority, Move to folder, Add tags, Assign to an agent, Reply (template)), Autonomy (Suggest, Draft only, Autonomous), priority order, « Stop if matched ».
- 7
Set the automation policy Organization owner-administrator
« Automation policy »: « Automation enabled », mode (autonomy), minimum confidence (0–1 threshold below which the AI never acts alone), daily cap, quiet hours. « Automatic » mode requires ticking « I acknowledge the Law 25 notice » then « Save acknowledgment ». « ⛔ Emergency stop » then « Stop everything » disables automation and pauses all rules.
/email/rulesConsent gate - 8
Let the AI file unfiled messages AI
« ✨ Organize the inbox with AI » files unfiled messages into existing folders (nothing is sent); if the AI is unavailable a deterministic rule takes over (« deterministic rule (AI unavailable) »). « ✨ Organize with AI » on one message files it into the best existing folder.
- 9
Reply with an AI draft SME marketing team
On a message, « ✨ AI draft » suggests replies to insert; « Save draft » or « Send » (a human click). A message’s attachments are filed in the Documents hub.
Collaboration
- The owner-administrator sets the automation policy and the Law 25 notice; members create their rules within that frame.
- A connected mailbox can be shared with colleagues (see the shared-mailbox workflow).
- Viewers see the inbox read-only: « Your role does not allow editing the mailbox ».
With the AI Copilot
- « « Summarise my inbox » (email_inbox_counts) and « create a rule that files invoices »: the copilot opens email-rule-create, you confirm. »
- « « Test my mailbox connection » (email_mailbox_test); the OAuth connection remains a user action. »
Outcome
A connected, verified and reconnectable mailbox whose messages are classified and filed, with automation bounded by your thresholds and your Law 25 agreement.
Pitfalls
See also
- Media production: image, video, voice and avatar with credits and previews
- Church or NPO: compliant newsletter and community engagement cycle
- Prospect to deal: discovery, enrichment, sequence, reply, CRM
- Mail merge: personalised send to many recipients with templates and variables
- Email tracking and AI-assisted follow-ups
- Shared mailbox and unified inbox: assignment, AI label, draft and handoff between teammates