Create a branded AI chatbot for websites with Flowise multi-agent chatflows
Workflow preview
$20/month : Unlimited workflows
2500 executions/month
THE #1 IN WEB SCRAPING
Scrape any website without limits
HOSTINGER
Early Deal
DISCOUNT 20% Try free
DISCOUNT 20%
Self-hosted n8n
Unlimited workflows - from $4.99/mo
#1 hub for scraping, AI & automation
6000+ actors - $5 credits/mo
Important notice
This workflow is provided as-is. Please review and test before using in production.
Overview
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.