Skip to main content

Salesforce

Explore practical guides and implementation patterns for this topic.

Posts

Data 360

Salesforce Data Architecture Guide: System of Record, Canonical Models & Scale

💬 In plain words: Data architecture is deciding—on purpose—which system OWNS each record and field (the System of Record), what your standard data dictionary looks like (the Canonical Model), how copies stay in sync, and who is allowed to change what. Integration just moves data from point A to point B. Data architecture decides why it moves and where the truth lives.
Read article
Agentforce

Salesforce Agentforce ALM & DevOps: Why Agents Are Metadata

💬 In plain words: Your Salesforce Agentforce agent is a code file, not hidden settings buried in a database. Saving an agent creates Bot , BotVersion , and GenAiPlannerBundle metadata files. Because it is just a file, standard software rules apply: put it in Git, review pull requests, run automated tests, and deploy it cleanly across environments.
Read article
Claudeforce

Tokens, Context Windows & Prompts: How AI Understands Text

💬 In Plain Words: How AI Reads and Remembers An AI model never reads whole sentences the way a human does. Instead, it chops your text into bite-sized pieces called tokens . Everything the AI can look at during a single conversation—your question, your chat history, any Salesforce records you attach, and the AI's own reply—must fit inside a fixed bucket called the context window (its short-term working memory). The prompt is the complete package you place inside that bucket. When you combine clear instructions with clean business data inside that window, you get accurate, enterprise-grade answers every time. ⚡ Key Points: 1-Minute Summary Large Language Models (LLMs) do not read words directly. They break text down into tokens —small fragments of words, spaces, or punctuation converted into numeric IDs. In standard English, 1 token is roughly 3/4 of a word (so 100 tokens ≈ 75 words, or ~4 characters per token), though code, JSON, and non-Engli...
Read article
Claudeforce

How Claude, MCP, and Salesforce Work Together: A Complete Guide

💬 In plain words: Think of connecting AI to Salesforce like running a high-security bank. Claude is your smart financial advisor sitting in the lobby who knows how to solve customer problems. MCP (Model Context Protocol) is the pneumatic tube system and armored courier service between the lobby and the vault. Salesforce is the main bank vault holding all your customer accounts, rules, and security locks. When you ask a business question, Claude doesn't walk into the vault itself. Instead, it writes down a request, sends it through the MCP tube, waits for Salesforce to verify your ID badge and send back the exact folder you are allowed to see, and then reads that folder to give you a clear, helpful answer.
Read article
Agentforce

Salesforce Agentforce Pricing: Digital Wallet & Credit Consumption Explained

💬 In plain words: Running AI in Salesforce is like running the air conditioning in your house—every time an agent thinks, looks up a document, or runs a background action, the electric meter spins. In Salesforce, that meter is called the Digital Wallet . Every customer chat, automated action, vector search, and batch test eats up your prepaid balance of Flex Credits , Einstein Requests , and Data Cloud Credits . As a smart architect or developer, your #1 rule is to write down your starting meter reading on Day Zero before you build anything, so you can calculate the exact cost of a single conversation before going live. ⚡ Key Points The Digital Wallet is your command center: Found right inside the Salesforce App Launcher, it gives you near-real-time tracking of your organization's consumption-based credits across production and sandboxes. Modern 2026 Agentforce Pricing Models: Salesforce has evolved beyond rigid flat-rate conversation c...
Read article
Agentforce

Agentforce Studio Analytics vs. Optimization: How to Measure AI Success

💬 In plain words: Think of managing a live Salesforce AI agent like visiting a doctor. Agentforce Studio gives you two distinct tools that answer two completely different questions. Agentforce Analytics is the thermometer in the waiting room—it tells you whether your agent looks healthy overall ("Is it working?"). Agentforce Optimization is the MRI scanner—it opens up the brain of your agent to show you the exact Topic, utterance, or missing Knowledge article that caused a conversation to fail ("Why is it breaking?"). ⚡ Key Points Two Tools, Two Jobs: Use Agentforce Analytics for high-level trend reporting (volume, deflection, escalations) and Agentforce Optimization for root-cause debugging (intent clustering, knowledge gaps, and session traces). Deflection Alone Is a Vanity Metric: A 75% case deflection rate looks great on a slide deck, but it counts angry customers who rage-quit the chat window the exact same way i...
Read article
Topic Apex
Apex Development

