SfSkills Domains Docs GitHub

Home / agentforce / agentforce-grid

agentforce-grid

Use when designing or reasoning about an Agentforce Grid worksheet — the spreadsheet-like Agentforce workspace where rows are jobs and columns are sequential Data / AI / Action steps that process left to right — to run bulk record updates, generate insights, or test multi-turn AI conversations over CRM or Data Cloud (Data 360) data without Apex or Flow.

Open the skill folder on GitHub


Agentforce Grid

This skill activates when a practitioner wants to move data and AI work in bulk through Agentforce Grid — a spreadsheet-like interface for chaining together CRM data, AI prompts, actions, and agents. It covers how a worksheet is structured (rows as jobs, columns as sequential Data / AI / Action steps), how columns reference each other left to right, and the metering/Flex-Credit considerations that make bulk runs a cost decision, not just a design one.

Maturity caveat. Agentforce Grid was introduced in the Winter '26 release and its setup documentation is explicitly labeled Beta ("Set Up Agentforce Grid (Beta)"). Do not describe it as Generally Available; preserve the Beta caveat in any guidance you produce.


Before Starting

Gather this context before working on anything in this domain:


Core Concepts

Workbooks, worksheets, rows, and columns

Grid borrows the spreadsheet model but reimagines it for AI. Work is organized into workbooks and worksheets — "but reimagined for AI, with rows representing jobs while columns function as dynamic, sequential actions." A worksheet is the unit you build and run; a Grid Worksheet is a distinct creatable artifact within a Grid ("Create a Grid Worksheet").

The three column types

Columns come in three kinds, chained in order:

Left-to-right dependency ordering

Because columns process left to right and reference earlier columns, order is the contract. A data column feeds an AI column, whose output feeds another AI column or an action column that writes it back. An AI or action column can only consume columns positioned to its left — there is no way to reference a column that hasn't run yet.

Metering and Flex Credits

Grid runs consume metered compute. "Testing through Agentforce Grid is metered to account for required compute resources," and that metering applies across the whole AI lifecycle, not just testing — "Agentforce Grid usage is metered regardless of the AI lifecycle phase in which it's used." Usage draws on Flex Credits, and a Billing Calculator estimates the credits-per-row cost before you run. Because every AI/action column runs once per row, cost scales with (rows × AI/action columns) — a small unit cost multiplied across a wide worksheet.

Do not cost a Grid run at a flat $2 per conversation. That SKU still exists. Flex Credits, announced 15 May 2025, are the default commercial model and are not release-gated. As of that newsroom announcement: packs are $500 USD per 100,000 Credits; one Agentforce action consumes 20 Flex Credits ($0.10 USD); Enterprise Edition and above can get 100,000 Flex Credits for $0 with Salesforce Foundations. Grid meters actions × rows, not conversations — use the Billing Calculator, then convert with the current pack rate. Commercial rates change independently of platform releases; re-confirm before quoting a number in a live estimate.


Common Patterns

Bulk enrichment / clean-up (Data → AI → Action)

When to use: you need to transform or summarize a field across many records and write the result back — e.g., convert stored HTML descriptions to Markdown, or generate a one-line summary per Account.

How it works: column 1 is a data column importing the object and fields (with a filter and Max Results). Column 2 is an AI column (Prompt Template or Use AI) referencing column 1's field. Column 3 is an Action column (Update Record) that writes column 2's output back to the target field. Preview a few rows before running the full set.

Why not the alternative: doing this in Apex or Flow means writing, testing, and deploying code for a one-off bulk operation; Grid keeps it no-code and inspectable row by row — but it is metered, so weigh Flex Credits against the effort saved.

Insight generation (Data → AI, no write-back)

When to use: you want AI-generated insights across records for review, without mutating CRM data.

How it works: a data column plus one or more AI columns; stop there — no Update Record column. Read results in the Output Preview (JSON view available). This keeps the run read-only.

