{"id":5852,"date":"2025-09-04T08:51:19","date_gmt":"2025-09-04T08:51:19","guid":{"rendered":"https:\/\/differenzforce.com\/blog\/?p=5852"},"modified":"2025-11-27T06:33:47","modified_gmt":"2025-11-27T06:33:47","slug":"what-llm-does-agentforce-use","status":"publish","type":"post","link":"https:\/\/differenzforce.com\/blog\/what-llm-does-agentforce-use\/","title":{"rendered":"What LLM does Agentforce use?"},"content":{"rendered":"\n<p>Agentforce is Salesforce&#8217;s powerful platform for building and deploying AI agents that help businesses automate tasks, make decisions, and improve customer service. If you are wondering, &#8220;What LLM does Agentforce use?&#8221; the answer is not just one model; it is a combination of Salesforce&#8217;s own custom-built large language models (LLMs) and support for popular third-party options. This setup provides users with flexibility while maintaining security and efficiency. In this guide, we will explain it in simple terms, based on the latest information.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What Is Agentforce?<\/h2>\n\n\n\n<p>Before discussing LLMs, let us briefly explain Agentforce. It is part of Salesforce&#8217;s Einstein AI suite, launched to enable companies to create &#8220;agents,&#8221; which are intelligent AI helpers capable of handling complex tasks such as answering questions, processing data, or writing code. These agents use LLMs to understand language, reason, and act. Agentforce stands out because it integrates seamlessly with Salesforce tools like CRM data, making it valuable for sales, service, and development teams.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Proprietary LLMs Powering Agentforce<\/h2>\n\n\n\n<p>Salesforce does not rely solely on external models; they have their own large language models developed by the Salesforce AI Research team. These models are specifically designed for tasks such as coding and business workflows, ensuring high performance and security within the Salesforce ecosystem.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">CodeGen2.5<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>What it is<\/strong>: A compact, fast model released in 2023, focused on low-delay tasks like code completion.<\/li>\n\n\n\n<li><strong>How it&#8217;s used in Agentforce<\/strong>: It helps developers by auto-filling code, creating unit tests, and fixing bugs quickly. It&#8217;s trained on many programming languages, including Salesforce&#8217;s own Apex language.<\/li>\n\n\n\n<li><strong>Why it&#8217;s great<\/strong>: Keeps everything secure your data stays inside Salesforce, and it learns from expert feedback to get better over time.<\/li>\n\n\n\n<li><strong>Fun fact<\/strong>: Developers using this save about 125 minutes a week on average!<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">xGen-Code<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>What it is<\/strong>: The newest proprietary model, built for both text and code tasks.<\/li>\n\n\n\n<li><strong>How it&#8217;s used in Agentforce<\/strong>: Powers interactive features like chat-based coding help (e.g., Dev Assistant). It handles conversations, understands complex requests, and generates accurate responses.<\/li>\n\n\n\n<li><strong>Why it&#8217;s great<\/strong>: It beats many other models in accuracy for Salesforce-specific jobs, and it&#8217;s efficient to run, which is good for the environment.<\/li>\n<\/ul>\n\n\n\n<p>These homegrown models are the core of Agentforce for Developers (formerly Einstein for Developers), making coding and AI tasks smoother and more reliable.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Supported Third-Party LLMs in Agentforce<\/h2>\n\n\n\n<p>Agentforce is not limited to Salesforce&#8217;s models. It supports a wide range of managed LLMs from partners such as OpenAI, Anthropic, and Google. These models are ready to use and geo-aware, meaning they comply with local data regulations. Here is a simple table of key options:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Model Provider<\/th><th>Key Models<\/th><th>Best For<\/th><\/tr><\/thead><tbody><tr><td>Anthropic (on Amazon Bedrock)<\/td><td>Claude 3 Haiku, Claude 3.7 Sonnet, Claude Sonnet 4<\/td><td>Secure, high-trust tasks with Salesforce boundaries<\/td><\/tr><tr><td>OpenAI \/ Azure OpenAI<\/td><td>GPT-4o, GPT-4o Mini, GPT-5, GPT-5 Mini<\/td><td>General chat, reasoning, and fast responses<\/td><\/tr><tr><td>Google Vertex AI<\/td><td>Gemini 2.0 Flash, Gemini 2.5 Pro<\/td><td>Creative tasks and data analysis<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Older models like GPT-3.5 Turbo are rerouted to newer versions for better results. This variety lets you choose based on speed, cost, or features. For example, Claude models excel in detailed reasoning, while GPT models are versatile for everyday use.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Bring Your Own LLM (BYOLLM) Feature<\/h2>\n\n\n\n<p>Want even more control? Agentforce lets you bring your own LLM through integrations with:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Amazon Bedrock<\/li>\n\n\n\n<li>Azure OpenAI<\/li>\n\n\n\n<li>OpenAI<\/li>\n\n\n\n<li>Vertex AI (Google)<\/li>\n<\/ul>\n\n\n\n<p>This means you can connect custom or preferred models while still using Agentforce&#8217;s tools. It is ideal for companies with specific needs, such as enhanced privacy or specialized training. Simply set it up through the Models API, and your agents can use these models for prompts and actions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Choose the Right LLM for Agentforce?<\/h2>\n\n\n\n<p>Picking an LLM depends on your goals:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>For coding and dev work<\/strong>: Stick with proprietary ones like CodeGen2.5 or xGen-Code for speed and accuracy.<\/li>\n\n\n\n<li><strong>For general agents<\/strong>: Try GPT-4o Mini for quick, cost-effective chats, or Claude for secure, thoughtful responses.<\/li>\n\n\n\n<li><strong>Custom needs<\/strong>: Use BYOLLM if you have a fine-tuned model.<\/li>\n<\/ol>\n\n\n\n<p>Test a few Salesforce doesn&#8217;t pick one &#8220;best&#8221; for everything, so experiment based on your use case. Always check performance metrics like response time and accuracy.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Agentforce does not rely on a single model. The answer to \u201cWhat LLM does Agentforce use?\u201d is a multi-model approach: Salesforce\u2019s proprietary LLMs, such as CodeGen2.5 and xGen-Code, handle coding and business-specific workflows, while third-party options like GPT, Claude, and Gemini support general reasoning, conversations, and creativity. With the Bring Your Own LLM (BYOLLM) feature, businesses can also integrate their own fine-tuned or hosted models. This flexibility ensures that Agentforce can adapt to any workflow while maintaining Salesforce\u2019s high standards for security, trust, and scalability.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">FAQs<\/h2>\n\n\n<div id=\"rank-math-faq\" class=\"rank-math-block\">\n<div class=\"rank-math-list \">\n<div id=\"faq-question-1756122321785\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">Does Agentforce use a single LLM?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>No. Agentforce is multi-model. It combines Salesforce\u2019s proprietary LLMs (like CodeGen2.5 and xGen-Code) with third-party models from OpenAI, Anthropic, and Google, plus a Bring Your Own LLM (BYOLLM) option.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1756122702336\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">What are Salesforce\u2019s own LLMs in Agentforce?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p><strong>CodeGen2.5<\/strong>: Optimized for coding tasks, fast completions, bug fixes, and Salesforce Apex support.<br \/><strong>xGen-Code<\/strong>: Handles both text and code, powering developer assistants and conversational coding help.<br \/>These models are built by Salesforce AI Research and tuned for business workflows inside the Salesforce ecosystem.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1756122716527\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">Which third-party LLMs are supported in Agentforce?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Agentforce supports managed models from leading providers:<br \/><strong>OpenAI\/Azure OpenAI<\/strong> \u2192 GPT-4o, GPT-4o Mini, GPT-5, GPT-5 Mini<br \/><strong>Anthropic (via Amazon Bedrock)<\/strong> \u2192 Claude 3 Haiku, Claude 3.7 Sonnet, Claude Sonnet 4<br \/><strong>Google Vertex AI<\/strong> \u2192 Gemini 2.0 Flash, Gemini 2.5 Pro<br \/>Older models like GPT-3.5 are automatically rerouted to newer versions for better performance.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1756122728943\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">Can I bring my own LLM into Agentforce?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Yes. With the <strong>BYOLLM feature<\/strong>, you can integrate your own or third-party models via <strong>Amazon Bedrock, Azure OpenAI, OpenAI, or Google Vertex AI<\/strong>. This is useful if you have specialized or fine-tuned models.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1756122742504\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">How does Agentforce decide which LLM to use?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>It depends on the task:<br \/><strong>Coding\/dev work<\/strong> \u2192 Defaults to Salesforce proprietary models (CodeGen2.5 or xGen-Code).<br \/><strong>General chat\/agents<\/strong> \u2192 Uses GPT or Claude, depending on your configuration.<br \/><strong>Custom workflows<\/strong> \u2192 You can prioritize or switch models via Agentforce settings or the Models API.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1756122757679\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">Can I switch between LLMs during a workflow?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Yes. Agentforce lets you configure agents to use different LLMs for different steps. Example: use <strong>xGen-Code<\/strong> for generating code, then switch to <strong>Claude<\/strong> for reasoning over customer data.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1756122767207\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">Are Agentforce LLMs secure?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Yes. Salesforce keeps proprietary and some partner LLMs inside its <strong>\u201ctrust boundary\u201d<\/strong>, ensuring enterprise-grade security, compliance, and data privacy.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1756122777400\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">Can I use open-source LLMs in Agentforce?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Not directly. However, if you host them on supported platforms (like <strong>Amazon Bedrock<\/strong> or <strong>Google Vertex AI<\/strong>), you can connect them via the BYOLLM integration.<\/p>\n\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Agentforce is Salesforce&#8217;s powerful platform for building and deploying AI agents that help businesses automate tasks, make decisions, and improve customer service. If you are wondering, &#8220;What LLM does Agentforce use?&#8221; the answer is not just one model; it is a combination of Salesforce&#8217;s own custom-built large language models (LLMs) and support for popular third-party [&hellip;]<\/p>\n","protected":false},"author":26,"featured_media":5869,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5852","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-salesforce-service"],"rank_math_description":"Wondering what LLM does Agentforce use? Agentforce combines Salesforce\u2019s CodeGen2.5 &amp; xGen-Code with GPT, Claude, Gemini, plus BYOLLM flexibility.","category_names":["Salesforce Service"],"author_name":"Dadich Rami","post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/differenzforce.com\/blog\/wp-json\/wp\/v2\/posts\/5852","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/differenzforce.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/differenzforce.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/differenzforce.com\/blog\/wp-json\/wp\/v2\/users\/26"}],"replies":[{"embeddable":true,"href":"https:\/\/differenzforce.com\/blog\/wp-json\/wp\/v2\/comments?post=5852"}],"version-history":[{"count":3,"href":"https:\/\/differenzforce.com\/blog\/wp-json\/wp\/v2\/posts\/5852\/revisions"}],"predecessor-version":[{"id":6026,"href":"https:\/\/differenzforce.com\/blog\/wp-json\/wp\/v2\/posts\/5852\/revisions\/6026"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/differenzforce.com\/blog\/wp-json\/wp\/v2\/media\/5869"}],"wp:attachment":[{"href":"https:\/\/differenzforce.com\/blog\/wp-json\/wp\/v2\/media?parent=5852"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/differenzforce.com\/blog\/wp-json\/wp\/v2\/categories?post=5852"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/differenzforce.com\/blog\/wp-json\/wp\/v2\/tags?post=5852"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}