How to Pass a Salesforce Architect Interview: Product vs. SI vs. In-House

💬 In plain words: The job title "Salesforce Architect" means four completely different things depending on who is sitting across the interview table. Consulting firms (SIs) test whether they can put you in front of an angry CIO to whiteboard trade-offs. Product companies (ISVs) test whether you can write bulletproof Apex and AppExchange Second-Generation Managed Packages ( 2GP ) that won't crash across 5,000 customer orgs. In-house enterprise teams test your "org surgery" skills—how you plan to untangle ten years of messy tech debt. Startups test if you can run the whole show solo. Don't just study Salesforce topics; study the company's grading rubric! ⚡ Key Points Same Platform, Four Different Tests: Studying generic flashcards fails because an SI firm grades your executive communication, an ISV grades your live code security, and an end-user company grades your governance maturity. Modern 2026 Security ...
Read article
Salesforce Security & Access

Salesforce Named vs. External Credentials: The Ultimate Guide

💬 In plain words: Modern Salesforce architecture splits Named Credentials into two clean parts so you never have to hardcode URLs or API passwords inside Apex code. The External Credential acts as the security recipe—it stores how you log in (like OAuth 2.0 or API keys) and controls who is allowed to make the callout using Permission Sets. The Named Credential acts as the destination address—it stores where the callout goes (the base URL) and links back to the External Credential. Password rotation, encrypted tokens, and user permissions stay safely inside Salesforce Setup, never exposed in your code! 📌 Real-Life Example: Imagine your company connects Salesforce to an external SAP ERP system that has three different microservice URLs: api.sap-erp.com/orders , api.sap-erp.com/invoices , and api.sap-erp.com/inventory . In the old days, you had to create three separate Legacy Named Credentials and type the exact same OAuth Client ID and Secret three times. ...
Read article
Agentforce

Mastering Salesforce Agentforce Variables: Explicit Memory for AI Agents

💬 In plain words: A variable securely stores a specific fact for the rest of an AI conversation. Without variables, you are blindly trusting the AI model to remember things accurately. By using variables, you lock that fact in place so it never drifts, hallucinates, or disappears.
Read article
Agentforce

The Ultimate Guide to Agentforce Testing Center & Custom Evaluations

💬 In plain words: Testing Center is your dedicated AI validation hub. Located directly inside Agentforce Studio (right next to Agent Builder and Observability), it replaces manual trial-and-error testing. It can automatically generate test cases, simulate full multi-turn conversations using different user personas, and mathematically score the results against rules you define. ⚡ Key Points Location: Testing Center is a native, dedicated tab in Agentforce Studio, completely removed from traditional Salesforce Setup. Expected vs. Actual: Every test case requires you to define an expected subagent and an expected action, allowing for direct comparison. Scale with AI: Instead of writing hundreds of tests by hand, use AI-generated cases to instantly build synthetic interactions. Custom Evaluations: Score your agents using strict deterministic rules (Strings/Numbers) or an LLM-as-a-Judge. Cost Awareness: Running these automated test suites c...
Read article
Agentforce

Mastering Salesforce Agentforce Escalation to Human Agents

⚡ 1-Minute Summary In Salesforce Agentforce, transferring a user from an AI agent to a human is not a failure—it is a carefully designed transition path. Proper escalation requires routing the user via Omni-Channel to a live representative while passing the complete conversation transcript and context variables . If a customer has to repeat themselves to the live agent, the escalation architecture has failed. By treating escalation as a dedicated subagent rather than a generic error fallback, you guarantee a high-quality handoff exactly when the customer's stakes are highest. 💬 In plain words: Escalation is not an error state; it's a premium feature. The golden rule of AI handoffs is simple: the human agent must arrive with the conversation already visible on their screen. Transfer the context, not just the customer. 📌 Real-Life Example: Meridian Disputes A Meridian customer interacts with an AI agent to dispute a billing charge. After two ...
Read article
Agentforce

Salesforce Agentforce Channels: Where Do Agents Actually Live?

