💬 Create a branded AI chatbot for websites with Flowise multi-agent chatflows

2,711 views · 💬 Support Chatbots

Description

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:

🎨 Customizable Chatbot UI:

🔐 Secure & Configurable:


How It Works

  1. Chat Trigger: The workflow starts with the When chat message received node, which acts as a webhook to receive incoming chat messages from users.
  2. HTTP Request to Flowise: The received message is forwarded to the Flowise node, 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).
  3. Response Handling: The response from Flowise is passed to the Edit Fields node, which maps the output ($json.text) for further processing or display.

Set Up Steps

  1. Configure Flowise Integration:

    • Replace FLOWISEURL and FLOWISE_ID in the HTTP Request node with your Flowise instance URL and flow ID.
    • Ensure the Authorization header is set correctly in the credentials (e.g., Bearer FLOWSIE_API).
  2. Embed n8n Chatbot:

    • Use the provided JavaScript snippet in the sticky notes to embed the n8n chatbot on your website. Replace YOUR_PRODUCTION_WEBHOOK_URL with the webhook URL generated by the When chat message received node.
    • Customize the chatbot’s appearance and behavior (e.g., welcome messages, language, UI elements) using the createChat configuration options.
  3. Optional Branding:

    • Adjust the sticky note examples to include branding details, such as custom messages, colors, or metadata for the chatbot.
  4. Activate Workflow:

    • Toggle the workflow to “Active” in n8n and test the chat functionality end-to-end.

Ideal Use Cases:


Need help customizing?

Contact me for consulting and support or add me on Linkedin.

🔗 Nodes Used

HTTP Request, Chat Trigger

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup