Create a branded AI chatbot for websites with Flowise multi-agent chatflows
This workflow integrates Flowise Multi-Agent Chatflows into a custom-branded n8n chatbot, enabling real-time interaction between users and AI agents powered by large language models (LLMs).
Key Advantages:
✅ Easy Integration with Flowise:
- Uses a low-code HTTP node to send user questions to Flowise's API (
/api/v1/prediction/FLOWISE_ID) and receive intelligent responses. - Supports multi-agent chatflows, allowing for complex, dynamic interactions.
🎨 Customizable Chatbot UI:
- Includes pre-built JavaScript for embedding the n8n chatbot into any website.
- Provides customization options such as welcome messages, branding, placeholder text, chat modes (e.g., popup or embedded), and language support.
🔐 Secure & Configurable:
- Authorization via Bearer token headers for Flowise API access.
- Clearly marked notes in the workflow for setting environment variables like
FLOWISE_URLandFLOW_ID.
How It Works
- Chat Trigger: The workflow starts with the
When chat message receivednode, which acts as a webhook to receive incoming chat messages from users. - HTTP Request to Flowise: The received message is forwarded to the
Flowisenode, which sends a POST request to a Flowise API endpoint (https://FLOWISEURL/api/v1/prediction/FLOWISE_ID). The request includes the user's input as a JSON payload ({"question": "{{ $json.chatInput }}"}) and uses HTTP header authentication (e.g.,Authorization: Bearer FLOWSIE_API). - Response Handling: The response from Flowise is passed to the
Edit Fieldsnode, which maps the output ($json.text) for further processing or display.
Set Up Steps
-
Configure Flowise Integration:
- Replace
FLOWISEURLandFLOWISE_IDin the HTTP Request node with your Flowise instance URL and flow ID. - Ensure the
Authorizationheader is set correctly in the credentials (e.g.,Bearer FLOWSIE_API).
- Replace
-
Embed n8n Chatbot:
- Use the provided JavaScript snippet in the sticky notes to embed the n8n chatbot on your website. Replace
YOUR_PRODUCTION_WEBHOOK_URLwith the webhook URL generated by theWhen chat message receivednode. - Customize the chatbot's appearance and behavior (e.g., welcome messages, language, UI elements) using the
createChatconfiguration options.
- Use the provided JavaScript snippet in the sticky notes to embed the n8n chatbot on your website. Replace
-
Optional Branding:
- Adjust the sticky note examples to include branding details, such as custom messages, colors, or metadata for the chatbot.
-
Activate Workflow:
- Toggle the workflow to "Active" in n8n and test the chat functionality end-to-end.
Ideal Use Cases:
- Embedding branded AI assistants into websites.
- Connecting Flowise-powered agents with customer support chatbots.
- Creating dynamic, smart conversational flows with LLMs via n8n automation.
Need help customizing?
Contact me for consulting and support or add me on Linkedin.
n8n Chatbot Integration with Flowise
This n8n workflow demonstrates a basic integration pattern for receiving chat messages and preparing them for further processing, likely with an external AI chatbot platform like Flowise. It acts as an initial listener and data transformer for incoming chat interactions.
What it does
This workflow simplifies the initial handling of chat messages by:
- Listening for Chat Messages: It actively waits for and captures incoming chat messages from a configured source.
- Preparing Data: It takes the received chat message and transforms it into a structured format, setting a new field called
chatMessagewith the content of the incoming message. - Making an HTTP Request: It includes an HTTP Request node, which is typically used to send the processed chat message to an external API (e.g., a Flowise instance or another AI service) for generating a response.
Prerequisites/Requirements
- n8n Instance: A running instance of n8n.
- Chat Trigger Configuration: The "Chat Trigger" node needs to be configured to listen to your desired chat platform (e.g., Slack, Telegram, Discord, etc.). This usually involves setting up webhooks or API keys on the respective platform and in n8n.
- Flowise (or other AI Chatbot Platform): An active Flowise instance or another AI chatbot API endpoint to which the HTTP Request node will send the chat message for processing.
- API Endpoint for AI Service: The URL and any necessary authentication details for your AI chatbot's API.
Setup/Usage
- Import the Workflow: Import the provided JSON into your n8n instance.
- Configure Chat Trigger:
- Open the "When chat message received" node.
- Select or create the appropriate credential for your chat platform (e.g., Slack API, Telegram Bot API).
- Follow the instructions to set up the webhook or bot on your chosen chat platform to send messages to this n8n workflow.
- Configure Edit Fields (Set):
- This node is pre-configured to extract the chat message. Review it to ensure it correctly maps to the incoming data structure from your chat trigger.
- Configure HTTP Request:
- Open the "HTTP Request" node.
- Set the
URLto your Flowise (or other AI chatbot) API endpoint. - Configure the
Method(likelyPOST). - Set the
Body Parametersto send thechatMessagedata. You might need to adjust the JSON structure based on your AI service's API documentation. - Add any necessary
Headersfor authentication (e.g.,Authorizationheader with an API key).
- Activate the Workflow: Once configured, activate the workflow to start listening for chat messages.
You can then send a message to your configured chat platform, and the workflow will trigger, process the message, and send it to your AI chatbot. The response from the AI chatbot would typically be handled in subsequent nodes (not included in this basic template) to send back to the original chat platform.
Related Templates
Daily Magento 2 customer sync to Google Contacts & Sheets without duplicates
Automatically sync newly registered Magento 2 customers to Google Contacts and Google Sheets every 24 hours — with full duplication control and seamless automation. This workflow is a plug-and-play customer contact automation system designed for Magento 2 store owners, marketers, and CRM teams. It fetches customer records registered within the last 24 hours (from 00:00:00 to 23:59:59), checks against an existing Google Sheet to avoid reprocessing, and syncs only the new ones into Google Contacts. This ensures your contact list is always fresh and up to date — without clutter or duplicates. ✅ What This Workflow Does: Automates Customer Syncing Every day, it fetches newly registered Magento 2 customers via API based on the exact date range (midnight to midnight). Deduplicates Using Google Sheets A master Google Sheet tracks already-synced emails. Before adding a customer, the workflow checks this list and skips if already present. Creates Google Contacts Automatically For each unique customer, it creates a new contact in your Google Contacts, saving fields like first name, last name, and email. Logs New Entries to Google Sheets In Google Sheets, it even records magento 2 customer group, createdat, websiteid & store_id After syncing, it adds each new email to the tracking sheet, building a cumulative record of synced contacts. Fully Scheduled & Automated Can be scheduled with the Cron node to run daily (e.g., 12:05 AM) with no manual intervention required. 🔧 Modules Used: HTTP Request (Magento 2 API) Date & Time (for filtering registrations) Google Sheets (for reading/writing synced emails) Google Contacts (for contact creation) Set, IF, and Merge nodes (for control logic) Cron (for scheduling the automation) 💼 Use Cases: Keep your email marketing tools synced with Magento 2 customer data. Build a CRM-friendly contact base in Google Contacts without duplicates. Share customer data with sales or support teams through synced Google Sheets. Reduce manual work and human error in data transfer processes. 🔒 Credentials Required Magento 2 Bearer Auth: Set up as a credential in n8n using your Magento 2 API access token. Google API 📂 Category E-commerce → Magento 2 (Adobe Commerce) 💬 Need Help? 💡 Having trouble setting it up or want to customize this workflow further? Feel free to reach out — I’m happy to help with setup, customization, or Magento 2 API integration issues. Contact: Author 👤 Author Kanaka Kishore Kandregula Certified Magento 2 Developer https://gravatar.com/kmyprojects https://www.linkedin.com/in/kanakakishore
Run bulk RAG queries from CSV with Lookio
This template processes a CSV of questions and returns an enriched CSV with RAG-based answers produced by your Lookio assistant. Upload a CSV that contains a column named Query, and the workflow will loop through every row, call the Lookio API, and append a Response column containing the assistant's answer. It's ideal for batch tasks like drafting RFP responses, pre-filling support replies, generating knowledge-checked summaries, or validating large lists of product/customer questions against your internal documentation. Who is this for? Knowledge managers & technical writers: Produce draft answers to large question sets using your company docs. Sales & proposal teams: Auto-generate RFP answer drafts informed by internal docs. Support & operations teams: Bulk-enrich FAQs or support ticket templates with authoritative responses. Automation builders: Integrate Lookio-powered retrieval into bulk data pipelines. What it does / What problem does this solve? Automates bulk queries: Eliminates the manual process of running many individual lookups. Ensures answers are grounded: Responses come from your uploaded documents via Lookio, reducing hallucinations. Produces ready-to-use output: Delivers an enriched CSV with a new Response column for downstream use. Simple UX: Users only need to upload a CSV with a Query column and download the resulting file. How it works Form submission: User uploads a CSV via the Form Trigger. Extract & validate: Extract all rows reads the CSV and Aggregate rows checks for a Query column. Per-row loop: Split Out and Loop Over Queries iterate rows; Isolate the Query column normalizes data. Call Lookio: Lookio API call posts each query to your assistant and returns the answer. Build output: Prepare output appends Response values and Generate enriched CSV creates the downloadable file delivered by Form ending and file download. Why use Lookio for high quality RAG? While building a native RAG pipeline in n8n offers granular control, achieving consistently high-quality and reliable results requires significant effort in data processing, chunking strategy, and retrieval logic optimization. Lookio is designed to address these challenges by providing a managed RAG service accessible via a simple API. It handles the entire backend pipeline—from processing various document formats to employing advanced retrieval techniques—allowing you to integrate a production-ready knowledge source into your workflows. This approach lets you focus on building your automation in n8n, rather than managing the complexities of a RAG infrastructure. How to set up Create a Lookio assistant: Sign up at https://www.lookio.app/, upload documents, and create an assistant. Get credentials: Copy your Lookio API Key and Assistant ID. Configure the workflow nodes: In the Lookio API call HTTP Request node, replace the apikey header value with your Lookio API Key and update assistantid with your Assistant ID (replace placeholders like <your-lookio-api-key> and <your-assistant-id>). Ensure the Form Trigger is enabled and accepts a .csv file. CSV format: Ensure the input CSV has a column named Query (case-sensitive as configured). Activate the workflow: Run a test upload and download the enriched CSV. Requirements An n8n instance with the ability to host Forms and run workflows A Lookio account (API Key) and an Assistant ID How to take it further Add rate limiting / retries: Insert error handling and delay nodes to respect API limits for large batches. Improve the speed: You could drastically reduce the processing time by parallelizing the queries instead of doing them one after the other in the loop. For that, you could use HTTP request nodes that would trigger your sort of sub-workflow. Store results: Add an Airtable or Google Sheets node to archive questions and responses for audit and reuse. Post-process answers: Add an LLM node to summarize or standardize responses, or to add confidence flags. Trigger variations: Replace the Form Trigger with a Google Drive or Airtable trigger to process CSVs automatically from a folder or table.
Export WordPress posts with categories and tags to Google Sheets for SEO audits
Who’s it for This workflow is perfect for content managers, SEO specialists, and website owners who want to easily analyze their WordPress content structure. It automatically fetches posts, categories, and tags from a WordPress site and exports them into a Google Sheet for further review or optimization. What it does This automation connects to the WordPress REST API, collects data about posts, categories, and tags, and maps the category and tag names directly into each post. It then appends all this enriched data to a Google Sheet — providing a quick, clean way to audit your site’s content and taxonomy structure. How it works Form trigger: Start the workflow by submitting a form with your website URL and the number of posts to analyze. Fetch WordPress data: The workflow sends three API requests to collect posts, categories, and tags. Merge data: It combines all the data into one stream using the Merge node. Code transformation: A Code node replaces category and tag IDs with their actual names. Google Sheets export: Posts are appended to a Google Sheet with the following columns: URL Title Categories Tags Completion form: Once the list is created, you’ll get a confirmation message and a link to your sheet. If the WordPress API isn’t available, the workflow automatically displays an error message to help you troubleshoot. Requirements A WordPress site with the REST API enabled (/wp-json/wp/v2/). A Google account connected to n8n with access to Google Sheets. A Google Sheet containing the columns: URL, Title, Categories, Tags. How to set up Import this workflow into n8n. Connect your Google Sheets account under credentials. Make sure your WordPress site’s API is accessible publicly. Adjust the Post limit (per_page) in the form node if needed. Run the workflow and check your Google Sheet for results. How to customize Add additional WordPress endpoints (e.g., authors, comments) by duplicating and modifying HTTP Request nodes. Replace Google Sheets with another integration (like Airtable or Notion). Extend the Code node to include SEO metadata such as meta descriptions or featured images.