Automate Your Admin Workload With Agentforce

Automate Your Admin Workload With Agentforce

By

Every Salesforce Admin lives in two worlds. In one, you’re a strategic architect, designing flows and planning for the future. In the other, you’re the org’s caretaker, performing the vital, daily maintenance that keeps the system running smoothly‌ — ‌like merging duplicates and managing user permissions.

Both roles are essential, but the clicks of caretaking can often consume the time needed for creation. What if you had a digital agent to handle the routine work, giving you more time to focus on strategic innovation? That agent is here, and it’s a powerful tool for productivity. 

In this post, we’ll show you how to build your own “admin command center” using Agentforce. This isn’t just a metaphor; it’s a powerful tool that can reduce unnecessary steps in your workflow and empower your team.

The power of custom actions: A showcase 

Before we dive into the how-to, let’s see the AI agent in action. The most powerful automations are built using custom actions. In this Agentforce Decoded video, Lead Admin Evangelist Kate Lessard uses simple, conversational commands to trigger these custom workflows.

Handling duplicates: Find and merge contacts

While standard duplicate rules are essential, the cleanup is often manual. With a custom action, you can build a command to find potential duplicates and present merge options directly to the admin. This turns a multistep analysis into a single, on-demand command.

Granting report access

By creating a custom action that calls an autolaunched flow, an admin can simply state, “Give access to this report to one of my users” and the agent handles the sharing. No need to stop what you’re doing to navigate through sharing settings.

Revealing new opportunities

To get a quick snapshot of the pipeline, we can ask the agent to show new opportunities created that week. While this can be done with a standard action, a custom action gives you more control over the output, allowing you to format the information exactly how your sales leaders want to see it.

Viewing a record’s activity history

Understanding a record’s history is crucial. A command to “Show the activity history for this contact” is the fastest way to get up to speed before a sales call. This can be run on any object that tracks activities, from a Case to an Opportunity. It’s a versatile tool for getting the full story on any record.

These custom commands are just the beginning. By the end of this post, you’ll have a clear understanding of how to build your own productivity-boosting automations.

How ‌the AI agent really works

Every powerful tool has a simple explanation. The secret to ‌an AI agent’s capabilities isn’t complicated‌ — ‌it’s a well-configured agent that connects natural language to powerful actions. This is where we pull back the curtain and show you how it all works with Agentforce.

The instruction set

We used clear instructions to teach the agent to recognize certain phrases. By defining these phrases, you can train your agent to perform specific tasks. For instance, an instruction might be, “If a user asks to find duplicates, execute the find duplicate records action.” If you want your agent to reference specific actions, call them out in the instructions. It’s that simple.

As you build in Agentforce, your agent’s performance will be directly influenced by the instructions you add to your topics. Writing good instructions involves crafting clear, actionable, and precise guidance for agents.

Some tips for writing effective instructions to enhance Agentforce performance include:

  • Use simple, straightforward language: Keep your instructions clear and easy to understand.
  • Break down complex processes into smaller, manageable steps: Simplify tasks to ensure they’re easy to follow.
  • Avoid jargon: Agentforce understands natural language, so use terms familiar to agents and users.

Standard vs. custom actions

Agentforce comes with powerful standard actions right out of the box‌ — ‌letting it summarize records, draft emails, or answer questions from your knowledge base. But the real power for admins, and the secret to the examples shown earlier, lies in creating custom actions to handle unique business needs.

These are the commands an admin builds themselves. You can create custom actions using three core components.

  • Autolaunched flows, to kick off complex automations using just natural language
  • Prompt templates, to generate highly specific, context-aware responses for your users
  • Apex (via Invocable Actions), for when you need to call external systems or perform logic beyond what Flow can do

The flexibility to combine natural language instructions with powerful custom actions is what helps you transform a generic agent into a true expert for your org.

Advanced techniques: Prompt Builder and RAG

For those wanting to take a different approach to their automations, Prompt Builder and Retrieval-Augmented Generation (RAG) can help you achieve similar results.

Choosing the right tool: Prompt templates and RAG

An effective AI agent uses the right tool for the right task. While custom actions execute a flow or Apex, sometimes you need a capability that focuses on generating specific text or retrieving knowledge. That’s where Prompt Builder and RAG shine.

Use Prompt Builder templates to generate specific text

This is your go-to when a command needs to generate a precise, formatted text response. For example, you could create a command to “Draft a project summary email.” A prompt template lets you define the exact tone, structure, and required merge fields, giving you a perfectly crafted response every time.

Use data libraries and RAG to answer questions from your documents

What if your agent needs to know things that aren’t stored in standard Salesforce fields? That’s the job for RAG. If you wanted a command to “Summarize the new partner onboarding PDF”, you could add that document to a data library. Using RAG, your agent can then read and answer questions based on its content. This is the perfect approach for turning internal websites or policy manuals into an instant, searchable knowledge base.

Why every admin needs a custom AI agent

Practical applications

Your business has specific language and terminology that you use internally. Agentforce can be trained to understand and use this language, making it a powerful ally in your org. When your agent understands your internal verbiage, it unlocks a world of practical applications.

  • Onboarding new users: Teach the agent to understand your company’s acronyms and jargon, making the onboarding process smoother.
  • Simplifying complex processes: Turn multi-step processes into a single command. For instance, “Create a new case for this customer with these details” can be a simple request.
  • Empowering non-technical users: Let users get the information they need without waiting for an admin. This self-service capability boosts productivity and reduces your workload.

Brainstorm your own commands

Here are a few more practical automations you could create.

  • A time-delayed command: Schedule a flow to run at a later time with a command like, “Run the overdue invoice flow tonight at 2 AM.”
  • Quick record creation: Instantly create a new record with prefilled information using, “Create a new Case for John Doe with the subject ‘Urgent Support Needed.'”
  • A record summary command: Summarize the key fields on a complex record with, “Give me the key takeaways on this opportunity.”

Build your own AI agent

With Agentforce, you can create a conversational interface that understands your business. By building your own set of custom actions, you can automate repetitive tasks and focus on the strategic work you do best.

Let us know in the comments: Which terms or definitions would be helpful for your agent to know? What is the first command you’d create for your org?

You’re already the expert in your org — it’s time to build your AI agent. Embrace the power of Agentforce and put your own custom agent to work. The true potential isn’t just in the platform; it’s in the solutions you build with it. Now, go create yours.

Resources

Turn images and PDFs into AI-powered insights

Turn Images & PDFs Into AI-Powered Insights With Agentforce

Salesforce Admins are always on the lookout for innovative ways to enhance workflows and deliver more value to your organizations. Today, we’re excited to introduce a groundbreaking feature in Agentforce that will revolutionize how you interact with data: multimodality. This new capability allows Salesforce’s Foundational Large Language Models (LLMs) to process various types of input, […]

READ MORE