Analyze global supply chain sustainability and risk with GPT-4o and email alerts
Ready for 3.0What this workflow does
This AI workflow has 25 nodes and runs on a schedule (every day at 06:00). Along the way it connects OpenAI Chat Model and HTTP Request.
How it runs
Trigger: On a schedule (every day at 06:00).
- Workflow Configuration (Edit Fields (Set)): sets 6 fields: supplyChainApiUrl, storageApiUrl, alertEmailRecipients…
- Fetch Supply Chain Data (HTTP Request): calls an HTTP API
- Emissions Calculator Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 2 tools (Industry Benchmark API Tool, Carbon Footprint Calculator Tool); output parser: Emissions Output Parser
- Circular Economy Evaluator Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Circular Economy Output Parser
- Logistics Optimizer Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Logistics Output Parser
- Merge Agent Results (Edit Fields (Set)): sets 4 fields: emissions_data, circular_economy_data, logistics_data…
- Supply Chain Sustainability Analyzer (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser
- Route by Risk Level (Switch): routes items into 3 branches
- Format Critical Risk Alert (Edit Fields (Set)): sets 3 fields: alert_type, subject, message_body
- Format High Risk Alert (Edit Fields (Set)): sets 3 fields: alert_type, subject, message_body
…plus 4 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (10)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Switch
n8n-nodes-base.switch - Send Email
n8n-nodes-base.emailSend - Code Tool
@n8n/n8n-nodes-langchain.toolCode - Http Request Tool
n8n-nodes-base.httpRequestTool
From the author
How It Works This workflow automates supply chain monitoring and risk management by deploying multiple specialized AI agents to analyze different supply chain dimensions simultaneously. Designed for supply chain managers, procurement teams, and logistics…