AI Workflows
Artificial Intelligence tools and workflows
Dynamically Switch Between LLMs for AI Agents Using LangChain Code
# Dynamically switch between LLMs for AI Agents using LangChain Code ## Purpose This example workflow demonstrates a way to connect multiple LLMs to a single AI Agent/LangChain Node and programmatically use one - or in this case loop through them. ## What it does This AI workflow takes in customer complaints and generates a response that is being validated before returned. If the answer was not satisfactory, the response will be generated again with a more capable model. ## How it works - A LangChain Code Node allows multiple LLMs to be connected to a single Basic LLM Chain. On every call, only one LLM is actually being connected to the Basic LLM Chain, which is determined by the index defined in a previous Node. - The AI output is later validated by a Sentiment Analysis Node. - If the result was not satisfactory, it loops back to the beginning and executes the same query with the next available LLM. - The loop ends either when the result passed the requirements or when all LLMs have been used. ## Setup - Clone the workflow and select the belonging credentials. You'll need an OpenAI Account, alternatively, you can swap the LLM nodes with ones from a different provider like Anthropic after the import. ## How to use **Beware that the order of the used LLMs is determined by the order they have been added to the workflow, not by the position on the canvas.** After cloning this workflow into your environment, open the chat and send this example message: > I really **love** waiting two weeks just to get a keyboard that doesn't even work. Great job. Any chance I could actually use the thing I paid for sometime this month? Most likely you will see that the first validation fails, causing it to loop back to the generation node and try again with the next available LLM. **Since AI responses are unpredictable, the results and number of tries will differ for each run.** ## Disclaimer Please note that this workflow can only run on self-hosted n8n instances, since it requires the LangChain Code Node.
n8n$14.99Automate Cinematic Video Creation from Chat Prompts with GPT-5 and Google Veo-3
This workflow uses n8n to transform simple chat prompts into cinematic videos by leveraging GPT-5 for prompt expansion and Google Veo-3 for image-to-video conversion. Ideal for creative prototyping and AI-driven content creation.
n8n$14.99Convert Natural Language to Google Sheets SQL Queries Using OpenAI
This n8n workflow transforms natural language questions into SQL queries for Google Sheets using OpenAI's models, enabling efficient data retrieval and real-time analysis.
n8n$9.99Generate AI Assistant for Notion Databases
This n8n workflow creates a custom AI chat assistant tailored to the schema of any Notion database. By providing a Notion database URL, the workflow generates an AI assistant capable of querying and interacting with the database structure.
n8n$14.99Generate 3D Food Emoji Icons with OpenAI and Save to Google Drive
This workflow creates high-quality, 3D-rendered food emoji icons from text prompts using OpenAI's GPT models and saves them to Google Drive.
n8n$9.99Create a Local AI Agent for Weather and Wikipedia Summaries
This workflow uses n8n and Ollama's local LLMs to build an AI agent that provides current weather updates and Wikipedia summaries, ensuring privacy by processing data locally.
n8n$9.99Deploy a Custom AI Chatbot with Supabase and Postgres Memory
Create a versatile AI chatbot that leverages Supabase for knowledge storage and Postgres for conversation memory, suitable for various platforms like websites and Slack.
n8n$4.99Create a Multi-Modal AI Assistant for Telegram with Voice and Image Generation
This workflow builds a versatile AI assistant named Simran that interacts with users on Telegram. It processes text and voice messages, understands user intent, and performs tasks like image generation, setting reminders, and storing information.
n8n$24.99Generate Random Strings from Predefined Characters
Create random strings of specified length using characters from a predefined set, ideal for generating unique identifiers or passwords.
Make$4.99Process Documents with Recursive Chunking Using Google Drive, OpenAI & Gemini RAG
**1. Document Ingestion & Processing** Google Drive trigger monitors for new files → Loop Over Items processes each file → File Info extracts metadata → Google Drive downloads the actual content → Switch routes to appropriate extractors (PDF or EX) based on file type **2. Content Transformation & Chunking** Document Data node processes extracted text → Recursive Splitter breaks content into contextual chunks → Chunk Splitting applies intelligent segmentation while preserving document context and relationships between chunks **3. Embedding & Storage** Basic LLM Chain processes chunks → OpenAI Chat Model generates contextual understanding → Summarize creates document summaries → Supabase Vector Store saves embeddings with metadata → Embeddings OpenAI creates vector representations → Default Data Loader handles storage operations **4. Query Processing & Retrieval** When Clicking Execute triggers user queries → OpenAI processes and understands the question → AI Agent orchestrates hybrid search (combining vector similarity + keyword matching) → Google Gemini Chat Model generates final responses using retrieved context → HP Request handles additional external data sources
n8n$14.99Interact with PDF Documents Using AI and Source Citations
This workflow enables users to query PDF documents using AI, providing answers with source citations. It integrates with Google Drive, Pinecone, and OpenAI for document retrieval, vector storage, and AI processing.
n8n$14.99Automate Text-to-Video and Image-to-Video Creation with Seedance 1 Lite AI
This n8n workflow leverages the Replicate API to automate the creation of videos from text or images using the Bytedance Seedance 1 Lite model. Generate high-quality videos with ease and efficiency.
n8n$9.99Effortlessly Create AI Videos from Google Sheets with Fal.AI
Transform your ideas into AI-generated videos directly from Google Sheets using Fal.AI, offering a cost-effective alternative to Veo3.
n8n$9.99Automate Gmail Email Categorization and Labeling with GPT-4o Mini
Effortlessly organize your existing Gmail inbox by categorizing and labeling emails using AI. This workflow processes unlabeled emails and applies appropriate labels based on content analysis.
n8n$14.99Automate Comprehensive Research Report Generation and Delivery
Streamline the creation of professional research reports using AI and multiple data sources, with automated delivery via Gmail or Telegram.
n8n$14.99Automated Context-Aware Query Answering with Google Gemini and Qdrant
This workflow automates the classification and retrieval of user queries to provide precise and contextually relevant answers. It leverages Google Gemini and Qdrant to adaptively handle factual, analytical, opinion, and contextual queries.
n8n$24.99Automate Stock Earnings Report Analysis with AI and Google Tools
This n8n workflow automates the analysis of company quarterly earnings reports using AI tools like OpenAI and Google's Gemini AI, alongside Pinecone's vector search. It processes PDFs from Google Drive, analyzes them, and compiles findings into a structured Google Doc.
n8n$14.99Create an AI Chatbot with Document-Based RAG and Cohere Reranking
Develop an intelligent AI chatbot that uses Retrieval-Augmented Generation and Cohere's reranking to provide accurate responses based on your documents.
n8n$14.99Create a Multi-Functional Discord Bot with AI and Image Generation
This workflow sets up a Discord bot capable of monitoring messages, processing media, and generating AI-driven responses and images. It integrates Llama AI for text analysis, Groq for image and audio processing, and Gemini AI for image creation.
n8n$24.99Automate Agile Retrospective Reports from Jira Epics Using AI and Google Docs
Streamline the creation of Lessons Learned reports by automating the process when a Jira Epic is marked as Done. This workflow uses AI to generate insightful reports and delivers them directly to Google Docs.
n8n$9.99Automate Voice and Text AI Interactions via Telegram with Deepgram and OpenAI
Enable seamless voice and text interactions through Telegram using Deepgram for transcription and OpenAI for intelligent responses. Ideal for businesses seeking to enhance customer support with AI-driven voice and text capabilities.
n8n$14.99Automate Web Scraping and Screenshots with Firecrawl and GPT 4.1
Leverage AI to transform natural language prompts into web scraping queries and capture full-page screenshots using Firecrawl's API, all without writing code.
n8n$9.99Automate AI System Prompt Creation with Unli.dev and n8n
Streamline the creation of consistent AI system prompts using Unli.dev and n8n, ensuring uniform AI behavior across applications.
n8n$4.99Advanced AI Personal Assistant for WhatsApp with GPT-4 and Supabase Integration
Leverage this workflow to create a sophisticated AI personal assistant for WhatsApp, utilizing GPT-4, RAG, and voice capabilities through Supabase. Enhance user interaction by understanding and responding to messages across multiple formats and platforms.
n8n$24.99
Related categories
Custom AI Systems & Services
Our team of experienced AI builders will help build custom AI systems, workflows, and solutions.
Request Custom Work