Create each key on its own page, paste it below, then copy the finished lines into your project's .env file. Your keys stay in this tab. They are never sent to Wirestack or saved; we only count that the panel was used.
n8n Community Edition running in Docker on your own machine or server, with a chat workflow (Chat Trigger, Basic LLM Chain, chat model) that you can message from the editor.
Prerequisites
Docker installed. The n8n docs point to Docker Desktop, which is available for Mac, Windows and Linux.
A terminal on the machine that will run n8n.
Credentials for one chat model. This integration uses OpenAI, so you need an OpenAI account and an API key (the key you would keep in OPENAI_API_KEY) from https://platform.openai.com/api-keys.
Your timezone name from the tz database, for example Europe/Berlin.
n8n's docs say self-hosting needs technical knowledge (servers, resources, security) and recommend n8n Cloud if you are not experienced at managing servers.
Start n8n. Replace both <YOUR_TIMEZONE> placeholders with your timezone. This downloads the n8nio/n8n image, publishes port 5678 and mounts the volume at /home/node/.n8n.
Select Chat at the bottom of the canvas, type Say hello in five words and send it.
You should see a reply from the model in the chat panel, and the Chat Trigger, Basic LLM Chain and OpenAI Chat Model nodes marked as executed on the canvas. Every message you send runs the workflow once.
If you see a credential or model error, reopen the OpenAI Chat Model node and check the API Key and Model.
To check persistence: stop the container with Ctrl+C, run the docker run command from step 2 again, and reload http://localhost:5678. Your workflow and credential are still there because they are stored in the n8n_data volume.
The \ line breaks are for bash-style shells. In PowerShell, put the whole command on one line without them. Leave this terminal open: n8n runs in it.
Open http://localhost:5678 in a browser and complete the first-run setup that n8n shows. Without a license key, n8n runs as the free Community Edition.
In the left menu select Personal, then select Create workflow.
Select Add first step, search for Chat Trigger and select it. Leave Make Chat Publicly Available off.
Select the Add node connector on the Chat Trigger, search for Basic LLM Chain and select it. Keep Prompt set to Take from previous node automatically (shown as Connected Chat Trigger Node in some versions). This reads the chatInput field that the Chat Trigger outputs.
On the Basic LLM Chain node, select the chat model connector below the node, search for OpenAI Chat Model and select it.
In the OpenAI Chat Model node, open the credential dropdown and select Create new credential. Paste your key into API Key. Leave Organization ID blank unless you belong to more than one OpenAI organization. Save the credential.
In Model, pick a model. n8n loads the list from your OpenAI account.