Why not the alternative: adding an action column when you only need to look at results writes data you didn't intend to change and spends credits on writes you don't need.

Multi-turn conversation testing (bulk)

When to use: you want to test how an agent responds across many scenarios/rows at once, rather than one chat at a time.

How it works: rows carry the scenario inputs; AI columns run the agent/prompt per row so you can compare outputs side by side. Because this is still metered, treat a broad test run as a cost decision.


Decision Guidance

SituationRecommended ApproachReason
Same transform across many records, write results backData → AI → Action (Update Record) worksheetGrid chains steps per row without code
You only need to review AI output, not change dataData → AI columns, no action columnAvoids unintended writes and write-side credits
Source is Data Cloud / Data 360 dataData column against a data model objectGrid data columns query DMOs as well as standard objects
One record or one interactive turnPrompt builder / agent surface, not GridGrid's value is bulk (rows = jobs); a single row wastes the model
Transform needs a reusable, governed promptAI column in Prompt Template modeReuses an existing template instead of ad-hoc instructions
Quick, one-off transformationAI column in Use AI mode with a chosen modelDirect instruction is faster than authoring a template
Deployable, repeatable production automationFlow or Apex, not GridGrid is a no-code Studio tool, not a deployable metadata type
Run would touch a very large row setEstimate Flex Credits first, narrow the filterCost scales with rows × AI/action columns; metered every phase

Step-by-step instructions for a practitioner working in Agentforce Grid:

  1. Frame the bulk goal — decide whether the run is a bulk update, insight generation, or a multi-turn test, and confirm Grid (not a single-record surface) is the right tool.
  2. Create the worksheet and its data column — create a Grid worksheet, add a data column importing the source object (or Data Cloud DMO), select only the fields you need, apply a row filter, and set Max Results to bound the job count.
  3. Add the AI column(s) — choose Prompt Template (reusable) or Use AI (direct instruction + model), and reference the upstream data column with the @ picker so it runs for each row.
  4. Add the action column if writing back — add an Update Record column that maps the AI column's output to the target object/field; omit it entirely for read-only insight runs.
  5. Estimate cost and preview — review the Flex Credit / Billing Calculator estimate for the row count, then preview a few rows (inspect JSON output) before committing.
  6. Run and verify — run the worksheet, confirm write-backs landed on the intended field, and spot-check for FLS/sharing gaps or truncated/incorrect AI output.

Review Checklist

Run through these before marking work in this area complete:


Salesforce-Specific Gotchas

Non-obvious platform behaviors that cause real production problems:

  1. Cost scales with rows × columns — every AI and action column runs once per row, so a modest per-row credit cost multiplies fast across a wide worksheet on a large row set. Estimate before running, and bound rows with Max Results and a filter.
  2. Metered in every phase, not just "test" — it's tempting to assume experimentation is free. Agentforce Grid usage is metered regardless of the AI lifecycle phase (test, build, or scale); a broad exploratory run spends Flex Credits.
  3. Left-to-right ordering is the contract — a column can only reference outputs of columns to its left. Reordering or inserting a column can silently break a downstream reference; validate the dependency chain after any edit.
  4. Action columns mutate live data — an Update Record column writes to real Salesforce fields under the running user's permissions. A wrong field mapping or an over-broad filter can overwrite production data at scale; preview first.
  5. Beta surface — Grid's setup is documented as Beta and was introduced in Winter '26; behavior, limits, and UI can change. Don't hard-code assumptions or promise GA-level stability.

Output Artifacts

ArtifactDescription
Worksheet design (templates/grid-worksheet-spec.example.json)A JSON plan of the ordered Data / AI / Action columns, their references, and metering acknowledgement — lintable with the checker script
templates/agentforce-grid-template.mdA fill-in planning worksheet for scoping a Grid run before building it
scripts/check_agentforce_grid.pyStdlib linter that validates a worksheet spec: known column types, left-to-right references, write-back back-references, and a metering acknowledgement

Package files