<?xml version="1.0" encoding="UTF-8" ?><!-- generator=Zoho Sites --><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><atom:link href="https://www.digikas.in/blogs/tag/deterministic-ai/feed" rel="self" type="application/rss+xml"/><title>DigiKAS India Private Limited - Blog #Deterministic AI</title><description>DigiKAS India Private Limited - Blog #Deterministic AI</description><link>https://www.digikas.in/blogs/tag/deterministic-ai</link><lastBuildDate>Sun, 26 Jul 2026 16:07:08 -0700</lastBuildDate><generator>http://zoho.com/sites/</generator><item><title><![CDATA[Salesforce AgentScript: Bringing Deterministic Control to AI Agents]]></title><link>https://www.digikas.in/blogs/post/salesforce-agentscript-bringing-deterministic-control-to-ai-agents</link><description><![CDATA[<img align="left" hspace="5" src="https://www.digikas.in/0b2f2ab3-6fff-48f9-b587-a03a5bceff34.png"/>Discover AgentScript, a powerful scripting language that brings deterministic control to AI agents. Learn how it enhances Agentforce development, AI automation, and intelligent workflows within the Salesforce ecosystem.]]></description><content:encoded><![CDATA[<div class="zpcontent-container blogpost-container "><div data-element-id="elm_QyZP0k-AT62B-YN-qHdYOg" data-element-type="section" class="zpsection "><style type="text/css"></style><div class="zpcontainer-fluid zpcontainer"><div data-element-id="elm_r0GM5oKtRSuuqS9V0hIHkQ" data-element-type="row" class="zprow zprow-container zpalign-items- zpjustify-content- " data-equal-column=""><style type="text/css"></style><div data-element-id="elm_oG6egbuXT1-qHD3EfRHpWg" data-element-type="column" class="zpelem-col zpcol-12 zpcol-md-12 zpcol-sm-12 zpalign-self- "><style type="text/css"></style><div data-element-id="elm_FButMgtERYWV8pQi4onLFA" data-element-type="heading" class="zpelement zpelem-heading "><style></style><h2
 class="zpheading zpheading-align-center zpheading-align-mobile-center zpheading-align-tablet-center " data-editor="true"><span><span><p style="margin-bottom:16pt;"><span>Welcome to the Next Generation of Agent Development.</span></p></span></span></h2></div>
