Salesforce has long championed its no-code/low-code platform, promising a streamlined way to build business applications. Through configuration tools, admins could create data models, processes, and user experiences without extensive coding. However, limitations remained, particularly for modern UI design and complex workflows. Traditionally, overcoming these hurdles required Apex coding and custom Lightning Web Components (LWCs), skills often beyond the average Salesforce admin.
With the recent surge in AI, particularly in areas like LLMs (Large Language Models), generative AI, and AI agents, we must reconsider the value proposition of Salesforce Flows. Are they still as innovative and essential as initially intended?
Illustration using Income Tax Calculation
Let's examine a practical example: calculating income tax based on taxable income.
Apex Code:
public class TaxCalculator {
// Tax brackets and rates for single filers (2023)
private static List<Decimal> BRACKETS = new List<Decimal>{0, 11000, 44725, 95375, 182100, 231250, 578125};
private static List<Decimal> RATES = new List<Decimal>{0.10, 0.12, 0.22, 0.24, 0.32, 0.35, 0.37};
public static Decimal calculateIncomeTax(Decimal taxableIncome) {
Decimal tax = 0;
Integer bracketIndex = 0;
// Iterate through brackets, calculating tax for each portion
while (taxableIncome > 0 && bracketIndex < BRACKETS.size()) {
Decimal bracketTop = BRACKETS[bracketIndex + 1];
Decimal bracketBottom = BRACKETS[bracketIndex];
Decimal rate = RATES[bracketIndex];
if (taxableIncome >= bracketTop) {
tax += (bracketTop - bracketBottom) * rate;
taxableIncome -= (bracketTop - bracketBottom);
} else {
tax += taxableIncome * rate;
taxableIncome = 0;
}
bracketIndex++;
}
return tax.setScale(2); // Round to 2 decimal places for currency
}
}
Salesforce Flow:
While the Apex code may initially appear complex, even non-programmers can gain understanding by leveraging tools like ChatGPT or Gemini. By simply pasting the code into these AI-powered tools, users can receive plain-English explanations, such as:
"The primary goal of this Apex class (TaxCalculator) is to calculate the income tax owed by a single filer in the United States based on their taxable income. It uses the tax brackets and rates defined for the year 2023."
This demonstrates how AI can bridge the gap between technical code and everyday understanding, potentially leveling the playing field for those without programming expertise. Experienced developers might also raise concerns about the time and complexity of building Flows compared to writing code. Additionally, traditional software development lifecycle (SDLC) practices like unit testing, debugging, and version control are not always as seamless in Flows. Salesforce has made strides in addressing these concerns, but gaps remain.
Generative AI: A Disruptive Force
The incremental improvements offered by Flows feel less impactful compared to the disruptive potential of generative AI. Consider how an AI tool like BPMN-GPT can auto-generate complex business process models, minimizing the need for manual Flow orchestration. Similarly, AI-powered UI builders can create responsive interfaces across devices, potentially outshining the capabilities of Screen Flows.
Beyond Processes and UI: A Broader Perspective
While my examples focus on logic and UI, Flows also play a role in other areas. However, we're seeing AI encroach here as well. For instance, AI-driven chatbots can handle customer interactions that previously required intricate Flow logic.
The Challenge for Salesforce
It is possible for Salesforce to invest in:
The question is: Are investments in "Deeper AI integration" and "Enhanced Developer Experience," as outlined above, sufficient for Salesforce to maintain the relevance and value proposition of Flows in the face of rapid AI advancements? While these improvements are undoubtedly crucial, Salesforce needs to consider if they are enough to differentiate Flows from increasingly powerful AI tools that can automate processes, design UIs, and even handle complex logic.
To truly stay competitive, Salesforce might need to think more broadly:
What are your thoughts? Is Salesforce rising to the challenge, or is it falling behind in the face of rapid AI advancements?