Saturday, June 20, 2026

Future of SaaS: From Web UI to Agentic AI Thinking

Replacing a traditional Web UI-based SaaS with an Agentic AI framework represents a fundamental paradigm shift: moving from software that humans navigate via dashboards to software where humans interact with goals, and a network of autonomous agents executes the underlying operations.

In enterprise architectures, this is not a "rip-and-replace" of the database (System of Record), but rather a complete teardown and replacement of the interaction, logic, and automation layers.

Using a CRM Application (e.g., managing leads, pipelines, and customer support) as our core example, here is a structured approach to making this architectural transition.

1. The Core Conceptual Shift

Instead of a human logging into a CRM to click fields, move pipeline stages, and manually log emails, an Agentic CRM Layer acts on intent, evaluates data streams, calls APIs, and coordinates background micro-agents.

ComponentTraditional Web UI SaaS (e.g., Salesforce/HubSpot)Agentic AI Framework
User InterfaceDense tables, forms, kanban boards, sidebars.Natural language (Chat/Voice) + ephemeral, dynamic mini-UIs.
Business LogicHardcoded if/then workflow builders and triggers.Dynamic reasoning loops (LLM-driven planning and tool execution).
ExecutionManual human entry and navigation.Autonomous micro-agents working across application boundaries.

2. Architectural Blueprint

To deploy this, you transition from an MVC (Model-View-Controller) architecture to an Agentic Orchestration Architecture.

A. The Core Orchestrator (The Brain)

  • Role: Evaluates user intent, maps out multi-step execution plans, manages state, and routes sub-tasks to specialized agents.

  • Tech Stack: Built using dedicated developer frameworks like the Google Cloud Agent Development Kit (ADK), LangGraph, or CrewAI.

B. Specialized Micro-Agents (The Workforce)

Instead of broad modules, break the CRM functions down into narrow, domain-specific vertical agents:

  • Inbound Lead Agent: Monitors incoming emails, extracts intent, qualifies budget/authority, and updates the database.

  • Pipeline Optimization Agent: Analyzes deal velocities, flags stalled accounts, and proactively suggests discount thresholds or follow-up strategies.

  • Customer Support Agent: Triages technical tickets, matches issues against past resolutions using semantic retrieval, and executes API-based account updates.

C. The Tool & API Layer (The Hands)

Agents don't type; they call APIs. This layer exposes the structural database via a strictly defined API gateway. An open protocol like Agent–User Interaction (AG-UI) can bridge the gaps between the backend agents and any frontend rendering.

D. Memory Systems

  • Short-Term Memory: Maintains the immediate context of a specific client conversation or open deal cycle.

  • Long-Term Memory: A secure vector knowledge base that holds cross-organizational insights, historical account data, and compliance guardrails.

3. Step-by-Step Transition Strategy

Step 1: Decentralize the UI into Headless APIs

You cannot build an agentic layer over a legacy UI. Expose everything the CRM does—creating a contact, updating a deal stage, changing owner permissions—as clean, secure APIs. Your data layer remains the definitive source of truth, but it must be entirely accessible to programmatic tool-calling.

Step 2: Implement "Shadow" Micro-Agents (Read-Only)

Introduce agents alongside your existing SaaS Web UI first. Let an AI agent read incoming leads and simulate how it would route them, comparing its decisions against what your human team actually did inside the UI. Use this stage to eliminate hallucinations and refine system prompts.

Step 3: Transition to "Human-in-the-Loop" (HITL) Execution

Move the agents from read-only to action-oriented, but introduce structured governance checkpoints.

Example: The Outbound Sales Agent drafts a highly personalized email sequence and prepares to move a lead to "Contacted." Instead of doing it silently, it pushes a notification to a lightweight manager approval dashboard: "Approve sending this email and advancing Acme Corp to Stage 2? [Yes / No]"

Step 4: Graduate to Full Autonomy with Dynamic Ephemeral UIs

