Agentforce · Agent Builder

Diagnose Agentforce Record Context Issues

When an agent on a record page ignores the record the user is looking at, or asks which record to use, MeshMesh finds out why and changes the agent so it picks up that record.

16 tasks
Method

How MeshMesh does it

  1. Starts from the symptom the user reports. Examples are a compliance review agent that kept asking which grantee to assess and an assistant that asked for an account name instead of using the record page.
  2. Traces the cause in the agent setup and writes an implementation plan for the fix.
  3. Works out how the record reaches the agent. In one case that meant finding the name the record ID variable must use and that visibility comes from permission sets.
  4. Adds an Apex action that resolves the current record to the value the agent needs.
  5. Rewrites topic or reasoning instructions so the agent uses the record first. This was done through the Tooling API in one case and as a step-by-step resolution flow in another.
  6. Publishes and activates a new agent version through the Builder UI.
  7. Hands steps back to the user when access limits block them, such as deactivating the active agent. Testing on the real record page was also left open.

Next: Configure Agent Record Page Context.