Skip to main content

Autonomous customizable support chatbot on Intercom + Discord thread reports

Workflow preview

Workflow preview
100%
Autonomous customizable support chatbot on Intercom + Discord thread reports preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Click here to access this Workflow for free . Connect your own LLM boosted chatbot to Intercom (f their overly priced FlN Agent), and ...

Best for

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

Tools used

n8n-nodes-base.splitout, n8n-nodes-base.if, n8n-nodes-base.switch, n8n-nodes-base.webhook, n8n-nodes-base.httprequest, n8n-nodes-base.filter, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.lmchatopenai

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Autonomous customizable support chatbot on Intercom + Discord thread reports
Workflow name
Autonomous customizable support chatbot on Intercom + Discord thread reports

Click here to access this Workflow for free.


Connect your own LLM-boosted chatbot to Intercom (f*** their overly priced FlN Agent), and stay in touch on Discord

This workflow connects your Intercom chat system with your own AI Agent and sends a complete log of each conversation to Discord using threads. It allows you to run a fully automated support system while maintaining full visibility of the bot's behavior in real time.

For every new conversation in Intercom, a thread is created in a specified Discord channel. Each message from the user, the AI, and even manual human responses is logged to the thread, offering full traceability and transparency.

You also have fine-grained control over the AI agent. By simply clicking the ⭐️ star in Intercom’s UI, support agents can instantly pause or resume AI responses for a specific chat — no coding or config changes needed.


Requirements

  • A working n8n instance
  • An Intercom account with permission to set up webhooks
  • A Discord bot with the following permissions:
    • Send Messages
    • Create Public/Private Threads
    • Manage Threads
  • API credentials for your preferred LLM (OpenAI is used by default)
  • Google Chrome or any browser to access Intercom’s UI

Setup

  1. Intercom:

    • Go to Intercom’s webhook settings.
    • Add a webhook that listens to new incoming messages and points to the Webhook URL in this n8n workflow.
    • Make sure to send full conversation data.
  2. Discord:

    • Create a Discord bot and invite it to your server with the required permissions.
    • In the Discord + Token node at the top of the workflow:
      • Add your bot token
      • Add the ID of the channel where threads should be created
  3. LLM / AI Agent:

    • By default, the workflow uses OpenAI via HTTP Request.
    • You can substitute it with any LLM provider of your choice.
    • Make sure to set up your credentials in n8n and select them in the HTTP nodes.
  4. HTTP Authentication Tips:

    • For both Intercom and Discord API calls, it's recommended to create credentials in n8n's Credential Manager.
    • Then, assign those credentials inside each HTTP Request node for a cleaner setup.

Usage

  • When a new conversation starts in Intercom, a Discord thread is created automatically.
  • Each message — user input, AI response, and human reply — is logged into the Discord thread in real time.
  • The AI replies automatically unless the ⭐️ star is checked in Intercom:
    • Unchecked = AI replies enabled
    • ⭐️ Checked = AI replies disabled, human takeover enabled

This gives you on-the-fly control of each conversation’s automation level directly from the Intercom inbox.


Customization

  • You can replace OpenAI with any LLM that provides a compatible API.
  • Discord channel ID, thread naming, and message formatting can be customized to match your team’s preferences.
  • You can expand the workflow to handle events like conversation closure or satisfaction ratings for deeper analytics.

If you need any help, or have any question, feel free to come discuss about it on Telegram

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 - Split Out

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

Block 2 - If2

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

Block 3 - Switch

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 4 - Intercom Webhook Trigger

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

Block 5 - Whether it is a new conversation or not

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

Block 6 - [Intercom] GET conversation

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

Block 7 - [Discord] Create Thread

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

Block 8 - [Discord] Type first message into the thread

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

Block 9 - [Intercom] Store the thread ID as a 'note'

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

Block 10 - Isolating the 'note' to get the thread ID stored

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

Block 11 - Isolating all textual messages contents

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

Block 12 - conversation -> JSON

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

Block 13 - conversation info -> JSON

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

Block 14 - not going through if bot deactivated

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

Block 15 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 16 - sorting data (cuz we join 2 different flows here)

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

Block 17 - preparing data for Agentic use

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

Block 18 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 19 - [Discord] Reply

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

Block 20 - [Intercom] Reply

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

Block 21 - [Discord] Notify bot re-activation notification

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

Block 22 - [Discord] Notify bot de-activation

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

Block 23 - [Discord] User message

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

Block 24 - [Discord] Human admin reply

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

Showing the first 24 of 58 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Autonomous customizable support chatbot on Intercom + Discord thread reports
Complexity advanced
Nodes 58
Categories Support Chatbot, AI Chatbot
Author Theo Marcadet
Published 15 Apr 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3558/3558.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 Autonomous customizable support chatbot on Intercom + Discord thread reports do?

Click here to access this Workflow for free . Connect your own LLM boosted chatbot to Intercom (f their overly priced FlN Agent), and ...

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.