crm-adapter
Part of the Sequencer agent preset.
CRM adapter
A CRM is optional and it is the user's choice of vendor. This skill covers all four cases without
assuming any of them.
The four cases
- A CRM with a connector on this bot. Connect it, discover the real object, field, and stage
names, and read through the connector.
- A CRM with no connector. The user signs in inside my browser through connect-accounts, and I
read the views and record pages they point me at. Every number says which view it came from and
when.
- A CSV export. They export accounts, contacts, and open opportunities. Validate the columns
before using them and put the export date on every number that comes from it.
- No CRM. The tracker is the only source of truth. Ownership and pause rules become manual
rules the user states once, and I say plainly which guards cannot run.
Ask which case applies during setup. Never present one vendor as the default, and never assume the
CRM this recipe was built on.
Discover, do not assume
- Read the actual stage picklist, the actual opportunity object, the actual owner field. Stage
labels differ in every instance and a hard-coded label is a silent bug.
- Save the discovered names in
/workspace/sequencer/state.md as a short mapping: pause stage,
owner field, activity field.
- Re-check the mapping when a read fails, before blaming the data.
What I read
- Open opportunities on accounts that are on the tracker, for the pause guard.
- Owner, for the ownership filter.
- Recent activity, so nobody gets a cold opener while a colleague is mid-deal.
- Closed-won and meeting history, for title winners during discovery.
Writing
Reading is the default and it covers the whole job. A write happens only when the user says yes to
that specific write in that conversation, for example logging a staged touch as an activity. Never
create, update, or delete a record from a routine. Never change a stage, an owner, or a field
definition. A routine that thinks a write is needed says so in the review list and waits.
When the CRM is unavailable
Say so in one line, fall back to tracker-only pause rules, and name the guard that is off. Do not
stall the daily loop over it.
Never
- Write without an explicit yes in that conversation.
- Assume a stage label, an owner field, or a pipeline shape.
- Export or copy bulk CRM records into memory or the state file. Save mappings and ids, not
contents.
- Treat a connected CRM as permission to change anything in it.
1---2name: crm-adapter3description: "Use this before reading or writing any CRM, whether it has a connector, runs through a browser sign-in, arrives as a CSV, or does not exist. Discovers real field and stage names and keeps writes behind an explicit yes."4metadata:5 source: https://skillmd.com/skills/brokep/crm-adapter6---78# crm-adapter910Part of the Sequencer agent preset.1112# CRM adapter1314A CRM is optional and it is the user's choice of vendor. This skill covers all four cases without15assuming any of them.1617## The four cases18191. **A CRM with a connector on this bot.** Connect it, discover the real object, field, and stage20 names, and read through the connector.212. **A CRM with no connector.** The user signs in inside my browser through connect-accounts, and I22 read the views and record pages they point me at. Every number says which view it came from and23 when.243. **A CSV export.** They export accounts, contacts, and open opportunities. Validate the columns25 before using them and put the export date on every number that comes from it.264. **No CRM.** The tracker is the only source of truth. Ownership and pause rules become manual27 rules the user states once, and I say plainly which guards cannot run.2829Ask which case applies during setup. Never present one vendor as the default, and never assume the30CRM this recipe was built on.3132## Discover, do not assume3334- Read the actual stage picklist, the actual opportunity object, the actual owner field. Stage35 labels differ in every instance and a hard-coded label is a silent bug.36- Save the discovered names in `/workspace/sequencer/state.md` as a short mapping: pause stage,37 owner field, activity field.38- Re-check the mapping when a read fails, before blaming the data.3940## What I read4142- Open opportunities on accounts that are on the tracker, for the pause guard.43- Owner, for the ownership filter.44- Recent activity, so nobody gets a cold opener while a colleague is mid-deal.45- Closed-won and meeting history, for title winners during discovery.4647## Writing4849Reading is the default and it covers the whole job. A write happens only when the user says yes to50that specific write in that conversation, for example logging a staged touch as an activity. Never51create, update, or delete a record from a routine. Never change a stage, an owner, or a field52definition. A routine that thinks a write is needed says so in the review list and waits.5354## When the CRM is unavailable5556Say so in one line, fall back to tracker-only pause rules, and name the guard that is off. Do not57stall the daily loop over it.5859## Never6061- Write without an explicit yes in that conversation.62- Assume a stage label, an owner field, or a pipeline shape.63- Export or copy bulk CRM records into memory or the state file. Save mappings and ids, not64 contents.65- Treat a connected CRM as permission to change anything in it.