Salesforce Decode
Salesforcedecode
Back to questions
AgentforceBeginneragent-actionstoolsflowapex

What is an Agent Action?

Real World Scenario

A customer asks the agent to look up their order number. The interviewer wants to know what actually executes that lookup behind the scenes.

Expected Answer

• An Agent Action is a callable capability the LLM can invoke, like "Get Order Status" • Actions expose clear inputs and outputs so the model knows when and how to use them • Actions are often backed by Flow, Apex invocable methods, or standard Salesforce operations • Each action should do one job—check status, create case, update field—not everything at once • Descriptions matter: the LLM picks actions based on names and instructions

Follow-Up Questions & Answers

Click to expand — each follow-up includes a direct, interview-ready answer

Direct database access is unsafe and unpredictable. Actions enforce validation, permissions, and business rules. They are the controlled API surface between the LLM and your org.

Architect Perspective

Name actions like API methods: verb + object. "Create Support Case" beats "CaseHelper." Good names improve tool selection accuracy.