n8n/packages/@n8n/nodes-langchain/nodes/trigger/ChatTrigger
2026-09-07 13:19:34 +00:00
..
__test__ feat(core): Make chat trigger OAuth2 identity pipeline unconditional (#37942) 2026-09-07 13:19:34 +00:00
Chat.node.ts fix(AI Agent Node): Remove assistant tool call redundant message and simplify chat tool response (#33640) 2026-07-07 10:37:39 +00:00
ChatTrigger.node.ts feat(core): Make chat trigger OAuth2 identity pipeline unconditional (#37942) 2026-09-07 13:19:34 +00:00
connect-panel.ts fix(Chat Trigger Node): Re-authenticate hosted chat on session change (#37868) 2026-09-04 15:19:22 +00:00
constants.ts fix(Chat Node): Correct descriptions, aliases, UX improvements (#24619) 2026-01-23 12:01:37 +00:00
error.ts refactor(core): Replace deprecated ApplicationError in nodes-langchain (no-changelog) (#32471) 2026-06-18 07:35:09 +00:00
GenericFunctions.ts feat(core): Make chat trigger OAuth2 identity pipeline unconditional (#37942) 2026-09-07 13:19:34 +00:00
README.md fix: Rename chat.css to style.css in chat package build (#16622) (no-changelog) 2025-06-23 12:20:04 +02:00
shell.ts feat(core): Make chat trigger OAuth2 identity pipeline unconditional (#37942) 2026-09-07 13:19:34 +00:00
templates.ts feat(Chat Trigger Node): Handle unconnected end-user accounts in the hosted chat (no-changelog) (#37659) 2026-09-03 09:16:11 +00:00
types.ts feat(Chat Trigger Node): Add end-user credential connect bar to the hosted chat shell (no-changelog) (#37550) 2026-09-02 12:37:31 +00:00
util.ts feat(Chat Node): Regroup actions and add different response types (#23028) 2026-01-16 11:48:56 +00:00

ChatTrigger Local Development

This guide explains how to set up local development for the ChatTrigger node when working with the chat bundle.

Prerequisites

Since the chat bundle is loaded via <script type="module">, it needs to be served over HTTPS for local development.

Setup Instructions

1. Install HTTP Server

Install the http-server globally:

npm install -g http-server

2. Generate SSL Certificate

Generate a self-signed certificate for HTTPS:

openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes

3. Build the Chat Bundle

Navigate to the chat package and build it:

cd packages/frontend/@n8n/chat && pnpm run build 

4. Start HTTPS Server

Run the HTTPS server to serve the chat bundle:

http-server packages/frontend/@n8n/chat/dist -g -S -C cert.pem -K key.pem --port 8443 --cors

5. Update Import Paths

Modify the import paths in templates.ts to point to your local server:

<script type="module">
    import { createChat } from 'https://127.0.0.1:8443/chat.bundle.es.js';
<link href="https://127.0.0.1:8443/style.css" rel="stylesheet" />