Skip to main content

Build a multichannel customer support AI assistant with Chatwoot & OpenRouter

Workflow preview

Workflow preview
100%
Build a multichannel customer support AI assistant with Chatwoot & OpenRouter preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Multichannel AI Assistant Demo for Chatwoot This simple n8n template demonstrates a Chatwoot integration that can: Receive new messages via a webhook. Retrieve conversation history. Process the mes...

Best for

  • Support Chatbot automation workflows
  • AI Chatbot automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.webhook, n8n-nodes-base.set, n8n-nodes-base.if, n8n-nodes-base.httprequest, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.lmchatopenrouter, @n8n/n8n-nodes-langchain.chainllm, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by George Zargaryan.

Original n8n.io source

1.1 Workflow description

Title
Build a multichannel customer support AI assistant with Chatwoot & OpenRouter
Workflow name
Build a multichannel customer support AI assistant with Chatwoot & OpenRouter

Multichannel AI Assistant Demo for Chatwoot

This simple n8n template demonstrates a Chatwoot integration that can:

  • Receive new messages via a webhook.
  • Retrieve conversation history.
  • Process the message history into a format suitable for an LLM.
  • Demonstrate an AI Assistant processing a user's query.
  • Send the AI Assistant's response back to Chatwoot.

Use Case: If you have multiple communication channels with your clients (e.g., Telegram, Instagram, WhatsApp, Facebook) integrated with Chatwoot, you can use this template as a starting point to build more sophisticated and tailored AI solutions that cover all channels at once.

How it works

  • A webhook receives the message created event from Chatwoot.
  • The webhook data is then filtered to keep only the necessary information for a cleaner workflow.
  • The workflow checks if the message is "incoming." This is crucial to prevent the assistant from replying to its own messages and creating endless loops.
  • The conversation history is retrieved from Chatwoot via an API call using the HTTP Request node. This allows the assistant's interaction to be more natural and continuous without needing to store conversation history locally.
  • A simple AI Assistant processes the conversation history and generates a response to the user based on its built-in knowledge base (see the prompt in the assistant node).
  • The final HTTP Request node sends the AI-generated response back to the appropriate Chatwoot conversation.

How to Use

  1. In Chatwoot, go to Settings β†’ Integrations β†’ Webhooks and add your n8n webhook URL. Be sure to select the message created event.
  2. In the HTTP Request nodes, replace the placeholder values:
    • https://yourchatwooturl.com
    • api_access_token You can find these values on your Chatwoot super admin page.
  3. The LLM node is configured to use OpenRouter. Add your OpenRouter credentials, or replace the node with your preferred LLM provider.

Requirements

  • An API key for OpenRouter or credentials for your preferred LLM provider.
  • A Chatwoot account with at least one integrated channel and super admin access to obtain the api_access_token.

Need Help Building Something More?

Contact me on:

Happy Hacking! πŸš€

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Chatwoot Webhook

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2.1

Block 2 - Squize Webhook Data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 3 - Check If Incoming Message

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 4 - Load Chatwoot Conversation History

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 5 - Process Loaded History

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 6 - OpenRouter Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenRouter - lmChatOpenRouter
Config choices
Version 1

Block 7 - Chatwoot Assistant

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 8 - Send Message

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 9 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Build a multichannel customer support AI assistant with Chatwoot & OpenRouter
Complexity intermediate
Nodes 13
Categories Support Chatbot, AI Chatbot
Author George Zargaryan
Published 04 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8260/8260.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Build a multichannel customer support AI assistant with Chatwoot & OpenRouter do?

Multichannel AI Assistant Demo for Chatwoot This simple n8n template demonstrates a Chatwoot integration that can: Receive new messages via a webhook. Retrieve conversation history. Process the mes...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, AI Chatbot use case.