Once confidence metrics pass strict thresholds (e.g., >98% accuracy on routine tasks), remove the training wheels. The permanent, heavy Web UI is deprecated.

When a human does need to interact, they do so through a Dynamic UI. For instance, asking "Show me our top 5 high-risk deals" doesn't open a massive dashboard; the agent dynamically generates a temporary, scannable five-row table with interactive triage actions right inside the workspace.

4. Operational & Governance Guardrails

The biggest trap of moving logic from rigid code to probabilistic AI agents is the loss of predictability. Security must be architectural, not an afterthought.

  • Unified Multi-System Audit Trails: Traditional SaaS logs user clicks. An agentic framework must capture the complete intermediate lifecycle: What was requested -> What context was retrieved -> What model reasoning was used -> What final API call was made.

  • Zero-Trust Access Control (IAM): Agents must never use "super-admin" master API keys. Each agent must inherit the exact data scopes, permissions, and corporate access boundaries of the specific human user it is acting on behalf of.

  • Model Versioning & Fallbacks: Tie agent behaviors to strictly versioned LLMs. If an open-source or proprietary model updates its backend, your prompt structures may yield different results. Run continuous evaluation benches to ensure deterministic business outcomes.

Orchestrating an agentic AI layer directly over a commercial giant like Salesforce changes the strategy. You are no longer building an entire ecosystem from scratch; instead, you are decoupling the interface from the underlying platform while letting Salesforce handle the heavy lifting of security, data schemas, and transactional workflows.

Salesforce natively leans into this via Agentforce (its 2026 unified AI architecture) and the Agentforce Experience Layer (AXL), which acts as a headless engine. Whether you build using external open-source tools (like LangGraph or CrewAI) or natively inside Salesforce, the architecture relies on a specialized Primary/Secondary (Orchestrator-to-Agent) framework.

1. The Headless CRM Architecture

To bypass the standard, cluttered Salesforce Web UI, implement a "Headless Experience Layer." Salesforce acts strictly as your core engine, while your agentic framework sits on top, interacting with users via chat, voice, or ephemeral UIs (like Slack or clean web panels).

2. Multi-Agent Orchestration Framework

Rather than creating a single, massive agent that tries to manage all of Salesforce (which quickly breaks down due to context window limits and hallucinations), utilize an Agent-to-Agent (A2A) hierarchy.

The Primary Agent (The Router)

The user interacts only with this agent. It evaluates intent, provisions short-term memory, and routes sub-tasks to downstream specialist agents.

The Secondary Domain Agents (The Specialists)

These agents possess highly specific system prompts, focused scopes, and explicit access to Salesforce actions.

  • Lead Intake & Qualification Agent: Tied strictly to the Lead object. It handles inbound routing, email analysis, and contact creation.

  • Case Resolution Agent: Tied strictly to the Case and Knowledge objects. It processes incoming escalations and updates ticket statuses.

  • Pipeline Cleanliness Agent: Constantly evaluates the Opportunity pipeline, flags stagnant deals, and runs automated health checks.

3. Step-by-Step Implementation Strategy

Step 1: Establish the Semantic Data Foundation

Agents cannot navigate raw, unstructured Salesforce tables effectively. You must feed them harmonized data.

  • Action: Utilize Salesforce Data Cloud (Data 360) to unify and ground data streams.

  • Implementation: Sync your Salesforce transactional objects (Accounts, Contacts, Opportunities) into unified data graphs. This provides the semantic vector baseline that allows agents to quickly understand the true state of a customer relationship.

Step 2: Convert Invocable Actions into Agent "Tools"

Agents execute actions by choosing from a directory of tools. In Salesforce, these tools are built on top of your existing automations.

  • Action: Expose Apex Classes, Salesforce Flows, and MuleSoft APIs as standard agentic actions.

  • Technical Setup: Enable Allow LLM to use value on your context variables. When an agent determines it needs to update a deal stage, it passes structured JSON parameters straight to a pre-built Salesforce Flow rather than executing raw database writes.

