Agentforce Agent Builder Guide — Build Your First Agent 2026
Agent Builder —
Build Your First Agent!
Open Agent Builder, create the XYZ Company Sales Assistant, configure Topics and Instructions, and have your FIRST real conversation with your AI agent — all step by step.
1. What is Agent Builder?
The UI where you create, configure, and test Agentforce agents
| Agent Builder Area | What You Configure | Module |
|---|---|---|
| Agent Details | Name, description, system instructions, active status | M4 (this module) |
| Topics | Categories of tasks the agent handles | M4 + M5 |
| Instructions | Natural language rules for each Topic | M4 + M5 |
| Actions | Specific tasks — Standard, Flow, Apex, API | M7, M8, M9, M10 |
| Test Panel | Chat interface to test agent right in Setup | M4 (today!) |
| Channel Settings | Where agent is deployed — chat, messaging, etc. | M12 |
Options: Einstein Service Agent, Einstein Sales Agent, Agentforce for Service, Custom Agent, and others.
You might also see a tab for "Templates" — pre-built agents to start from.
✅ Be specific about format — "show amount in INR" not just "show amount"
✅ Include what NOT to do — "do not guess" is as important as "do this"
✅ Define escalation — always tell the agent when to hand off to human
❌ Don't be too restrictive — agent needs flexibility to handle edge cases
How can I assist you today?
Once I'm connected to your Salesforce data (via Actions that we'll configure), I'll be able to show you ABC Pharma's complete profile including contact details, recent opportunities, and activity history.
Is there anything else I can help you with in the meantime?
For weather information, you'll want to check a weather service like Google Weather or AccuWeather.
Is there anything related to your accounts or opportunities I can help you with?
I can help you prepare for that conversation by pulling up ABC Pharma's account history, open opportunities, and past order values. Would you like me to do that?
2. Agent Builder UI — Complete Tour
Know every button and panel — you'll use all of these in future modules
| UI Element | Location | What It Does | Used In |
|---|---|---|---|
| Agent Name & Status | Top of page / left panel | Agent identity and active/inactive toggle | M4 (done!) |
| Topics List | Left panel / center | All Topics configured for this agent | M4, M5 |
| Topic Details | Center panel | Classification Description + Instructions for selected Topic | M4, M5 |
| Actions Panel | Below Topic Instructions | List of Actions available to the agent for this Topic | M7, M8, M9, M10 |
| Add Action Button | Actions Panel | Add Standard, Flow, Apex, or API action to Topic | M7-M10 |
| Test Panel | Right side | Chat window to test agent in real time | All modules |
| New Session Button | Test Panel top | Reset conversation — start fresh test | All modules |
| Debug View | Test Panel option | Shows which Topic was selected and which Actions were called | M14 |
| Save / Activate | Top right | Save changes and activate agent for use | Every module |
| Channels | Tab or section | Configure where agent is deployed | M12 |
3. What Happens Under the Hood When You Chat
Understanding the reasoning loop — critical for interviews
| Step | What Happens | Example |
|---|---|---|
| 1️⃣ Receive Message | User message received through the channel (chat, messaging, API) | "Tell me about ABC Pharma's opportunities" |
| 2️⃣ Trust Layer | PII masking + toxicity check on input | "Tell me about [ORG_1]'s opportunities" |
| 3️⃣ Topic Classification | AI reads Classification Descriptions of all Topics, selects best match | Matches "Sales Assistant" Topic |
| 4️⃣ Read Instructions | AI reads the Instructions for the matched Topic | Loads "Sales Assistant" Instructions |
| 5️⃣ Plan Actions | AI decides which Actions to call (if any) to gather data | Decides to call "Get Opportunities" Action |
| 6️⃣ Execute Actions | Actions run (Apex/Flow queries Salesforce data) | SOQL runs, returns ABC Pharma's Opportunities |
| 7️⃣ Generate Response | AI uses Instructions + Action results to write the response | Formats Opportunities table with names, amounts, stages |
| 8️⃣ Trust Layer Output | PII re-inserted + toxicity check on output | "Tell me about ABC Pharma's opportunities" response ready |
| 9️⃣ Deliver Response | Final response sent to user | Sales rep sees the Opportunities list |
4. What Your Agent Can't Do Yet — And Why
Understanding current limitations sets you up for the next modules
| Agent Can't Do | Why | Fixed In |
|---|---|---|
| Retrieve real Salesforce Account data | No Actions connected to Salesforce objects yet | M7 (Standard Actions) / M9 (Apex Actions) |
| Show Opportunity details from your org | Same — needs Actions that query Opportunities SOQL | M9 (Apex Action with SOQL) |
| Draft a follow-up email using AI | No Prompt Template connected yet | M6 (Prompt Builder) |
| Create Tasks or follow-up records | No Flow or Apex Action for record creation | M8 (Flow Actions) |
| Escalate to a human agent | Omni-Channel routing not configured | M13 (Human Escalation) |
| Be accessed by external users | Not deployed to any channel yet | M12 (Deploy to Experience Cloud) |
5. Troubleshooting — Common Agent Builder Issues
Problems you'll hit and exactly how to fix them
| Problem | Root Cause | Fix |
|---|---|---|
| Agent doesn't respond in Test Panel | Agent is Inactive OR Einstein Generative AI is disabled | Check agent Status → Active. Check Setup → Einstein Generative AI → Enabled. |
| Agent responds with generic "I can't help with that" | Topic Classification Description is too vague — AI can't match the message to the Topic | Make Classification Description more specific and detailed. Include examples of messages it should handle. |
| Agent ignores Instructions | Instructions saved incorrectly OR conflicting instructions | Re-open Topic → Instructions → verify text saved → remove contradictions → save again. |
| Test Panel shows "Error loading agent" | Agent has unsaved changes OR activation failed | Save all changes → Activate again → Refresh Test Panel. |
| Can't find Test Panel | Different Agent Builder UI version in your org | Look for "Preview", "Test", or a chat icon button in the top navigation of Agent Builder. |
| Agent reveals pricing when it shouldn't | Instruction about pricing is missing or poorly worded | Add explicit instruction: "Never reveal pricing, discounts, or margin information. Direct all pricing questions to the sales manager." |
6. Agent Builder — Interview Questions & Answers
Real questions asked in Agentforce interviews
| Interview Question | Best Answer |
|---|---|
| What is Agent Builder in Salesforce? | A no-code/low-code UI in Salesforce Setup for creating, configuring, and testing Agentforce agents. You define Topics, Instructions, and Actions through the UI — no LLM prompt engineering required. |
| What is the difference between Agent Instructions and Topic Instructions? | Agent Instructions (System Prompt) = global rules that apply across ALL Topics. Topic Instructions = specific rules for HOW the agent behaves when handling a particular category of requests. Agent Instructions set personality; Topic Instructions set task behavior. |
| What is a Topic Classification Description? | A natural language description that tells the AI WHEN to use a particular Topic. The AI reads the user's message and matches it to the Topic whose Classification Description best fits. Critical for correct Topic selection. |
| Explain the Agentforce reasoning loop | Message → Trust Layer (PII mask) → Topic Classification → Load Instructions → Plan Actions → Execute Actions → Generate Response → Trust Layer (restore PII) → Deliver response to user. |
| How do you test an agent before deployment? | Agent Builder has a built-in Test Panel (right side) — chat directly with the agent. Debug View shows which Topic was selected and which Actions were called. Test failure, out-of-scope, and edge case scenarios before going live. |
Module 4 Summary
What you built today — the foundation of all future modules
- ✅Agent Builder — navigated, understood all panels: Topics, Instructions, Actions, Test Panel
- ✅Agent Created — "XYZ Sales Assistant" with name, description, and company context
- ✅First Topic Created — "Sales Assistant" with Classification Description
- ✅Instructions Written — 10 behavioral rules for Topic + global system prompt
- ✅Agent Activated — Status set to Active
- ✅First Conversation — tested greeting, out-of-scope query, and pricing guardrail
- ✅Reasoning Loop — understood 9-step flow from message to response
๐ Ready for Module 5?
Next: TIA Framework Deep Dive — Topics, Instructions, and Actions in depth. You'll learn advanced Topic configuration, how to write production-quality Instructions, and the different types of Actions available. Your agent goes from basic to brilliant!
Module 5: TIA Framework →