Describe the problem/error/question
I have set up a self-hosted n8n instance on Digital Ocean utilizing Docker. Currently, I am encountering a “firstEntryJson” error in the embedded mode of my chat. This issue does not occur in the hosted mode. Previously, everything was functioning well, and I had not experienced any problems. This is a new issue that has emerged, and it involves a relatively straightforward chat model. I have tested it on a basic HTML page and received the same error.
E.g: Energy Oasis Chat Widget Test
What is the error message (if any)?
firstEntryJson
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
< {
"name": "EnergyOasis New",
"nodes": [
{
"parameters": {
"public": true,
"mode": "webhook",
"options": {
"allowedOrigins": "*",
"responseMode": "lastNode"
}
},
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"typeVersion": 1.3,
"position": [
0,
0
],
"id": "b0cf7a9d-8709-445a-b97d-2d098cf533e7",
"name": "When chat message received",
"webhookId": "ca23afc8-17fc-4022-ad4a-9d50493618bc"
},
{
"parameters": {
"promptType": "define",
"text": "You are “Energy Oasis Assistant,” an AI agent trained on the website energyoasis.org.uk. Use the following knowledge to answer questions accurately. If you don’t know, respond with “I’m not sure—please contact Energy Oasis directly at [email protected].”\n\n**Core Info**\n- Company Purpose: A net-zero partner offering renewable solutions and efficiency to cut energy use, costs, and carbon.\n- Founded: 2013 by Mike Kaye in Harrogate, North Yorkshire, now nationwide.\n- Team Experience: Over 50 years collective across renewable energy.\n- Location & Contact: Suite 1, Ground Floor, 2 Victoria Avenue, Harrogate, HG1 1EL; phone 01423 528239; email [email protected].\n\n**Service Categories**\n1. Consultancy & Energy Audits: bespoke audits, grant writing, ESOS/SECR compliance.\n2. Energy Monitoring & Reduction: real-time systems, smart controls for inefficiency detection.\n3. Renewable Generation & Storage: solar, wind, hydro, hydrogen, anaerobic digestion.\n4. Compliance & Reporting: ESOS, SECR, legal energy compliance reporting.\n5. Asset Management: maintenance and monitoring of energy systems.\n6. Energy Procurement: brokerage of electricity, gas, and water; leveraging industry relationships for rates.\n\n**Benefits & Case Studies**\n- LED lighting redesign: Sulzer Pumps, Viamaster - huge cost & CO₂ savings.\n- Solar + LED: JT Atkinson - 75% energy cost reduction.\n- Broader consultancy: Signhub (SPF grant), York Council, Dalton Industrial Estate.\n\n**Mission & Values**\n- Tailored solutions to reduce energy use, maximize financial benefit, cut carbon, and procure smartly.\n- Use high-quality UK-made equipment and transparent, ethical supply chains.\n- Bottom-up net-zero approach, serving businesses, communities, and organisations across sectors.\n\n**Helpful FAQs**\n1. What sectors do you serve? – Commercial, industrial, agriculture, sports clubs, charities, community energy, holiday parks, parking, professional services.\n2. What’s your process? – Audit → Strategy → Implementation → Monitoring → Savings → Compliance → Renewal.\n3. How can I get a quote? – Submit details via Contact page; ROI and quote tailored.\n4. Do you offer asset financing? – Yes—PPAs, asset finance, grant support available.\n5. Can you handle LED lighting for councils? – Yes—Harrogate Borough Council lighting upgrade is a case in point.\n\n**Behavior Guidelines**\n- Provide succinct, accurate responses.\n- On unknown subjects, encourage contacting Energy Oasis.\n- Emphasise energy/carbon savings and compliance credentials.",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 2.2,
"position": [
208,
0
],
"id": "e187d5a9-9e4f-4f19-b6f8-4834049d87ce",
"name": "AI Agent"
},
{
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4.1-mini"
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1.2,
"position": [
80,
208
],
"id": "77435146-6b19-4285-8daa-ef845bc8e41f",
"name": "OpenAI Chat Model",
"credentials": {
"openAiApi": {
"id": "7gtYCqf8prXfeFFE",
"name": "OpenAi account 2"
}
}
},
{
"parameters": {},
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"typeVersion": 1.3,
"position": [
224,
208
],
"id": "bad73c38-d592-4264-bd54-7f220edc9a0c",
"name": "Simple Memory"
}
],
"pinData": {},
"connections": {
"When chat message received": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Simple Memory": {
"ai_memory": [
[
{
"node": "AI Agent",
"type": "ai_memory",
"index": 0
}
]
]
}
},
"active": true,
"settings": {
"executionOrder": "v1"
},
"versionId": "816d2707-89e5-4751-9c0f-3bba49fa7b2a",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "f79c4d6aa655e6494631a04d4bfbc79ec190c1b1cad56aed42346de98dddd37c"
},
"id": "uD2mILjkDwMJWtzd",
"tags": []
}/>
Share the output returned by the last node
Information on your n8n setup
- n8n version: 1.107.3
- Database (default: SQLite):SQLite
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app):Docker
- Operating system:Linux