Skip to main content

N8N AI Agents

A Starter kit as default configured to use N8N. Changes in code no needed.

First Test Agent

For testing purposes, we provide a n8n_test.json test agent that you should import into the n8n dashboard. To do this, follow the steps below:

  1. Open http://localhost:5678
  2. If you are logging in for the first time, complete the Sign Up form
  3. Click Create a new Workflow
  4. In the top-right corner, click the three-dot menu
  5. Select Import from file and choose n8n_test.json
  6. The imported workflow should now appear in the UI
  7. Click the first trigger node (When chat message received)
  8. Make sure that Make Chat Publicly Available is turned on
  9. Authentication should be Basic Auth. Fill Credential for Basic Auth
tip

Copy Chat Url and Basic Auth Creadentials to .env parameters like:

N8N_URL="http://n8n:5678/webhook/YOUR_CHAT_ID/chat"
N8N_BASIC_AUTH_USERNAME=test
N8N_BASIC_AUTH_PASSWORD=test
  1. Click to OpenAI Node and fill Credential to connect with. You will need to fill an OpenAI API key.
  2. Press Activate switcher, on top right corner of Workflow's Dashboard UI.

Local Mock Testing

To simulate response from n8n for local testing of web platform itself, you should enable in .env IS_FAKE_RESPONSES_ENABLED=true.


n8n Update in Production

It is highly recommended to periodically update your n8n instance in production. If you are using Coolify with this AI Agent Starter Kit, the update process is straightforward:

  • Go to your Project
  • Select n8n
  • In the Services section, open Settings for n8n
  • Update the Docker image version in input field to the latest available
  • Click Save
  • Navigate to the Configuration section
  • Click Advanced (top-right corner)
  • Select Pull Latest Images & Restart
  • Perform smoke testing of your AI Chat to ensure the n8n integration is working correctly

This final check helps confirm that workflows and integrations continue to function as expected after the update.