Contact Us

October 8, 2024

June 24, 2026 4:27 am

Loading records into Agentforce for employee agents

Share with

Understanding the Challenge

Employee agents in Agentforce need to be able to understand the information in certain records in order to function effectively. However, loading these records into the agent can be a challenge, especially when using prompt flow. The instructions element in prompt flow can be used to load records, but this approach is prone to exceeding the limit, making it an impractical solution.

Root Cause

The root cause of this issue is the limitations of prompt flow in Agentforce. Prompt flow is designed for simple, straightforward interactions, and is not well-suited for loading large numbers of records. When teams try to use prompt flow for this purpose, they often find that they exceed the limit, which can cause errors and disrupt the functioning of the employee agent.

Solution Overview

Instead of using prompt flow, teams can use an AuthLaunched flow to output relevant records. This approach allows for more efficient and scalable record loading, and is better suited to the needs of employee agents in Agentforce.

Step-by-Step Solution

To implement this solution, teams can follow these steps:

AuthLaunchedFlow.example

// Example code for an AuthLaunched flow// Load relevant records from Salesforce// Output records to Agentforce

Best Practices

When loading records into Agentforce using an AuthLaunched flow, there are several best practices to keep in mind. These include:

Checklist

  • Use a well-designed AuthLaunched flow to output relevant records
  • Test the flow thoroughly to ensure it is working as expected
  • Monitor the flow for errors and adjust as needed
  • Use efficient and scalable record loading techniques
  • Consider using additional tools or features to support record loading, such as Salesforce APIs or third-party integrations

Frequently Asked Questions

What is an AuthLaunched flow?

An AuthLaunched flow is a type of flow in Agentforce that allows teams to output relevant records to employee agents.

How do I create an AuthLaunched flow?

To create an AuthLaunched flow, teams can use the Agentforce flow designer to create a new flow and configure it to output relevant records.

What are the benefits of using an AuthLaunched flow?

The benefits of using an AuthLaunched flow include more efficient and scalable record loading, as well as improved functionality for employee agents.

Can I use prompt flow instead of an AuthLaunched flow?

While prompt flow can be used to load records, it is not recommended due to the limitations and potential for errors. An AuthLaunched flow is a better solution for loading records into Agentforce.

Genetrix Technology · Salesforce Marketing Cloud Partner

Need help shipping this in production?

Genetrix builds and untangles Salesforce Marketing Cloud and Agentforce setups for teams that want it done right the first time. If anything in this post sounds familiar, talk to us before it ships.

Get in Touch with Genetrix →

Blogs for the

Business-Savvy!​

Let’s Connect

A 30 min no cost strategy session
with cloud support expert

Let’s Connect

A 30 min no cost strategy session
with cloud support expert