Salesforce Flex Credit estimation for Agentforce and Data Cloud workloads. TRIGGER when: user needs cost projections, scenario planning, budget sizing, or architecture tradeoff analysis for Agentforce prompts/actions, Data Cloud meters, or monthly Flex Credit usage. DO NOT TRIGGER when: user is building Agentforce metadata or .agent files themselves (use sf-ai-agentforce or sf-ai-agentscript), implementing Data Cloud assets (use sf-datacloud-*), or asking for contract-specific commercial approval that depends on non-public pricing terms.
Use this skill when the user needs a public-price estimate for:
This skill is for planning and estimation, not implementation.
Use sf-flex-estimator when the user is asking questions like:
Delegate elsewhere when the user is:
.agent files → sf-ai-agentscriptsf-datacloud-* skillsAsk for or infer:
starter, basic, standard, advancedstandard, custom, voice, sandboxIf the user does not know exact monthly volumes, start with a baseline template and generate multiple scenarios.
Agentforce billing is linear — no volume tiers.
| Component | FC per invocation |
|---|---|
| Starter prompt | 2 |
| Basic prompt | 2 |
| Standard prompt | 4 |
| Advanced prompt | 16 |
| Standard / custom action | 20 |
| Voice action | 30 |
| Sandbox action | 16 |
Data Cloud uses monthly cumulative tiering.
| Tier | Monthly FC range | Multiplier |
|---|---|---|
| Tier 1 | 0 - 300K | 1.0x |
| Tier 2 | 300K - 1.5M | 0.8x |
| Tier 3 | 1.5M - 12.5M | 0.4x |
| Tier 4 | 12.5M+ | 0.2x |
For the full meter table and examples, read:
Model the agent and Data Cloud footprint first.
Useful starting templates:
For Agentforce, estimate:
per-invocation FC = prompt FC + action FC + token overage FC
Map each monthly meter volume to the current public rate card, then apply cumulative tiering.
Use the standard scenario set unless the user provides a better one:
Check for:
This validator is a manual helper. It is intentionally not wired into the shared auto-validation dispatcher because generic
.jsonor.mdfile patterns would create too much noise.
# Per-invocation estimate for a template
python3 assets/calculators/flex_calculator.py \
--mode structure \
--agent-def assets/templates/basic-agent-template.json
# Scenario estimate for an Agentforce + Data Cloud design
python3 assets/calculators/flex_calculator.py \
--mode scenarios \
--agent-def assets/templates/hybrid-agent-template.json
# Tiering only
python3 assets/calculators/tier_multiplier.py \
--base-fc 5000000 \
--pretty
# Validate an estimate input document
python3 hooks/scripts/validate_estimate.py \
--input assets/templates/hybrid-agent-template.json \
--verbose
When the estimate is complete, present:
Suggested shape:
Flex Credit estimate: <name>
Agentforce per invocation: <fc> FC ($<cost>)
Data Cloud monthly base: <fc> FC
Scenarios: <low / medium / high / enterprise>
Optimization priorities: <1-3 bullets>
Confidence: <high / medium / low>
| Need | Delegate to | Why |
|---|---|---|
| build the actual agent metadata | sf-ai-agentforce | implementation of Builder assets |
build a deterministic .agent bundle | sf-ai-agentscript | authoring and validation of Agent Script |
| implement Data Cloud pipeline assets | sf-datacloud and sf-datacloud-* | live Data Cloud setup |
| package or deploy the solution | sf-deploy | deployment workflow |
| generate supporting test or sample data | sf-data | data preparation |
A common chain is:
sf-ai-agentforce / sf-ai-agentscript / sf-datacloud-* → sf-flex-estimator → sf-deploy