<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by udhay on Medium]]></title>
        <description><![CDATA[Stories by udhay on Medium]]></description>
        <link>https://medium.com/@s.udhayaganesh?source=rss-233ac9d64f3f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*mjnCUj69x1cRNkDSjkLQNw.jpeg</url>
            <title>Stories by udhay on Medium</title>
            <link>https://medium.com/@s.udhayaganesh?source=rss-233ac9d64f3f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 06:43:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@s.udhayaganesh/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Built a Credit Card Approval Agent in Agent Script — Here’s How Agentforce Actually Works]]></title>
            <link>https://medium.com/@s.udhayaganesh/built-a-credit-card-approval-agent-in-agent-script-heres-how-agentforce-actually-works-9714d6c1a2c0?source=rss-233ac9d64f3f------2</link>
            <guid isPermaLink="false">https://medium.com/p/9714d6c1a2c0</guid>
            <dc:creator><![CDATA[udhay]]></dc:creator>
            <pubDate>Fri, 28 Aug 2026 22:08:34 GMT</pubDate>
            <atom:updated>2026-08-28T22:08:34.990Z</atom:updated>
            <content:encoded><![CDATA[<h3>Before we talk about Agentforce specifically, ask yourself a simpler question: <strong>if you were building an AI agent for your own company, what would you actually need from it?</strong></h3><p>I’d argue four things:</p><ul><li><strong>Reliable</strong> — it gives a consistent answer to a consistent question.</li><li><strong>Controllable</strong> — it has real guardrails and boundaries, not just polite suggestions.</li><li><strong>Auditable</strong> — every decision is transparent and traceable after the fact.</li><li><strong>Deterministic where it counts</strong> — some tasks are fine to leave to the LLM’s judgment. Some tasks — approving a credit line, refunding a customer, changing an account status — are not.</li></ul><p>Keep those four in your head. Everything below is really just Salesforce’s answer to those four requirements, one architectural layer at a time.</p><h3>Why Not Just Use a UI?</h3><p>Here’s the simplest way I’ve found to explain <em>why</em> an agent, instead of just… an app.</p><p>With a normal UI, <strong>the human brings the reasoning.</strong> The software just executes simple, one-step clicks — open the app, search the order, click into a second screen, copy the answer, done. The system is dumb; you’re the intelligence.</p><p>An old-school chatbot doesn’t change that much — it’s scripted, repeated FAQs, with no real reasoning on either side. Ask it something off-script and it just gets stuck.</p><p>Agentforce flips the arrangement: <strong>the agent brings the reasoning and context.</strong> Which is exactly why determinism, validation, and consistent branding suddenly matter <em>so much more</em> than they did when a human was doing the clicking. You’re no longer the safety net. Something else has to be.</p><p>That trade-off — handing reasoning to software, and then needing new guardrails you never needed before — is the whole story of everything that follows.</p><h3>The Big Picture: How Agentforce Actually Works</h3><p>Strip away the marketing and the flow is genuinely simple:</p><pre>User → Atlas Reasoning Engine → Actions &amp; Data → Feedback Loop → Einstein Trust Layer → LLM Call</pre><p>Compare that to a plain LLM call, which is just:</p><pre>Prompt → LLM → Response</pre><p>Agentforce (like LangChain, LlamaIndex, or any other agent framework) extends that basic loop with tools:</p><pre>Prompt → LLM → Tool / MCP call → Response</pre><p>What Salesforce adds on top of that generic pattern is the part that actually matters for an enterprise: a <strong>Trust Layer</strong> wrapped around the one hop that leaves the building, and <strong>Agent Script</strong> for the parts of the logic you refuse to leave to chance.</p><p>Walking the flow left to right:</p><ol><li><strong>User</strong> sends a message — a chat window, Slack, a mobile app.</li><li><strong>Atlas Reasoning Engine</strong> — think of it as the brain — classifies what’s being asked and plans the next step.</li><li><strong>Actions &amp; Data</strong> — the agent triggers real actions (Apex, Flow, an API call) to go get real information, with zero-shot action triggering deciding which tool fits.</li><li><strong>Feedback Loop</strong> — the agent loops back to reasoning, checking whether the last step actually got it closer to done.</li><li><strong>Einstein Trust Layer</strong> — before anything leaves Salesforce, PII gets masked, guardrails get applied, and nothing is retained.</li><li><strong>LLM Call</strong> — the only step that happens off-platform. And notice: it’s escorted there and back by the Trust Layer.</li></ol><p>The return trip matters just as much as the outbound one: the model’s answer flows <em>back</em> through the Trust Layer for grounding checks before Atlas turns it into the final response the user actually sees.</p><h3>Tokens and the Trust Layer: What’s Actually Being Protected</h3><p>A <strong>token</strong> is a small piece of text — roughly a word or part of a word. It’s the unit the AI model reads, and the unit you’re billed on.</p><p>What actually gets turned into tokens is bigger than just “the user’s question”:</p><blockquote><em>System prompt &amp; guardrails (your Agent Script rules) + RAG/knowledge/files + session history and conversation state + tool metadata + the user’s (masked) message.</em></blockquote><p>All of that becomes tokens, and all of it costs something. More data pulled in means more tokens, means higher cost and latency — which is exactly why Agentforce is designed to retrieve only what’s relevant to the current step, not the entire CRM.</p><p>The Trust Layer is what checks those tokens, in both directions:</p><ul><li><strong>Protect sensitive data</strong> — security, privacy, and governance controls applied before <em>and</em> after the LLM interaction.</li><li><strong>No data storage</strong> — the model doesn’t save your data or train on it.</li><li><strong>Safety checks</strong> — the outbound question and the inbound answer both get screened for anything harmful.</li></ul><p>This isn’t a theoretical concern. Prompt injection is a documented, real attack pattern — invisible white text hidden inside an email, wrapped in fake &lt;Admin&gt; tags, has been used to trick agents into following instructions their actual user never sent. That&#39;s precisely the class of attack a Trust Layer exists to catch before an agent ever acts on it.</p><p>For what it’s worth on the “is this actually enterprise-grade” question: Agentforce has already passed one of the toughest security bars around — it’s cleared for use inside U.S. military environments at a high security tier. That’s not a small compliance checkbox.</p><h3>Inside the Atlas Reasoning Engine</h3><p>Calling it “the brain” undersells how mechanical it actually is. It’s a compound system, not one model call:</p><p>StageWhat it doesThe plain-English version<strong>Planner</strong>Breaks a user goal into a step-by-step plan using an LLMLike a GPS calculating the shortest route before you’ve even started driving<strong>Action Selector</strong>Chooses the right tool, action, or subagent for each stepPicking which tool from the toolbox fits <em>this</em> step<strong>Tool Execution</strong>Dynamically invokes Apex, Flows, or APIsActually turning the wrench<strong>Context</strong>Maintains relevant conversation and execution stateWithout this, the agent is stateless — like a kid walking into an exam having prepared nothing, and improvising a story<strong>Feedback Loop</strong>Observes the result, and can continue, adjust, or ask for clarificationChecking its own work before calling it done</p><p>That loop — Reason → Act → Observe, repeating until the request is actually resolved — is what Salesforce calls the ReAct pattern. It’s rule-based logic and probabilistic LLM reasoning, running together, on top of Salesforce’s own security foundation (Hyperforce).</p><h3>The Action Library: How Reasoning Turns Into Real Work</h3><p>An action is the bridge between <em>what the agent decides</em> and <em>what actually happens</em> in Salesforce or an external system. The library covers a lot of ground:</p><ul><li><strong>Apex Actions</strong> — @InvocableMethod methods for custom logic.</li><li><strong>Flow Actions</strong> — autolaunched Flows exposed as callable, reusable actions.</li><li><strong>External Service Actions</strong> — REST/API calls outside Salesforce, including MuleSoft.</li><li><strong>Prompt Template Actions</strong> — structured, grounded prompts for generation or summarization.</li><li><strong>Knowledge / Retrieval Actions</strong> — RAG-style lookups across Knowledge and Data Cloud.</li><li><strong>Standard (Out-of-the-Box) Actions</strong> — pre-built actions for common Sales, Service, and Order tasks.</li><li><strong>Flow / Agent-to-Agent Actions</strong> — delegating a step to a subagent, or another agent entirely via A2A.</li><li><strong>Escalation Actions</strong> — handing off to a human when confidence or policy requires it.</li></ul><p>If the Reasoning Engine is the brain, actions are the hands. A brain with no hands can only form an opinion — it can’t actually do anything.</p><h3>Agent Script: Where Determinism Meets Reasoning</h3><p>This is the piece that answers “controllable” and “deterministic where it counts” directly. Agent Script is a YAML-like, human-readable, indentation-sensitive language that lets you pin down exactly which parts of an agent’s behavior are non-negotiable, and which parts you’re happy to leave to the LLM’s judgment.</p><p>The rule of thumb: <strong>plain English tells the agent what behavior you want. </strong><strong>if, </strong><strong>set, and </strong><strong>run enforce behavior that must happen exactly.</strong></p><pre>start_agent support:<br>  description: &quot;Order support agent&quot;</pre><pre>  variables:<br>    customer_verified: mutable boolean = False</pre><pre>  before_reasoning:<br>    if @variables.customer_verified is not True:<br>      transition to @subagent.Identity</pre><pre>  reasoning:<br>    instructions:<br>      -&gt; | Help the customer track or<br>         | update their order.</pre><pre>  run @actions.get_order_status<br>    with order_id=@variables.order_id<br>  set @variables.status = @outputs.status</pre><pre>  if @variables.status == &quot;delayed&quot;:<br>    transition to @topic.Escalate</pre><p>Read that top to bottom in plain English: before the LLM is even allowed to start reasoning, the script checks whether the customer is verified. If not, it hands off to an identity-check subagent — deterministically, no LLM guesswork involved. Only after that gate passes does the model get to use its own words to help with the order. And if the order comes back “delayed,” the escalation isn’t a suggestion the LLM might follow — it’s a coded if statement that always fires.</p><p>Agent Builder’s visual Canvas view is generated from — and stays in sync with — this same underlying script. You can build with clicks or with code, but underneath, it’s always Agent Script.</p><h3>Let’s Build: A Real Credit Card Approval Agent</h3><p>Slide decks are one thing — actual working code is another. For my demo, I built a <strong>Credit Card Analyzer</strong> agent entirely in Agent Script, and the whole authoring bundle is public on GitHub:</p><p><strong>👉 </strong><a href="https://github.com/udhayaganesh/agentforce-agentscript"><strong>github.com/udhayaganesh/agentforce-agentscript</strong></a></p><p>Here’s what it does and how it’s put together.</p><h4>What the Agent Does</h4><p>It behaves like a small team of virtual Salesforce specialists sitting behind a single router:</p><ol><li><strong>Routing</strong> — the router reads the employee’s request and hands it to the right subagent.</li><li><strong>Resolution</strong> — that subagent answers using its own instructions, and executes a Salesforce action when needed.</li><li><strong>Execution</strong> — for approvals or rejections specifically, it updates the Account and fires the right follow-up actions.</li></ol><p>It handles four categories of request: general company/policy knowledge, account analysis and summary, credit-card decisioning (approve/reject), and gracefully bailing out on anything off-topic or too ambiguous to process.</p><h4>The Routing Map</h4><p>Every conversation starts at agent_router, which hands off to one of four subagents:</p><pre>Employee request → agent_router<br>                      ├── GeneralFAQ → Knowledge search (RAG)<br>                      ├── off_topic<br>                      ├── ambiguous_question<br>                      └── Credit_Card_Approver<br>                              ├── Account_Summarize → Prompt Template<br>                              ├── UpdateRecordFields → Update the Account<br>                              ├── Show_Offer → Apex (OfferController)<br>                              └── Send_email → Flow (Send_Decision_Email)</pre><p>The router uses Agent Script’s @utils.transition utility to perform a <strong>one-way handoff</strong> — once it hands off, it stops processing immediately. No lingering, no double-handling.</p><h4>The Approval Decision Flow</h4><p>This is the part I’m proudest of, because it’s a direct, working example of “deterministic where it counts”:</p><pre>Credit_Card_Approver → employee decision?<br>  ├── Approve → collect credit limit → collect interest tier<br>  │             → set status = Approved → update Account.CC_Status__c<br>  │             → set showoffer = True → run Show_Offer<br>  └── Reject  → collect rejection reason<br>                → set status = Rejected → update Account.CC_Status__c<br>                → run Send_email</pre><p>There’s a data guardrail baked directly into this flow: the record-update action is only ever allowed to receive the Account ID and CC_Status__c — nothing else. The credit limit, the interest tier, the rejection reason never get written through that same generic action. That&#39;s a deliberate, deterministic boundary, not something left to the LLM&#39;s discretion.</p><h4>What’s Actually Doing the Work</h4><p>Agent Script is the orchestration layer — it doesn’t do the work itself, it delegates:</p><p>Agent ActionBacked ByPurposeAnswerQuestionsWithKnowledgeStandard Salesforce Action (streamKnowledgeSearch)RAG search over Knowledge articlesAccount_SummarizePrompt Template (Account_Summary)Natural-language record summariesUpdateRecordFieldsStandard Salesforce Action (einsteinCopilotUpdateRecord)Record updates, with explicit user consentShow_OfferApex — OfferController.clsRetrieves active credit card offersSend_emailFlow — Send_Decision_EmailFires the decision email</p><p>That Apex controller is a normal @InvocableMethod — nothing exotic, just a standard invocable action that Agent Script calls by name, accepting a categoryFilter and returning a list of offers (title, description, discount amount/percentage). The Flow is equally ordinary: it takes a decision, a record ID, and an approved limit, and returns an email status. Agent Script&#39;s whole value proposition is right here — it&#39;s gluing together components you&#39;d already recognize, with a deterministic script instead of hoping a prompt gets interpreted the same way twice.</p><h4>A Real Conversation, Step by Step</h4><p>For an approval request, the sequence looks like this:</p><ol><li>Employee: <em>“Approve this application.”</em></li><li>Router hands off to Credit_Card_Approver.</li><li>Agent asks for the credit limit and interest tier.</li><li>Employee provides both values.</li><li>Agent asks for confirmation before touching any data.</li><li>Employee confirms.</li><li>Agent sets CC_Status__c = Approved on the Account.</li><li>Agent calls the Apex controller for available offers.</li><li>Agent presents the offers back to the employee.</li></ol><p>Notice step 5 — the confirmation step. That’s a deliberate design choice, not an accident: high-impact actions get a human checkpoint before they execute, even inside an “automated” workflow.</p><h4>Shipping It: The CLI Workflow</h4><p>Because this lives in a standard SFDX project, deploying and testing it is just the Salesforce CLI:</p><p>bash</p><pre># Validate the authoring bundle syntax<br>sf agent validate authoring-bundle --json --api-name Credit_Card_Analyzer</pre><pre># Test in Agentforce Preview with live actions<br>sf agent preview start --json --use-live-actions --authoring-bundle Credit_Card_Analyzer</pre><pre># Publish a new version<br>sf agent publish authoring-bundle --json --api-name Credit_Card_Analyzer</pre><pre># Activate for users<br>sf agent activate --json --api-name Credit_Card_Analyzer</pre><p>That’s the whole loop — write the .agent file, validate it, preview it live against real actions, publish, activate. No separate deployment pipeline to babysit.</p><p>If you want to see the full bundle — the actual .agent source, the metadata, the validation checklist I used before going live — it&#39;s all sitting in the repo linked above. Clone it, open the .agent file, and follow the routing map against the real syntax.</p><h3>Where This Is All Headed</h3><p>A few things worth knowing, because you’ll keep hearing these terms:</p><ul><li><strong>Multi-agent / “coworker” model</strong> — instead of one agent’s instructions growing forever (try cramming billing, returns, <em>and</em> tech support into one prompt), specialist agents split the work behind a single router — exactly like the agent_router pattern above, just scaled up.</li><li><strong>A2A (Agent-to-Agent)</strong> — connecting to agents that live on an entirely different platform. Think: an agent that books your flight <em>and</em> hands off to a separate hotel-booking agent to finish the trip.</li><li><strong>MCP (Model Context Protocol)</strong> — an open, standard way for any AI agent to understand and call any API. Think of it as a USB port for AI — one shape, works everywhere.</li><li><strong>RAG / Data Cloud grounding</strong> — the agent looks up real documents and records before answering, instead of guessing from memory. Fewer confidently-wrong answers.</li><li><strong>Headless 360</strong> — no separate front-end, no extra login. Access agents directly through API, CLI, or MCP, built into tools people already use.</li><li><strong>Testing Center, Observability, Voice, Coworker</strong> — dashboards that keep scoring accuracy, speed, cost, and safety, even after the agent is live and talking to real people (or listening to them).</li></ul><h3>Back to Those Four Questions</h3><p>Reliable, controllable, auditable, deterministic where it counts. That’s the whole test. Every layer above exists to answer one of those four:</p><ul><li><strong>Reliable</strong> → the Atlas Reasoning Engine’s Reason–Act–Observe loop.</li><li><strong>Controllable</strong> → Agent Script’s before_reasoning gates and explicit if/else logic.</li><li><strong>Auditable</strong> → the Einstein Trust Layer’s logging and zero-retention guarantees.</li><li><strong>Deterministic where it counts</strong> → the same Agent Script gates, applied specifically to the decisions you can’t afford to leave to chance — like, say, who gets approved for a credit line.</li></ul><p>If you’re building your own agent — on Agentforce or anywhere else — those four questions are a better starting checklist than any feature list.</p><p><em>I write about building on Agentforce and Agent Script. If you want to talk through any of this — or just tell me where my demo breaks — find me on LinkedIn: </em><a href="https://www.linkedin.com/in/udhayaganesh/"><em>linkedin.com/in/udhayaganesh</em></a><em>. The full source for the Credit Card Analyzer agent is at </em><a href="https://github.com/udhayaganesh/agentforce-agentscript"><em>github.com/udhayaganesh/agentforce-agentscript</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9714d6c1a2c0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Salesforce Unstructured Data Journey: From Data Cloud to Document AI and Intelligent Context]]></title>
            <link>https://medium.com/@s.udhayaganesh/salesforce-unstructured-data-journey-from-data-cloud-to-document-ai-and-intelligent-context-ecf319ef0cf2?source=rss-233ac9d64f3f------2</link>
            <guid isPermaLink="false">https://medium.com/p/ecf319ef0cf2</guid>
            <dc:creator><![CDATA[udhay]]></dc:creator>
            <pubDate>Mon, 04 May 2026 03:37:18 GMT</pubDate>
            <atom:updated>2026-05-04T03:37:18.683Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Real Problem</h3><p>80% of enterprise data is hidden in unstructured formats. Let&#39;s say the company has 50K PDFs. Your CRM can’t read them. Your team is manually extracting invoice numbers, contract clauses, and loan terms. It’s 2026, and you’re still copying and pasting data from documents into Salesforce.</p><p>Here’s the hard truth: <strong>90% of enterprise data is unstructured.</strong> PDFs, Word documents, contracts, emails, call transcripts, images — these hold your most valuable business insights. But most companies treat them like filing cabinets, not data assets.</p><p>Salesforce recognized this gap years ago and started building a coherent strategy to turn unstructured data into actionable intelligence. I recently worked with a financial services client processing loan documents. When I showed them how Data Cloud, Document AI, and Intelligent Context work together, they went from 200+ manual hours per month extracting data to fully automated extraction and intelligent search. Here’s what you need to know about each capability — and when to use them.</p><h3>Phase 1: Data Cloud — The Foundation for All Data</h3><p><strong>Where it all started</strong></p><p>Salesforce’s unstructured data journey began with Data Cloud (now often branded as Data 360). Initially, Data Cloud unified structured customer data — CRM records, transactions, events, and profiles.</p><p>Over time, Salesforce extended Data Cloud to ingest and store unstructured data:</p><ul><li>PDFs and Word documents</li><li>Text files and transcripts</li><li>Images and rich content</li></ul><p><strong>What Data Cloud really does</strong></p><p>Data Cloud is not just a storage layer. It’s the foundational platform that enables everything else:</p><p>✓ Ingestion of structured and unstructured data<br> ✓ Storage through Data Lake Objects (DLOs) and Data Model Objects (DMOs)<br> ✓ Governance, security, and identity resolution<br> ✓ Metadata-driven modeling<br> ✓ Search and vector infrastructure</p><p>For unstructured data specifically:</p><ul><li>Store documents at scale</li><li>Run OCR (optical character recognition)</li><li>Chunk content intelligently</li><li>Make text searchable</li><li>Enable RAG-style grounding for Prompt Builder and agents</li></ul><p><strong>Key takeaway:</strong> Data Cloud handles both structured and unstructured data — it provides the plumbing. But it doesn’t specialize in understanding documents deeply.</p><h3>Phase 2: Document AI — Turning Documents into Structured Data</h3><p><strong>The problem it solves</strong></p><p>Data Cloud could store unstructured data, but many real-world use cases needed something more deterministic:</p><ul><li>“What is the invoice number?”</li><li>“What is the total amount due?”</li><li>“What skills are listed in this résumé?”</li><li>“Which contract clauses are present?”</li></ul><p>Answering these questions via generic chunked text search was inefficient. This is where Document AI enters the picture.</p><p><strong>What Document AI does</strong></p><p>Document AI focuses on extraction, not search. It combines OCR and LLM-based understanding to turn raw documents into structured, queryable data.</p><p>Key capabilities:</p><ul><li><strong>OCR + LLM-based understanding</strong> — Reads and comprehends document content</li><li><strong>Schema-driven extraction</strong> — Extracts only what you define</li><li><strong>Structured JSON output</strong> — Machine-ready data</li><li><strong>REST API</strong> — Invoke programmatically (/ssot/document-processing/actions/extract-data)</li><li><strong>Flexible persistence</strong> — Optional storage</li></ul><p><strong>Two modes of operation:</strong></p><ol><li><strong>Extraction-only (ephemeral)</strong> — API returns JSON; you decide what to do with it</li><li><strong>Extraction + persistence</strong> — Extracted fields flow directly into Data Cloud DLOs/DMOs for later use in Flows, Apex, or Agentforce</li></ol><p><strong>Key takeaway:</strong> Document AI answers: <em>“What data is inside this document?”</em> It’s deterministic, programmatic, and designed for scale.</p><h3>Phase 3: Intelligent Context — Turning Documents into Knowledge</h3><p><strong>The next challenge</strong></p><p>Structured extraction solves many problems — but not all. Enterprises also need to:</p><ul><li>Search across thousands of documents intelligently</li><li>Ask open-ended questions without predefined schemas</li><li>Allow different teams to view the same document from different perspectives</li><li>Improve RAG accuracy and relevance for AI agents</li><li>Discover insights across document collections</li></ul><p>This is where Intelligent Context comes in.</p><p><strong>What Intelligent Context really is</strong></p><p>Intelligent Context is not a separate product. It’s not a new storage system. It’s an unstructured data intelligence layer built on top of Data Cloud that transforms how you search and retrieve documents at scale.</p><p>Intelligent Context provides:</p><p>✓ Prompt-driven configuration for unstructured data<br> ✓ Chunking strategies and optimization<br> ✓ Embedding generation and vector search<br> ✓ Semantic search configuration<br> ✓ Index tuning and relevance testing<br> ✓ “Lenses” for different business perspectives<br> ✓ Retriever creation for RAG and Agentforce</p><p><strong>Real example:</strong> A support team uses Intelligent Context “lenses” to search the same contract collection — compliance sees contract obligations; sales sees payment terms; operations sees liability clauses. Same documents, different contextual views.</p><p><strong>Key requirements:</strong></p><ul><li>Documents must be stored in Data Cloud first</li><li>IC operates on Unstructured Data Model Objects</li><li>IC configures how data is indexed and retrieved</li></ul><p><strong>Key takeaway:</strong> Intelligent Context answers: <em>“Where is the answer across many documents?”</em> It enables semantic search, improves RAG grounding, and powers agent knowledge bases.</p><h3>When to Use What</h3><p>Use CaseRecommended ToolExtract invoice fields into a structured formatDocument AIParse forms, resumes, or applicationsDocument AIReduce storage by extracting and discarding raw OCRDocument AIEnterprise-wide document search across thousands of filesIntelligent ContextKnowledge grounding for AI agents and RAGIntelligent ContextUnified search of customer AND document dataData Cloud + both.</p><p>Reference:</p><p><a href="https://help.salesforce.com/s/articleView?id=data.c360_a_intelligent_context.htm&amp;type=5">Salesforce Help</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fn6J5X5xxal4%3Fstart%3D1548%26feature%3Doembed%26start%3D1548&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dn6J5X5xxal4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fn6J5X5xxal4%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/e8de8e7f809e3192a6bd6e68d2f95e6e/href">https://medium.com/media/e8de8e7f809e3192a6bd6e68d2f95e6e/href</a></iframe><p><a href="https://document-ai-lab.vercel.app/">Document AI Lab - Salesforce Data Cloud</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ecf319ef0cf2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Claude CLI in VS Code]]></title>
            <link>https://medium.com/@s.udhayaganesh/claude-cli-in-vs-code-1b306933af1b?source=rss-233ac9d64f3f------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b306933af1b</guid>
            <category><![CDATA[claude]]></category>
            <category><![CDATA[vscode-extension]]></category>
            <category><![CDATA[anthropic-claude]]></category>
            <dc:creator><![CDATA[udhay]]></dc:creator>
            <pubDate>Sun, 08 Feb 2026 06:15:38 GMT</pubDate>
            <atom:updated>2026-02-08T06:15:38.468Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why do we need a coding assistant?</h3><p>Developers typically <strong>cannot directly interact with an LLM in a safe and structured way for coding tasks</strong>. A coding assistant acts as a smart middleware between the developer and the language model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*iTb5CzAU8tHOt-GrXle34g.png" /></figure><ul><li><strong>📂 Controlled File Access</strong> — The coding assistant decides when and how to read project files (e.g., ReadFile: main.go) instead of exposing the entire codebase blindly to the LLM.</li><li><strong>🧭 Task Orchestration</strong> — It breaks high-level developer requests into step-by-step actions for the LLM.</li><li><strong>🛠 Tool Execution</strong> — It can run commands, tests, linters, and builds — something an LLM alone cannot do.</li><li><strong>🔒 Safety &amp; Guardrails</strong> — Prevents unsafe operations and limits scope of changes.</li><li><strong>📦 Context Management</strong> — Selects only relevant files and context to send to the LLM to reduce noise and token usage.</li><li><strong>🔁 Multi-Step Workflows</strong> — Handles loops like read → analyze → edit → test → fix.</li></ul><h3>What is Claude CLI?</h3><p>Claude CLI (Code) is a command-line tool that integrates Claude AI directly into your development workflow within VS Code, enabling AI-assisted coding, debugging, testing, and project management.</p><p><strong>Prerequisites:</strong></p><ul><li>Node.js 18+,VS Code,Git (optional)</li></ul><p><strong>Install Claude CLI: </strong>npm install -g @anthropic-ai/claude-cli</p><p><strong>Authentication: </strong>claude auth login</p><h3><strong>Project Initialization </strong>: claude /init</h3><ul><li>creates .claude/ directory with claude.md (project context file)</li></ul><p>What to include in claude.md?</p><ul><li>Project overview and purpose,Architecture patterns,Coding conventions,Tech stack,Important file locations</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*8tfwOgRTbJfR-Ae4zgXxdQ.png" /></figure><h3>Plan vs Think</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*UAKjsd7yk7HzFJPVBVk3fg.png" /></figure><p>Notes:</p><ul><li><strong>Enable Both Modes:</strong> Combine Plan + Think for complex tasks, but monitor token usage.</li><li><strong>Prompt Keywords for Deeper Thinking:</strong></li><li>&quot;ultra think about the best way to implement&quot;</li><li>&quot;think deeply about performance implications&quot;</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/371/1*ps1iWDVJtJJ1GeAotzEGOQ.png" /></figure><h3>Context &amp; Memory Management</h3><p>Claude’s context handling allows it to remember large conversations or codebases:</p><p><strong>Context Window:</strong> ~200k tokens (enough to load an entire codebase)</p><p><strong>Memory Types:</strong></p><ol><li><strong>Session Memory (</strong><strong>#)</strong></li></ol><ul><li>Create persistent memory points</li><li>Example: # Remember to use TypeScript strict mode</li></ul><p><strong>2. Context Memory (automatic)</strong></p><ul><li>Claude remembers conversation history</li><li>Grows with each exchange</li></ul><p>EscInterrupt current operation</p><p>Esc + Esc (twice)Clear irrelevant context</p><p>/clearClear entire conversation</p><p>/compactCompress history, keep summary</p><p>Ctrl+LClear conversation (alternative)</p><p>For file references:</p><ul><li>@file.js -&gt;Specific file</li><li>@folder/ -&gt;Entire directory</li><li>@#functionName -&gt;Specific symbol/function</li><li>@workspace -&gt; Entire project context</li></ul><p><strong>Creating Custom Commands in Claude:</strong></p><p><strong>Steps</strong>: 1.Navigate to the .claude/commands folder in your project. Create a new file, e.g., audit.md. Add your instructions in the file. For example:</p><pre>Find vulnerabilities and fix them:<br>1. Run `npm audit` in this project<br>2. Review the vulnerabilities<br>3. Run `npm audit fix` to apply safe updates<br>4. Run tests to verify updates didn&#39;t break anything<br>5. Report summary of fixes applied<br>If critical vulnerabilities remain, suggest manual fixes.</pre><p><strong>Tip: </strong><em>You can use the </em><em>$Argument keyword in your instructions to accept any file or input directly from the command prompt.</em></p><p><strong>Steps </strong>2: restart claude, by typing claude keyword on console.</p><p><strong>Step </strong>3: /audit</p><p><strong>Note</strong>: Claude has a Git Integration and can read .git/ history, branches, and diffs. Able to push it and fix the issue raised in the GIT with the help of MCP.</p><h3>MCP server with Claude Code</h3><p>Model Context Protocol extends Claude’s capabilities with external tools and services.</p><p>How to add the MCP server?</p><p>&gt; Claude mcp add playwright npx @playwright/mcp@latest</p><p><strong>Popular MCP servers</strong>:</p><ul><li>@playwright - browser automation</li><li>@filesystem - advanced file ops</li><li>@github - GitHub integration</li><li>@database - SQL operations</li></ul><p>Add to settings.json OR claude_desktop_config.json (global)</p><p>Add the below setting to allow Playwright MCP, or we have to manually authorize.</p><p><strong>Project-specific</strong> (.claude/settings.json):</p><pre>{<br>  &quot;permissions&quot;: {<br>    &quot;allow&quot;: [&quot;mcp__playwright&quot;, &quot;mcp__github&quot;],<br>    &quot;deny&quot;: []<br>  },<br>  &quot;mcpServers&quot;: {<br>    &quot;playwright&quot;: {<br>      &quot;command&quot;: &quot;npx&quot;,<br>      &quot;args&quot;: [&quot;-y&quot;, &quot;@playwright/mcp-server&quot;]<br>    }<br>  }<br>}</pre><p><strong>Global</strong> (~/.claude/claude_desktop_config.json):</p><pre>{<br>  &quot;mcpServers&quot;: {<br>    &quot;github&quot;: {<br>      &quot;command&quot;: &quot;npx&quot;,<br>      &quot;args&quot;: [&quot;-y&quot;, &quot;@modelcontextprotocol/server-github&quot;],<br>      &quot;env&quot;: {<br>        &quot;GITHUB_TOKEN&quot;: &quot;your_token&quot;<br>      }<br>    }<br>  }<br>}</pre><blockquote><strong>Claude Prompt: your goal is improve the test the page. 1. open browser and navigate to localhost:3000 2. request… 3. Identify… 4. review…</strong></blockquote><h3>Hooks &amp; Security</h3><h3>What are Hooks?</h3><p>Hooks are scripts that run before/after Claude executes tools, enabling custom validation, logging, and security controls.</p><h3>Hook Types</h3><p>Hook TypeTimingUse CasePreToolUseBefore tool executionValidation, security checksPostToolUseAfter tool executionLogging, cleanupPreMessageBefore Claude respondsContent filtering</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*kVklP2B81WS4Mtw292dPdg.png" /></figure><p>Hooks can be added in globally and project specific in .claude/settings.json.</p><p>Process is Define PretoolUse –&gt; define matcher &lt;&lt;read&gt;&gt; -&gt; define hooks command: &lt;&lt;file name&gt;&gt;</p><h3>Configuration Location</h3><p><strong>Project:</strong> .claude/settings.json<br> <strong>Local (not committed):</strong> .claude/settings.local.json</p><h3>1. Security Example: Blocking Sensitive Files (*.env)</h3><p><strong>settings.local.json:</strong></p><pre>{<br>  &quot;hooks&quot;: {<br>    &quot;PreToolUse&quot;: [<br>      {<br>        &quot;matcher&quot;: &quot;Read|Grep&quot;,<br>        &quot;hooks&quot;: [<br>          {<br>            &quot;type&quot;: &quot;command&quot;,<br>            &quot;command&quot;: &quot;node ./hooks/read_hook.js&quot;<br>          }<br>        ]<br>      }<br>    ]<br>  }<br>}</pre><p><strong>read_hook.js:</strong></p><pre>async function main() {<br>    const chunks = [];<br>    for await (const chunk of process.stdin) {<br>        chunks.push(chunk);<br>    }<br>    const toolArgs = JSON.parse(Buffer.concat(chunks).toString());<br>    <br>    const readPath = toolArgs.tool_input?.file_path || <br>                     toolArgs.tool_input?.path || &quot;&quot;;<br>    <br>    // Block sensitive files<br>    const blockedPatterns = [&#39;.env&#39;, &#39;secrets&#39;, &#39;credentials&#39;, &#39;private-key&#39;];<br>    <br>    if (blockedPatterns.some(pattern =&gt; readPath.includes(pattern))) {<br>        console.error(`🚫 Blocked: Claude attempted to read ${readPath}`);<br>        process.exit(2); // Exit code 2 blocks the operation<br>    }<br>    <br>    // Exit code 0 allows the operation<br>    process.exit(0);<br>}<br>main()</pre><p>&gt;prompt: Read prod.env file</p><h3>Advanced Hook Use Cases</h3><p><strong>1. </strong>Handling Dependency File Changes</p><pre>File A:<br>function add(a, b) {<br>  return a + b;<br>}<br>File B:<br>add(x, y);<br><br>If you modify File A to add a new parameter:<br><br>function add(a, b, c) {<br>  return a + b + c;<br>}</pre><p>Detect that File B depends on File A</p><p>Find all usages of the add() method</p><p>Update calls in File B and other files</p><p>Adjust parameters consistently across the codebase</p><p>Suggest required refactoring and tests</p><p><strong>2. Prevent Duplicate Code:</strong></p><p>Claude can detect repeated logic and reuse existing implementations instead of generating new duplicate code.</p><pre>// PreToolUse hook for Write/Delete operations<br>function validateEmailAgain(email) {<br>  // duplicated logic<br>}</pre><p>You can prompt Claude to reuse existing logic: <em>“Do not duplicate validation logic — reuse the existing validator from @utils/validation.js.”</em></p><h3>Conclusion</h3><p>Claude CLI transforms your development workflow by bringing AI assistance directly into your coding environment. Key takeaways:</p><p>✅ <strong>Start Simple:</strong> Begin with basic file references and commands<br> ✅ <strong>Build Gradually:</strong> Add custom commands and hooks as needed<br> ✅ <strong>Optimize Costs:</strong> Use plan/think modes strategically<br> ✅ <strong>Stay Secure:</strong> Use hooks and .claudeignore for sensitive data<br> ✅ <strong>Iterate:</strong> Break complex tasks into smaller prompts</p><p><strong>Resources:</strong></p><ul><li><a href="https://code.claude.com/docs/en/cli-reference">https://code.claude.com/docs/en/cli-reference</a></li><li><a href="https://anthropic.skilljar.com/">https://anthropic.skilljar.com/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b306933af1b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Salesforce’s Vibe Coding Experience]]></title>
            <link>https://medium.com/@s.udhayaganesh/salesforces-vibe-coding-experience-406b80b3f9cf?source=rss-233ac9d64f3f------2</link>
            <guid isPermaLink="false">https://medium.com/p/406b80b3f9cf</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[vibe-coding]]></category>
            <category><![CDATA[apex]]></category>
            <category><![CDATA[agentforce]]></category>
            <dc:creator><![CDATA[udhay]]></dc:creator>
            <pubDate>Sun, 21 Dec 2025 06:17:57 GMT</pubDate>
            <atom:updated>2025-12-21T06:35:26.144Z</atom:updated>
            <content:encoded><![CDATA[<p>Vibe coding is about staying in flow — describing <em>what</em> you want to build and letting AI handle <em>how</em> it gets built. For developers, this means less context switching, fewer boilerplate tasks, and faster iteration.</p><p>Salesforce’s answer to vibe coding is <strong>Agentforce</strong> — a purpose-built, AI-powered developer experience designed specifically for the Salesforce ecosystem. Agentforce brings AI-assisted planning and execution directly into <strong>VS Code–compatible IDEs</strong> such as:</p><ul><li>Anypoint Code Builder (MuleSoft)</li><li>Cursor</li><li>Windsurf</li></ul><p>Unlike generic coding assistants, Agentforce is deeply aware of Salesforce metadata, security, and deployment workflows — making it safe and practical for real-world development.Salesforce Vibe Coding (Agentforce)</p><ul><li>You don’t choose the model</li><li>You choose the <strong>mode of operation</strong></li><li>Model selection is abstracted behind the <strong>Einstein Trust Layer</strong> for security and compliance</li></ul><p><strong>Modes:</strong></p><ul><li><strong>Plan Mode</strong> → Analysis only (design, architecture, dependencies)</li><li><strong>Act Mode</strong> → Execution (code, tests, CLI, deployments)</li></ul><p>This shift — from <em>model choice</em> to <em>intent and control</em> — is the defining difference.</p><h3>Key Capabilities:</h3><h3>1. Secure Salesforce Tooling Integration</h3><p>Agentforce integrates with <strong>Salesforce DX (SFDX)</strong> tooling using secure, controlled execution patterns (often described as MCP-style integrations). This allows the agent to:</p><ul><li>Read org metadata</li><li>Analyze repositories</li><li>Generate Apex and LWC</li><li>Run tests</li><li>Execute approved CLI actions</li></ul><p>All actions operate within Salesforce’s security and audit boundaries.</p><h3>2. Rules-Driven Workflows</h3><p>Agentforce supports <strong>rule-based governance</strong>, allowing teams to:</p><ul><li>Use default best-practice rules</li><li>Define custom rules aligned with: Org standards,Release policies, Compliance requirements</li></ul><p>This ensures AI assistance remains predictable and enterprise-safe.</p><h3>3. Deep Context Awareness</h3><p>Developers can reference Salesforce components directly in prompts using @ notation,</p><ul><li>Apex classes</li><li>Lightning Web Components</li><li>Metadata</li><li>Repository files</li></ul><p>This gives the agent precise context and reduces hallucinations or incorrect assumptions.</p><h3>4. Auto-Approval Controls</h3><p><strong>Enabled</strong> → Full automation for fast prototyping<br><strong>Read</strong> → Analysis only, zero risk<br><strong>Edit</strong> → AI suggests changes, humans approve</p><h3>Why Agentforce Vibe Coding Matters</h3><p>Agentforce is purpose-built for Salesforce teams that need <strong>speed without sacrificing control</strong>. It is especially valuable for:</p><ul><li>Rapid Apex and LWC prototyping</li><li>Automated test creation</li><li>CI/CD and deployment workflows</li><li>Complex feature planning</li><li>Compliance-driven enterprise environments</li></ul><p>Instead of being “just another AI assistant,” it behaves like a Salesforce-aware engineering partner.</p><p><strong>The prompts below are executed in ACT mode</strong></p><ol><li>Create an Apex class named AccountController with a method getAccountList() that retrieves the 10 most recently created Account records. Ensure the SOQL query enforces USER_MODE for security. Develop a corresponding test class to achieve 100% code coverage for AccountController.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F0qwuOCapdaEvHgzqnZNCA.png" /></figure><p>2. Deploy the changes in the org</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*qQKWfVrn3uKd-N0y7TfWww.png" /></figure><p>3. Once completed, create a new Lightning Web Component (AccountListTable) that displays the results of getAccountList() in a data table. refract the apex class @/force-app/main/default/classes/AccountController.cls-meta.xml And once complete, Deploy the class in the org</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yujB7Vnk2AhaoPdShTETNA.png" /></figure><p>4. Can you optimize my AccountListTable LWC for mobile offline usage</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hWO4tLDQTZuUwxm5jYDdLw.png" /></figure><p>5. Please write an Account trigger that updates the Contact object whenever the phone number on the Account changes.<br>If there is exactly one Contact under the Account, update that Contact’s Phone field to match the Account’s phone number.<br>If there are zero or more than one Contact, do not update any Contacts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*anLBi1Y9FW9ABxbGRCK2Wg.png" /></figure><p>6. Delete all the files created with respect to the trigger</p><p>7. /Deep-planning Build a plan for a To-Do app. We will need an Apex class and an LWC. For now, only create the Kanban view for the app</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*An9JSBtvnMHXhjmRsUkWNg.png" /></figure><p>Note: this was executed in plan mode. This should provide the complete guidance and component list with a plan.</p><h3>Plan Mode vs Act Mode</h3><ul><li>Gathers org and repository context</li><li>Analyzes dependencies and constraints</li><li>Produces a structured implementation plan</li><li>Makes no changes</li></ul><p>Best for Architecture design, Impact analysis and Review and alignment before execution</p><p><strong>Act Mode</strong></p><ul><li>Generates code (Apex, LWC)</li><li>Runs tests</li><li>Executes SFDX commands</li><li>Performs deployments (based on permissions)</li></ul><p>Best for: Implementation, Automation, Iterative development</p><p>Finally, Traditional AI tools focus on <strong>model selection</strong>. Salesforce flips that model entirely.</p><blockquote><strong><em>You don’t choose the model. You choose the mode of operation.</em></strong></blockquote><p>Model selection is abstracted behind the <strong>Einstein Trust Layer</strong>, ensuring security, compliance, and data governance by default.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=406b80b3f9cf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Large Language Models (LLMs) Are Trained]]></title>
            <link>https://medium.com/@s.udhayaganesh/how-large-language-models-llms-are-trained-9f7578e4ce19?source=rss-233ac9d64f3f------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f7578e4ce19</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[llm-agent]]></category>
            <dc:creator><![CDATA[udhay]]></dc:creator>
            <pubDate>Fri, 12 Dec 2025 04:19:23 GMT</pubDate>
            <atom:updated>2025-12-12T04:26:10.070Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s1QjBhcihzbEspZMweTvPA.png" /></figure><h3>I. Model Training Lifecycle</h3><p>LLM training happens in multiple stages. Each step builds new abilities into the model.</p><h3>1. Pre-Training (How the Model Learns Language)</h3><p>Teach the model general language understanding.</p><h3>Data Sources:</h3><ul><li>Books</li><li>Articles</li><li>Websites</li><li>Research papers</li><li>Programming code</li><li>Public datasets</li></ul><h3>Objective:</h3><p>Predict the next token (next word or sub-word piece).<br> This simple task helps the model learn:</p><ul><li>Grammar and structure</li><li>World knowledge</li><li>Reasoning patterns</li><li>Semantic relationships</li><li>Writing styles</li></ul><h3>Outcome:</h3><p>You get a <strong>base model</strong> — powerful, but <em>not yet</em> instruction-following, safe, or aligned.</p><h3>How Pre-Training Works Internally</h3><p><a href="https://medium.com/@s.udhayaganesh/how-llm-works-b9d2836f6355">How LLM works?</a></p><p><strong>Tokenization</strong><br> Raw text → tokens.<br> Example:<br> “ChatGPT” → [“Chat”, “G”, “PT”]</p><p><strong>Embeddings</strong><br> Tokens → numerical vectors capturing meaning.<br> Similar words → similar vectors.</p><p><strong>Transformer Architecture</strong><br> Uses self-attention to understand relationships.<br> Example:<br> “The cat sat on the mat because <strong>it</strong> was tired.”<br> The model learns <strong>“it” = cat</strong>, not mat.</p><h3>2. Post-Training (Fine-Tuning / Instruction Tuning)</h3><p>After pre-training, the model knows language but does <em>not</em> behave like a helpful assistant. Teach the model to follow instructions and respond helpfully.</p><h3>Data Includes:</h3><ul><li>Q&amp;A pairs</li><li>Explanations</li><li>Summaries</li><li>Mathematical reasoning</li><li>Dialogues</li></ul><h3>Techniques:</h3><p><strong>Supervised Fine-Tuning (SFT)</strong><br> Model imitates high-quality human answers.</p><p><strong>Instruction Tuning</strong><br> Teaches the model to respond to prompts like:</p><ul><li>“Explain…”</li><li>“Write a summary…”</li><li>“Fix this code…”</li></ul><p>After this stage, the model becomes conversational and task-oriented.</p><h3>3. RLHF (Reinforcement Learning From Human Feedback)</h3><p>Align the model with human preferences — helpful, safe, concise, and truthful.</p><h3>How RLHF Works:</h3><ol><li>Model generates multiple answers</li><li>Humans rank them</li><li>A Reward Model learns these preferences</li><li>The LLM is optimized to produce preferred answers</li></ol><h3>Variants:</h3><ul><li>RLHF — Human ranking</li><li>RLAIF — AI-generated ranking</li><li>DPO — Modern alternative; no reinforcement loop needed</li></ul><h3>II. Extending Model Capabilities</h3><p>Once the core model is trained, additional capabilities are added.</p><h3>4. Retrieval / Real-Time Knowledge (RAG, Web Search)</h3><p>Give the model real-time, verifiable information.</p><h3>Techniques:</h3><p><strong>RAG (Retrieval-Augmented Generation)</strong></p><ol><li>Model takes your question</li><li>Retrieves relevant documents</li><li>Reads them</li><li>Generates grounded answers</li></ol><p><strong>Web Search Tools</strong><br> Model performs live queries/ web crawling for fresh data.</p><h3>Benefits:</h3><ul><li>More accurate</li><li>Transparent</li><li>Up-to-date</li><li>Reduces hallucinations</li></ul><h3>5. Python / Code Interpreter (Tool Use)</h3><p>Let the model <em>compute </em>using python.</p><h3>Capabilities:</h3><ul><li>Math, statistics</li><li>Data analysis</li><li>Charts &amp; graphs</li><li>File generation (PDF, CSV, XLSX)</li><li>Simulations</li><li>Code execution</li></ul><h3>How It Works:</h3><ol><li>LLM plans solution</li><li>Writes Python code</li><li>Executes in sandbox</li><li>Returns output + explanation</li></ol><p><strong>Example:</strong><br> “What is the correlation between age and income in this CSV?”</p><p>The model writes and runs Python such as:</p><p><em>import pandas as pd<br>df = pd.read_csv(“data.csv”)<br>df[‘age’].corr(df[‘income’])</em></p><p>This turns the LLM into a <strong>reasoning + computation system</strong>.</p><h3>6. Multimodal Abilities</h3><p>Modern LLMs are <strong>multimodal</strong> (MMM — Massive Multimodal Models). Supported Modalities: Text,Images,Audio,Video,Code</p><h3>They Can:</h3><ul><li>Analyze images</li><li>Interpret charts</li><li>Describe videos</li><li>Understand audio</li><li>Write and debug code</li><li>Convert across modalities (image → text, audio → text, etc.)</li></ul><h3>III. Safety, Memory &amp; Deployment</h3><h3>7. Safety &amp; Alignment</h3><p>Ensures the model behaves helpfully, ethically, and truthfully.</p><h3>Includes:</h3><ul><li>Removing harmful or biased responses</li><li>Blocking illegal or dangerous instructions</li><li>Reducing hallucinations</li><li>Safety tuning using curated safe examples</li><li>Additional moderation layers</li></ul><h3>Example:</h3><p><strong>User:</strong> “How do I hack a system network?”<br> <strong>Safe Model:</strong> “I can’t help with hacking, but I can help you secure your WiFi or troubleshoot issues.”</p><p>Without this stage, even a powerful model can act dangerously.</p><h3>8. Context Window, Memory &amp; Long-Term Reasoning</h3><p>Defines how much the model can “see” and what it can “remember.”</p><h3>Context Window</h3><p>The maximum tokens the model can process.</p><ul><li>GPT-4: 8K–32K</li><li>Newer models: 1M+ tokens</li></ul><p><strong>Example:</strong><br> A large context model can read an entire 200-page PDF and answer questions.</p><h3>Memory (Long-Term or External)</h3><p>Stores user preferences or past interactions.</p><p>Examples:</p><ul><li>“User prefers explanations in Tamil.”</li><li>“User is learning AWS and Salesforce.”</li></ul><p>Creates a more personalized experience.</p><h3>Long-Term Reasoning</h3><p>Combines memory + tools + recursion to solve multi-step tasks.</p><p><strong>Example:</strong><br> “Plan my 10-day Europe trip under $3000.”</p><p>The model may:</p><ul><li>Search destinations</li><li>Compare prices</li><li>Build itinerary</li><li>Adjust based on feedback</li></ul><p>This requires reasoning over many steps.</p><h3>9. Deployment &amp; Scaling</h3><p>How the model is delivered to millions of users reliably and efficiently.</p><h3>Key Concepts:</h3><p><strong>Model Serving</strong><br> Runs the LLM across multiple GPUs/TPUs.</p><p><strong>Sharding</strong><br> Splits huge models (e.g., 500B parameters) across many machines to fit into memory.</p><p><strong>Inference Optimization:</strong></p><ul><li>Quantization (smaller, faster model)</li><li>Caching answers</li><li>Batch processing many requests</li></ul><p><strong>Autoscaling</strong><br> Automatically adds more servers during traffic spikes.<br> <em>Example:</em><br> During an iPhone launch, users flood servers → auto-scale → no slowdown.</p><p><strong>Edge Deployment (Optional)</strong><br> Running small models on-device for privacy and speed.<br> <em>Examples:</em></p><ul><li>Apple’s on-device LLMs</li><li>Google’s Gemini Nano on Android</li></ul><p>Reference : <a href="https://www.youtube.com/watch?v=EWvNQjAaOHw&amp;t=3246s">https://www.youtube.com/watch?v=EWvNQjAaOHw&amp;t=3246s</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f7578e4ce19" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How LLM works?]]></title>
            <link>https://medium.com/@s.udhayaganesh/how-llm-works-b9d2836f6355?source=rss-233ac9d64f3f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9d2836f6355</guid>
            <category><![CDATA[embedding]]></category>
            <category><![CDATA[vector-database]]></category>
            <category><![CDATA[llm-applications]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[genai]]></category>
            <dc:creator><![CDATA[udhay]]></dc:creator>
            <pubDate>Wed, 26 Nov 2025 06:06:04 GMT</pubDate>
            <atom:updated>2025-11-30T15:04:33.303Z</atom:updated>
            <content:encoded><![CDATA[<h3>How Modern LLM and RAG Work Together to Answer Anything</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*4rnP5yRK0c074z9ET5ldlw.gif" /></figure><h3>1. User Input</h3><p>The process starts when the user gives the model a <strong>prompt</strong>.<br> The input can be <strong>text, images, audio, or files</strong>.</p><p>Example: “Earth revolves around the Sun. Explain this simply.”</p><p>This prompt includes:</p><ul><li><strong>Understanding</strong> (“Earth revolves around the Sun”)</li><li><strong>Instruction</strong> (“Explain this simply”)</li></ul><h3>2. Tokenization</h3><p>The LLM splits the input into <strong>tokens</strong> using BPE/WordPiece</p><p>Example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/206/1*4lpaM1mjJNxDxxl8vVeFUg.png" /></figure><p>Each token is converted into a <strong>number (token ID)</strong>. LLMs understand only the numbers.</p><h3>3. Embeddings</h3><p>Each token ID is transformed into a <strong>vector</strong>. These vectors are usually <strong>high-dimensional</strong></p><p>Imagine a location like New York, using its latitude and longitude. This gives you a 2 dimensional vector , just two numbers for each point. In contrast, Large Language Models (LLMs) represent words and text as much higher-dimensional vectors, often with 768, 1024, or even 4096 dimensions depending on the model size.</p><p>Words with similar meaning appear <strong>close together</strong> in vector space.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iz4vm4chAx-fcKvigiWkNA.png" /></figure><p>Each dimension in an LLM embedding helps capture subtle relationships and features about words, enabling models to “understand” context and meaning far beyond simple coordinate.</p><p>Example:</p><p>Earth → [0.52, -0.11, 0.93, 0.44 …]<br>Sun → [0.89, 0.13, 0.55, -0.91 …]</p><p>Note: Similar words → similar vectors.</p><h3>4. (Optional) RAG — Retrieval-Augmented Generation</h3><p><strong>Where it fits:</strong> after embeddings / vectorization of documents and before (or during) generation. RAG brings trustworthy external knowledge into the model’s prompt to improve factuality.</p><h3>Why use RAG?</h3><ul><li>Adds up-to-date or domain-specific facts not present (or not reliably accessible) in the model’s weights.</li><li>Reduces hallucination on factual questions by grounding generation in retrieved evidence.</li><li>Useful for long documents, company knowledge bases, and real-time facts.</li></ul><h3>RAG pipeline (finer detail)</h3><ol><li><strong>Document ingestion &amp; chunking : </strong>External documents (web pages, PDFs, product manuals) are split into chunks (e.g., 200–1,000 tokens each).</li><li><strong>Chunk embedding : </strong>Each chunk is converted into an embedding vector (same space / model used for queries).</li><li><strong>Vector DB storage : </strong>Embeddings are stored in a vector database (e.g., Pinecone, Milvus, FAISS) with metadata and chunk IDs.</li><li><strong>Query embedding : </strong>The user query (or parts of the user prompt) is embedded to form a query vector.</li><li><strong>Similarity search : </strong>The system finds nearest neighbor chunks (top-k) by vector similarity (cosine, dot product).</li><li><strong>Context construction : </strong>Retrieved chunks are ranked, optionally filtered and compressed, then appended or injected to the model prompt as factual context (with citations / source pointers).</li><li><strong>Generation with context : </strong>The LLM consumes the original prompt + retrieved context and generates a grounded answer.</li><li><strong>Optional verification &amp; citation : </strong>Post-generation verification (e.g., answer vs. retrieved facts) and adding explicit citations improves trust.</li></ol><h3>Example (applied to our prompt)</h3><ul><li><strong>External DB contains:</strong> &quot;Earth orbits the Sun once every 365.25 days (astronomy source XYZ).&quot;</li><li>Query embedding of &quot;Earth revolves around the Sun. Explain simply.&quot; retrieves that chunk.</li><li><strong>Constructed prompt to model becomes:</strong></li><li>Context: Earth completes one revolution around the Sun in ~365.25 days. [source: XYZ]</li><li>Instruction: Explain this simply.</li><li>User: Earth revolves around the Sun.</li></ul><p>Model then generates a grounded response that can include the retrieved fact and a citation:</p><h3>5. Transformer (Core of ALL LLMs)</h3><p>Transformers use a mechanism called <strong>self-attention</strong>.</p><p>“Which words in the sentence should I pay attention to?”</p><p>In our Example, Earth revolves around the Sun. To understand “revolves,” the model must pay attention to Earth and Sun.</p><p>Self-attention allows <strong>every word to look at every other word</strong>. Depending on the model, the Transformer has <strong>three possible architectures</strong>:</p><h3>A. Encoder-only LLMs</h3><p>Used for Understanding, classification, embedding generation</p><p>Process:</p><ul><li>Self-attention builds contextual meaning</li><li>No text generation (no next-token prediction)</li></ul><p>usecase: Sentiment analysis, Classification, Search ranking, Question-answering (extractive)</p><h3>B. Decoder-only LLMs</h3><p>Used for Text generation, chat, reasoning</p><p>Process:</p><ul><li>Self-attention over previous tokens</li><li>Predict next-token</li><li>Loop until completion <em>(autoregressive generation)</em></li></ul><p>usecase : chat, explain, write code, create stories, solve problems, reason.</p><h3>C. Encoder-Decoder LLMs</h3><p>Used for Translation, summarization, Q&amp;A with context</p><p>Process:</p><ul><li>Encoder builds meaning of input</li><li>Decoder generates output using encoder embedding</li></ul><p>Use cases : Translation,Summarization,Long-context Q&amp;A,Document rewriting</p><p>After passing through transformer layers, the model outputs <strong>logits</strong>.</p><h3>6. Logits (Next-Token Probabilities)</h3><p>The model outputs a probability distribution for the next token.</p><p>Example: Below raw values are called <strong>logits</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/230/1*LkVUuaAeY0brutlYZvJzSQ.png" /></figure><p>Note:At this stage, the model has not “decided” yet — it only provides probabilities.</p><h3>7. Sampling / Decoding</h3><p>For text generation, LLMs use:</p><ul><li><strong>Greedy decoding</strong> → picks the highest probability</li><li><strong>Top-k / Top-p</strong> → controls randomness and natual output</li><li><strong>Temperature sampling</strong> → controls creativity</li><li><strong>Beam search</strong> → used mostly in encoder-decoder LLMs</li></ul><p>Autoregression is “Predict next token -&gt; then feed it back in -&gt; repeat.”</p><h3>8. Detokenization</h3><p>After the model generates output tokens, they are converted back into human-readable text. Based on correctness (from training) and simplicity (from instruction)</p><p>Example:</p><p>Tokens ID:[3551, 4297,553,262,9872,13, 251, 197,51,1874,343…]<br> Detokenized Output: The Earth moves in a circle around the Sun because the Sun’s gravity pulls it. It’s like a stone tied to a string that moves around your hand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dHVvW4gnDggmhQFQH7yqIg.png" /></figure><p>Notes:</p><p>Transformer Model = Encoder + Decoder</p><p>Encoder-only = These models are used for understanding. Example: BERT</p><p>Decoder only = These models are used for generating. Example : LLaMA,Gemini, GPT</p><p>Encoder–decoder = understand + generate Example : google T5, PaLM</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9d2836f6355" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Go Language for Beginners — Why and How to Start Learning Go in 2026]]></title>
            <link>https://medium.com/@s.udhayaganesh/go-language-for-beginners-why-and-how-to-start-learning-go-in-2026-7f17044060e7?source=rss-233ac9d64f3f------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f17044060e7</guid>
            <category><![CDATA[golang-tutorial]]></category>
            <category><![CDATA[go-language]]></category>
            <dc:creator><![CDATA[udhay]]></dc:creator>
            <pubDate>Sun, 09 Nov 2025 20:31:44 GMT</pubDate>
            <atom:updated>2025-11-09T20:31:44.107Z</atom:updated>
            <content:encoded><![CDATA[<h3>Go Language for Beginners — Why and How to Start Learning Go in 2026</h3><p>Over a decade ago, <strong>Robert Griesemer, Rob Pike, and Ken Thompson</strong> — three engineers at Google — began sketching ideas for a new kind of programming language. They wanted something <strong>simple, fast, and statically typed</strong>, similar to C but easier to use.</p><p>In <strong>2007</strong>, they designed <strong>Go (also called Golang)</strong> to boost programming productivity in a world full of <strong>multi-core processors</strong>, <strong>networked systems</strong>, and <strong>massive codebases</strong>. The creators were inspired by the frustrations developers faced using older languages like C++ and aimed to make Go modern yet minimal.</p><h3>Why Go? What Problem Does It Solve?</h3><p>Go was built to <strong>make backend and cloud programming efficient</strong>. It powers the backend — the part that handles <strong>APIs, databases, authentication, and servers</strong>.</p><p>Some key points that make Go special:</p><ul><li><strong>No inheritance</strong>, <strong>no function overloading</strong>, <strong>no exceptions</strong>, and a <strong>small standard library</strong>.</li><li>Instead, it uses <strong>interfaces</strong> for flexibility and simplicity.</li><li><strong>Concurrency</strong> (running multiple tasks at once) is built into the language, making Go faster than Java, Python, or C for backend and cloud tools.</li><li>Go’s compiler (inspired by <strong>Plan 9</strong>) makes build times incredibly fast.</li></ul><h3>Growth of Go</h3><p>Go is currently the <strong>3rd fastest-growing language</strong>, right behind <strong>Python</strong> and <strong>TypeScript</strong>. Its popularity continues to rise because it’s reliable, readable, and efficient for large-scale systems — from backend servers to cloud-native applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*hLpJ0jEg3SFWVpvqBpytow.png" /></figure><p>That’s why Go has become the <strong>backbone of modern infrastructure</strong> — used by companies like Google, Uber, Dropbox, and many AI/Cloud startups.</p><h3>How Hard Is It to Learn Go?</h3><p>Go is one of the easiest programming languages to start with! The fact is Keywords of Go is 25 where as Java is 50</p><p>It’s also <strong>lightweight in memory</strong>:</p><ul><li>Each Go routine (thread) starts with only <strong>2 KB</strong> of stack space.</li><li>Compare that to <strong>Java</strong>, which needs about <strong>2 MB</strong> — Go is extremely efficient!</li></ul><h3>Why Learn Go in 2026?</h3><p>Learning Go in 2026 is more valuable than ever because it’s deeply tied to <strong>AI and cloud ecosystems</strong>.<br> Here’s how:</p><ul><li><strong>Serves AI models</strong> faster for real-time inference</li><li><strong>Manages vector databases</strong> efficiently for large-scale data retrieval</li><li><strong>Orchestrates machine learning workflows</strong> with minimal resource usage</li></ul><p>If you’re aiming to work in <strong>AI, DevOps, or backend development</strong>, Go is a must-have skill.</p><h3>Installing Go</h3><p>You can install Go directly from the official site:<br> 👉 <a href="https://go.dev/dl">Download and Install Go</a></p><p>Once installed, let’s run your first program.</p><h3>Your First Go Program</h3><ol><li><strong>Create a new folder</strong> named hello</li><li>Inside the folder, create a new file named <strong>main.go</strong></li><li>Add this code:</li></ol><p><em>package main<br>import “fmt”</em></p><p><em>func main() {<br> fmt.Println(“Hello, World!”)<br>}</em></p><p>4. Open the <strong>terminal</strong> (or <strong>VS Code</strong> terminal) and run these commands:</p><p><em>go mod init hello</em></p><p>This creates a go.mod file (used for managing dependencies).</p><p>5. Now run the program:</p><p><em>go run .\main.go</em></p><p>This shows the output.</p><p>Here is output thru vscode (make sure go plugin is installed)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*GQnr9W30VM2NU2zvdH_-HA.png" /></figure><p>Conclusion: Go is <strong>simple yet powerful</strong> — designed for speed, scalability, and modern backend systems.<br> Whether you’re a <strong>beginner developer</strong>, <strong>cloud engineer</strong>, or <strong>AI enthusiast</strong>, learning Go will open doors to building <strong>efficient, production-grade systems</strong> with ease.</p><p>Start small — build your first “Hello World” app — and soon you’ll understand why Go is the <strong>language behind today’s modern infrastructure</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f17044060e7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Deploy an AI Agent in Salesforce in 30 Minutes]]></title>
            <link>https://medium.com/@s.udhayaganesh/how-to-deploy-an-ai-agent-in-salesforce-in-30-minutes-68dbd35bc037?source=rss-233ac9d64f3f------2</link>
            <guid isPermaLink="false">https://medium.com/p/68dbd35bc037</guid>
            <category><![CDATA[salesforce-agentforce]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[salesforce-ai]]></category>
            <dc:creator><![CDATA[udhay]]></dc:creator>
            <pubDate>Sat, 01 Nov 2025 20:56:26 GMT</pubDate>
            <atom:updated>2025-11-01T20:56:26.258Z</atom:updated>
            <content:encoded><![CDATA[<p>Create a new salesforce org and follow below steps,</p><p><strong>Step 1: Enable Einstein and Agentforce</strong></p><p>Navigate to Setup → Einstein Setup, and ensure “Turn on Einstein” is enabled.</p><p>Then go to Setup → Agentforce Agents, and enable “Agentforce” in your org.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fzDOQZiohls6AxPRZJnIgA.png" /></figure><p><strong>Step 2: Create Service Agent</strong></p><p>Go to <strong>Agentforce → Service Agents → New</strong>.</p><p>Choose <strong>“Create from Template → Agentforce Service Agent.”</strong></p><p>Configure the following details (provided with example)</p><p><strong>a. Name:</strong> Lorem Ipsum <em>Customer Service Agent</em></p><p><strong>b. Description:</strong> Deliver personalized customer interactions with an autonomous AI agent. Agentforce Service Agent intelligently supports your customers with common inquiries and escalates complex issues.</p><p>c. <strong>Role:</strong> You are a customer service representative, helping our Lorem Ipsum customers.</p><p><strong>d. Company:</strong> Lorem Ipsum is a retailer in the automotive manufacturing industry.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DqUoMmM3aOENszvcl5LYjg.png" /></figure><p><strong>Step 3: Add topic and action as per your requirement.</strong></p><p>Add <strong>topics</strong> (the subject areas your agent can handle).</p><p>Define <strong>actions</strong> (the tasks your agent can perform).</p><ul><li>Example Topic and Action,</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*syBTjc4qc7LTJupZBUX_Zw.png" /></figure><p><strong>Tip:</strong> Start with 2–3 core topics and test before scaling.</p><p><strong>Step 4: Enable Omni-Channel Settings</strong></p><p>Omni-Channel routes incoming messages or cases to the right agent automatically.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vS6Y1lE-PEegagGgw0i4dg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/909/1*f78aWwfrV3lF_GFBgDSOVw.png" /></figure><p><strong>Step 5: Enable Routing Configuration</strong></p><p>Create a <strong>Queue</strong> for your Service Agent. Add a <strong>Routing Configuration</strong> and assign it to the <strong>Messaging Session</strong> object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WSx1HplxdtGuSCJcH8jJxw.png" /></figure><p>Queue to your <strong>Omni Flow</strong> later to ensure seamless handoff.</p><p>Configure Queue -&gt; Add routing config &amp; select messaging session object</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qoUoUWtTzxLqRNBU7w-SRQ.png" /></figure><p><strong>Step 6: Develop an Omni Flow and add it to your Service Agent in the Agent Configuration section.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W8Of5A3Cdziry9z8vxhNKQ.png" /></figure><p><strong>Step 7: Configure Messaging</strong></p><p>Connect your preferred channel</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/544/1*4UzvDkD226oeu2vnl_GoMw.png" /></figure><p>Configure messaging components and define the service agent</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/1*IPTvEWlkC1IF_8o9qEi6lA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*Z1cZJ9AQ_GxiSy67Q9OB3g.png" /></figure><p><strong>Step 8: Create Embedded Service Deployment</strong></p><p>Choose <strong>Messaging → Create Deployment.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*ir2lXy6gj8simz8lqguK0w.png" /></figure><p><strong>Step 9: Configure CORS</strong></p><p>This allows your community to securely communicate with Salesforce.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*A8gfPHzA7QuUema6czIWaw.png" /></figure><p><strong>Step 10: Publish the agent to experience cloud (website)</strong></p><p>Add the <strong>Embedded Service</strong> component to any where in the page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wg7g-CXBKCyor7tSoh3lzg.png" /></figure><p><strong>Keynotes</strong>:</p><p>1. <strong>Instruction </strong>: Add clear and contextual instructions under each Topic to help the agent learn how to respond accurately. The more examples and intent-based details you provide, the better the AI can fine-tune its responses.</p><p>2. <strong>Testing </strong>: Before going live, use the Agentforce Simulator to test how your AI agent handles different scenarios and edge cases. Adjust topics, actions, and instructions based on test results to improve accuracy and tone.</p><p>3. <strong>Security :</strong> Ensure proper Data Access and Field-Level Security (FLS) for the agent’s assigned user profile. This prevents the agent from accessing restricted or sensitive data in your org.</p><p>4. <strong>Event Logs: </strong>Use Event Monitoring or Agentforce Event Logs to track agent activity, errors, and user interactions.</p><p><strong>5. Version Control :</strong> When updating your Service Agent, <strong>clone</strong> and version your configuration (Topics, Actions, and Flows).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68dbd35bc037" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your Salesforce Agents Can Now Talk to Each Other — Across Any Platform]]></title>
            <link>https://medium.com/@s.udhayaganesh/the-future-of-agentic-ai-communication-in-salesforce-fc174bb3893c?source=rss-233ac9d64f3f------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc174bb3893c</guid>
            <category><![CDATA[salesforce-ai]]></category>
            <category><![CDATA[salesforce-development]]></category>
            <category><![CDATA[salesforce-ai-specialist]]></category>
            <dc:creator><![CDATA[udhay]]></dc:creator>
            <pubDate>Tue, 21 Oct 2025 04:10:02 GMT</pubDate>
            <atom:updated>2026-03-15T04:19:01.359Z</atom:updated>
            <content:encoded><![CDATA[<h3>What Is Agentic AI?</h3><p>Traditional AI agents are designed to perform <strong>specific, predefined tasks</strong>. In contrast, <strong>Agentic AI</strong> emphasizes <strong>autonomy</strong> — the ability to make decisions, take actions, and learn from outcomes without constant human input. In the Salesforce ecosystem, this evolution unlocks new possibilities for intelligent, context-aware collaboration between systems and agents.</p><h3>What Is Agent-to-Agent Communication?</h3><p>Agent-to-Agent (A2A) Communication refers to secure, contextual, and real-time collaboration between two or more AI agents — whether they operate within the same platform or across entirely different vendors.</p><p>In a Salesforce context, this means AI agents can share data, preserve conversation context, and deliver a seamless customer experience across systems and orgs. But A2A is no longer just a Salesforce concept — it has grown into a cross-industry open standard.</p><p>Note: In April 2025, Google introduced A2A as an open protocol. In June 2025, it was donated to the Linux Foundation, making it vendor-neutral and community-governed. Salesforce is a founding partner alongside 50+ organizations at launch, growing to 150+ supporters by mid-2025.</p><h3>Why Is A2AImportant?</h3><p>In large organizations, one agent cannot access or manage every aspect of a customer interaction.<br> <strong>Agent-to-Agent Communication</strong> allows Salesforce agents to collaborate intelligently, ensuring:</p><p>• Faster response times by eliminating handoff delays between agents</p><p>• No repeated customer queries — context travels with the conversation</p><p>• Smarter workload distribution across human and AI agents</p><p>• Cross-platform collaboration — Salesforce agents can now interact with agents on Azure, ServiceNow, and more</p><p>• Consistent customer journeys regardless of which system or agent handles the interaction</p><p>Ultimately, it enables customers to experience a <strong>consistent and connected journey</strong>, regardless of who they interact with.</p><h3>Key A2A Concepts</h3><h3>1. Agent Cards — The Discovery Layer</h3><p>A key concept missing from earlier A2A discussions is Agent Cards. Before agents communicate, they advertise their capabilities through Agent Cards in JSON format. This allows a requesting agent to discover what another agent can do before initiating communication — enabling smarter, more targeted collaboration. Agent Cards define: available skills and actions, supported input/output formats, authentication requirements, and task lifecycle states.</p><h3>2. Task Lifecycle Management</h3><p>A2A defines formal task states—created, in progress, completed, and failed giving agents structured visibility into the status of cross-agent work. This is critical for enterprise workflows where reliability and auditability matter.</p><h3>Starting Point:</h3><h3>1. The Salesforce Agent API</h3><p>If you are already building on Salesforce, the Agent API is the foundation of all agent communication. It lets you interact with Agentforce agents directly from any external system via a REST interface (<em>implemented below</em>)</p><h3>2. MuleSoft A2A Connector</h3><p>A key addition in Agentforce 3 is the MuleSoft A2A Connector. This enables direct communication across any agent by exposing them as either an A2A server or an A2A client — making MuleSoft the governance and orchestration layer for multi-agent workflows across all enterprise systems.</p><h3>3. AgentExchange — The Agentic Marketplace</h3><p>AgentExchange is Salesforce’s purpose-built marketplace for the AI era — the agentic evolution of AppExchange. It now supports native MCP and A2A, giving you a single trusted place to discover, try, and deploy pre-built agents, agent skills, MCP servers, and partner actions</p><h4><strong>How to Implement It using headless flow using agent API?</strong></h4><p>Below is a <strong>step-by-step guide</strong> for setting up secure agent-to-agent communication using a <strong>Connected App</strong> and <strong>OAuth 2.0 tokens</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R5BoJPQcfKorT8f-Q8sWUQ.png" /></figure><h3>Step 1: Add the Connected App to the Salesforce Child Agent</h3><p>Before agents can communicate, you must add a <strong>Connected App</strong> to the <strong>child agent’s Salesforce org</strong>. Navigate to the <strong>Connections</strong> tab of the child agent and link the connected app. This establishes <strong>trust</strong> between the child agent and the connected app, allowing secure API-based communication.</p><h3>Step 2: Obtain the Consumer Key and Consumer Secret</h3><p>Once the connected app is configured:</p><ul><li>Open the app details to find the <strong>Consumer Key</strong> and <strong>Consumer Secret</strong>.</li><li>These credentials uniquely identify your app during authentication.</li><li>Store them securely — they’re required for obtaining the <strong>access token</strong> in the next step.</li></ul><h3>Step 3: Remote Agent Creates a Token</h3><p>The <strong>remote agent</strong> (in another Salesforce org or external system) must first obtain an <strong>OAuth token</strong> to authenticate.</p><p>Using the <strong>Consumer Key</strong>, <strong>Consumer Secret</strong>, and the <strong>child agent’s domain</strong>, the remote agent sends a request to the Salesforce OAuth 2.0 token endpoint:</p><pre>POST https://login.salesforce.com/services/oauth2/token<br>grant_type=password<br>client_id=&lt;ConsumerKey&gt;<br>client_secret=&lt;ConsumerSecret&gt;<br>username=&lt;AgentUsername&gt;<br>password=&lt;AgentPassword+SecurityToken&gt;</pre><p>Salesforce responds with an <strong>Access Token</strong>, which the remote agent uses in subsequent API calls.</p><h3>Step 4: Remote Agent Starts a Session</h3><p>Once the token is generated, the remote agent can <strong>initiate a session</strong> with the child agent.<br> This session maintains <strong>context and conversation memory</strong>, allowing ongoing interactions and dynamic data exchange between agents.</p><h3>Step 5: Remote Agent Sends a Sync Message</h3><p>During the session, the remote agent can send <strong>synchronous messages</strong> using the active session token.<br> These messages may include commands, queries, or contextual updates that the child agent processes in real time.</p><p>Example endpoint:</p><pre>POST /services/data/v61.0/agent/conversation/message<br>Authorization: Bearer &lt;AccessToken&gt;</pre><h3>Step 6: End the Session</h3><p>Once the conversation or task is complete, the remote agent ends the session.<br> This step cleans up session data, optimizes memory usage, and enhances overall security by preventing token misuse.</p><h3>Example Use Case: Intelligent Recruiter</h3><p><strong>Problem Statement</strong><br> Recruiter–client communication is often <strong>slow, fragmented, and manual</strong>. Job details are shared through emails, resumes are unstructured, and manual screening delays hiring decisions — leading to inefficiency and mismatches.</p><p><strong>Use Case</strong><br> Recruiters need to connect with client companies to quickly identify job openings. Agents from both sides communicate directly and exchange job-related information through <strong>agent-to-agent communication</strong>.<br> The recruiter’s AI agent automatically parses resumes internally and recommends the best candidates in real time.</p><p><strong>Solution</strong></p><p>Remote Agent — Build it on Salesforce, but it can be any platform</p><p>Client Agent — Build it on Salesforce</p><p>By enabling <strong>intelligent agent-to-agent communication</strong> for job sharing:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/333/1*kkO8fSUaMjZv9DFZnIJdmQ.png" /></figure><ul><li>AI agents exchange data securely and instantly.</li><li>Resume parsing and candidate matching happen automatically.</li><li>Hiring decisions become faster, more accurate, and data-driven.</li></ul><p>Remote Agent and Client Agent — Topics, Action and Instruction</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*YQjVsC63BUIx9kNkbULoHw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AGJZrp8mKhREF84pDyzB4w.png" /></figure><h3>Final Thoughts</h3><p><strong>Agent-to-Agent Communication</strong> is not just a feature — it’s a <strong>mindset shift</strong> in how Salesforce ecosystems operate.<br> It transforms service operations from isolated ticket handling into a <strong>collaborative, context-aware experience</strong> where knowledge flows seamlessly between agents — human and AI alike. In the age of <strong>Agentic AI</strong>, this capability forms the foundation for intelligent, autonomous systems that deliver unmatched efficiency and customer satisfaction.</p><p>API Reference:<br> <a href="https://api.salesforce.com/einstein/ai-agent/v1">https://api.salesforce.com/einstein/ai-agent/v1</a></p><p><a href="https://developer.salesforce.com/docs/einstein/genai/guide/agent-api-get-started.html">Salesforce Developers</a></p><p>LLM : Used for NLP, response generation, classification, summarization <br>RAG : Adds factual grounding from internal documents, policies, articles <br>MCP Server : It is like USB-C. Injects relevant context: user state, history, rules, available actions and tools <br>A2A : Agents can communicate with eachother irrespective of the platform.</p><p>github:</p><p>Remote Org:</p><p><a href="https://github.com/udhayaganesh/salesforce_remote_agent">GitHub - udhayaganesh/salesforce_remote_agent</a></p><p>Client Org:</p><p><a href="https://github.com/udhayaganesh/salesforce_client_agent">GitHub - udhayaganesh/salesforce_client_agent</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc174bb3893c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>