Back to Catalog

Dynamic website assistant with DeepSeek AI, Pinecone Vectorstore & site-based routing

moosamoosa
644 views
2/3/2026
Official Page

This workflow contains community nodes that are only compatible with the self-hosted version of n8n.

🚀 Overview

This workflow enables a powerful AI-driven virtual assistant that dynamically responds to website queries using webhook input, Pinecone vector search, and OpenAI agents — all smartly routed based on the source website.

🔧 How It Works

  1. Webhook Trigger
    The workflow starts with a Webhook node that receives query parameters:

    • query: The user's question
    • userId: Unique user identifier
    • site: Website identifier (e.g., test_site)
    • page: Page identifier (e.g., homepage, pricing)
  2. Smart Routing
    A Switch node directs the request to the correct AI agent based on the site value. Each AI agent uses:

    • OpenAI GPT-4/3.5 model
    • Pinecone vector store for context-aware answers
    • SQL-based memory for consistent multi-turn conversation
  3. Contextual AI Agent
    Each agent is customized per website using:

    • Site-specific Pinecone namespaces
    • Predefined system prompts to stay in scope
    • Webhook context including page, site, and userId
  4. Final Response
    The response is sent back to the originating website using the Respond to Webhook node.

🧠 Use Case

Ideal for multi-site platforms that want to serve tailored AI chat experiences per domain or page — whether it’s support, content discovery, or interactive agents.

✅ Highlights

  • 🧠 Vector search using Pinecone for contextual responses
  • 🔀 Website-aware logic with Switch node routing
  • 🔐 No hardcoded API keys
  • 🧩 Modular agents for scalable multi-site support

n8n Dynamic Website Assistant with DeepSeek AI & Pinecone Vectorstore

This n8n workflow creates a dynamic website assistant that leverages DeepSeek AI, Pinecone for vector storage, and PostgreSQL for chat memory. It's designed to provide intelligent, context-aware responses based on website content, with site-based routing for handling different website contexts.

What it does

This workflow automates the following steps:

  1. Receives Webhook Request: It starts by listening for incoming HTTP requests, acting as the entry point for user queries.
  2. Routes Requests Based on Site: A Switch node inspects the incoming request (presumably for a site parameter) to route the request to the appropriate AI processing path.
  3. Initializes AI Agent: For each site, an AI Agent is initialized, configured with specific tools and models.
  4. Configures DeepSeek AI Chat Model: The AI Agent utilizes the OpenRouter Chat Model to access DeepSeek AI for generating responses.
  5. Sets up Cohere Embeddings: Embeddings Cohere is used to create vector embeddings of the input and potentially retrieved documents, enabling semantic search.
  6. Connects to Pinecone Vector Store: The workflow integrates with a Pinecone Vector Store to retrieve relevant documents or context based on the user's query, ensuring responses are informed by specific website content.
  7. Manages Chat History with PostgreSQL: Postgres Chat Memory is employed to maintain conversational context, allowing the AI to remember previous interactions within a session.
  8. Responds to Webhook: After processing the query and generating a response, the workflow sends the AI's answer back to the original webhook caller.
  9. Provides Documentation/Notes: Sticky notes are included in the workflow for documentation and to explain specific parts of the setup, such as "DeepSeek AI" and "Pinecone Vector Store".

Prerequisites/Requirements

To use this workflow, you will need:

  • n8n Instance: A running instance of n8n.
  • Webhook Endpoint: An external system or application to send HTTP requests to the n8n webhook.
  • DeepSeek AI (via OpenRouter): An OpenRouter API key configured to access DeepSeek AI models.
  • Cohere API Key: Credentials for Cohere Embeddings.
  • Pinecone Account: An active Pinecone account with a configured index for vector storage.
  • PostgreSQL Database: Access to a PostgreSQL database for storing chat memory.
  • Langchain Nodes: Ensure the @n8n/n8n-nodes-langchain package is installed in your n8n instance.

