ModulesCRM

AttioConnect Attio for live CRM conditions

How to connect Attio to OpenSequence with one read-only token, then branch sequences on person, company and deal data read live when a condition runs.

Edit on GitHub

The Attio module lets a condition read the contact's person, company and open deal from Attio. Connect one token per project, then use crm.* fields in conditions.

What it gives you

  • crm.* condition fields read live when the step runs, with no sync and nothing stale.
  • A schema endpoint that lists your Attio attributes, for your condition editor.
  • Read-only access: OpenSequence never writes to Attio.

What you need

  • An Attio access token with read access to records (record_permission:read) and to the object configuration (object_configuration:read). Create it in Attio's workspace settings, under Developers.
  • An OpenSequence admin key.

Steps

Save the token

curl
curl -X PUT $SEQ/v1/project/providers/attio -H "Authorization: Bearer $ADMIN_KEY" -H "Content-Type: application/json" \
  -d '{"api_key":"…"}'

The token is checked with Attio, then stored encrypted and never returned. Save it again to rotate it.

Load the fields for your editor

curl
curl $SEQ/v1/project/providers/attio/schema -H "Authorization: Bearer $KEY"
# {"objects":[{"name":"person","attributes":[{"slug":"job_title","label":"Job title","type":"text"},…]},
#             {"name":"deal","attributes":[{"slug":"stage","label":"Stage","type":"status","values":["Lead","In Progress","Won","Lost"]},…]}]}

It lists the person, company and deal attributes that are not archived. It is cached for an hour.

Branch on CRM data

"check_deal": {
  "type": "condition",
  "params": { "mode": "all", "rules": [
    { "field": "crm.deal.exists", "op": "is_true" },
    { "field": "crm.deal.stage", "op": "is", "value": "Lead" } ] },
  "next": { "yes": "call_1", "no": "email_2" }
}

The fields

FieldType
crm.person.exists, crm.company.exists, crm.deal.existsbool: is_true, is_false
crm.deal.count_opennumber: eq, ne, gt, gte, lt, lte
crm.deal.stagetext: the selected deal's stage
crm.person.<slug>, crm.company.<slug>, crm.deal.<slug>text: any attribute by its Attio slug

The person is found by the contact's email, the company by the email's domain (or the person's company), and deals by their link to either. A deal is open unless its stage starts with closed, won, lost or churn, or Attio marks it as won. When several are open, settings.crm.deal_selection picks one: newest_open (default), highest_value or any_open (the oldest).

Every value is compared as text, so use is, is_not, contains, is_empty and is_not_empty on attributes. A multi-value attribute gives its first value.

Check it works

  1. GET /v1/project lists the Attio credential with status: "active".
  2. GET /v1/project/providers/attio/schema returns your attributes.
  3. Enroll a test contact whose email matches an Attio person. Read the condition's result.facts in the journey: each fact shows the value read.

Common errors

ErrorFix
422 INVALID_CREDENTIALThe token is wrong, revoked or inactive. Create a new one.
Every crm.*.exists is falseThe contact has no email, or no Attio person has that email.
A fact shows an errorAttio failed or rate-limited the lookup. The fact is empty, the rule fails, and an all condition takes no. Design no as the safe branch.
The schema call fails with a permission errorThe token lacks object_configuration:read.

With mock providers on, every lookup finds nothing and the schema is a fixed sample.

On this page