# AI Agent problem

**URL:** <https://community.n8n.io/t/ai-agent-problem/110515>\
**Category:** Questions\
**Created:** [May 4, 2025, 10:36am UTC](https://community.n8n.io/t/ai-agent-problem/110515 "2025-05-04T10:36:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Armin](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@Armin](https://community.n8n.io/u/Armin)\
**Post date:** [May 4, 2025, 10:36am UTC](https://community.n8n.io/t/ai-agent-problem/110515/1 "2025-05-04T10:36:48Z")

</div>

Hey,

I’m trying to use AI agents in my workflows, and till a few days ago, I could easily import templates on my self-hosted n8n. But now I don’t see the AI agent input options. At first, I thought it might be a version issue, so I rolled back versions and tried different backups.  
Here’s what’s happening in practice, for example, this template:

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/8/9/89556f67bab4a3b732cf0d1d3c2e36cc0fece613.png)  
When pasted into my workflow turns into this:  
 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/0/3/03651aa0557caffdc277d7b8ee70966b9f1a60ac.png)  
Even a simple AI agent has the same problem, it used to have different options, such as memory, model and tools:  
 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/6/9/6906e235be2c3f3fda4fc36830ddc71f52b68ec2.png)  
What do you suggest I do?

- n8n version: 1.91.1

- Database: PostgreSQL (via Docker)

- n8n EXECUTIONS\_PROCESS setting (default: own, main): queue (using EXECUTIONS\_MODE=queue)

- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker

- Operating system: Linux (Ubuntu)

---

<div class="post-metadata">

**Author:** ![mgangat](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mgangat/32/78235_2.png) [@mgangat](https://community.n8n.io/u/mgangat)\
**Post date:** [May 5, 2025, 2:12am UTC](https://community.n8n.io/t/ai-agent-problem/110515/2 "2025-05-05T02:12:43Z")

</div>

I have the same problem with my hosted n8n version : ai agent, switch, or text classifier has no branches (if or loop has no problem)  
I have tried on different version : 1.91.1, 1.90.0, 1.89.2 , 1.86.0 , with chrome or edge without success

- n8nVersion: 1.90.2

- platform: docker (self-hosted)

- nodeJsVersion: 20.19.0

- database: postgres

- executionMode: regular

- concurrency: -1

- license: enterprise (production)

- userAgent: mozilla/5.0 (windows nt 10.0; win64; x64) applewebkit/537.36 (khtml, like gecko) chrome/135.0.0.0 safari/537.36

- userAgent: mozilla/5.0 (windows nt 10.0; win64; x64) applewebkit/537.36 (khtml, like gecko) chrome/136.0.0.0 safari/537.36 edg/136.0.0.0

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/c/8/c8c0f737149258c3a9222641ef6676a6b78d0e49.png)

---

<div class="post-metadata">

**Author:** ![Armin](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@Armin](https://community.n8n.io/u/Armin)\
**Post date:** [May 5, 2025, 6:17am UTC](https://community.n8n.io/t/ai-agent-problem/110515/3 "2025-05-05T06:17:33Z")

</div>

Same here. I have daily backups, and I reverted to a few days ago, and nothing. I used different versions of n8n and nothing. I tried starting fresh, and still nothing. I disabled caching on Caddy file, different browsers and incognito mode and still nothing.

---

<div class="post-metadata">

**Author:** ![mgangat](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mgangat/32/78235_2.png) [@mgangat](https://community.n8n.io/u/mgangat)\
**Post date:** [May 8, 2025, 10:33am UTC](https://community.n8n.io/t/ai-agent-problem/110515/4 "2025-05-08T10:33:59Z")

</div>

The issue appears to stem from using Nginx to reach n8n.  
After exposing port 5678 in the Docker setup and connecting to n8n directly on that port, everything works:

```auto
n8n:
  ports:
    - "5678:5678"

```

Now I need to investigate further to figure out what’s preventing access when Nginx sits in front.

---

<div class="post-metadata">

**Author:** ![Armin](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@Armin](https://community.n8n.io/u/Armin)\
**Post date:** [May 8, 2025, 11:47am UTC](https://community.n8n.io/t/ai-agent-problem/110515/5 "2025-05-08T11:47:29Z")

</div>

Thanks, amazing debugging.  
I’m using Caddy, I commented out this line in my Caddy header and that fixed the problem: # Content-Security-Policy “default-src ‘self’; script-src ‘self’ ‘unsafe-inline’; style-src ‘self’ ‘unsafe-inline’; img-src ‘self’ data:; connect-src ‘self’ ws: wss:;”

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [August 6, 2025, 11:48am UTC](https://community.n8n.io/t/ai-agent-problem/110515/6 "2025-08-06T11:48:04Z")

</div>

Closed on August 6, 2025, 11:48am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
