{"id":1848,"date":"2025-11-19T23:08:47","date_gmt":"2025-11-20T06:08:47","guid":{"rendered":"https:\/\/salesforcechronicles.com\/?p=1848"},"modified":"2025-11-23T21:28:29","modified_gmt":"2025-11-24T04:28:29","slug":"embedded-services-in-salesforce","status":"publish","type":"post","link":"https:\/\/salesforcechronicles.com\/?p=1848","title":{"rendered":"Salesforce Embedded Service: Comparing v1 and v2 Deployments"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p class=\"has-text-align-left\">Embedded Service in Salesforce has evolved from its early Snap ins Chat framework into two distinct deployment models \u00a0Version 1 and Version 2. As organizations begin adopting\u00a0Agentforce\u00a0to power AI driven customer interactions, understanding these deployment models becomes essential. While both versions deliver chat and messaging capabilities within a website or portal, they follow different architectural patterns and interaction models.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is Embedded Service?<\/h2>\n\n\n\n<p>Embedded Service (previously known as Snap-ins Chat) allows you to embed live chat or messaging capabilities directly into your website or mobile application. It acts as a real-time communication bridge between your customers and Salesforce Service Cloud. Customers can connect with live agents, chatbots, or even Flows  all without leaving your website or portal.<br><br>Think of it as the &#8216;Chat with us&#8217; bubble you see on modern websites. It looks simple, but it\u2019s powered by Omni Channel routing, automation, and Salesforce data behind the scenes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Version 1 \u2014 Enhanced Chat<\/h2>\n\n\n\n<p>Version 1 is the original Embedded Service Deployment model. It provides a synchronous chat experience like a phone call where both the customer and the agent interact in real time. When the chat window is closed, the session ends immediately.<br><br>This version is configured in Setup under &#8216;Embedded Service Deployments&#8217; and uses the embedded_svc.js script snippet. It supports custom Lightning components for pre chat and post chat logic, routes chats via Omni Channel, and allows CSS based branding.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"864\" height=\"442\" src=\"https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2025\/11\/image.png\" loading=\"lazy\" alt=\"\" class=\"wp-image-1849\" srcset=\"https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2025\/11\/image.png 864w, https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2025\/11\/image-300x153.png 300w, https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2025\/11\/image-768x393.png 768w\" sizes=\"auto, (max-width: 864px) 100vw, 864px\" \/><\/figure>\n<\/div>\n\n\n<div class=\"wp-block-columns alignwide is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:100%\"><\/div>\n<\/div>\n\n\n\n<p>Example: A retail website wants to assist customers instantly about shipping or refunds. A visitor clicks on &#8216;Chat Now&#8217;, connects with an agent, and closes the chat once their query is resolved. It\u2019s a straightforward, real time exchange that ends when the session closes.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"689\" src=\"https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2025\/11\/Enhanced_Chat_v1_Combined-2-1024x689.png\" loading=\"lazy\" alt=\"\" class=\"wp-image-1866\" srcset=\"https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2025\/11\/Enhanced_Chat_v1_Combined-2-1024x689.png 1024w, https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2025\/11\/Enhanced_Chat_v1_Combined-2-300x202.png 300w, https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2025\/11\/Enhanced_Chat_v1_Combined-2-768x516.png 768w, https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2025\/11\/Enhanced_Chat_v1_Combined-2.png 1490w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Version 1 works well for businesses that need quick responses and control over their UI. It\u2019s ideal when you need a custom pre-chat experience, but it does not support persistent chat or multi device continuity.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Version 2 \u2014 Enhanced Chat<\/h2>\n\n\n\n<p>Salesforce introduced Version 2 (Enhanced Chat) to deliver a modern, persistent messaging experience similar to modern messaging applications. <br><br>This version is configured under &#8216;Enhanced Chat Deployments&#8217; and uses the enhanced chat.js script. It\u2019s built on a managed runtime, integrates deeply with Flow Builder, Einstein Bots, and Omni Channel, and simplifies theming and setup. However, it does not currently support custom Lightning components in the chat UI.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"864\" height=\"404\" src=\"https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2025\/11\/image-1.png\" loading=\"lazy\" alt=\"\" class=\"wp-image-1850\" srcset=\"https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2025\/11\/image-1.png 864w, https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2025\/11\/image-1-300x140.png 300w, https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2025\/11\/image-1-768x359.png 768w\" sizes=\"auto, (max-width: 864px) 100vw, 864px\" \/><\/figure>\n<\/div>\n\n\n<p>Example: A banking customer starts chatting about a loan on the website and later continues in the mobile app without losing context. This flexibility makes Version 2 ideal for businesses offering multi device support and asynchronous messaging.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"728\" src=\"https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2025\/11\/Enhanced_Chat_v2_Combined-1024x728.png\" loading=\"lazy\" alt=\"\" class=\"wp-image-1865\" srcset=\"https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2025\/11\/Enhanced_Chat_v2_Combined-1024x728.png 1024w, https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2025\/11\/Enhanced_Chat_v2_Combined-300x213.png 300w, https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2025\/11\/Enhanced_Chat_v2_Combined-768x546.png 768w, https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2025\/11\/Enhanced_Chat_v2_Combined-1536x1092.png 1536w, https:\/\/salesforcechronicles.com\/wp-content\/uploads\/2025\/11\/Enhanced_Chat_v2_Combined-2048x1456.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Key Differences Between Version 1 and Version 2<\/h2>\n\n\n\n<figure class=\"wp-block-table aligncenter is-style-regular\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Feature<\/strong><\/td><td><strong>Version 1 (Enhanced Chat)<\/strong><\/td><td><strong>Version 2 (Enhanced Chat)<\/strong><\/td><\/tr><tr><td>Interaction Type<\/td><td>Real time, synchronous chat<\/td><td>Persistent, asynchronous messaging<\/td><\/tr><tr><td>Framework<\/td><td>Aura (supports custom components)<\/td><td>Managed runtime (no custom components)<\/td><\/tr><tr><td>Deployment Script<\/td><td>embedded_svc.js<\/td><td>enhanced-chat.js<\/td><\/tr><tr><td>Customization<\/td><td>Custom pre-chat\/post-chat components<\/td><td>doesn&#8217;t support custom components<\/td><\/tr><tr><td>Branding<\/td><td>CSS and component overrides<\/td><td>Setup-based theming<\/td><\/tr><tr><td>Session Continuity<\/td><td>Ends when closed<\/td><td>Chat persists<\/td><\/tr><tr><td>Mobile &amp; App Support<\/td><td>Limited<\/td><td>Fully supported<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">When to Choose Each Version<\/h2>\n\n\n\n<p class=\"has-text-align-left\">From a business standpoint, Version 1 feels like a traditional phone conversation immediate, live, and ends when you hang up. Version 2 is more like a text chat that you can revisit at any time.<br><\/p>\n\n\n\n<p>Choose Version 1 if:<\/p>\n\n\n\n<p><span style=\"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: -webkit-standard; font-size: medium; white-space: normal;\">\u2022<\/span>  You want a quick, real-time website chat.<br>\u2022 You already have custom pre-chat components.<br>\u2022 You\u2019re maintaining a legacy chat implementation.<\/p>\n\n\n\n<p>Choose Version 2 if:<\/p>\n\n\n\n<p>\u2022 You want persistent, asynchronous conversations.<br>\u2022 You rely on Flows or Einstein Bots for automation.<br>\u2022 You need cross device chat continuity.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Technical Takeaways<\/h2>\n\n\n\n<figure class=\"wp-block-table aligncenter\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Need<\/strong><\/td><td><strong>Recommended Version<\/strong><\/td><\/tr><tr><td>Support custom Lightning Components<\/td><td>Version 1<\/td><\/tr><tr><td>Persistent, asynchronous messaging<\/td><td>Version 2<\/td><\/tr><tr><td>Flow or Bot Integration<\/td><td>Version 2<\/td><\/tr><tr><td>Quick, real-time setup<\/td><td>Version 1<\/td><\/tr><tr><td>Long-term roadmap support<\/td><td>Version 2<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Salesforce now offers two distinct approaches for embedding chat. Version 1 is suitable when custom Lightning components and UI control are required. Version 2 provides a modern, persistent messaging framework aligned with Salesforce\u2019s current roadmap. For new implementations, Version 2 is the recommended choice. Existing Version 1 deployments should plan a gradual transition.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">References<\/h2>\n\n\n\n<p>\u2022 <a href=\"https:\/\/help.salesforce.com\/s\/articleView?id=service.enhanced_chat_feature_comparison.htm&amp;type=5\" title=\"\">Salesforce Help: Enhanced Chat Feature Comparison<\/a> <br>\u2022 <a href=\"https:\/\/help.salesforce.com\/s\/articleView?id=experience.rss_snapins_chat.htm&amp;type=5\" title=\"\">Salesforce Help: Snap-ins Chat (Embedded Service)<\/a> <\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Embedded Service in Salesforce has evolved from its early Snap ins Chat framework into two distinct deployment models \u00a0Version 1 and Version 2. As&#8230;<\/p>\n","protected":false},"author":1,"featured_media":1886,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[36],"tags":[38,37,31],"class_list":["post-1848","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-agentforce","tag-agentforce","tag-embedded-deployment-services","tag-salesforce"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/salesforcechronicles.com\/index.php?rest_route=\/wp\/v2\/posts\/1848","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/salesforcechronicles.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/salesforcechronicles.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/salesforcechronicles.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/salesforcechronicles.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1848"}],"version-history":[{"count":24,"href":"https:\/\/salesforcechronicles.com\/index.php?rest_route=\/wp\/v2\/posts\/1848\/revisions"}],"predecessor-version":[{"id":1885,"href":"https:\/\/salesforcechronicles.com\/index.php?rest_route=\/wp\/v2\/posts\/1848\/revisions\/1885"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/salesforcechronicles.com\/index.php?rest_route=\/wp\/v2\/media\/1886"}],"wp:attachment":[{"href":"https:\/\/salesforcechronicles.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1848"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/salesforcechronicles.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1848"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/salesforcechronicles.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1848"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}