Step 3: Configure the Orchestrator (Apex or External)

You must give the Primary Agent a mechanism to fetch and chain secondary agents. If building natively within Salesforce, this relies on a sequence of custom actions:

Java
// Conceptual native Apex action to allow the Orchestrator to route tasks
public class AgentOrchestration {
    @InvocableMethod(label='Prompt Secondary Agent' description='Delegates a sub-task to a domain specialist agent')
    public static List<String> invokeSecondaryAgent(List<AgentRequest> requests) {
        // Core logic to look up Agent API Name (e.g., Case_Creation_Agent)
        // Passes the payload, executes the sub-agent reasoning loop, and returns output to Orchestrator
        return ExecutionEngine.run(requests);
    }
}

Step 4: Deploy the Headless Interface

With the orchestration layer live, you can systematically hide the traditional Salesforce web view for specific teams.

  • Action: Connect your agents to collaboration spaces (like Slack Block Kit or custom React frontends) via the Headless Experience Layer.

  • Result: Reps and managers converse naturally with the system, and the interface dynamically updates only the necessary data points in real time.

4. Crucial Security & Operational Governance

  • Identity & Access Management (IAM Matching): Security must be mapped 1:1. The agentic framework should never use an unrestricted global integration user. Ensure the agent inherits the exact Salesforce Profile, Sharing Rules, and Field-Level Security (FLS) of the active user executing the request.

  • Deterministic Fallbacks (Agent Script): For business processes requiring absolute compliance (e.g., modifying pricing discounts or compliance approvals), bypass probabilistic LLM logic entirely. Use Agent Script or hardcoded branching logic to force strict if/then parameters on the agent's execution path.

  • Consumption Tracking: Orchestrating over commercial platforms incurs per-conversation or per-action costs. Design an observability layer to track agent-to-agent loops to prevent a rogue reasoning cycle from generating thousands of costly internal API hits.

The concept of replacing traditional, heavy SaaS applications with a "Zero UI" agentic framework is the next major architectural shift in enterprise technology. Instead of viewing software as a destination—a place where humans log in to click menus, update records, and run reports—software becomes an invisible orchestration layer.

In this future, the traditional CRUD (Create, Read, Update, Delete) Web UI collapses. Humans interact with outcomes, and a network of autonomous agents manages the business logic and database execution.

Here is the strategic blueprint for architecting and executing a UI-less, agent-native replacement for a platform like Salesforce.

1. The Architectural Paradigm Shift

To replace a SaaS application, you must tear down the traditional Model-View-Controller (MVC) stack and rebuild it around an Agentic Operating System.

ComponentLegacy SaaS (Salesforce)Agent-Native Architecture (Zero UI)
InterfaceDashboards, nested tabs, complex forms.Natural language, voice, and dynamic ephemeral widgets injected into chat (Slack/Teams).
LogicRigid, deterministic rule-builders (if X, then Y).Probabilistic reasoning loops (Goal -> Plan -> Tool Execution).
Data StructureRelational tables requiring manual human input.Continuous knowledge graphs, vector memory, and automated event streams.

The Three-Layer Agentic Stack

  1. The System of Record (The Vault): The core database (e.g., Snowflake, Postgres, or a highly customized Data Cloud). It holds raw structured and unstructured data, enforcing strict access controls and compliance without any graphical interface attached.

  2. The Agentic Operating System (The Brain): The orchestration layer where the AI resides. This layer manages agent memory, coordinates specialized micro-agents (e.g., a "Sales Negotiation Agent" or a "Billing Resolution Agent"), and calls APIs to execute tasks.

  3. The Outcome Interface (The Edge): The only layer humans touch. Instead of logging into a CRM, a sales rep speaks to their phone after a meeting or types into a Slack channel: "Log the Acme Corp meeting, update their pipeline to Stage 3, and draft the follow-up proposal with the 10% discount we discussed." The system does the rest.

