{ "name": "My workflow", "nodes": [ { "parameters": { "options": {} }, "type": "@n8n/n8n-nodes-langchain.chatTrigger", "typeVersion": 1.1, "position": [ 80, 64 ], "id": "2abe41ec-3646-4181-b11b-8298c642630a", "name": "When chat message received", "webhookId": "6c052871-b965-43bc-a01e-0e3ae9345081" }, { "parameters": { "options": { "systemMessage": "You are a research agent that helps find contact information from Google Maps or websites.\nAfter searching, save your results to Google Sheets.\nWhen doing this, you must use this JSON format in a single call:\n[\n{\n \"Name\": \"Company name\",\n \"Address\": \"Company address\",\n \"Number\": \"Company phone number\",\n \"Website\": \"Company website\",\n \"Rating\": \"Company rating\", \n \"Opening Hours\": \"Company opening hours\",\n \"Email\": \"Company email address\"\n},\n...\n]\n\nWhen sending the number to \"Add to Google Sheets\", remove the + at the beginning of each number.\n\nWhen going through multiple pages, call \"Add to Google Sheets\" after each \"Map Search\" call to save the data directly, without consolidating it.\n\nIf no email is found, pass it as N/A to \"Add to Google Sheets\".\n\nKeep searching in Map Search until you find no more pages or results.", "maxIterations": 10 } }, "type": "@n8n/n8n-nodes-langchain.agent", "typeVersion": 1.8, "position": [ 304, 64 ], "id": "8c635585-72e7-4596-abbc-5816e0738c30", "name": "AI Agent"