Clean bounced e-mails out of your CRM
Contacts whose e-mail bounced or who left the company, marked in your CRM after your approval.
- On a schedule: Every Monday at 7:00
- Asks you first
What it does
The task
Search Gmail for bounce messages and automatic replies since the last run that say the address does not exist or the person left the company. Match each one to a contact in HubSpot. For each match, prepare these changes: set the e-mail status to Invalid, and add a note with the bounce text and the new contact that the reply names, if any. Show me the list of changes, and ask me before you save them. Do not delete any contact.
- It works in Gmail and HubSpot, in the workspace you pick, and signs in with passwords from your Cuiar vault.
- As a routine it runs every Monday at 7:00 (cron
0 7 * * 1). - It stops for your approval before it sends, posts, pays, books or changes a record.
What you get back
An example run. Your run uses your own data.
Bounces and automatic replies since 26 October: 17
Matched to HubSpot contacts: 15
Prepared changes:
- 9 contacts: e-mail status Invalid (the address does not exist)
- 6 contacts: left the company. Note added; 4 replies name a new contact.
Example: Ben Achterberg, Corvid Freight. Reply: 'Ben has left. Please contact Lisa Moreau, Head of Procurement.'
Not matched: 2 addresses with no contact in HubSpot
Waiting for your approval to save. No contact deleted.
Run it in Cuiar
- 01
Open it
Click Use in Cuiar on this page. The side panel opens with the task in the composer.
- 02
Read the task
Change any word you like before it runs.
- 03
Run it, then repeat it
Run sends it once. To run it every Monday at 7:00, make a routine on cuiar.com/routines or with the CLI below.
As a routine, from the terminal
cuiar routines create "Clean bounced e-mails out of your CRM" --schedule "0 7 * * 1" --time-zone Europe/Berlin \
"Search Gmail for bounce messages and automatic replies since the last run that say the address does not exist or the person left the company. Match each one to a contact in HubSpot. For each match, prepare these changes: set the e-mail status to Invalid, and add a note with the bounce text and the new contact that the reply names, if any. Show me the list of changes, and ask me before you save them. Do not delete any contact."Run it from your AI agent
Claude Code, Codex, Cursor and other MCP clients reach Cuiar at https://mcp.cuiar.com/mcp. Add the server one time, then ask for the task in plain words, or call create_routine yourself.
1. Add Cuiar to Claude Code
claude mcp add --transport http cuiar https://mcp.cuiar.com/mcp2. Ask your agent
Use the Cuiar tool create_routine to run my "Clean bounced e-mails out of your CRM" template.Setup for other agents: AI agents.
The tool call
{
"name": "create_routine",
"arguments": {
"name": "Clean bounced e-mails out of your CRM",
"task": "Search Gmail for bounce messages and automatic replies since the last run that say the address does not exist or the person left the company. Match each one to a contact in HubSpot. For each match, prepare these changes: set the e-mail status to Invalid, and add a note with the bounce text and the new contact that the reply names, if any. Show me the list of changes, and ask me before you save them. Do not delete any contact.",
"schedule": "0 7 * * 1",
"time_zone": "Europe/Berlin"
}
}Related templates
All sales templatesSalesAsks first
Draft a reply to each new lead
Research the sender, answer each question and offer two times for a call.
On an event: When an e-mail from a new lead arrives- Gmail
- HubSpot
- Google Calendar
SalesAsks first
Follow up with leads from a trade show
Each lead you met added to the CRM, with a personal follow-up e-mail based on your notes.
You start it: When you start it- Google Sheets
- HubSpot
- Gmail
SalesAsks first
Draft win-back e-mails to former customers
For each lost customer, what changed since they left and a personal e-mail, sent after your OK.
You start it: When you start it- HubSpot
- LLinkedIn
- Gmail
Sales
Complete new contacts in the CRM
Job title, company size and industry for each new HubSpot contact.
On a schedule: Every weekday at 8:00- HubSpot
- LLinkedIn
Sales
Find stalled deals in your pipeline
Each open deal with no activity for weeks, with the likely reason and one next step, largest first.
On a schedule: Every Monday at 8:00- SSalesforce
- Gmail
Sales
Send a weekly sales pipeline report
New, moved, won and lost deals, and the forecast against quota, every Friday afternoon.
On a schedule: Every Friday at 16:00- HubSpot
- Google Sheets