2. Strategy for Execution: The Migration Roadmap

Moving from a screen-heavy SaaS to a fully agentic framework requires a phased decoupling. You cannot simply build a chatbot over a messy database.

Phase 1: Establish a Semantic Data Foundation

Agents cannot navigate fragmented, poorly labeled relational databases.

  • The Action: Move away from relying on humans to manually link records. Implement a Knowledge Graph and Vector Database architecture. All enterprise data (emails, call transcripts, billing history, contracts) must be vectorized and linked semantically.

  • The Goal: When an agent receives an ambiguous command like "Why did the Smith account churn?", it doesn't search a single table; it traverses the graph, connecting support ticket sentiment, product usage drops, and billing disputes simultaneously.

Phase 2: Decouple the UI via an API-First Service Mesh

You must sever the dependency on the visual frontend. Everything the business does must become a headless API.

  • The Action: Wrap every core business function (Create Lead, Generate Quote, Update Case) into discrete microservices.

  • The Goal: Create a "Tool Library" that your AI agents can access programmatically. If an action cannot be executed via an API call, an agent cannot do it.

Phase 3: Deploy the Multi-Agent Workforce

Do not build one massive "CRM AI." It will hallucinate and collapse under context limits. Build a hierarchical network of specialized agents.

  • The Orchestrator Agent: The primary interface for the human. It routes requests.

  • Domain Agents: Micro-agents running in the background.

    • The Inbound SDR Agent: Monitors the general inbox, qualifies leads using an LLM, and books calendar slots entirely in the background.

    • The RevOps Agent: Continuously runs SQL queries against the pipeline, identifying stalled deals and alerting human managers before end-of-quarter misses.

Phase 4: Shift to the "Outcome Interface" (Zero UI)

Deprecate the traditional web portals.

  • The Action: Push all human interaction into the flow of work. Use platforms like Slack, Microsoft Teams, or custom mobile voice interfaces as the primary interaction points.

  • The Goal: When a user asks for complex data (e.g., a pipeline forecast), the agent dynamically generates a temporary, highly targeted chart or table (an ephemeral UI), presents the data, and then the UI disappears when the task is complete.

3. The New Operational Realities & Risks

Building this vision requires solving new classes of engineering problems that didn't exist in traditional SaaS:

The Cost Curve Shift: A traditional database query (CRUD) costs fractions of a cent and takes 20 milliseconds. An agentic reasoning loop (evaluating context, writing code, executing an API) can cost 10,000x more and take 3–5 seconds. You must build an architecture that knows when to use expensive LLMs and when to route requests to cheap, standard deterministic code.

  • Agent Identity & Governance (IAM): In a Zero UI world, agents are acting on behalf of humans. You must implement strict token-level traceability. Every API call an agent makes must be logged with the exact reasoning trace that led to the decision, ensuring Sarbanes-Oxley or EU AI Act compliance.

  • State Management: Large Language Models are inherently stateless. Traditional SaaS relies on the database to track state. Your architecture will require robust Memory Context Protocols to ensure agents remember a negotiation that happened three weeks ago without having to re-read the entire database history.


Thursday, January 21, 2021

Accomplishments

 Posting after a few years and proud to report that we have released some awesome technology Products in the Financial Services space

 Following is a listing of Products that were released by my team(s) in the past 3 years:

AssetMark Launches Digital Investment Management and Planning Platform
https://www.thinkadvisor.com/2018/11/13/assetmark-launches-digital-investment-management-a/

Assetmark’s WealthBuilder is a Next Level Technology Experience for Advisors
https://wmtoday.com/2019/04/30/assetmarks-wealthbuilder-is-a-next-level-advisor-experience/

AssetMark Unveils Enhanced Client Proposal and New PortfolioReview for Financial Advisors in Virtual Age
https://finance.yahoo.com/news/assetmark-unveils-enhanced-client-proposal-130000118.html

AssetMark launches portfolio management tech for videoconferencing
https://www.investmentnews.com/assetmark-launches-client-engagement-tech-197413

