Skip to main content

Workflow Automation: Letting AI Write Workflow Code

Workflow automation is one those perennial technology efficiency promises that has never quite delivered but never goes away. 

The appeal of the idea is obvious, being able to easily direct computers to perform process tasks without deep technical expertise is the holy grail of the promise of computers. The excitement around AI agents is the latest incarnation of this promise.

Workflow automation can be implemented in many forms, the most common is some sort of visual composition approach. Drag-n-drop workflow builders for instance are quite common.

The fundamental problem that workflow automation has faced is that it attempts to allow non-programmers to...well, program. This is a fundamental contradiction that always reveals itself once one tries to use these products to do anything beyond the demo reel.

More recent takes on the idea have taken on the problem with a hybrid approach, ie code when you need it and UI when you don't,...this is the literal tagline that the popular workflow automation product n8n uses. We believe this hues closer to the right approach for delivering on the promise of workflow automation; of course it means that the old promise of not needing to know how to code will have to be tabled.  

In addition to the hybrid approach, there is now technology that may finally deliver on the promise of workflow automation and that is AI CodeGen.  The myriad capabilities of GenAI can be leveraged to address a lot of the short comings of conventional workflow automation.  

GenAI's primary capability is the ability to take fuzzy input as free-form information (text,audio,image) and make sense of it. This is essentially what workflow automation products have attempted to do with all those visual mnemonics intended to be substitutes for writing code.

For existing products, GenAI can help with filling in the gaps between visual artifacts and what a user actually needs, solutions that combine code and non-code elements will do well with GenAI essentially filling in the blank for the code part of workflows.

For greenfield products, we think doing away with the usual drag-n-drop or configuration based approach is best. In other words just let GenAI write the workflow code using the tools you make available to the code writing agent. 

This is the approach we've taken with our workflow automation capability, nothing to drag-n-drop. The downside is that if you need to do manual changes, you have to alter the AI generated code. 

We are leveraging CodeGen tool use, which is just telling the AI about the required tool API and having it use that to wrap logic based on user requirements. In this context, tools are the usual integrations that form the building blocks of conventional workflow solutions.

A demo of AI writing workflow code:


 

 

 

Comments

Popular posts from this blog

AI Agents: Human Synthesis vs Human Substitutes

Human synthesis vs human substitute , this appears to be the two core perspectives for accessing AI when it comes to agentic execution.  From a human synthesis perspective, you observe that for the first time we have broad computational access to what were previously uniquely human capabilities. At the moment this can be enumerated as the ability to speak , see , hear and understand information . When hominoid robotics are mature enough, we can add the ability to use limbs to this synthesis. Prior to the emergence of LLMs, if you had a process that required any one of these capabilities, you needed to plug a human into the loop. It didn't matter whether the human had any particular expertise or not, if you needed to know what's in a picture or what someone said, you needed a person integrated into your process.  LLM/AI have changed this, we now have computational access to what I would describe as human synthesis . This is different from human substitute , which is what ...

The feds need to shutdown the bitcoin scam now.

I live in Baltimore, let's say I have some hypothetical friends who are always looking for a good hustle. Now imagine if my friends got together for a new get-rich-quick-scheme, the scheme is very simple. They invent something called cracken (bitcoins) that they start selling on a few blocks in Hamsterdam . The way you get crackens is to do laps around the blocks in Hamsterdam . Initially when the scheme was setup, you could get a whole lot of crackens by merely doing a few strolls around the block. Needless to say my friends made out like bandits, since, after all they created the scheme and could take advantage of the first-come-first-serve rules. Unfortunately for the rest of the hood, the number of laps required to get the same number of crackens keeps going up and after a while even the fittest folks in the neighborhood cannot do the lapse required to earn crackens. Cracken mania takes hold and infects the whole city. Those with crackens start trading these crackens f...