A Salesforce AI agent should begin with one bounded task, not a broad instruction to “help the team.” Decide which records it may read, what it may draft, which actions require approval, and how it hands an uncertain case to a person. Then test those boundaries before connecting it to production data.
Start read-only
A read-only prototype can test whether the agent finds the correct record and summarizes it accurately without allowing it to change customer data. Use synthetic or appropriately protected test records, and confirm the data path with the people responsible for security and compliance.
Keep permissions outside the prompt
Natural-language instructions can shape behaviour, but they are not a substitute for platform permissions. Apply least privilege to the connected user, limit fields and objects, log actions, and test access from accounts that should be denied.
Write the evaluation set first
Include ordinary requests, ambiguous requests, missing data, conflicting instructions, and requests for information the agent should not reveal. Record the expected response and action. A successful test is not “the demo worked”; it is evidence that allowed actions succeed and disallowed actions do not.
Plan the handoff
The agent should state when it is uncertain, stop before a prohibited action, and pass useful context to a human. Decide where failed runs are logged, who reviews them, and how the agent can be disabled quickly.
Salesforce development and automation · Agentforce vs custom agents
