Why construct issues the exhausting means when you possibly can design them the good means?
As a Provide Chain Information Scientist, I’ve explored varied frameworks like LangChain and LangGraph to construct AI brokers utilizing Python.
The illustration above is from an article I wrote on the finish of 2023, titled “Leveraging LLMs with LangChain for Provide Chain Analytics — A Management Tower Powered by GPT.”
On the time, I used to be exploring easy methods to use LangChain to construct an agent performing as a Provide Chain Management Tower.
A yr later, I found the ability of the low-code platform n8n to construct the identical type of answer in just some clicks.

On this article, we’ll discover easy methods to simply construct AI brokers to automate provide chain analytics workflows utilizing n8n.

We’ll additionally see easy methods to deploy the identical AI-powered Management Tower agent I initially constructed with LangChain 18 months in the past — now utilizing solely low-code.
AI Agent for Provide Chain Management Towers utilizing LangChain
My first venture of AI Automation venture utilizing n8n was for a buyer who needed a Provide Chain Management Tower outfitted with a chat interface.
A Provide Chain Management Tower is a set of dashboards and stories related to Warehouse and Transport Administration Programs that use information to watch essential occasions throughout the provision chain.

In an earlier article published on Towards Data Science, I experimented with LangChain to attach a management tower to an AI agent.

The concept was to construct a plan-and-execute agent that will
- Course of the person’s request written in plain English
- Generate the suitable SQL question
- Question the database and retailer the outcomes
- Formulate a transparent response in plain English
After a number of iterations, I discovered the fitting chain construction and prompts to ship correct outcomes.

The answer labored nicely as a result of I had already gained expertise utilizing LangChain and different frameworks to construct AI brokers.
How are we supposed to keep up this advanced setup?
Nonetheless, to supply this as a service, I wanted instruments that will make the answer simpler to deploy, preserve, and enhance — even with restricted Python data.
That’s once I found n8n.
Let’s dive into that within the subsequent part.
AI Agent for Provide Chain Management Towers — Constructed with n8n
What’s n8n?
n8n is an open-source workflow automation instrument that permits you to simply join apps (electronic mail, CRMs, messaging programs), APIs, and AI mannequin frameworks like LangChain.
You construct workflows by connecting pre-built nodes.

As an example, the workflow above processes emails
- The primary node collects emails from a Gmail account.
- The e-mail content material and metadata are despatched to the AI Agent node, which extracts the related data.
- The third node processes the output utilizing JavaScript.
- The ultimate node hundreds the outcomes right into a Google Sheet.
No code was wanted to construct this workflow — apart from the third node, which makes use of simply two strains of JavaScript.
Since I work with a crew of Provide Chain consultants who’ve restricted Python abilities, this was a game-changer for me as I appeared to develop my service providing.
They’ll simply use, adapt, and preserve this workflow after a brief coaching session on n8n.
AI Provide Chain Management Tower n8n workflow
The AI Provide Chain Management Tower workflow is a little more advanced — however nonetheless far easier than its Python model.
It contains two sub-workflows.

The primary sub-workflow contains each a chat interface and the AI agent.
For the AI Agent node, it is advisable to
- Join an LLM (chat mannequin) utilizing a node the place you enter your API credentials
- Add a reminiscence node to handle the dialog
- Add a instrument node for SQL querying, linked to the second sub-workflow
The AI agent generates an SQL question and sends it to the “Name Question Instrument” node, which executes the question.

The sub-workflow features a code node that cleans the question (eradicating further areas and blocking dangerous instructions like DELETE).
The output is shipped to a BigQuery node, which runs the question and returns the outcomes.
The method may be very clean and requires restricted configuration:
- System Immediate (within the AI Agent node)
- Person Immediate (within the AI Agent Node)

This setup requires no Python abilities and could be dealt with instantly by my consultants.

The outcomes are similar to these of the Python model.
For step-by-step setup directions, try my YouTube tutorial 👇
Conclusion
This instance reveals how straightforward it’s to duplicate an AI agent constructed with Python — utilizing n8n and minimal code.
Does that imply Python is not wanted for Provide Chain Analytics? Positively not!
Like many low-code platforms, the options are restricted to what’s obtainable inside the framework.
That’s why I exploit it as a complement to my analytics merchandise.

To do this, you should utilize the HTTP Request node to attach your workflow to your analytics backend.
What else? Simple connectivity to many providers.
One more reason I selected n8n to counterpoint my analytics merchandise is how straightforward it’s so as to add further connections.
For instance, if you wish to add a Slack interface or log conversations to a Google Sheet, simply add a brand new node to your workflow.
When you’re beginning your n8n journey and wish inspiration, feel free to explore my templates.
About Me
Let’s join on Linkedin and Twitter; I’m a Provide Chain Engineer utilizing information analytics to enhance Logistics operations and scale back prices.
For consulting or recommendation on analytics and sustainable Supply Chain transformation, be happy to contact me by way of Logigreen Consulting.
Samir Saci | Data Science & Productivity
A technical blog focusing on Data Science, Personal Productivity, Automation, Operations Research and Sustainable…samirsaci.com