CRM

Nightly Attio Relationship-Decay Scorer

Every night, recomputes a relationship-strength score for each Attio company from how recently you last touched it across email, Slack, and calls.

CategoryCRM
Enginesim
Difficultyintermediate
Triggerschedule
Steps6
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerNightly schedule fires
  • ActionFetch active companies from AttioAttio
  • ActionQuery latest touch per channel in PostgresPostgreSQLPostgres
  • LogicCompute decayed score and assign tier
  • ActionWrite score + tier back to AttioAttio
  • OutputLog run summary to PostgresPostgreSQLPostgres

What it does

This workflow keeps an honest, always-current relationship-strength number on every Attio company. It pulls the most recent interaction across each channel, applies time-based decay so stale relationships visibly cool off, and writes a single 0-100 score plus a tier (Hot / Warm / Cooling / Cold) back to Attio.

When to use it

Run it when your CRM's "last activity" field lies — it only reflects one channel, or it never decays so a deal from six months ago still looks active. Use this to get a defensible, multi-channel freshness signal that pipeline reviews and territory planning can trust.

How it works

  1. 1A nightly schedule fires the run.
  2. 2Pull all active companies from Attio with their linked person records.
  3. 3Query the interactions table in Postgres for the latest email, Slack, and call timestamp per company.
  4. 4Compute a decayed score: each channel contributes weighted points that halve over a configurable window, then sum and clamp to 0-100.
  5. 5Map the score to a tier and write both fields back to each Attio company.
  6. 6Log the run summary to Postgres for trend tracking.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect AttioReal-time CRM with structured data + powerful views.
  2. 2
    Connect PostgresAny Postgres URL — query, write, migrate.
  3. 3
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  4. 4
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  5. 5
    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.