Supply Chain Delay Monitor
detail.loadingPreview
Automated monitoring and logging of supply chain delays using a webhook, text processing, embeddings, and a vector store.
About This Workflow
This workflow monitors supply chain delays by receiving data via a webhook. It then processes and embeds this information into a Supabase vector store for efficient querying. An AI agent, powered by OpenAI and a buffer memory, uses this vector store as a tool to understand and potentially respond to delay notifications. Finally, all relevant information is logged to a Google Sheet.
Key Features
- Webhook Integration: Trigger the workflow with incoming data via a custom webhook.
- Text Processing: Splits incoming text into manageable chunks with configurable overlap.
- AI Embeddings: Generates embeddings for text data using Cohere.
- Vector Store Persistence: Stores embeddings and associated data in a Supabase vector database.
- AI Agent: Leverages an OpenAI language model with buffer memory to process queries and utilize tools.
- Vector Store Tool: Provides the AI agent with the ability to query the Supabase vector store.
- Data Logging: Appends processed information and logs to a Google Sheet for historical tracking.
How To Use
- Webhook Trigger: Configure the
Webhooknode with your desired HTTP method and path (supply_chain_delay_monitor). This is the entry point for your delay data. - Text Splitting: The
Splitternode will break down incoming text data into smaller chunks. AdjustchunkSizeandchunkOverlapas needed. - Embeddings Generation: The
Embeddingsnode (using Cohere) will create vector representations of the text chunks. - Data Storage: The
Insertnode will store these embeddings in your Supabase vector database (supply_chain_delay_monitorindex). - Data Retrieval & Querying: The
Querynode retrieves data from the Supabase vector store. - AI Agent Setup: The
Toolnode exposes the Supabase vector store as a tool for theAgent. - Memory Management: The
Memorynode provides conversational context to the AI agent. - Language Model: The
Chatnode (using OpenAI) powers the AI agent's reasoning and response generation. - Agent Orchestration: The
Agentnode orchestrates the interaction between the AI model, tools, and memory. ThepromptTypeis set todefine, and the input$jsonwill be used. - Logging: The
Sheetnode appends the output of the agent to a specified Google Sheet (SHEET_ID,Logsheet).
Apps Used
Workflow JSON
{
"id": "e027c57a-7cd3-4010-b00e-b8291b8ca248",
"name": "Supply Chain Delay Monitor",
"nodes": 8,
"category": "Automation",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: e027c57a-7cd3...
About the Author
N8N_Community_Pick
Curator
Hand-picked high quality workflows from the global community.
Statistics
Related Workflows
Discover more workflows you might like
Inventory Slack Alert Workflow
Triggers an alert based on inventory changes, processes data using RAG, and logs results.
Generate Workflow for Notion Database
Automates the creation of an n8n workflow to interact with a specific Notion database, based on a provided URL.
Automated Google Drive Backup for n8n Workflows
Automatically back up n8n workflows to Google Drive on a schedule.