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:
- Open
http://localhost:5678 - If you are logging in for the first time, complete the Sign Up form
- Click Create a new Workflow
- In the top-right corner, click the three-dot menu
- Select Import from file and choose
n8n_test.json - The imported workflow should now appear in the UI
- Click the first trigger node (When chat message received)
- Make sure that
Make Chat Publicly Availableis turned on - Authentication should be
Basic Auth. FillCredential 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
- Click to
OpenAINode and fillCredential to connect with. You will need to fill an OpenAI API key. - Press
Activateswitcher, 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.