Setup/Usage

  1. Import the Workflow: Import the provided JSON into your n8n instance.
  2. Configure Credentials:
    • Set up your OpenRouter credentials (for DeepSeek AI) in the OpenRouter Chat Model node.
    • Configure your Cohere credentials in the Embeddings Cohere node.
    • Provide your Pinecone API key and environment details in the Pinecone Vector Store node.
    • Set up your PostgreSQL database connection details in the Postgres Chat Memory node.
  3. Activate the Webhook: Activate the Webhook trigger node to get its unique URL.
  4. Send Requests: Send HTTP POST requests to the webhook URL with your user queries and a site parameter to route the request. The workflow expects the input to be structured in a way that the Switch node can interpret for routing.
  5. Customize AI Agent: Adjust the AI Agent node's configuration (e.g., tools, prompt templates) to fit your specific website content and desired assistant behavior.
  6. Populate Pinecone: Ensure your Pinecone index is populated with relevant website content, embedded using Cohere, to allow the AI to retrieve accurate information.

Related Templates

Auto-create TikTok videos with VEED.io AI avatars, ElevenLabs & GPT-4

💥 Viral TikTok Video Machine: Auto-Create Videos with Your AI Avatar --- 🎯 Who is this for? This workflow is for content creators, marketers, and agencies who want to use Veed.io’s AI avatar technology to produce short, engaging TikTok videos automatically. It’s ideal for creators who want to appear on camera without recording themselves, and for teams managing multiple brands who need to generate videos at scale. --- ⚙️ What problem this workflow solves Manually creating videos for TikTok can take hours — finding trends, writing scripts, recording, and editing. By combining Veed.io, ElevenLabs, and GPT-4, this workflow transforms a simple Telegram input into a ready-to-post TikTok video featuring your AI avatar powered by Veed.io — speaking naturally with your cloned voice. --- 🚀 What this workflow does This automation links Veed.io’s video-generation API with multiple AI tools: Analyzes TikTok trends via Perplexity AI Writes a 10-second viral script using GPT-4 Generates your voiceover via ElevenLabs Uses Veed.io (Fabric 1.0 via FAL.ai) to animate your avatar and sync the lips to the voice Creates an engaging caption + hashtags for TikTok virality Publishes the video automatically via Blotato TikTok API Logs all results to Google Sheets for tracking --- 🧩 Setup Telegram Bot Create your bot via @BotFather Configure it as the trigger for sending your photo and theme Connect Veed.io Create an account on Veed.io Get your FAL.ai API key (Veed Fabric 1.0 model) Use HTTPS image/audio URLs compatible with Veed Fabric Other APIs Add Perplexity, ElevenLabs, and Blotato TikTok keys Connect your Google Sheet for logging results --- 🛠️ How to customize this workflow Change your Avatar: Upload a new image through Telegram, and Veed.io will generate a new talking version automatically. Modify the Script Style: Adjust the GPT prompt for tone (educational, funny, storytelling). Adjust Voice Tone: Tweak ElevenLabs stability and similarity settings. Expand Platforms: Add Instagram, YouTube Shorts, or X (Twitter) posting nodes. Track Performance: Customize your Google Sheet to measure your most successful Veed.io-based videos. --- 🧠 Expected Outcome In just a few seconds after sending your photo and theme, this workflow — powered by Veed.io — creates a fully automated TikTok video featuring your AI avatar with natural lip-sync and voice. The result is a continuous stream of viral short videos, made without cameras, editing, or effort. --- ✅ Import the JSON file in n8n, add your API keys (including Veed.io via FAL.ai), and start generating viral TikTok videos starring your AI avatar today! 🎥 Watch This Tutorial --- 📄 Documentation: Notion Guide Need help customizing? Contact me for consulting and support : Linkedin / Youtube

Dr. FirasBy Dr. Firas
39510

Generate song lyrics and music from text prompts using OpenAI and Fal.ai Minimax

