This n8n workflow streamlines the process of handling safety incident reports by capturing, analyzing, and recording incident data automatically. It starts with a webhook trigger to receive incident details, which are then split into manageable segments using a text splitter. The workflow leverages language models to generate embeddings for semantic search and stores these vectors in a Redis database for fast retrieval.
When a new incident report is received, the system creates a vector representation and inserts it into a Redis vector store. It can also query existing records to find related incidents based on similarity, helping with incident analysis and prevention. The workflow uses LangChain components for embedding, question-answering, and memory management, ensuring contextual understanding and efficient data handling. Finally, all incident details and related insights are logged into a Google Sheets document for record-keeping.
This automation network is useful for safety teams in organizations aiming to proactively manage incident reports, perform quick searches for similar past incidents, and maintain comprehensive logs for future reference.
