Skip to main content

Tempo estimado

Tópicos

Pergunte à comunidade

Explore Data with Agentforce Grid

Learning Objectives

After completing this unit, you’ll be able to:

  • Add data to an Agentforce Grid.
  • Apply Prompt Templates to transform and analyze Agentforce Grid data.
  • Configure Agentforce Grid settings to perform bulk record updates.

Get Into Agentforce Grid

In this unit, you’ll create a new grid, import your data, and use AI to automate record updates. Explore Agentforce Grid’s interface to transform raw data into actionable insights.

  1. Open the App Launcher .
  2. Search for and select Agentforce Grid.
  3. Click Create Grid.
  4. For Grid Name, enter Account Summary.
  5. For Description, enter Generate account summaries and populate the Account Description with the information.
  6. Click Create.

Agentforce Grid opens in a new tab with Worksheet1 waiting for your first instructions.

Account Summary Agentforce Grid opened with Add Column and 10 rows displayed.

Ten rows are ready to display data and the first column is ready for whatever you want to add to it. Start with some Salesforce account data.

  1. Click Add Column.
    There is a lot there to choose from. You’ll use a couple of them as you follow along.
  2. Select Import Salesforce.

“Import Salesforce options showing Query Mode, Object Type, Fields, Filters.”

There are several options here as well.

  1. The first item you can change is the title. Highlight Salesforce and change it to Account.

  1. Open the One Result Per Row popup window and enter 10 in the Max Results field. Close the popup window.
  2. Leave Query Mode as Object.
  3. For Object Type, click Select an object, and select Account.
  4. Click Fields to review a list of Available Fields and Selected Fields. It starts with all fields in the Selected Fields box.
  5. The Filters area automatically opened to allow you to filter the accounts pulled into the list.
  6. Click Save and Run.

“Account Summary Grid now showing account data.”

  1. Click inside the first account column without clicking the account link (if there is one). This opens the right pane with the accounts field information.
  2. Navigate to the Id field to select + Column.

“The Account Summary Grid interface showing a list of Account IDs with the '+ Column' button visible next to the Id field header.”

  1. The Id field gets added to the Account Summary Grid.

“Account Summary display with Account.Id field added.”

This is one way to isolate a field from a separate column.

OK, you have the first two columns narrowing down the data. Now, use a Prompt Template to generate an account summary based on the Account column.

  1. Click Add Column and select Prompt Template.
  2. Update the title to Summary.

“Prompt Template pane with the title updated to Summary.”

Notice Run For Each Row under the title. This designates this template to run for each row.

  1. For Prompt Template, select Account Summary.
    Once a template is chosen, the Template Variables are updated to the variable the template calls for.
  2. Under Template Variables, for objectToSummarize, select Account.
  3. Click Save and Run.
  4. When it finishes compiling, click the new Summary field in the first row.

“Account Summary with the top Summary field selected.”

  1. The right pane displays the results of the prompt template. It opens in the Output Preview. Click the JSON tab to display the actual output from the template.
  2. Click + Column for the text field.

“Summary with JSON tab open and the text field highlighted.”

This adds the summary text to Agentforce Grid.

“Account Summary with the new Summary.text field added to a column.”

The text field that you just isolated is actually in HTML. If you navigate to one of the text fields, Agentforce Grid displays a preview of the HTML. You can use AI to convert it to Markdown so it can be saved to the Account Description field in Salesforce.

  1. Click Add Column and select Use AI.
  2. Update the Title to Markup.
  3. For Model, select GPT 5.
  4. For LLM Instructions, enter the following prompt.
    Given an html string convert it to mark down.
    Here is the html string:

  5. Select the space after string: and enter @.
    This brings up the Search columns.
  6. Click into Search columns and select Summary.text.
  7. Open Response Format and verify that Plain Text is selected.
  8. Click Save and Run.

Nice. You now have the account summary in a clean markdown formatted text. Now, add that summary back into the account record so it displays in the Description field.

  1. Click Add Column and select Update Record.
  2. Update the Title to Update Description.
  3. For Object Type, select Account.
  4. For Object Field, select Account Description.
  5. For Enter a value, select Markup.
  6. Click Save and Run.

“Account Summary with the new Update Description field added to a column.”

Open one of the accounts so you can review the updated Description.

  1. From the App Launcher, search for and select Sales.
  2. Click the Accounts tab.
  3. Click an account.
  4. Click the Details tab. Notice the Description field includes the summary from Agentforce Grid.

You’ve transformed raw data into polished record updates, isolated certain parts of the data, ran a prompt template using the data, and modified text with AI. Your records are now updated, your workflow is automated, and you’re ready to scale these skills across your org—all that in just a few minutes!

Compartilhe seu feedback do Trailhead usando a Ajuda do Salesforce.

Queremos saber sobre sua experiência com o Trailhead. Agora você pode acessar o novo formulário de feedback, a qualquer momento, no site Ajuda do Salesforce.

Saiba mais Continue compartilhando feedback