This guide walks you through connecting your email inbox to Prosponsive and building an automated triage workflow. By the end, you'll have routing rules, deletion rules, auto-approval, and bulk actions working together.
Let's connect your email inbox so Prosponsive can help you triage it.
| Field | Example (Gmail) | Example (Outlook) | Example (iCloud) |
|---|---|---|---|
| Host | imap.gmail.com | outlook.office365.com | imap.mail.me.com |
| Port | 993 | 993 | 993 |
| User | you@gmail.com | you@company.com | you@company.com |
| Password | App password (see below) | Your password or app password | App-Specific password (see below) |
| SSL/TLS | Enabled | Enabled | Enabled |
Gmail users: Gmail requires an "App Password" instead of your regular password. Go to myaccount.google.com/apppasswords, generate one for "Prosponsive", and use that as the password above.
Outlook/Microsoft 365 users: If your organization uses modern authentication, you may need to use OAuth2 instead of a password. Ask your IT admin if app passwords are enabled.
iCloud users: Apple requires an "App-Specific Password" instead of your regular password. Go to your iCloud account management page and click "App-Specific Passwords", generate one for "Prosponsive", and use that as password above.
This workflow polls your inbox every 5 minutes and sends new emails to Prosponsive for triage. It does not mark them as read, or impact your normal email client in any way.
This allows the email agent to move emails between IMAP folders when folder routing rules are configured.
With the IMAP workflow active, new emails will start appearing in the Email Inbox channel within 5 minutes. Send yourself one or two to see it in action.
Each email appears as a thread. The agent's response includes:
You can approve, or implicitly decline by replying to guide the agent differently.
Let's say a Project Zen email has arrived in your Email Inbox. You want to move it to its own channel to keep things organized.
Move this to Project Zen
Click "Project Zen" in the sidebar to see your moved thread in its new home.
Now let's do the same for an email requesting your approval.
Move this to Approvals
The "Approvals" channel is created automatically. You now have a dedicated space for approval requests — no more hunting through your inbox.
The email agent ships without deletion capabilities — you add them when you're ready. This is a safety measure: you control exactly when the agent can delete emails.
email_delete in the dropdown and select it to add it to the agent's allowed tools.In the Capabilities section of the agent definition, add the following block. You can place it right after the "Tombstone cleanup" bullet:
- **CRITICAL: Apply delete rules BEFORE routing rules.** If an email matches a delete rule, delete it immediately — do not evaluate routing rules.
- Apply the delete rules below when deciding `email_delete` actions:
- **Thread participation override**: NEVER delete an email if the thread contains a previous reply from the user. If the user has participated in the thread, it's a conversation — not spam. Skip all delete rules and evaluate routing rules instead.
- **Unsubscribe / manage preferences signals**: Delete when the HTML body contains any link or text to unsubscribe, manage email preferences, or opt out. These links are typically in the footer. Always scan the full HTML body.
- **Marketing / promotional content**: Delete when the email is bulk marketing — product recommendations, promotional offers, newsletters from commercial brands, "shop now" calls-to-action, or automated notifications from retail/e-commerce platforms.
- **Sales cold solicitation**: Delete when the email is an unsolicited outreach attempting to sell a product or service. Hallmarks: no prior relationship, generic pitch language, calls-to-action to book a demo or schedule a call.
In the Tool Parameter Sourcing section, add:
When calling `email_delete`, provide these parameters:
- **uid**: The numeric IMAP UID from the Request Context (e.g., 123, 456). This is always a plain integer — never a UUID or any other format.
- **mailbox**: From the Request Context (default to `INBOX` if missing)
- **reason**: A one-line justification for deletion (e.g., "Marketing newsletter with unsubscribe link")
In the Guardrails section, update the evaluation order to check delete rules first:
Replace the routing evaluation bullet with:
- First evaluate delete rules. If a match, call `email_delete`. Then evaluate channel routing rules. If a match, call `move-thread`. Then evaluate folder routing rules. If a match, call `email_move_to_folder`. If no rules match and no action is needed, call `archive-thread`. If no rules match but action may be needed, summarize and ask the user.
Wait for a marketing email or newsletter to arrive. The email agent will propose an email_delete tool card with a reason like "Marketing newsletter with unsubscribe link." Approve it and the email is moved to trash on your mail server.
So far you've moved threads manually by telling Prosponsive to move them. Now let's teach the email agent to propose moves automatically.
| Channel | When to route |
|---|---|
| `Project Zen` | Email is about Project Zen — mentions the project name, related people, or deliverables. |
| `Approvals` | Email is requesting manager approval or sign-off from the user. |
Now the email agent will automatically propose move-thread tool cards for emails matching these rules.
Send yourself 3-4 emails related to Project Zen from another account (or forward existing ones). Use subjects like:
Wait a few minutes for the n8n polling workflow to pick them up.
Open the Email Inbox channel. You'll see several new threads, each with a move-thread tool card proposed by the email agent, targeting the "Project Zen" channel.
Above the message list, click the Filter & Group controls:
This makes it easy to review similar actions in bulk instead of scrolling through individual threads.
Before approving the existing cards, let's set up auto-approval so future Project Zen moves happen without manual intervention:
move-threadFrom now on, any move-thread targeting "Project Zen" will execute automatically — no approval card, no waiting.
Back in the Email Inbox channel, your grouped Move Thread cards are still pending. Instead of approving them one by one:
The Project Zen emails move to the Project Zen channel, tombstones are left behind (the email agent will auto-archive them), and your inbox is clean.