Salesforce Certified Agentforce Specialist free question 6 / 10 · Domain 3: AI Agents
There are two proposals for calling an agent from a flow. (1) A flow that runs when an Experience Cloud site user creates a case, using the custom agent invocable action as that user. (2) A nightly integration job that uses the standard Agent API invocable action as the Platform Integration User (system context). Which statement matches the Help article?
- Both fail, since neither user type can use agent invocable actions
- For (1), it can be used if you give the site's guest user profile access to the agent
- Both site users and the Platform Integration User can use it if you change the target to an Employee agent
- For (2), switching to the custom agent invocable action lets it be used as the Platform Integration User
Show the answer and explanation
Answer: A
Why this is correct
"Call an Agent from a Flow or Apex Class" says neither the custom agent invocable action nor the standard Agent API invocable action can be used by Experience Cloud site users or the Platform Integration User. The Platform Integration User is also called the System User or the system context. In both proposals the user who runs the action is not supported, so you reconsider the design, including the running user.
Why the other options are wrong
"For (2), switching to the custom agent invocable action lets it be used as the Platform Integration User" … The article says neither the custom nor the standard invocable action can be used by the Platform Integration User. Switching to the custom one does not make it supported.
"For (1), it can be used if you give the site's guest user profile access to the agent" … The article says invocable actions cannot be used by Experience Cloud site users. It has no statement that giving access makes it work.
"Both site users and the Platform Integration User can use it if you change the target to an Employee agent" … The condition that makes it unusable is decided by the user who runs the action. Changing the type of agent you call does not make it usable by site users or the Platform Integration User.
Decide the running user first
When you design a flow that calls an agent, decide first whose context the flow runs in. A flow that calls a Service Agent runs in the agent user's context, and a flow that calls an Employee Agent runs in the authenticated user's context. It does not suit integration jobs that run in the system context.