ShoutAd.GonzaloGomezRufino

Blog · 2 December 2026

Connecting an AI agent to your data: layers and permissions

If you search “integrate ai with crm” you will see what I see: connector tutorials, assistants that create contacts, and “magic summaries” of calls. Few mention granular permissions. Fewer mention audit. In several demos the agent writes straight into the record, with no review. Anyone can check.

An agent that never consults your data is just a pretty text. And one that writes without limits is a risk. Order matters: start with safe reading, then proposals, and only then writing with permissions and logging. That order saves time, errors, and credibility.

This is how I connect an agent to a CRM or other sources. In layers. With clear limits. And with traceability from day one.

Start by reading, touch nothing

I enable reading first. No writing. A service account with the least scope I can set. Access to contacts, deals, and activities, but read-only. I map the objects and fields the agent needs. I do not mirror the whole CRM. I fetch just in time and cache briefly to spare the API.

I normalise names and types. I document which field wins when duplicates exist. If the CRM has “last touch” and “first touch”, the agent must pick the right one for each task. This phase exposes inconsistencies. More than one integration is saved by spotting a free-text field used with five meanings.

Working memory: citations, not copies

The agent works from references, not from persistent copies. It stores the contact ID and the relevant snippets, with a link to the source. If it needs broad context, it creates a dated summary with the source noted. Every claim is traceable. Every doubt jumps straight back to the CRM.

This design forces prompts and tools that cite their sources. It also makes debugging simple. If a conclusion is wrong, I can see which record led to it, which version, and which fields.

Proposals before changes

The first useful output is not “I updated 300 contacts”. It is a proposal: human-readable diffs of what it would edit and why. It includes links to each record and a short reasoning trail. I can accept, reject, or ask for more context. Business rules are checked and noted.

In a team that spends twenty hours a month on this, batch review of proposals avoids interruptions and surprises. Proposals also create data: acceptance rate, reasons for rejection, and tricky fields. With that, the agent improves without touching production.

Writing with permissions and limits

Only when proposals stabilise do I allow writes. Tight scope. An explicit list of allowed actions: create a note, update a specific field, associate an activity. Everything else is denied by default. I set rate limits and daily quotas. Each operation carries an idempotency key to avoid duplicates.

If the CRM has a sandbox, I test there. If not, I use marked test records. Where ownership rules apply, the agent never reassigns owners. If it must, it raises a proposal to the human owner. I prefer a change queue with approvals over “autonomy” that no one agreed to. Shortcuts here are costly.

Logging and traceability for every action

Every action is logged: who (agent identity and version), what (object, fields before and after), when, where (source), and why (summary of reasoning and the policy used). The log links to the records and to the proposal that triggered the change. It is operationally immutable. I redact sensitive prompt data selectively, but keep enough to audit.

With that trail, reversions are possible and explanations do not rely on memory. When someone asks “why did this deal move stage?”, the answer is a link, not a guess.

Errors, retries and limits

APIs fail and throttle. I handle retries with exponential backoff and clear stop rules. If I get a 429, I postpone the task. I do not hammer. I compare state before writing to avoid overwriting recent human edits. If there is a conflict, I create a fresh proposal with the updated diff.

For long jobs, I split work into small units, each with its own tracking. A partial failure does not sink the whole batch. The log stays readable.

Scale to more sources and several agents

After the CRM usually come calendar, email, and docs. Each source arrives through its own adaptor, with minimal permissions and the same pattern: read, propose, controlled write, log. If there are several agents, I centralise policies and queues. I use logical locks so they do not race on the same record.

When the agent grows into multi-agent organisations, this scaffolding prevents chaos. Each role knows what it can read, what it can propose, and what it can write. The audit board stays single, not scattered.

What changes in the CRM with AI

I decide where to write. Notes for free-form context. Fields for structured data. If the agent summarises calls, it should attach the summary, not fill fields that the team completes by hand. Authors must be explicit: “Agent X” as creator, not a fictitious human user. That sets responsibility and expectations.

I control noise. One weekly summary per account beats twenty micro-notes. I favour quality over volume. If an action adds no value to the team, it stays in the log, not in the daily CRM view.

Metrics that matter

I track the acceptance rate of proposals by change type. The average time from proposal to execution. The count of reversions. Incidents opened due to agent changes. If these improve, the system works. If they worsen, I step back a layer. The sequence is the safety net: read, propose, write, log.

Integrating AI with a CRM works when the order protects the data and the team’s time. Resisting the urge to “let it write now” is what saves the project. With layers and permissions, the agent helps without breaking things, and every step has a reason.

I post working automations on @WhatsMarketing_es.

If you want me to look at your case, get in touch. I work from Buenos Aires, originally from Málaga, with clients in Mexico City, Argentina, the rest of Latin America and Spain.

← See all articles