Agentforce Reasoning & Orchestration
Let’s explore how Agentforce thinks and acts. In this lesson, you’ll learn how reasoning and LLM orchestration drive intelligent, real-time conversations.
Unlike traditional chatbots, Agentforce doesn’t follow a script. It uses real-time reasoning and AI orchestration to decide what to say — and what to do — based on user intent.
This is made possible through a powerful partnership between two core components: the Reasoning Engine and a Large Language Model (LLM).
Step 1: Reasoning Engine + LLM = Intelligent Behavior
Let’s break down how these two systems work together:
🧠 Reasoning Engine (Planner Service)
- Acts as the orchestrator behind the scenes
- Determines which topics and actions to launch
- Controls execution order during conversations
💬 Large Language Model (LLM)
- Understands the user’s message and intent
- Suggests relevant actions to take
- Crafts natural, human-like responses
For every user message, the Reasoning Engine may call the LLM multiple times depending on complexity. The more advanced the request, the more planning and LLM involvement required.
Step 2: Agentforce’s 5-Step Reasoning Lifecycle
When a user message comes in, here’s what happens behind the scenes:
- Identify: Understand the user’s request and extract intent.
- Plan: Build a strategy using available topics and actions.
- Execute: Trigger the necessary actions and workflows.
- Respond: Generate a clear, contextually accurate reply.
- Continuity: Keep the conversation open and responsive.
This loop runs continuously, allowing agents to adapt and respond to changing user needs without missing a beat.
Step 3: Flexibility with Supported LLMs
Agentforce is designed to support a variety of LLMs depending on the use case:
- Planner Service: Uses OpenAI GPT-4o for orchestration and reasoning
- Action Calls: Specific actions can trigger external LLMs
- Prompt Templates: Custom actions can use any Salesforce-managed LLM
This gives you full control to balance performance, privacy, and cost — depending on what the agent needs to do.
Step 4: Debugging & Transparency
To help you understand how an agent made a decision, Agentforce provides full traceability.
- Event Logs: Available in the Agent Builder’s Events panel
- Review how user intent was interpreted
- See the reasoning path — which topics and actions were chosen and why
These logs are your best tool for improving accuracy, troubleshooting odd behavior, and proving auditability.
Next: See Reasoning in Action
You now understand how Agentforce reasons and orchestrates. In the next lesson, we’ll walk through a live scenario.

