
Safe Retries for Agentforce Actions: Make Every Action Idempotent
Agents retry, users repeat themselves and tools time out. Build idempotent Agentforce actions with deterministic keys, a ledger and tests so a refund happens once.
Agents, actions, Prompt Builder, Data Cloud and real-world AI on Salesforce.
13 guides in this track

Agents retry, users repeat themselves and tools time out. Build idempotent Agentforce actions with deterministic keys, a ledger and tests so a refund happens once.

Design Prompt Builder templates with merge fields and grounding, call them from Apex through a testable wrapper, and check prompts and answers with a lint kit.

Compare the Conversation Client Web SDK, messaging for web and the Agent API, then build a tested React chat panel with consent, limits and error handling.

Connect Slack to Salesforce with an auth provider and Named Credential, build tested Apex actions for channels and messages, and deploy the agent to Slack.

What MCP means for Salesforce, how hosted servers expose governed tools, and how to design safe tools: an Apex tool, a client script and an injection guard.

Set up an External Client App, get a token, create Agent API sessions and exchange messages through a tested Node backend proxy.

Learn Agent Script, Agentforce's language for mixing LLM reasoning with deterministic logic, with annotated examples and a runnable model of its flow of control.

Build reliable agent actions: bulk-safe invocable Apex with clear descriptions, an idempotent write action, a Flow action with a fault path, and tests.

Where an Agentforce agent can live and how to choose: a tested channel selector, a launch-readiness validator and a rollout checklist you can run.

Build your first Agentforce service agent: setup, agent user, subagents, Apex actions, preview and tests, with an order status and returns scenario.

Prompt-writing patterns for agent instructions: role, scope, steps, data rules and refusals, with before and after samples and a tested instruction checker.

Scope, constrain and test an AI agent before it meets customers: code-level guardrails in Apex, a red-team test set with a release gate, and staged rollout.

A mental model for designing an Agentforce agent, with a worked order-status design, a design-spec linter you can run, and a read-only Apex action.
Try a broader word or clear the filters.