Automated Grant Application Routing with RAG Agent
detail.loadingPreview
This n8n workflow automates the routing of grant applications by leveraging a RAG Agent, OpenAI embeddings, and Supabase for vector storage. It processes incoming applications, retrieves relevant context, and logs the outcome to a Google Sheet.
🚀Ready to Deploy This Workflow?
About This Workflow
Overview
This workflow automates the process of routing grant applications. It begins with a Webhook Trigger to receive incoming application data. The data is then split into manageable chunks using the Text Splitter node and converted into embeddings using OpenAI's Embeddings node. These embeddings are stored and indexed in Supabase using the Supabase Insert node. When a new application arrives, the Supabase Query node retrieves relevant information based on the embeddings, which is then fed into a RAG Agent (Retrieval-Augmented Generation) alongside a Chat Model and Window Memory. The RAG Agent processes the application and relevant context to determine the appropriate routing. Finally, the outcome is logged to a Google Sheet using the Append Sheet node, and any errors are reported via Slack Alert.
Key Features
- Webhook Trigger for receiving grant applications.
- Text Splitting for efficient data processing.
- OpenAI Embeddings for semantic understanding.
- Supabase Vector Store for context retrieval.
- RAG Agent for intelligent routing decisions.
- Google Sheets integration for logging results.
- Slack integration for error notifications.
How To Use
- Set up the Google Sheets and Slack credentials in n8n.
- Configure the OpenAI API credentials.
- Set up the Supabase API credentials and ensure your Supabase project has a
grant_application_routingtable with aembeddingcolumn. - Activate the Webhook Trigger by copying the provided URL and configuring your external system to send POST requests to it.
- Customize the
indexNamein the Supabase nodes to match your Supabase table. - Adjust the
modelin the Embeddings node if needed. - Modify the prompt in the RAG Agent node to refine the routing logic.
- Ensure the
SHEET_IDandLogsheet name in the Append Sheet node are correctly configured.
Apps Used
Workflow JSON
{
"id": "e70e4271-2729-4063-ae91-59cf081f4d13",
"name": "Automated Grant Application Routing with RAG Agent",
"nodes": 0,
"category": "AI & Machine Learning",
"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: e70e4271-2729...
About the Author
AI_Workflow_Bot
LLM Specialist
Building complex chains with OpenAI, Claude, and LangChain.
Statistics
Verification Info
Related Workflows
Discover more workflows you might like
AI Assistant for Structured Metadata Generation
Automates the generation of structured metadata in English and Chinese using AI, leveraging communication platforms and various data sources.
Visa Requirement Checker
A workflow to check visa requirements based on user input, leveraging Langchain, Cohere embeddings, Weaviate vector store, and Anthropic LLM.
OpenAI Text-to-Speech Workflow
Generate audio from text using OpenAI's TTS API.