<div data-element-id="elm_nwiJABXNTqO4ouYUHL7OiQ" data-element-type="text" class="zpelement zpelem-text "><style></style><div class="zptext zptext-align-center zptext-align-mobile-center zptext-align-tablet-center " data-editor="true"><blockquote style="margin:0px 0px 0px 40px;border-width:medium;border-style:none;padding:0px;"><p style="text-align:left;margin-bottom:12pt;"><span>Salesforce continues to push the boundaries of AI innovation with </span><span style="font-weight:700;">AgentScript</span><span>, a scripting language designed specifically for building intelligent and predictable AI agents in Agentforce.</span></p></blockquote><blockquote style="margin:0px 0px 0px 40px;border-width:medium;border-style:none;padding:0px;"><p style="text-align:left;margin-bottom:12pt;"><span>While Agentforce Builder allows us to create agents using prompts and configurations, AgentScript gives developers greater control over how an agent thinks, decides, and executes actions.</span></p><p style="text-align:left;margin-bottom:12pt;"><span>Think of it as moving from simply </span><span style="font-weight:700;font-style:italic;">configuring an agent</span><span style="font-weight:700;">&nbsp;, to actually </span><span style="font-weight:700;font-style:italic;">programming its behavior</span><span style="font-weight:700;">.</span></p></blockquote><hr/><blockquote style="margin:0px 0px 0px 40px;border-width:medium;border-style:none;padding:0px;"><h2 style="text-align:left;margin-bottom:4pt;"><span>Why AgentScript?</span></h2><p style="text-align:left;margin-bottom:12pt;"><span>One of the biggest challenges with AI agents is balancing:</span></p><span><div style="text-align:left;"><ul><li>Natural language reasoning</li><li>Business process control</li></ul><div><br/></div>
</div></span><p style="text-align:left;margin-bottom:12pt;"><span>In real-world business scenarios, we often need agents to:</span></p><span><div style="text-align:left;"><ul><li>Follow a specific sequence of steps</li><li>Collect mandatory information</li><li>Invoke flows or Apex actions</li><li>Route users to the correct process</li><li>Maintain consistency across conversations</li></ul></div></span><p style="text-align:left;margin-bottom:12pt;"><span>AgentScript introduces </span><span style="font-weight:700;">deterministic control while still leveraging AI reasoning capabilities. </span><span>Instead of relying completely on prompts, we can explicitly define how an agent should behave.</span><span style="text-align:center;">Salesforce describes </span><span style="text-align:center;font-weight:700;">AgentScript as the control plane for agentic decisions</span><span style="text-align:center;">. It combines natural language instructions with structured logic to create predictable, context-aware AI agents.</span></p></blockquote><hr/><h1 style="text-align:left;"><span>&nbsp; Agent Script Blocks</span></h1><span style="font-weight:700;"><span><p style="text-align:left;margin-bottom:12pt;"><span style="font-weight:normal;">&nbsp;&nbsp;</span>&nbsp; &nbsp;&nbsp;<span>A script consists of blocks where each block contains a set of properties.</span></p><p style="text-align:left;margin-bottom:12pt;"><span>&nbsp;</span>&nbsp; &nbsp; &nbsp;<span>These properties can describe data or procedures. Agent Script contains several different block types.</span></p><p style="text-align:center;"><span><span><span style="width:404px;"><img src="/Tue%20Jun%2009%202026.png" width="404" height="656"/></span></span></span><br/></p><div><span><span style="width:404px;"><br/></span></span></div></span></span><h2 style="font-weight:700;text-align:left;margin-bottom:4pt;"><span>&nbsp; Core Building Blocks of AgentScript<br/><br/></span></h2><h3 style="font-weight:700;text-align:left;margin-bottom:4pt;"><span>&nbsp; &nbsp;System Block</span></h3><h3 style="text-indent:0px;font-weight:700;text-align:left;margin-bottom:4pt;"><span style="text-indent:36pt;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><span style="text-indent:36pt;color:rgb(76, 76, 76);font-family:Muli, sans-serif;font-size:16px;">The </span><span style="text-indent:36pt;color:rgb(76, 76, 76);font-family:Muli, sans-serif;font-size:16px;">System Block</span><span style="text-indent:36pt;color:rgb(76, 76, 76);font-family:Muli, sans-serif;font-size:16px;"> defines the agent's overall behavior and tone. It contains the instructions that guide the agent, along with the welcome and error messages shown&nbsp;</span><span style="font-size:16px;font-weight:normal;text-indent:36pt;text-align:justify;">during customer interactions.</span></h3><h3></h3><h3 style="text-indent:0px;font-weight:700;text-align:left;margin-bottom:4pt;"><span style="color:rgb(76, 76, 76);font-family:Muli, sans-serif;font-size:16px;text-indent:36pt;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="text-indent:36pt;color:rgb(76, 76, 76);font-family:Muli, sans-serif;font-size:16px;">It also supports personalization through variables, allowing the agent</span><span style="text-indent:36pt;color:rgb(76, 76, 76);font-family:Muli, sans-serif;font-size:16px;"> to greet customers with dynamic information such as their name, making conversations&nbsp;</span><span style="font-weight:normal;font-size:16px;text-indent:36pt;">feel more natural and engaging.</span></h3><p style="font-weight:700;text-align:left;margin-left:36pt;text-indent:36pt;margin-bottom:12pt;"><span style="font-weight:700;"><br/><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<img src="/Tue%20Jun%2009%202026-1.png" alt=""/></span><br/></span></p><p style="font-weight:700;margin-left:36pt;text-indent:36pt;margin-bottom:12pt;"><span style="font-weight:700;"><br/></span></p><h2 style="font-weight:700;margin-bottom:12pt;"></h2><hr style="font-weight:700;"/><h2 style="font-weight:700;text-align:left;margin-bottom:12pt;"><span>&nbsp;Config Block&nbsp;</span></h2><p style="font-weight:700;text-align:left;margin-left:36pt;text-indent:36pt;"><span>The </span><span style="font-weight:700;">Config Block</span><span> contains the basic configuration details of the agent, such as its name, description, and the Salesforce user under which it runs.&nbsp;</span></p><p style="font-weight:700;text-align:left;margin-left:36pt;margin-bottom:12pt;"><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;These settings help</span><span style="font-weight:700;"> identify the agent and define its purpose</span><span>.&nbsp;<br/><br/><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<img src="/Tue%20Jun%2009%202026-2.png" alt=""/></span><br/></span></p><h2 style="font-weight:700;margin-bottom:12pt;"></h2><hr style="font-weight:700;"/><h2 style="font-weight:700;text-align:left;margin-bottom:12pt;"><span>&nbsp;Variables Block&nbsp;</span></h2><h3 style="font-weight:700;text-align:left;margin-left:36pt;margin-bottom:12pt;"><span style="font-weight:400;font-size:16px;">The variables block contains the </span><span style="font-size:16px;">list of global variables that the agent and script can use.&nbsp;<br/><div style="text-indent:0px;"><span style="text-indent:36pt;color:rgb(76, 76, 76);font-family:Muli, sans-serif;">This helps the </span><span style="text-indent:36pt;color:rgb(76, 76, 76);font-family:Muli, sans-serif;">agent remember important details and maintain context.</span><span style="text-indent:36pt;color:rgb(76, 76, 76);font-family:Muli, sans-serif;">&nbsp;</span></div></span></h3><div style="text-align:left;"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<img src="/Tue%20Jun%2009%202026-3.png" alt="" style="text-indent:36pt;text-align:center;"/></div>
<h2 style="font-weight:700;margin-bottom:12pt;"></h2><hr style="font-weight:700;"/><h2 style="font-weight:700;text-align:left;margin-bottom:12pt;"><span>&nbsp;start_agent Block</span></h2><p style="font-weight:700;text-align:left;text-indent:36pt;margin-bottom:12pt;"><span>The start_agent block acts as the entry point for the agent and is responsible for:</span></p><ul style="font-weight:700;"><li style="margin-left:36pt;"><p style="text-align:left;"><span>Subagent classification</span></p></li><li style="margin-left:36pt;"><p style="text-align:left;"><span>Routing conversations</span></p></li><li style="margin-left:36pt;"><p style="text-align:left;"><span>Initializing variables</span></p></li><li style="margin-left:36pt;"><p style="text-align:left;margin-bottom:12pt;"><span>Determining the next step&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br/></span><span style="text-indent:36pt;"><br/> With every customer utterance, the agent starts execution from this block before deciding which topic should handle the request.</span></p></li></ul><p style="font-weight:700;text-align:left;text-indent:36pt;margin-bottom:12pt;"><span>&nbsp; &nbsp; &nbsp; &nbsp;&quot;The start_agent block serves as the routing engine for all customer conversations.&quot;&nbsp;</span></p><span style="font-weight:700;"><img src="/Tue%20Jun%2009%202026-4.png" alt=""/></span><br/><br/><br/><hr style="font-weight:700;"/><h3 style="font-weight:700;text-align:left;margin-bottom:4pt;"><span>&nbsp;Sub-Agent (Previously known as Topics)</span></h3><p style="font-weight:700;text-align:left;margin-bottom:12pt;"><span>&nbsp; &nbsp; &nbsp; &nbsp;The </span><span style="font-weight:700;">Sub-Agent Block</span><span> represents a</span><span style="font-weight:700;"> specialized area of responsibility within an agent</span><span>. It contains the </span><span style="font-weight:700;">instructions, reasoning, and actions</span><span> required to&nbsp; handle a&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;specific&nbsp;<span><span style="font-weight:700;">business process.</span></span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span></p><p style="font-weight:700;text-align:left;margin-bottom:12pt;"><span>&nbsp; &nbsp; &nbsp; Think of a sub-agent as a subject matter expert that focuses on a particular task, such as Order Management, Customer Verification, or FAQ Handlings<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Example:<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1.&nbsp;<span><span>Order Management<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2.&nbsp;<span><span>Case Creation<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;3.&nbsp;<span><span>Appointment Booking<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;4.&nbsp;<span><span>Refund Processing<br/></span></span></span></span></span></span></span></span></span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br/> &nbsp; &nbsp; &nbsp; &nbsp;Each sub-agent contains its own instructions and actions.</p><p style="margin-bottom:12pt;"><span style="font-weight:700;"><img src="/Tue%20Jun%2009%202026-5.png" alt=""/><br/></span><br/></p><div style="text-align:left;"><span style="font-weight:700;">&nbsp; &nbsp; &nbsp; This </span><strong>Order_Management</strong><span style="font-weight:700;"> sub-agent is responsible for handling order-related customer requests. If the customer hasn't provided an Order ID, the agent first asks for it. Once the Order ID is available, the subagent invokes a Flow to retrieve the order details and presents the status and expected delivery date to the customer.&nbsp;</span></div>
<hr style="font-weight:700;"/><h1 style="text-align:left;font-weight:700;margin-bottom:12pt;"><span style="font-weight:400;">&nbsp;Agent Script Reference: Reasoning Instructions</span></h1><p style="text-align:left;font-weight:700;margin-bottom:12pt;"><span>&nbsp; &nbsp; &nbsp;The </span><span style="font-weight:700;">Reasoning Block</span><span> contains the </span><span style="font-weight:700;">instructions that guide the agent's decision-making process.&nbsp;</span></p><p style="text-align:left;font-weight:700;margin-bottom:12pt;"><span>&nbsp; &nbsp; Based on these instructions, Agentforce generates prompts for the LLM, helping it understand the business context and determine the most appropriate action to perform.&nbsp;<br/></span></p><span><img src="/Tue%20Jun%2009%202026-6.png" alt=""/></span><br/><h3 style="text-align:left;font-weight:700;margin-bottom:4pt;"><span>&nbsp; &nbsp;Understanding Reasoning Instructions</span></h3><p style="text-align:left;font-weight:700;margin-bottom:12pt;"><span>&nbsp; &nbsp; &nbsp; &nbsp; The </span><span style="font-weight:700;">Reasoning Block</span><span> guides how the agent thinks and decides what action to perform. It consists of two types of instructions:</span></p><h4 style="text-align:left;font-weight:700;margin-left:36pt;margin-bottom:2pt;"><span style="font-weight:700;">1. Logic Instructions</span></h4><p style="text-align:left;font-weight:700;margin-bottom:12pt;"><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; These are </span><span style="font-weight:700;">deterministic instructions</span><span> that follow </span><span style="font-weight:700;">predefined conditions and rules</span><span>.</span></p><p style="text-align:left;font-weight:700;margin-bottom:12pt;"><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;They are used to:<br/></span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1.&nbsp;<span><span><span>Evaluate conditions using </span><span style="font-weight:700;">if</span><span> statements.<br/></span></span></span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2.&nbsp;<span><span>Execute actions.<br/></span></span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 3.&nbsp;<span><span>Set or update variables.<br/></span></span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4.&nbsp;<span><span>Control the flow of the conversation.</span></span><br/><br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<img src="/Tue%20Jun%2009%202026-7.png" alt=""/><br/><br/></p><h4 style="text-align:left;font-weight:700;margin-bottom:2pt;"><span style="font-weight:700;">&nbsp; 2. Prompt Instructions</span></h4><p style="text-align:left;font-weight:700;margin-bottom:12pt;"><span>&nbsp; &nbsp; &nbsp; &nbsp; These are natural language instructions that are passed to the LLM when the specified conditions are met.</span></p><p style="text-align:left;font-weight:700;margin-bottom:12pt;"><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;They help the agent:<br/></span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1.&nbsp;<span><span>Communicate with users.<br/></span></span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2.&nbsp;<span><span>Ask questions.<br/></span></span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;3.&nbsp;<span><span>Provide responses.<br/></span></span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;4.&nbsp;<span><span>Guide the conversation naturally.</span></span><br/><br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<img src="/Tue%20Jun%2009%202026-8.png" alt=""/></p><p style="text-align:left;font-weight:700;margin-bottom:12pt;"><span>&nbsp; &nbsp; &nbsp; &nbsp;Note : </span><span style="font-weight:700;">Using the Pipe (|) Operator</span></p><p style="text-align:left;font-weight:700;margin-bottom:12pt;"><span>&nbsp; &nbsp; &nbsp; &nbsp;The pipe (|) symbol is used to write multiline prompt instructions, making them easier to read and maintain.</span></p><p style="text-align:left;font-weight:700;margin-bottom:12pt;"><span>&nbsp; &nbsp; &nbsp; &nbsp;It can be used:<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1.&nbsp;<span><span>Before logic instructions.<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2.&nbsp;<span><span>After logic instructions.<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 3.&nbsp;<span><span>Alongside conditional logic within the same reasoning block.</span></span></span></span></span></span></span></p><br/><h3 style="text-align:left;font-weight:700;margin-bottom:4pt;"><span>&nbsp; What are Actions?</span></h3><p style="text-align:left;font-weight:700;margin-bottom:12pt;"><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Actions are how agents perform work.</span></p><p style="text-align:left;font-weight:700;margin-bottom:12pt;"><span>&nbsp; &nbsp; &nbsp; &nbsp; An action can:<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1.&nbsp;<span><span>Invoke a Flow<br/></span></span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2.&nbsp;<span><span>Execute Apex<br/></span></span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;3.&nbsp;<span><span>Call an API<br/></span></span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;4.&nbsp;<span><span>Retrieve Salesforce data<br/></span></span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br/></span><br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<img src="/Tue%20Jun%2009%202026-9.png" alt=""/></p><br/><br/><h3 style="text-align:left;font-weight:700;margin-bottom:4pt;"><span>&nbsp;Conclusion</span></h3><p style="text-align:left;font-weight:700;margin-bottom:12pt;"><span>&nbsp; &nbsp; &nbsp; &nbsp;Agentforce Builder made it easy to create AI agents using prompts and configurations. With </span><span style="font-weight:700;">AgentScript</span><span>, Salesforce introduces a more structured approach&nbsp; that gives developers greater control over how agents think, reason, and perform actions.</span></p><p style="text-align:left;font-weight:700;margin-bottom:12pt;"><span>&nbsp; &nbsp; &nbsp; By combining </span><span style="font-weight:700;">Subagents</span><span>, </span><span style="font-weight:700;">Reasoning Instructions</span><span>, </span><span style="font-weight:700;">Variables</span><span>, and </span><span style="font-weight:700;">Actions</span><span>, we can build agents that are not only conversational but also capable of following business processes in a predictable and scalable manner.</span></p><p style="text-align:left;font-weight:700;margin-bottom:12pt;"><span>&nbsp; &nbsp; &nbsp; As organizations continue to adopt AI-driven experiences, AgentScript provides a powerful way to bridge the gap between natural conversations and enterprise automation.</span></p><p style="text-align:left;font-weight:700;margin-bottom:12pt;"><span>&nbsp; &nbsp; &nbsp;The Agentic Era is evolving rapidly, and AgentScript is undoubtedly one of the exciting additions that Salesforce developers should start exploring today.</span></p><div><br/></div><br/><div><span style="font-weight:700;"><br/></span></div>
</div></div></div></div></div></div></div> ]]></content:encoded><pubDate>Wed, 10 Jun 2026 11:44:20 +0530</pubDate></item></channel></rss>