I built several AI Agents to automate a Business Process for a client. An AI Agent is an autonomous self-contained object that contains complex logic (loops and branches) and several prompt/response cycles using an LLM.
I built this using LangChain about a year ago and it involved a lot of reasonably advanced Python coding to make it work. This was not ideal for my client, who had no programming skills - they used a no-code platform for their automations.
As I built a few more agents, I began to see the patterns involved and had a bit of a thought... could I build these agents inside the same no-code tool that the client was using?
It turns out that I could indeed build autonomous AI Agents using the same no-code tool. In fact, this technique will work for several popular no-code platforms, like: Notion, Google-sheets, Excel, Coda, Airtable, Appsheet, Bubble, and any other no-code tool that supports an interface to an LLM.
I built each agent as a separate TABLE, where each instance of a running agent was a row in that table. So to fire-up a new agent, you added a new row to that table. When the agent was finished running, it deleted itself from the table.
There was an INPUT column, which you set when you created the new row, and a START action (button) that you triggered to run the agent.
The START action contained the formula to define the internal logic for the agent. It triggered the necessary prompt/response LLM refreshes and then evaluated the results. When it was finished, it could store or update data in the applications tables, and decide which agent should be triggered next based on the results.
Each LLM prompt/response column in the agent table had several formulas to marshal the prompt and result. One formula built up the prompt, including data values from the application's tables. Once the LLM generated its response, another formula parsed the result, and stored or updated the data in the applications tables.
The big advantage of this approach is that the client can understand the whole process and maintain and change it in the future.