Friday, June 02, 2017

Machine learning Algorithm

In the last decade, a lot of frameworks have come up that claim to solve the Artificial intelligence puzzle. In my opinion, the following six frameworks have shown great promise and will continue to make great strides in the AI worlds.
First, let us talk a little bit about the algorithms that are involved in the machine learning space. Following is a mind map to describe some of algorithms relevant to Machine learning:
In order to solve these, there is a need for a solid framework that can give us a consistent way to take inputs from different scenarios. Some of them are :
  • Microsoft Computational Network Toolkit (CNTK)
Computational Network Toolkit by Microsoft Research, is a unified deep-learning toolkit that trains deep learning algorithms to learn like the human brain. It describes neural networks as a series of computational steps via a directed graph. In this directed graph, leaf nodes represent input values or network parameters, while other nodes represent matrix operations upon their inputs. CNTK allows to easily realize and combine popular model types such as feed-forward DNNs, convolutional nets (CNNs), and recurrent networks (RNNs). It implements stochastic gradient descent (SGD, error backpropagation) learning with automatic differentiation and parallelization across multiple GPUs and servers. CNTK has been available under an open-source license since April 2015.
PROS
CNTK easily outperforms Theano, TensorFlow, Torch 7, and Caffe with its support of multi-machine-multi-GPU backends. Such a setup can be built quickly using Microsoft Azure's GPU Lab which has good support since both are Microsoft based.
  • Google Tensorflow
It's the engine behind a lot of features found in Google applications, such as, recognizing spoken words, translating from one language to another and for improving Internet search results making it a crucial component in a lot of Google applications. As such, continued support and development is ensured in the long-term, considering how important it is to the current team at Google.
PROS
  • TensorFlow can run with multiple GPUs. This makes it easy to spin up sessions and run the code on different machines without having to stop or restart the program.
  • Other than having an easy syntax, using Python also gives developers a wide range of some of the most powerful libraries for scientific calculations like NumPy, SciPy, and Pandas without having to switch languages.
Google has made a powerful suite of visualizations available for both network topology and performance. TensorFlow is written in Python, with the parts that are crucial for performance implemented in C++. But all of the high-level abstractions and development is done in Python. You can introduce and retrieve the results of discretionary data on any edge of the graph. You can also combine this with TensorBoard suite of visualization tools to get pretty and easy to understand graph visualizations, making debugging even simpler.
  • Keras
Keras is a high-level neural networks API, written in Python and capable of running on top of either TensorFlow or Theano. It was developed with a focus on enabling fast experimentation. Being able to go from idea to result with the least possible delay is key to doing good research.
Use Keras if you need a deep learning library that:
  • Allows for easy and fast prototyping (Great user friendliness, modularity, and extensibility).
  • Supports both convolutional networks and recurrent networks, as well as combinations of the two.
  • Runs seamlessly on CPU and GPU.
The advantages of using this framework
  • User friendliness. Keras is an API designed for human beings, not machines. It puts user experience at the center of the solution. Keras follows best practices for reducing cognitive load: it offers consistent & simple APIs, it minimizes the number of user actions required for common use cases, and it provides clear and actionable feedback upon user error.
  • Modularity. A model is understood as a sequence or a graph of standalone, fully-configurable modules that can be plugged together with as little restrictions as possible. In particular, neural layers, cost functions, optimizers, initialization schemes, activation functions, regularization schemes are all standalone modules that you can combine to create new models.
  • Easy extensibility. New modules are simple to add (as new classes and functions), and existing modules provide ample examples. To be able to easily create new modules allows for total expressiveness, making Keras suitable for advanced research.
  • Work with Python. No separate models configuration files in a declarative format. Models are described in Python code, which is compact, easier to debug, and allows for ease of extensibility.
