# Credential not found when working with AI agent + http node as tool

**URL:** <https://community.n8n.io/t/credential-not-found-when-working-with-ai-agent-http-node-as-tool/66097>\
**Category:** Questions\
**Created:** [December 19, 2024, 8:51am UTC](https://community.n8n.io/t/credential-not-found-when-working-with-ai-agent-http-node-as-tool/66097 "2024-12-19T08:51:22Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yin](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/yin/32/48214_2.png) [@Yin](https://community.n8n.io/u/Yin)\
**Post date:** [December 19, 2024, 8:51am UTC](https://community.n8n.io/t/credential-not-found-when-working-with-ai-agent-http-node-as-tool/66097/1 "2024-12-19T08:51:22Z")

</div>

![image](https://europe1.discourse-cdn.com/n8n/original/3X/b/6/b628b434f35eb460cfcd27964f100a0260d4d43e.png)

Keep on getting the “credentials not found” error when working with http node as a tool for the AI agent I use. I have a stand-alone http node which perform exactly the same task, with the same credential set up for the url endpoint calling. Yet, it seems like the one with AI agent does not work at all. Keep on hitting the error. Any recommended fix?

---

<div class="post-metadata">

**Author:** ![n8n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/n8n/32/196425_2.png) [@n8n](https://community.n8n.io/u/n8n)\
**Post date:** [December 19, 2024, 8:51am UTC](https://community.n8n.io/t/credential-not-found-when-working-with-ai-agent-http-node-as-tool/66097/2 "2024-12-19T08:51:24Z")

</div>

It looks like your topic is missing some important information. Could you provide the following if applicable.

- **n8n version:**
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**
- **Operating system:**

---

<div class="post-metadata">

**Author:** ![ria](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ria/32/99251_2.png) [@ria](https://community.n8n.io/u/ria)\
**Post date:** [December 23, 2024, 12:37pm UTC](https://community.n8n.io/t/credential-not-found-when-working-with-ai-agent-http-node-as-tool/66097/3 "2024-12-23T12:37:02Z")

</div>

Hi @Yin

Which version of n8n are you using? This sounds like a [bug](https://github.com/n8n-io/n8n/pull/11343) we should have fixed in `1.65.0` 🤔

---

<div class="post-metadata">

**Author:** ![Yin](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/yin/32/48214_2.png) [@Yin](https://community.n8n.io/u/Yin)\
**Post date:** [December 24, 2024, 9:51am UTC](https://community.n8n.io/t/credential-not-found-when-working-with-ai-agent-http-node-as-tool/66097/4 "2024-12-24T09:51:13Z")

</div>

Hi @ria I am currently running on ver 1.71.2

---

<div class="post-metadata">

**Author:** ![ria](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ria/32/99251_2.png) [@ria](https://community.n8n.io/u/ria)\
**Post date:** [December 25, 2024, 6:53am UTC](https://community.n8n.io/t/credential-not-found-when-working-with-ai-agent-http-node-as-tool/66097/5 "2024-12-25T06:53:54Z")

</div>

Hi @Yin

Can you check in the logs of the agent for more details on the error from the HTTP request node? Also, please verify that you are using the latest version of the HTTP tool node (see the settings tab).

---

<div class="post-metadata">

**Author:** ![dcardozo](https://avatars.discourse-cdn.com/v4/letter/d/3be4f8/32.png) [@dcardozo](https://community.n8n.io/u/dcardozo)\
**Post date:** [January 31, 2025, 11:33pm UTC](https://community.n8n.io/t/credential-not-found-when-working-with-ai-agent-http-node-as-tool/66097/6 "2025-01-31T23:33:51Z")

</div>

Hello,  
I’m experiencing the exact same problam as described by @Yin : same request works great in the standalone HTTP node, but it fails in the HTTP Tool.  
Here is my configuration:

- **n8n version:** 1.76.1
- **Database (default: SQLite):** default
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):** default
- **Running n8n via (Docker, npm, n8n cloud, desktop app):** Docker
- **Operating system:** MacBook Pro M1
- **HTTP Request Tool node version:** 1.1 (Latest)

There is no further information on the AI Agent logs; this is all I see:

```auto
{
  "response": "There was an error: \"Credentials not found\""
}

```

Any clues?  
Thank you.

---

<div class="post-metadata">

**Author:** ![Anthony\_Brebion](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/anthony_brebion/32/38646_2.png) [@Anthony\_Brebion](https://community.n8n.io/u/Anthony_Brebion)\
**Post date:** [February 1, 2025, 9:24am UTC](https://community.n8n.io/t/credential-not-found-when-working-with-ai-agent-http-node-as-tool/66097/7 "2025-02-01T09:24:52Z")

</div>

I think it may be related to the issue I described here

> [@HTTP Request Tool error using Oauth 2 API generic credential type](http://community.n8n.io/t/http-request-tool-error-using-oauth-2-api-generic-credential-type/73954):
>
> Hi, Since, I’m not able to use the Predefined Salesforce Oauth 2 credential type because of a missing custom scope for the Pardot API (now Salesforce Account Engagement), I switched to the Oauth 2 API generic credential type. It works fine with the required custom scope but only when using the classic HTTP Request node, not with the HTTP Request Tool of AI agents. I got an AI Tool error message saying “Credentials not found”. Any idea ?

For me the HTTP Request tool seems to work with predefined credential type but not with generic ones

I’m using version 1.76.1 and latest version of the node.

---

<div class="post-metadata">

**Author:** ![dcardozo](https://avatars.discourse-cdn.com/v4/letter/d/3be4f8/32.png) [@dcardozo](https://community.n8n.io/u/dcardozo)\
**Post date:** [February 1, 2025, 3:28pm UTC](https://community.n8n.io/t/credential-not-found-when-working-with-ai-agent-http-node-as-tool/66097/8 "2025-02-01T15:28:10Z")

</div>

Agreed; they are related.  
Unfortunately I can’t figure out know how to use the Predefined Credential Type with a Keycloak identity Provider.

---

<div class="post-metadata">

**Author:** ![Wolfgang\_Aschauer](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/wolfgang_aschauer/32/58046_2.png) [@Wolfgang\_Aschauer](https://community.n8n.io/u/Wolfgang_Aschauer)\
**Post date:** [February 14, 2025, 9:58am UTC](https://community.n8n.io/t/credential-not-found-when-working-with-ai-agent-http-node-as-tool/66097/9 "2025-02-14T09:58:52Z")

</div>

Issue still exists on version 1.76.2. Using generic credential (oauth2 api) with http node works. when using the http tool call node it doesn’t

---

<div class="post-metadata">

**Author:** ![Maksym\_Arkhipov](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/maksym_arkhipov/32/58140_2.png) [@Maksym\_Arkhipov](https://community.n8n.io/u/Maksym_Arkhipov)\
**Post date:** [February 14, 2025, 11:12pm UTC](https://community.n8n.io/t/credential-not-found-when-working-with-ai-agent-http-node-as-tool/66097/10 "2025-02-14T23:12:20Z")

</div>

Same issue. Problem with executing an HTTP Tool node with a generic credentials type (OAuth2 API). Is there any workaround for the case? I need to perform an HTTP call by Agent and get a result

---

<div class="post-metadata">

**Author:** ![Maksym\_Arkhipov](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/maksym_arkhipov/32/58140_2.png) [@Maksym\_Arkhipov](https://community.n8n.io/u/Maksym_Arkhipov)\
**Post date:** [February 15, 2025, 4:27pm UTC](https://community.n8n.io/t/credential-not-found-when-working-with-ai-agent-http-node-as-tool/66097/11 "2025-02-15T16:27:02Z")

</div>

The workaround is to use Call n8n Workflow Tool with additional workflow and a regular HTTP request node. Works good

---

<div class="post-metadata">

**Author:** ![paradox19](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/paradox19/32/61509_2.png) [@paradox19](https://community.n8n.io/u/paradox19)\
**Post date:** [February 28, 2025, 5:41pm UTC](https://community.n8n.io/t/credential-not-found-when-working-with-ai-agent-http-node-as-tool/66097/12 "2025-02-28T17:41:49Z")

</div>

Hi ria,  
looks like issue still exists in v 1.80.5 cloud. The work around is not ideal and in some cases not a workaround at all. Any potential solution on the horizon ? This is very important for us.

---

<div class="post-metadata">

**Author:** ![ria](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ria/32/99251_2.png) [@ria](https://community.n8n.io/u/ria)\
**Post date:** [March 3, 2025, 11:43am UTC](https://community.n8n.io/t/credential-not-found-when-working-with-ai-agent-http-node-as-tool/66097/13 "2025-03-03T11:43:21Z")

</div>

Hi guys,  
we’re looking into it!

Thanks 🙏

---

<div class="post-metadata">

**Author:** ![Zuma](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/zuma/32/58794_2.png) [@Zuma](https://community.n8n.io/u/Zuma)\
**Post date:** [March 6, 2025, 7:33pm UTC](https://community.n8n.io/t/credential-not-found-when-working-with-ai-agent-http-node-as-tool/66097/15 "2025-03-06T19:33:15Z")

</div>

Thanks Ria! I’m glad to have stumbled into this thread and seen the workaround above since I was about to post about this exact issue as well.

---

<div class="post-metadata">

**Author:** ![paradox19](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/paradox19/32/61509_2.png) [@paradox19](https://community.n8n.io/u/paradox19)\
**Post date:** [March 11, 2025, 1:38pm UTC](https://community.n8n.io/t/credential-not-found-when-working-with-ai-agent-http-node-as-tool/66097/16 "2025-03-11T13:38:18Z")

</div>

The workaround is not ideal if you have an agent with 10 HTTP request tools. This means that you now have to create and manage 10 different workflows. Moreover, you cannot leverage the main functionality where you want the model to decide the query parameters which then makes the work around not feasible.

---

<div class="post-metadata">

**Author:** ![Maksym\_Arkhipov](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/maksym_arkhipov/32/58140_2.png) [@Maksym\_Arkhipov](https://community.n8n.io/u/Maksym_Arkhipov)\
**Post date:** [March 11, 2025, 2:53pm UTC](https://community.n8n.io/t/credential-not-found-when-working-with-ai-agent-http-node-as-tool/66097/17 "2025-03-11T14:53:14Z")

</div>

You are right. This solution smells. However, I solved the trouble with a lot of different requests by creating a variable in which I send from the agent tool a type of request. Then use a switch to decide which endpoint to call. It is really bad thing but no other way to solve this

---

<div class="post-metadata">

**Author:** ![paradox19](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/paradox19/32/61509_2.png) [@paradox19](https://community.n8n.io/u/paradox19)\
**Post date:** [March 17, 2025, 6:42pm UTC](https://community.n8n.io/t/credential-not-found-when-working-with-ai-agent-http-node-as-tool/66097/18 "2025-03-17T18:42:15Z")

</div>

Hi ria, any news on this? … Many thanks.

---

<div class="post-metadata">

**Author:** ![Salah\_Eddin\_Amar\_Nou](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/salah_eddin_amar_nou/32/66155_2.png) [@Salah\_Eddin\_Amar\_Nou](https://community.n8n.io/u/Salah_Eddin_Amar_Nou)\
**Post date:** [March 21, 2025, 9:08am UTC](https://community.n8n.io/t/credential-not-found-when-working-with-ai-agent-http-node-as-tool/66097/19 "2025-03-21T09:08:25Z")

</div>

I could handle this issue and make by using subworkflow tool and there executing the standard HTTP node with the request

---

<div class="post-metadata">

**Author:** ![jpvanoosten](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jpvanoosten/32/31808_2.png) [@jpvanoosten](https://community.n8n.io/u/jpvanoosten)\
**Post date:** [March 24, 2025, 12:48pm UTC](https://community.n8n.io/t/credential-not-found-when-working-with-ai-agent-http-node-as-tool/66097/20 "2025-03-24T12:48:24Z")

</div>

Hi all, we’re working on a new version of the HTTP Request Tool. It’s taking a while though… Since there’s a (albeit cumbersome) workaround, if you run into this issue, please use the subworkflow tool and a normal HTTP Request Node instead until we have this sorted.

---

<div class="post-metadata">

**Author:** ![paradox19](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/paradox19/32/61509_2.png) [@paradox19](https://community.n8n.io/u/paradox19)\
**Post date:** [March 25, 2025, 6:10pm UTC](https://community.n8n.io/t/credential-not-found-when-working-with-ai-agent-http-node-as-tool/66097/21 "2025-03-25T18:10:26Z")

</div>

Thanks for the update, jpvanoosten. Any idea on when is the release planned?

[Next page](https://community.n8n.io/t/credential-not-found-when-working-with-ai-agent-http-node-as-tool/66097.md?page=2)
