Articles
3/18/2025
10 minutes

How to Deploy Agentforce: A Step-by-Step Guide

Written by
Team Copado
Table of contents

Agentforce is Salesforce’s next-generation AI agent platform. It can be used to automate workflows, enhance customer interactions, and streamline sales processes. However, in order to fully leverage its capabilities, administrators must grasp the key components powering Agentforce—as well as how to deploy them effectively.

In this article, we’ll break down the building blocks of Agentforce—including Topics, Actions, Data Sources, and more—while guiding you through best practices for deployment, integration, and DevOps automation.

Let’s dive in. 

What is Agentforce?

Put simply, Agentforce helps companies automate repetitive tasks, resolve customer queries, and assist sales teams in finding the right information. In other words, it can be used to greatly streamline sales processes. By integrating structured and unstructured data from multiple sources, Agentforce provides quick and accurate responses that improve the overall customer experience and help optimize internal workflows.

Administrators and developers can also use Agentforce to build AI agents and related components.

What are Agents?

Agents consist of Topics, Actions, Settings, and Data Sources. Salesforce provides an Agent Builder, housed within Agentforce Studio. The documentation on using Agent Builder and step by step instructions is well covered by Salesforce and beyond the scope of this document. But, in order to deploy Salesforce AI Agents effectively, you need to understand how all of these pieces fit together in practice. Let’s start with Topics and Actions.

Understanding Topics and Actions

Topics are specialized areas which define what your agent can understand and act upon. For instance, if you’re creating an agent to manage orders, you can configure a topic that explains the order management scope. This could, for example, involve answering questions about order history and the ability to modify product order specifications. Each topic then comes with a detailed configuration that includes its scope and description, ensuring clear boundaries between agents.

Topics must be deployed as part of the Agent definition. In addition, they will change over time as you refine the agent, so it’s good practice to track changes via your version control repository.

Actions are intrinsically linked to topics, and represent the actual tasks your agent can perform. These actions can be linked to Flows within Salesforce, Apex code, MuleSoft APIs, or custom prompts. The beauty of this system lies in its flexibility—administrators can easily assign existing actions to topics or create new ones as needed, all through a straightforward interface that guides you through the process.

Flows, code, and Mulesoft APIs are not new or specific to Agents. They are capabilities that have been part of the platform for years and are used to build all types of applications on Salesforce. So they should already be managed in your DevOps process.

Actions are the reason you should think of Agents as simply a new type of application that interacts with your users through a natural language interface. As such you should make them part of your standard DevOps process.

Data Integration and Management

Data integration represents a key value proposition of Agentforce. This is primarily thanks to its deep integration with Data Cloud. For example, if customer orders are stored in a different system, Data Cloud can make these orders easily accessible to Agentforce—irrespective of how many orders you could be processing per year.

Data Cloud handles both structured data (such as traditional Salesforce records) and unstructured data (e.g. emails and voice memos). It serves as a foundational layer that enables smooth data flow between various Salesforce applications, with Agentforce acting as an intelligent interface layer above these systems.

The platform offers multiple methods for data integration, including direct Data Cloud ingestion, zero-copy virtualization for external systems, and MuleSoft API connections. Data Graphs provide visual representations of relationships between data model objects, enabling administrators to ensure proper data connectivity and availability for their agents.

The good news is that Data Cloud can now be configured in Sandboxes and promoted into production environments so they can now be part of your regular DevOps process. Given that these data sources will be continuously modified over time and likely include confidential information, it is important that you make it part of your change management process just like all of your other metadata.

Plan and Build

Agent Builder may look simple, but it requires careful top-down planning and building from the bottom up. Using it is like icing a cake. It is where all of the pieces come together. But you have to bake the cake before you can decorate it. In this case, the cake represents the Actions. While you are able to use existing actions, it is likely that you will need to build new actions or make modifications to existing actions in order to satisfy the needs of the Agent. Actions must be created or updated before configuring your Agents.