Theano
  • Theano is a Python library that lets you to define, optimize, and evaluate mathematical expressions, especially ones with multi-dimensional arrays. Using Theano, it is possible to attain speeds competing with custom C implementations for problems involving large amounts of data. It can also surpass C on a CPU by many orders of magnitude by taking advantage of recent advancement in the GPU space.
Some of the things going the Theano way are:
  • tight integration with NumPy – Use numpy.ndarray in Theano-compiled functions.
  • transparent use of a GPU – Perform data-intensive computations much faster than on a CPU.
  • efficient symbolic differentiation – Theano does your derivatives for functions with one or many inputs.
  • speed and stability optimizations – Get the right answer for log(1+x) even when x is really tiny.
  • dynamic C code generation – Evaluate expressions faster.
  • extensive unit-testing and self-verification – Detect and diagnose many types of errors.
Theano has been powering large-scale computationally intensive scientific investigations since at least the last ten years.
  • Torch
Torch is a scientific computing framework with wide support for machine learning algorithms that puts GPUs first. It is easy to use and efficient, thanks to an easy and fast scripting language, LuaJIT, and an underlying C language implementation.
The goal of Torch is to have maximum flexibility and speed in building scientific algorithms while making the process extremely simple. Torch comes with a large ecosystem of community-driven packages in machine learning, computer vision, signal processing, parallel processing, image, video, audio and networking among others, and builds on top of the Lua community.
At the heart of Torch are the popular neural network and optimization libraries which are simple to use, while having maximum flexibility in implementing complex neural network topologies. You can build arbitrary graphs of neural networks, and parallelize them over CPUs and GPUs in an efficient manner.
A summary of core features:
  • A powerful N-dimensional array
  • Lots of routines for indexing, slicing and transposing
  • Excellent interface to C, via LuaJIT
  • Linear algebra routines
  • Neural network, and energy-based models
  • Numeric optimization routines
  • Fast and efficient GPU support
  • Embeddable with ports to iOS and Android backends
It is already used heavily within Facebook, Google, Twitter, NYU, IDIAP, Purdue and several other companies and research labs.
  • Infer.Net
Infer.NET is a framework for running Bayesian inference in graphical models. It can also be used for probabilistic programming.
You can use Infer.NET to solve many different kinds of machine learning problems, from standard problems like classification, recommendation or clustering through to customised solutions to domain-specific problems. Infer.NET has been used in a wide variety of domains including information retrieval, bioinformatics, epidemiology, vision, and many others.
nfer.NET provides the state-of-the-art message-passing algorithms and statistical routines needed to perform inference for a wide variety of applications. Infer.NET differs from existing inference software in a number of ways:
  • Rich modelling language
Support for univariate as well as multivariate variables, both continuous and discrete. Models can be constructed from a broad range of factors including arithmetic operations, linear algebra, range and positivity constraints, Boolean operators, Dirichlet-Discrete, Gaussian, and many others. Support for hierarchical mixtures with heterogeneous components.
  • Multiple inference algorithms
Built-in algorithms include Expectation Propagation, Belief Propagation (a special case of EP), Variational Message Passing and Gibbs sampling.
  • Designed for large scale inference
In most existing inference programs, inference is performed inside the program - the overhead of running the program slows down the inference. Instead, Infer.NET compiles models into inference source code which can be executed independently with no overhead. It can also be integrated directly into your application. In addition, the source code can be viewed, stepped through, profiled or modified as needed, using standard development tools.
  • User-extendable
Probability distributions, factors, message operations and inference algorithms can all be added by the user. Infer.NET uses a plug-in architecture which makes it open-ended and adaptable. Whilst the built-in libraries support a wide range of models and inference operations, there will always be special cases where a new factor or distribution type or algorithm is needed. In this case, custom code can be written and freely mixed with the built-in functionality, minimizing the amount of extra work that is needed.
A lot of work remains to be done to make sure that these frameworks continue to evolve with rapid challenges in this space but looking at the current set of GitHub projects, it is clear that most of them have shown promise in addressing the different types of algorithms are listed.