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.

CategoryCRM
Enginesim
Difficultyintermediate
Triggerevent
Steps5
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerNew Gmail message arrives or is sentGmailGmail
  • LogicParse external domain and direction
  • ActionMatch domain to Attio companyAttio
  • LogicSkip if no company match
  • OutputUpsert last-touch timestamp in PostgresPostgreSQLPostgres

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

  1. 1A new Gmail message (sent or received) triggers the run.
  2. 2Extract the external party's email domain and direction.
  3. 3Look up the matching company in Attio by domain; skip if no match (internal or unknown sender).
  4. 4Upsert the company's last email-touch timestamp and direction into the Postgres interactions table.
  5. 5Confirm the write so the next nightly scorer pass picks it up.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect GmailRead, draft, send, label.
  2. 2
    Connect AttioReal-time CRM with structured data + powerful views.
  3. 3
    Connect PostgresAny Postgres URL — query, write, migrate.
  4. 4
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  5. 5
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  6. 6
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.