Customize Your Agents
Learning Objectives
After completing this unit, you’ll be able to:
- Explore the different ways you can customize agent actions.
- Compare the benefits of customizing agent actions.
Right out of the box, Agentforce can tackle many of the common challenges businesses face in data and customer relationship management. An agent can help when your team struggles to find the right answers to customer inquiries. Or when too many routine tasks demand your service reps’ time. Or when you need content for an upcoming presentation, but lack the human resources to get it done. From automating customer points of contact to summarizing meetings and documents for key stakeholders, there’s a lot you can do with the standard Agentforce configuration. But what about the advanced applications that are specific to your business, or that might emerge as you see how agents plug into your work? That’s where customization comes in.
Custom Agent Actions
Custom agent actions are how you can influence the way your agents act. While agents can read any data you give them access to in Salesforce, they can’t change records without a predefined agent action. These actions can be configured and chained together to create the functionality you need. This might involve greeting a hotel guest and offering options when they check in, or automatically sending summarized notes to all participants after a weekly meeting. Prompts, flows, and apex are effective ways to configure your agent’s actions to meet your company’s specific business use cases.
Prompts
Agents come with templated prompt types for a wide range of common tasks like answering emails or managing service cases. Prompt Builder’s intuitive UI also has several features, like one-click copy for text fields and the ability to generate resolutions without full responses if you need to iterate quickly. To get the best performance out of your prompts, you’ll want to refine the templates and create new ones to fit the specific use cases you experience in your business. With Prompt Builder, you can easily modify a default prompt to collect the right information, deliver personalized responses, and ensure things are running smoothly for your agents.
For example, if an agent is generating generic responses that don’t make customers feel valued, you can use a prompt template to add instructions for the agent to use your existing customer data to provide more tailored responses. Prompts allow you to create context-aware and evolving commands that come in three main types.
- Field generation templates work well with a single object, such as an account, but have limitations in providing additional context.
- Service email templates are ideal for case-related responses but are restricted to that scope.
- Flex templates offer the most versatility, allowing you to use multiple objects, free text input, and data models for richer responses. These templates aren’t as quick to use for simple tasks but work well when you need a specific solution that includes creative thinking.
Flows
The true power of Agentforce lies in its ability for agents to activate flows—low-code tools that enable users to perform complex business tasks, such as modifying customer records. And you can build agent-ready flows for your agents to make tasks easy. They can also improve an agent’s accuracy by instructing agents to access specific and relevant data instead of using all the data they have access to in Salesforce.
Apex
While flows and prompts can do a lot to refine how Agents work with Salesforce, they only work with tasks you can automate through natural language instructions and traditional flows. However, because LLMs can also read and process code, agents can also help you take advantage of the power of Apex. With Apex customization, a single person can code advanced applications into simple-to-deploy agent actions that can be used and referenced by others. These actions can help you do things like check flight times at the airport closest to your business or pull and analyze data from a previously built Apex application already used by your teams. Once you’ve added your Apex code to an agent action, even teams with limited code knowledge can use the action.
Dive Deeper
Continue your AI agent learning journey by exploring other badges related to prompts, flows, and Apex customization to gain more hands-on experience and discover various ways to enhance how Agents work with you. It won’t take long for you to discover all the advantages of having agents that are tailored to your specific needs.