Google Contacts tool not finding contact information

I can’t get the AI Agent to retrieve the email address for a name i specify.

I’ve provided api keys, the tool is being called.

{
“nodes”: [
{
“parameters”: {
“options”: {
“systemMessage”: “retrieve the email address for the user name provided”
}
},
“type”: “@n8n/n8n-nodes-langchain.agent”,
“typeVersion”: 1.7,
“position”: [
-140,
80
],
“id”: “aa8b8bfe-b5c7-4044-8086-4a5e364ff843”,
“name”: “AI Agent1”
}
],
“connections”: {
“AI Agent1”: {
“main”: [

]
}
},
“pinData”: {},
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “e48b800dcc5e29f3670762c9007a820576948a7a52e53ba0af23744cc0d602f4”
}
}

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:

@Ryan-n8n show me the workflow bro

This is the workflow based on the provided code:

{
“nodes”: [
{
“parameters”: {
“options”: {}
},
“type”: “@n8n/n8n-nodes-langchain.chatTrigger”,
“typeVersion”: 1.1,
“position”: [
-340,
40
],
“id”: “ee362da6-6069-4787-a604-c67359049153”,
“name”: “When chat message received”,
“webhookId”: “bf234b26-8e97-4649-a4d5-05faece90791”
},
{
“parameters”: {
“options”: {
“systemMessage”: “retrieve the email address for the user name provided”
}
},
“type”: “@n8n/n8n-nodes-langchain.agent”,
“typeVersion”: 1.7,
“position”: [
-140,
80
],
“id”: “aa8b8bfe-b5c7-4044-8086-4a5e364ff843”,
“name”: “AI Agent1”
},
{
“parameters”: {
“model”: {
“__rl”: true,
“value”: “gpt-4o”,
“mode”: “list”,
“cachedResultName”: “gpt-4o”
},
“options”: {}
},
“type”: “@n8n/n8n-nodes-langchain.lmChatOpenAi”,
“typeVersion”: 1.2,
“position”: [
-300,
300
],
“id”: “4c0b7c7c-b4fd-40f6-a3e3-cd8f7bd1b931”,
“name”: “OpenAI Chat Model1”,
“credentials”: {
“openAiApi”: {
“id”: “he2cD8z2DJ7Rx8MI”,
“name”: “OpenAi account”
}
}
},
{
“parameters”: {
“operation”: “getAll”,
“fields”: [
“emailAddresses”
],
“options”: {}
},
“type”: “n8n-nodes-base.googleContactsTool”,
“typeVersion”: 1,
“position”: [
60,
280
],
“id”: “810d42b1-50d9-4b78-8131-9b7b2bf28b3d”,
“name”: “Google Contacts”,
“credentials”: {
“googleContactsOAuth2Api”: {
“id”: “0AAZxEdASkw6HWGH”,
“name”: “Google Contacts account”
}
}
},
{
“parameters”: {},
“type”: “@n8n/n8n-nodes-langchain.memoryBufferWindow”,
“typeVersion”: 1.3,
“position”: [
-120,
320
],
“id”: “eae5baa1-4a14-4f09-b07d-2ecd8a11cadf”,
“name”: “Window Buffer Memory1”
}
],
“connections”: {
“When chat message received”: {
“main”: [
[
{
“node”: “AI Agent1”,
“type”: “main”,
“index”: 0
}
]
]
},
“AI Agent1”: {
“main”: [

]
},
“OpenAI Chat Model1”: {
“ai_languageModel”: [
[
{
“node”: “AI Agent1”,
“type”: “ai_languageModel”,
“index”: 0
}
]
]
},
“Google Contacts”: {
“ai_tool”: [
[
{
“node”: “AI Agent1”,
“type”: “ai_tool”,
“index”: 0
}
]
]
},
“Window Buffer Memory1”: {
“ai_memory”: [
[
{
“node”: “AI Agent1”,
“type”: “ai_memory”,
“index”: 0
}
]
]
}
},
“pinData”: {},
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “e48b800dcc5e29f3670762c9007a820576948a7a52e53ba0af23744cc0d602f4”
}
}

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