⚡ 1-Minute Summary In Salesforce Agentforce, agents are divided into two main categories based on who interacts with them: Employee Agents and Service Agents . Employee agents assist your internal staff natively within Lightning , Slack , and the Salesforce mobile app. Service agents interact directly with your customers across web chat, Experience Cloud sites, messaging platforms (like WhatsApp and SMS), and voice. The magic of this architecture? The exact same Agent Script powers both. You build the logic, topics, and actions once, and deploy them across any surface. When you switch to a channel like voice, the physics change (latency, spoken numbers, short conversational turns), but the underlying business logic remains untouched.
Read article
Topic Claudeforce
Claudeforce

AI Agents vs. AI Assistants: The Claudeforce Evolution

⚡ Key Points: 1-Minute Summary Assistants vs. Agents: AI Assistants primarily answer questions and provide information. AI Agents understand goals, plan out steps, use tools, and take autonomous action. The Core Engine: True AI Agents combine contextual reasoning, decision-making logic, and external tool integration to complete multi-step tasks. Workflow Automation: Agents shift the paradigm from requiring users to drive every step manually to having the AI manage and execute the workflow. Claudeforce Vision: By merging Anthropic's Claude models with Salesforce's data layer (often using the Model Context Protocol or MCP), enterprises can build intelligent, autonomous business workers. 💬 In plain words: An AI Assistant gives you answers when you ask a question. An AI Agent receives a high-level goal and actually works to complete it. For example, you ask an Assistant, "Which customers need follow-up?" and it gives you a l...
Read article
Agentforce

Agentforce: The Reasoning Engine

⚡ 1-Minute Summary Instructions resolve top to bottom. Logic lines run. Prompt lines become English. The model never sees your script. It sees only the finished prompt your logic built. Shorter reasoning instructions produce more accurate agents. Verbosity is not thoroughness. Module map MODULE 2 root: 'What actually happens in one turn?' ├─ 2.1 Anatomy of one turn ├─ 2.2 How the prompt gets built └─ 2.3 Why shorter instructions win Anatomy of One Turn 💬 In plain words: Every message follows the same seven steps: router, before-reasoning, instructions, model, tools, after-reasoning, reply. Learn this sequence and every design decision in Agentforce explains itself. 📌 Example: A Meridian customer says "is my power back yet?". The router picks the outage subagent. Before-reasoning verifies their meter. Instructions run a status action and branch. The model phrases the answ...
Read article
Agentforce

Salesforce Einstein Trust Layer Explained: What It Actually Protects

⚡ Key Points: 1-Minute Summary It's Built-in, Not a Button: The Einstein Trust Layer is an architectural foundation providing zero data retention, toxicity scoring, and audit trails. Masking Exceptions: Contrary to popular belief, data masking for LLMs is disabled for Agentforce agents. It primarily applies to embedded AI features. Apex Callouts Bypass It: Direct Apex callouts to external systems step outside the Trust Layer boundary entirely. Prerequisites Matter: You cannot even view the Trust Layer settings page until Salesforce Data Cloud (Data 360) is properly configured in your org. 💬 In plain words: The Einstein Trust Layer is a real, structural security boundary—but it's heavily misunderstood. Two critical facts get overlooked: data masking doesn't apply to active Agentforce agents, and building direct Apex callouts leaves the Trust Layer behind entirely. 📌 Real-Life Example: A developer builds a custom Ap...
Read article
AI Fundamentals

Agentforce Security Layers Explained: How Salesforce Protects AI Data

⚡ Key Points: 1-Minute Summary Four Security Layers: Agentforce protects data using a strict four-layer model encompassing User Context, Field-Level Security (FLS), Sharing Rules, and the Einstein Trust Layer . The Trust Layer is Built-In: The Einstein Trust Layer operates at an architectural level. It handles zero-retention agreements, toxicity scoring, and PII masking automatically before data reaches external LLMs. Direct Apex Callouts Bypass Protections: If you build direct Apex callouts to external LLMs instead of using standard Agentforce actions, the Trust Layer is bypassed. You are solely responsible for data masking and audit logging. Never Bypass Sharing: Custom agent actions utilizing Apex should always enforce security using with sharing and USER_MODE .
Read article
Claudeforce

The Complete Guide to Claude Tool Use: Connecting AI to Salesforce

💬 In Plain Words: Think of Claude as a very smart employee sitting in an empty room. It understands problems and can suggest great solutions, but it can't look anything up or change anything. Tools give that employee a computer. With tools, Claude can check your Salesforce data, read customer history, create tasks, and take other approved actions. Tool use turns an AI from a chatbot that answers into an agent that acts .
Read article