When an AI Agent Meets Your Salesforce Org, It Guesses — Unless You Give It the Model
Ask an AI agent to write an integration against your Salesforce org — a validation script, a sync mapping, a report definition — and watch what it does with `Status__c`. It will guess. It has seen ten thousand orgs' worth of training data, so the guess will be fluent: plausible picklist values, a plausible type, a plausible relationship to `Account`. Fluent, plausible, and wrong, because your org is not the average org. It is fifteen years of customization, custom objects, repurposed standard fields, and picklists whose real values live in a settings page the agent has never seen.
When an AI Agent Meets Your Salesforce Org, It Guesses — Unless You Give It the Model
Ask an AI agent to write an integration against your Salesforce org — a validation script, a sync mapping, a report definition — and watch what it does with Status__c. It will guess. It has seen ten thousand orgs' worth of training data, so the guess will be fluent: plausible picklist values, a plausible type, a plausible relationship to Account. Fluent, plausible, and wrong, because your org is not the average org. It is fifteen years of customization, custom objects, repurposed standard fields, and picklists whose real values live in a settings page the agent has never seen.
This is the specific failure mode the CoreModels Salesforce integration addresses for AI agents: guessed structure, delivered confidently. The fix is not a smarter guess. It is giving the agent something true to consult.
Grounding: platform-real facts, not schema vibes
Once a Salesforce org is imported into CoreModels, the governed model holds the facts an agent actually needs, at the fidelity the platform itself reports. Fields keep their platform-real native types — string(255), currency(18,2) — not a rounded-off "string" or "number." Active picklist values are governed as Taxonomies, so the set of legal values for a field is an enumerable fact rather than a completion. Lookups are governed references with explicit targets. Inline help text rides along as field descriptions, which means the humans' own explanation of a field — where one exists — is part of what the agent reads.
The difference shows up immediately in agent output. An agent grounded in the governed model does not invent a Pending status that your org never had; it enumerates the taxonomy. It does not assume every lookup resolves to one object type; the model tells it when a reference is polymorphic. It writes against your org's meaning, not the internet's average of everyone else's.
Consultation: the model answers over MCP
Grounding only works if the agent can reach it mid-task, so every governed fact is queryable over MCP. An agent connects to the CoreModels MCP endpoint at https://coremodels.example.com/mcp — OAuth-secured, with read-only tools — and consults instead of guessing.
Four tools cover the Salesforce workflow. get_vendor_integration_status is discovery: which connectors exist, and for this project, whether a Salesforce import has happened, when, and with what counts — the agent's first question, "do I have ground truth here?", answered before it writes a line. audit_vendor_project lets an agent check a fresh describe export against the governed model and get back coded findings — the same coverage, drift, and conformance analysis the CI gate uses, read-only, with artifacts passed inline or by URL when an org export is too large to paste. generate_vendor_artifacts produces the Metadata-API CustomObject XML scaffolds from the governed model, giving an agent a correct, reviewable starting point instead of hand-assembled XML. And import_vendor_project — the one verb that writes — exists only on the admin MCP endpoint, which is a governance statement in itself: an everyday agent session can read everything and change nothing.
That split matters more for agents than for people. Humans read warnings; agents act at machine speed. Keeping the public MCP surface read-only means an agent can be wrong, confused, or prompt-injected and still be structurally incapable of altering governed meaning.
The audit findings are agent intelligence
Here is the less obvious payoff: the Salesforce-specific audit findings, designed for human governance, turn out to be exactly the metadata an agent needs to write defensive code.
picklist-unrestricted tells the agent that Salesforce does not enforce this field's value set — so real data may contain values outside the governed taxonomy, and generated code should validate rather than assume. polymorphic-reference tells it that a lookup has multiple possible targets and only the first is governed as a reference — so a join or traversal needs a type check, not a hard-coded assumption. field-no-help tells it that a custom field has no documented meaning at all — a signal to ask a human rather than improvise semantics for a field whose meaning even the org's own team has not written down.
An agent that reads these findings before generating code produces something close to what a careful senior integrator would write: aware of where the platform's guarantees end and where its own caution has to begin. That judgment normally lives in tribal knowledge. The audit makes it machine-readable.
Agents inside the loop, humans on the gate
None of this makes agents the authority — it makes them well-informed participants in a loop that stays human-gated. An agent can notice drift by running an audit; it cannot make the governed model absorb that drift. It can draft CustomObject XML from governed meaning; it cannot deploy it — generation is review-and-deploy through your org's own change process, and CoreModels holds no Salesforce credentials for anyone, human or agent, to borrow.
The result is a clean division of labor. The governed model supplies precise semantics; MCP supplies the consultation channel; the audit supplies calibrated caution; and people keep the only pen that rewrites meaning. Agents stop guessing what your org means and start asking — which, for anything that touches a CRM, is the difference between automation you audit and automation you fear.
The Salesforce quickstart in the CoreModels docs lists the MCP tool calls alongside their HTTP equivalents, ready to hand to your agent framework.