Connecting to Azure AI Agents

Describe the problem/error/question

Hi

I’m trying, without luck, to use an agent created in Azure AI Foundry. Probably my lack of knowledge however I’ve added an AI Agent node and an Azure OpenAI Model. I’ve added the required information for the connection however when running the workflow I get an error stating the resource cannot be found. I’ve tried everything I could find as the resource value but still I get this error.

What is the error message (if any)?

The resource you are requesting could not be found

Please share your workflow

{
“nodes”: [
{
“parameters”: {
“public”: true,
“options”: {}
},
“id”: “b24b05a7-d802-4413-bfb1-23e1e76f6203”,
“name”: “When chat message received”,
“type”: “@n8n/n8n-nodes-langchain.chatTrigger”,
“typeVersion”: 1.1,
“position”: [
840,
-340
],
“webhookId”: “a889d2ae-2159-402f-b326-5f61e90f602e”
},
{
“parameters”: {},
“type”: “@n8n/n8n-nodes-langchain.memoryBufferWindow”,
“typeVersion”: 1.3,
“position”: [
1200,
-120
],
“id”: “7748dc17-e129-4be1-8c0d-bd2b3dcafda3”,
“name”: “Simple Memory1”
},
{
“parameters”: {
“options”: {}
},
“type”: “@n8n/n8n-nodes-langchain.agent”,
“typeVersion”: 2,
“position”: [
1020,
-340
],
“id”: “7f567f26-7fc8-4032-977b-787acecac4ef”,
“name”: “AI Agent”
},
{
“parameters”: {
“model”: “gpt-4o-mini (version:2024-07-18)”,
“options”: {}
},
“type”: “@n8n/n8n-nodes-langchain.lmChatAzureOpenAi”,
“typeVersion”: 1,
“position”: [
960,
-120
],
“id”: “1046d619-519c-4ab5-97ac-9f38df856819”,
“name”: “Azure OpenAI Chat Model”,
“credentials”: {
“azureOpenAiApi”: {
“id”: “VlpTZT3graBzAJ0b”,
“name”: “Azure Open AI account 2”
}
}
}
],
“connections”: {
“When chat message received”: {
“main”: [
[
{
“node”: “AI Agent”,
“type”: “main”,
“index”: 0
}
]
]
},
“Simple Memory1”: {
“ai_memory”: [
[
{
“node”: “AI Agent”,
“type”: “ai_memory”,
“index”: 0
}
]
]
},
“AI Agent”: {
“main”: [

]
},
“Azure OpenAI Chat Model”: {
“ai_languageModel”: [
[
{
“node”: “AI Agent”,
“type”: “ai_languageModel”,
“index”: 0
}
]
]
}
},
“pinData”: {},
“meta”: {
“templateId”: “self-building-ai-agent”,
“templateCredsSetupCompleted”: true,
“instanceId”: “f444768340752503bcd6b186520e6ea7e389ce4c83dee54db11f41bcf0cb6b3a”
}
}

Share the output returned by the last node

The resource you are requesting could not be found

Information on your n8n setup

  • n8n version:
  • 1.97.1 cloud
  • Database (default: SQLite):
  • NA
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • ?? where do i find it?
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • cloud
  • Operating system:
  • NA

The error “The resource you are requesting could not be found” indicates that the node cannot find the configured Azure endpoint. This could be due to a misspecified resource, endpoint, or deployment name.

The resource group and resource name must match exactly. Confirm that the Azure OpenAI endpoint is enabled. Verify the deployment name (for example, gpt-4o-mini) in the Azure portal.

In the Azure OpenAI Chat Model sub-node, ensure that you set the correct credential type for Azure OpenAI. Enter the full endpoint URL (for example: https://.openai.azure.com/). Use the deployment name exactly as it appears in Azure.