Test

A complete discussion of how to test an Agent is beyond the scope of this document, but we would be remiss if we did not mention that testing your agent before deployment is critical. That means testing in your Dev Org and every environment in the pipeline—up to and including Production. 

Agentforce Deployment Considerations

Now that you have all the pieces built and you have thoroughly tested your Agent, you are ready to deploy it to the next environment. Deploying Agentforce requires a methodical approach starting with carefully including dependencies when selecting your metadata.

Agentforce uses different metadata types to define how agents function. These include:

  1. GenAi Planner (Agent) which defines the AI agent’s reasoning strategy (topics, instructions and guidelines),
  2. GenAi Plugin (Topic) which are the related actions and instructions specific to the agent’s job function,
  3. GenAi Function (Agent Actions) which specifies individual actions AI agents can perform,
  4. GenAi Prompt Template which are structured AI-generated prompts for consistent agent responses,
  5. Einstein Bot and Bot Version which defines the version of an Agent, makes it available for internal use or external use and defines which channels the agent should be exposed to including Slack, Whatsapp and Facebook Messenger.

In order to successfully deploy an agent to a destination environment, you’ll need to carry over the main Agent metadata component (GenAi Planner) together with its dependencies which include Topics (GenAi Plugins); any Actions (GenAi Functions) and their corresponding Flows and Apex Classes; any Prompt Templates if used; as well as Bot components when the agents get configured for external channels.

When deploying Agent Topic metadata components (GenAiPlugin), keep in mind that any related agent actions (GenAiFunctions) must exist in the destination environment. If they don’t exist, then they must be deployed alongside the GenAiPlugin metadata.

When deploying Agent action metadata components (GenAiFunction), keep in mind that the corresponding Apex class or flow must exist in the destination environment. If it doesn't, then it must be deployed alongside the GenAiFunction metadata.

When deploying Prompt Templates metadata components (GenAiPromptTemplate), keep in mind that related metadata like sObjects, Apex classes, flows or data cloud objects must exist in the destination environment. If they don't exist then they must be deployed alongside the GenAiPromptTemplate metadata.

Failure to follow the above steps will mean only one thing: the deployment or validation will fail.

Finally, it is likely that your Agent will require new Data Sources. This could mean new Data Cloud configurations are required. Data Cloud deployments have some of the same challenges as agents. Learn more about streamlining Data Cloud deployments.

Salesforce Automation Considerations

The Metadata associated with your Agent Solution can generally be deployed automatically through your CICD system keeping in mind the considerations mentioned above. There are several items in Salesforce Setup that are not supported by the Metadata API (MDAPI). These items typically require manual steps during deployment. In fact, Copado has made it easy to document these steps and to coordinate them with the automations as part of a deployment. Lack of MDAPI is no longer a barrier to automation however. Robot Process Automation (RPA) tools like Copado Robotics enable these manual steps to be replaced with clicks from a script, thereby eliminating human intervention. This not only saves time, but also improves the reliability, since once the script is dialed in, it will be repeated the same way each time.

Agentforce Maintenance and Optimization

Successful Agentforce implementation requires ongoing attention to maintenance and optimization. Regular review and refinement of prompts, actions, and data streams ensure optimal performance. Administrators should pay particular attention to data quality and availability, as these factors directly impact agent response accuracy. 

Conclusion

Agentforce represents a significant advancement in AI-powered business automation within the Salesforce ecosystem. While the platform offers powerful capabilities out of the box, success depends on careful configuration, thorough testing, and ensuring dependencies are included in deployments. Understanding the interplay between topics, actions and data integration enables administrators to create effective AI agents that can significantly improve organizational efficiency and the customer experience.

Learn more about how you can use powerful DevOps tools to take control of your Salesforce development.

  • Automate releases
  • Improve compliance & security
  • Reduce errors & speed up delivery

