Step-by-Step Guide to Creating Custom Action for Agent Using Flow

Agentforce, Salesforce’s AI-powered agent automation tool, enables support teams to work smarter and faster. One of the key capabilities is the ability to create Custom Actions for Agents, allowing automation of tasks using Flows.

In this guide, we will walk you through creating a Custom Action for an Agent using Flow to automate case creation based on natural language instructions. This means that support agents can simply describe a case in plain language, and Agentforce will automatically generate a well-structured case—eliminating the need for manual data entry.

Business Use Case: Create a Case Using Natural Language Instructions During Live Calls

Imagine your customer support team needs to create cases rapidly while actively engaging with customers on calls. Currently, they have to:

  1. Navigate to the Cases tab

  2. Manually enter details into multiple fields

  3. Save the record

All of this while trying to maintain an engaging conversation with the customer.

The Solution? Leverage Salesforce Flow and Agentforce to accelerate case creation. Using a custom action, support agents can simply describe the issue in natural language, and the system will automatically generate a well-structured case with the correct subject and description—reducing effort and improving accuracy.

Here is how this is going work:

Step-by-Step Guide: Creating Custom Action for Agent Using Flow

This process is simple and should take 15-20 minutes to configure and test. Here’s what we are going to cover this guide, step-by-step:

  1. Create a Flow

  2. Create Custom Action for Agent using Flow

  3. Add Custom Action to Agent

  4. Test Custom Action


In the overall flow of Agentforce, the following diagram highlights the key components that we will cover in this guide.


Conclusion

This guide is just the starting point for using Salesforce Flows to create Custom Actions for Agents. Once you understand the process, you can extend this knowledge to automate other business processes—driving efficiency and productivity across your operations.


Agentforce Advisory, Training & Implementation Services

If you’d like help going deeper with Agentforce beyond this guide, I offer the following:

  • Self-Paced Training – #Mastering Agentforce

    A structured, hands-on course covering Agentforce concepts, Prompt Templates, Agents, Actions, and real-world implementation patterns.

  • Live Online & Onsite Agentforce Training

    Instructor-led training for Salesforce teams, partners, and customer organizations, tailored to real use cases and practical scenarios.

  • Agentforce Advisory & Implementation Services

    Strategic advisory and hands-on implementation support to help you design, build, and scale Agentforce solutions with confidence.

For training, advisory, or implementation discussions, please reach out via the Contact page, where you can submit a form or schedule a conversation.


References & Useful URLs



Got a takeaway? I’d love to hear it—leave a comment 👇