Spark your creativity instantly in any chat—turn a simple prompt like "heartbreak ballad" into original, full-length lyrics and a professional AI-generated music track, all without leaving your conversation. 📋 What This Template Does This chat-triggered workflow harnesses AI to generate detailed, genre-matched song lyrics (at least 600 characters) from user messages, then queues them for music synthesis via Fal.ai's minimax-music model. It polls asynchronously until the track is ready, delivering lyrics and audio URL back in chat. Crafts original, structured lyrics with verses, choruses, and bridges using OpenAI Submits to Fal.ai for melody, instrumentation, and vocals aligned to the style Handles long-running generations with smart looping and status checks Returns complete song package (lyrics + audio link) for seamless sharing 🔧 Prerequisites n8n account (self-hosted or cloud with chat integration enabled) OpenAI account with API access for GPT models Fal.ai account for AI music generation 🔑 Required Credentials OpenAI API Setup Go to platform.openai.com → API keys (sidebar) Click "Create new secret key" → Name it (e.g., "n8n Songwriter") Copy the key and add to n8n as "OpenAI API" credential type Test by sending a simple chat completion request Fal.ai HTTP Header Auth Setup Sign up at fal.ai → Dashboard → API Keys Generate a new API key → Copy it In n8n, create "HTTP Header Auth" credential: Name="Fal.ai", Header Name="Authorization", Header Value="Key [Your API Key]" Test with a simple GET to their queue endpoint (e.g., /status) ⚙️ Configuration Steps Import the workflow JSON into your n8n instance Assign OpenAI API credentials to the "OpenAI Chat Model" node Assign Fal.ai HTTP Header Auth to the "Generate Music Track", "Check Generation Status", and "Fetch Final Result" nodes Activate the workflow—chat trigger will appear in your n8n chat interface Test by messaging: "Create an upbeat pop song about road trips" 🎯 Use Cases Content Creators: YouTubers generating custom jingles for videos on the fly, streamlining production from idea to audio export Educators: Music teachers using chat prompts to create era-specific folk tunes for classroom discussions, fostering interactive learning Gift Personalization: Friends crafting anniversary R&B tracks from shared memories via quick chats, delivering emotional audio surprises Artist Brainstorming: Songwriters prototyping hip-hop beats in real-time during sessions, accelerating collaboration and iteration ⚠️ Troubleshooting Invalid JSON from AI Agent: Ensure the system prompt stresses valid JSON; test the agent standalone with a sample query Music Generation Fails (401/403): Verify Fal.ai API key has minimax-music access; check usage quotas in dashboard Status Polling Loops Indefinitely: Bump wait time to 45-60s for complex tracks; inspect fal.ai queue logs for bottlenecks Lyrics Under 600 Characters: Tweak agent prompt to enforce fuller structures like [V1][C][V2][B][C]; verify output length in executions

Daniel NkenchoBy Daniel Nkencho
601

Synchronizing WooCommerce inventory and creating products with Google Gemini AI and BrowserAct

Synchronize WooCommerce Inventory & Create Products with Gemini AI & BrowserAct This sophisticated n8n template automates WooCommerce inventory management by scraping supplier data, updating existing products, and intelligently creating new ones with AI-formatted descriptions. This workflow is essential for e-commerce operators, dropshippers, and inventory managers who need to ensure their product pricing and stock levels are synchronized with multiple third-party suppliers, minimizing overselling and maximizing profit. --- Self-Hosted Only This Workflow uses a community contribution and is designed and tested for self-hosted n8n instances only. --- How it works The workflow is typically run by a Schedule Trigger (though a Manual Trigger is also shown) to check stock automatically. It reads a list of suppliers and their inventory page URLs from a central Google Sheet. The workflow loops through each supplier: A BrowserAct node scrapes the current stock and price data from the supplier's inventory page. A Code node parses this bulk data into individual product items. It then loops through each individual product found. The workflow checks WooCommerce to see if the product already exists based on its name. If the product exists: It proceeds to update the existing product's price and stock quantity. If the product DOES NOT exist: An If node checks if the missing product's category matches a predefined type (optional filtering). If it passes the filter, a second BrowserAct workflow scrapes detailed product attributes from a dedicated product page (e.g., DigiKey). An AI Agent (Gemini) transforms these attributes into a specific, styled HTML table for the product description. Finally, the product is created in WooCommerce with all scraped details and the AI-generated description. Error Handling: Multiple Slack nodes are configured to alert your team immediately if any scraping task fails or if the product update/creation process encounters an issue. Note: This workflow does not support image uploads for new products. To enable this functionality, you must modify both the n8n and BrowserAct workflows. --- Requirements BrowserAct API account for web scraping BrowserAct n8n Community Node -> (n8n Nodes BrowserAct) BrowserAct templates named “WooCommerce Inventory & Stock Synchronization” and “WooCommerce Product Data Reconciliation” Google Sheets credentials for the supplier list WooCommerce credentials for product management Google Gemini account for the AI Agent Slack credentials for error alerts --- Need Help? How to Find Your BrowseAct API Key & Workflow ID How to Connect n8n to Browseract How to Use & Customize BrowserAct Templates How to Use the BrowserAct N8N Community Node --- Workflow Guidance and Showcase STOP Overselling! Auto-Sync WooCommerce Inventory from ANY Supplier

Madame AI Team | KaiBy Madame AI Team | Kai
600