This n8n workflow automates the monitoring of cron job executions, processing their outputs with AI and vector databases, and alerting teams via Slack in case of errors.
The workflow begins with a Webhook Trigger that listens for cron job success notifications. It then splits the incoming text data into manageable chunks using a Text Splitter, allowing for detailed processing.
These chunks are embedded into vector representations with OpenAI’s embedding model, which are stored in a Weaviate vector database for efficient retrieval. The workflow also performs a query against the stored vectors to retrieve relevant information.
A Langchain-based RAG (Retrieval-Augmented Generation) agent utilizes the retrieved data, along with a chat model from Anthropic, to analyze and generate insights or summaries about the cron job execution.
The analysis results are logged into a Google Sheets document for record-keeping. If an error occurs during processing, a custom Slack alert is sent to notify the team immediately, ensuring prompt response.
This setup is ideal for teams managing automated processes or cron jobs, providing real-time insights and proactive alerting to maintain system health and performance.
Reviews
There are no reviews yet.