A work in progress flow (working on improving the package recommendation model)
🧠 AI-Powered Package Recommendation System – Workflow Documentation
1. Package Recommendation via Email (Customer Request Handling)
This workflow handles incoming customer requests for travel packages via email, classifies the content, retrieves relevant packages using RAG (Retrieval-Augmented Generation), and sends a personalized response.
📌 Workflow Steps:
- Email Trigger (IMAP)Watches for incoming emails in a specified mailbox.
- Text ClassifierClassifies the email into one of several categories, such as:
- Code NodeParses and prepares the request details (e.g., destination, duration, pax) from the email body for the AI Agent.
- AI AgentOrchestrates the conversation using:
- Vector Retrieval via PineconeSearches the Pinecone Vector Store using vector similarity based on the customer's email request.
- Send EmailSends a personalized travel package recommendation email back to the customer.
2. Package Data Ingestion from Google Drive (RAG Preprocessing Flow)
This workflow automates loading package content from PDFs, processing the text, and storing the information as embeddings in Pinecone for retrieval.
📌 Workflow Steps:
- Manual Trigger (Test Button)Used to manually initiate the data ingestion pipeline.
- Google Drive – File DownloadDownloads a batch of PDF files from a designated Google Drive folder containing travel package details.
- Loop Over ItemsIterates through each file to extract and process the contents.
- Default Data LoaderExtracts raw text from each PDF document.
- Recursive Character Text SplitterSplits long package content into manageable chunks to ensure compatibility with embedding limits.
- OpenAI EmbeddingsConverts each text chunk into vector embeddings.
- Pinecone Vector StoreStores the embeddings under a unified namespace for later retrieval during customer queries.
✅ Summary
These two workflows together create a fully automated AI Travel Package Recommendation Engine:
- 📨 Incoming customer requests are handled in real-time and matched with the most relevant travel packages using RAG over Pinecone.
- 📥 Travel agents can simply upload or update package PDFs in Google Drive to keep the system up to date with the latest offerings.