CRM
Gmail Last-Touch Ingest for Attio Decay
Watches your team's Gmail, matches each inbound and outbound message to an Attio company by domain.
How it runs
The automated pipeline, trigger to output.
- TriggerNew Gmail message arrives or is sentGmail
- LogicParse external domain and direction
- ActionMatch domain to Attio companyAttio
- LogicSkip if no company match
- OutputUpsert last-touch timestamp in PostgresPostgres
What it does
This is the email feeder for relationship-decay scoring. Every time mail moves through a monitored inbox, it resolves the counterpart to an Attio company and upserts the most recent email-touch timestamp into the shared interactions table.
When to use it
Use it when email is your dominant relationship channel but it never makes it into the CRM cleanly. Instead of reps logging activity by hand, this captures every real conversation automatically and keeps the decay score's email component accurate to the minute.
How it works
- 1A new Gmail message (sent or received) triggers the run.
- 2Extract the external party's email domain and direction.
- 3Look up the matching company in Attio by domain; skip if no match (internal or unknown sender).
- 4Upsert the company's last email-touch timestamp and direction into the Postgres interactions table.
- 5Confirm the write so the next nightly scorer pass picks it up.
Set it up
What you configure once, before turning it on.
- 1Connect GmailRead, draft, send, label.
- 2Connect AttioReal-time CRM with structured data + powerful views.
- 3Connect PostgresAny Postgres URL — query, write, migrate.
- 4Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
- 5Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
- 6Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.
More CRM workflows
Dormant Account Check-In Call Scheduler
On the anniversary of an account's last touch, books a tentative check-in call on the owner's Google Calendar and emails the contact a scheduling invite.
Weekly Dormant-Anniversary Cohort Digest
Every week, groups dormant Attio accounts by which last-touch anniversary they hit that week, builds a prioritized digest.
AI-Personalized Dormant Account Win-Back
On a dormancy anniversary, an agent researches the account's history and recent public signals, drafts a genuinely personalized win-back email.
Backfill Intercom conversation topics onto stale HubSpot contacts
Finds HubSpot contacts with no recent Intercom topic, pulls their conversation history from Intercom, classifies the dominant topic with OpenAI.
Daily orphaned-opportunity sweep with manager Slack digest
Each morning this scans Salesforce for open opportunities owned by inactive users and posts a per-manager digest in Slack listing the orphaned deals that need a new owner.
Tag closed Intercom conversations onto Salesforce contacts in real time
On each Intercom conversation close, classifies the topic with OpenAI and appends it to the matching Salesforce contact's activity timeline so the topic never goes stale…
Run it inside a business
This workflow drops into a full company template. Import the org, and this is one of the playbooks its agents run.

Run this workflow in your colony.
14-day trial. No DevOps. No Sales call. Provisioned in under a minute.
