Building Blocks of Agents in Salesforce [Topic, Instructions, Actions]

After creating and deploying an Agent in Salesforce, we need to train the agent with natural language so that when a user or customer asks the agent a query, the agent should display the result. This can be done using topics, instructions, and actions, which are the building blocks of agents in Salesforce.

In this tutorial, we will learn about the building blocks of Agents in Salesforce. In that, I will explain why the building blocks are necessary and how to create custom topics, instructions, and actions in Salesforce Agentforce.

Building Blocks of Agents in Salesforce

In Salesforce, building blocks of Agents refer to the reusable components and elements that help design and automate AI-driven processes within Salesforce agents. These building blocks are essential for creating intelligent and automated workflows that can interact with Salesforce data, enhance customer experience, and provide insights.

These agents are built using three components: Topic, Instructions, and Actions. These are specific tasks or actions that the agent performs, like retrieving data, sending an email, or updating a record. Custom actions are often integrated with the agent’s logic to automate business processes.

Because of the building blocks, the agent understands and processes information, communicates naturally with the user, and takes action to perform specific tasks. When we create a new agent in Salesforce, we get access to standard topics and actions.

In Salesforce, an org can have multiple agents deployed on different channels to perform different tasks. The Salesforce Agent helps internal Salesforce employees in their daily work, and the Community Agent helps external users by solving their queries.

Every organisation is special and has requirements specific to its business use case. To handle such requirements, we will have to create custom actions and assign them to the topics that will be assigned to the agents so that the agents will be able to perform the task.

Requirement of Creating Topics, Instructions, and Actions in Salesforce Agentforce

In this organization, we would like to give our agents the ability to answer queries when customers ask about the priority of their accounts. Therefore, the expectation is that the customer will provide us with the account number they received via email or message.

These AI agents, which may be deployed on a customer community portal, will be able to take the Account Number and inform the customer of their account’s priority.