Salesforce Agentforce is transforming the ecosystem by moving beyond helpful assistants to fully autonomous agentic AI. Unlike the older Einstein Copilot, which was user-guided, Agentforce Agents are designed to act - executing workflows, applying policies, and collaborating with external systems independently via the Atlas Reasoning Engine.
While standard actions cover the basics, the true potential of Agentforce is unlocked through Custom Actions. This guide details how to architect, build, and debug these actions to turn your AI into a virtual employee.
What Are Agentforce Custom Actions?
Custom Actions are specific tasks that allow an AI Agent to interact with your unique business logic and data. If the Atlas Reasoning Engine is the "brain" that plans, Custom Actions are the "hands" that do the work.
Custom Actions can be built using three primary methods:
- Salesforce Flow: The most common, low-code method using Autolaunched Flows.
- Invocable Apex: For complex processing, heavy math, or external API calls.
- Prompt Templates: For specific generative tasks, such as summarizing records or drafting emails.
Step-by-Step: Building a Custom Action with Salesforce Flow
1. Build the Logic (The "Primus Motor")
The backbone of most Agentforce actions is an Autolaunched Flow (No Trigger).
- Define Inputs and Outputs: You must define your variables upfront. For an "Order Status" action, define Order Number as an Input and Order Status as an Output.
- Build the Flow: Use "Get Records" to retrieve data from Salesforce objects based on the input provided by the AI Agent.
2. Register the Action in Agent Studio
Once your Flow is active, you must register it so the Atlas engine can utilize it.
- Navigate to Agent Studio > Agent Actions > New Action.
- Reference Type: Select Flow and choose your active Auto launched Flow.
- Configure Inputs: Check "Collect data from user" if the Agent needs to ask the question (e.g., "What is your order number?").
- Configure Outputs: Check "Show in conversation" for variables the Agent should verbally relay to the user.
3. Master Natural Language Instructions
In Agentforce, you don't use code to trigger actions; you use Instructions. The clarity of your instructions determines if the Atlas engine picks the right tool.
- Strong Action Instruction: "Retrieve the order status and delivery date using the order number provided by the customer."
- Negative Constraints: "Process refunds only for orders within the last 60 days; escalate older cases to human support."
Troubleshooting: Why is My Agent Failing?
If your Agent says "I'm on it" but returns no data, it is almost always a Permission Issue. The Agent operates as the Einstein Service Agent user and requires specific access:
- Field Level Security (FLS): Ensure the Einstein Service Agent profile has "Read" access to every field in your Flow.
- Sharing Settings (OWD): If your records are "Private," you must create a Sharing Rule to grant the Einstein Service Agent access to those records.
Frequently Asked Questions
1. Is Agentforce just a renamed Einstein Copilot?
- No. Einstein Copilot was a user-driven assistant that required human prompts for every step. Agentforce is autonomous—it uses the Atlas Reasoning Engine to plan and execute multi-step tasks independently.
2. How much does Agentforce cost?
- Agentforce follows a consumption-based model using Flex Credits. As of 2025, each action typically consumes 20 Flex Credits (approximately $0.10 USD per action). Standard conversation-based pricing is also available at $2 USD per conversation.
3. Do I need to know Apex to build Custom Actions?
- No. Most Custom Actions are built using Salesforce Flow, which is a low-code tool. Apex is only necessary for high-complexity integrations or proprietary algorithms.
Conclusion: From "Copilot" to "Virtual Employee"
Building Custom Actions in Agentforce represents a fundamental shift toward the Agentic Enterprise. We are moving away from tools that require constant human direction to autonomous agents for that reason and execute work on our behalf.
Ready to Build Your First AI Agent?
At Minuscule Technologies, we act as your Strategic Engineering Partner to help you turn complex business logic into autonomous AI agents.
- Custom Action Architecture: We design high-ROI Flows and Apex actions that justify your Flex Credit consumption.
- Data Cloud & RAG: We implement Retrieval Augmented Generation (RAG) to ensure your Agent answers questions using your proprietary knowledge.
- Security & Governance: We configure strict FLS and Sharing Rules to ensure your Agent operates safely within the Einstein Trust Layer.
Consult with Minuscule Technologies Today Don’t just build a chatbot; hire a digital workforce. Let us help you engineer your Agentforce strategy today.