Don’t let outdated processes slow you down. Discover how Copado can transform your Salesforce automation today: Learn more

Book a demo

About The Author

#1 DevOps Platform for Salesforce

We build unstoppable teams by equipping DevOps professionals with the platform, tools and training they need to make release days obsolete. Work smarter, not longer.

How to Deploy Agentforce: A Step-by-Step Guide
How AI Agents Are Transforming Salesforce Revenue Cloud
The Hidden Costs of Building Your Own Salesforce DevOps Solution
Chapter 7 - Talk (Test) Data to Me
Copado Announces DevOps Automation Agent on Salesforce AgentExchange
Deploying CPQ and Revenue Cloud: A DevOps Approach
Copado Launches AI-Powered DevOps Agents on Slack Marketplace
Redefining the Future of DevOps: Salesforce’s Pioneering Ideas and Innovations
Copado Announces DevOps Support for Salesforce Data Cloud, Accelerating AI-Powered Agent Development
AI-Powered Releasing for Salesforce DevOps
Top 3 Pain Points in DevOps — And How Copado AI Platform Solves Them
Copado AI Platform: A New Era of Salesforce DevOps
Copado Expands Its Operations in Japan with SunBridge Partners
Chapter 6: Test Case Design
Making DevOps Easier and Faster with AI
Chapter 5: Automated Testing
Reimagining Salesforce Development with Copado's AI-Powered Platform
Planning User Acceptance Testing (UAT): Tips and Tricks for a Smooth and Enjoyable UAT
What is DevOps for Business Applications
Testing End-to-End Salesforce Flows: Web and Mobile Applications
Copado Integrates Powerful AI Solutions into Its Community as It Surpasses the 100,000 Member Milestone
How to get non-technical users onboard with Salesforce UAT testing
DevOps Excellence within Salesforce Ecosystem
Best Practices for AI in Salesforce Testing
6 testing metrics that’ll speed up your Salesforce release velocity (and how to track them)
Chapter 4: Manual Testing Overview
AI Driven Testing for Salesforce
Chapter 3: Testing Fun-damentals
AI-powered Planning for Salesforce Development
Salesforce Deployment: Avoid Common Pitfalls with AI-Powered Release Management
Exploring DevOps for Different Types of Salesforce Clouds
Copado Launches Suite of AI Agents to Transform Business Application Delivery
What’s Special About Testing Salesforce? - Chapter 2
Why Test Salesforce? - Chapter 1
Continuous Integration for Salesforce Development
Comparing Top AI Testing Tools for Salesforce
Avoid Deployment Conflicts with Copado’s Selective Commit Feature: A New Way to Handle Overlapping Changes
Enhancing Salesforce Security with AppOmni and Copado Integration: Insights, Uses and Best Practices
From Learner to Leader: Journey to Copado Champion of the Year
The Future of Salesforce DevOps: Leveraging AI for Efficient Conflict Management
A Guide to Using AI for Salesforce Development Issues
How to Sync Salesforce Environments with Back Promotions
Copado and Wipro Team Up to Transform Salesforce DevOps
DevOps Needs for Operations in China: Salesforce on Alibaba Cloud
What is Salesforce Deployment Automation? How to Use Salesforce Automation Tools
Maximizing Copado's Cooperation with Essential Salesforce Instruments
From Chaos to Clarity: Managing Salesforce Environment Merges and Consolidations
Future Trends in Salesforce DevOps: What Architects Need to Know
Enhancing Customer Service with CopadoGPT Technology
What is Efficient Low Code Deployment?
Copado Launches Test Copilot to Deliver AI-powered Rapid Test Creation
Cloud-Native Testing Automation: A Comprehensive Guide
A Guide to Effective Change Management in Salesforce for DevOps Teams
Building a Scalable Governance Framework for Sustainable Value
Copado Launches Copado Explorer to Simplify and Streamline Testing on Salesforce
Exploring Top Cloud Automation Testing Tools
Master Salesforce DevOps with Copado Robotic Testing
Exploratory Testing vs. Automated Testing: Finding the Right Balance
A Guide to Salesforce Source Control
A Guide to DevOps Branching Strategies
Family Time vs. Mobile App Release Days: Can Test Automation Help Us Have Both?
How to Resolve Salesforce Merge Conflicts: A Guide
Copado Expands Beta Access to CopadoGPT for All Customers, Revolutionizing SaaS DevOps with AI
Is Mobile Test Automation Unnecessarily Hard? A Guide to Simplify Mobile Test Automation
From Silos to Streamlined Development: Tarun’s Tale of DevOps Success
Simplified Scaling: 10 Ways to Grow Your Salesforce Development Practice
What is Salesforce Incident Management?
What Is Automated Salesforce Testing? Choosing the Right Automation Tool for Salesforce
Copado Appoints Seasoned Sales Executive Bob Grewal to Chief Revenue Officer
Business Benefits of DevOps: A Guide
Copado Brings Generative AI to Its DevOps Platform to Improve Software Development for Enterprise SaaS
Copado Celebrates 10 Years of DevOps for Enterprise SaaS Solutions
Celebrating 10 Years of Copado: A Decade of DevOps Evolution and Growth
5 Reasons Why Copado = Less Divorces for Developers
What is DevOps? Build a Successful DevOps Ecosystem with Copado’s Best Practices
Scaling App Development While Meeting Security Standards
5 Data Deploy Features You Don’t Want to Miss
How to Elevate Customer Experiences with Automated Testing
Top 5 Reasons I Choose Copado for Salesforce Development
Getting Started With Value Stream Maps
Copado and nCino Partner to Provide Proven DevOps Tools for Financial Institutions
Unlocking Success with Copado: Mission-Critical Tools for Developers
How Automated Testing Enables DevOps Efficiency
How to Switch from Manual to Automated Testing with Robotic Testing
How to Keep Salesforce Sandboxes in Sync
How Does Copado Solve Release Readiness Roadblocks?
Software Bugs: The Three Causes of Programming Errors
Best Practices to Prevent Merge Conflicts with Copado 1 Platform
Why I Choose Copado Robotic Testing for my Test Automation
How to schedule a Function and Job Template in DevOps: A Step-by-Step Guide
Delivering Quality nCino Experiences with Automated Deployments and Testing
Maximize Your Code Quality, Security and performance with Copado Salesforce Code Analyzer
Best Practices Matter for Accelerated Salesforce Release Management
Upgrade Your Test Automation Game: The Benefits of Switching from Selenium to a More Advanced Platform
Three Takeaways From Copa Community Day
What Is Multi Cloud: Key Use Cases and Benefits for Enterprise Settings
How To Develop A Salesforce Testing Strategy For Your Enterprise
Using Salesforce nCino Architecture for Best Testing Results
Cloud Native Applications: 5 Characteristics to Look for in the Right Tools
5 Steps to Building a Salesforce Center of Excellence for Government Agencies
Go back to resources
There is no previous posts
Go back to resources
There is no next posts

Explore more about

CI/CD
Articles
March 17, 2025
How AI Agents Are Transforming Salesforce Revenue Cloud
Articles
March 14, 2025
The Hidden Costs of Building Your Own Salesforce DevOps Solution
Articles
March 13, 2025
Chapter 7 - Talk (Test) Data to Me
Articles
March 5, 2025
Copado Announces DevOps Automation Agent on Salesforce AgentExchange

Activate AI — Accelerate DevOps

Release Faster, Eliminate Risk, and Enjoy Your Work.
Try Copado Devops.

Resources

Level up your Salesforce DevOps skills with our resource library.

Upcoming Events & Webinars

Learn More

E-Books and Whitepapers

Learn More

Support and Documentation

Learn More

Demo Library

Learn More