{ "name": "Send Cold Emails", "nodes": [ { "parameters": {}, "id": "92adb460-72f6-4786-9498-e52abbbb19a7", "name": "Execute Workflow Trigger", "type": "n8n-nodes-base.executeWorkflowTrigger", "typeVersion": 1, "position": [ 520, 160 ] }, { "parameters": { "assignments": { "assignments": [ { "id": "a5d82b77-2608-4e5b-b9ca-5233d81ffe46", "name": "google_url", "value": "=https://www.google.es/maps/search/{{ $('Execute Workflow Trigger').item.json.text }}/@{{ $json.lat }},{{ $json.long }},11z/", "type": "string" }, { "id": "decf4392-4fca-41da-9860-769c260255a8", "name": "user_id", "value": "={{ $('Execute Workflow Trigger').item.json.id }}", "type": "number" } ] }, "options": {} }, "id": "802628d0-9110-4feb-b845-ee4b9e3f511b", "name": "Edit Fields1", "type": "n8n-nodes-base.set", "typeVersion": 3.4, "position": [ 1100, 440 ], "onError": "continueRegularOutput" }, { "parameters": { "assignments": { "assignments": [ { "id": "a720e109-d885-4dc0-a1bf-3c9173befcce", "name": "lat", "value": "={{ $json.results[0].geometry.lat }}", "type": "number" }, { "id": "6bd8175c-6ed8-423c-84f9-43fd658a1dc1", "name": "long", "value": "={{ $json.results[0].geometry.lng }}", "type": "number" } ] }, "options": {} }, "id": "8fb8797a-b005-41eb-abb2-d5e534169f5c", "name": "Edit Fields", "type": "n8n-nodes-base.set", "typeVersion": 3.4, "position": [ 1040, 180 ], "onError": "continueRegularOutput" }, { "parameters": { "url": "={{ $json.google_url }}", "options": {} }, "id": "4779601b-4969-4bb7-8a8c-05ce07146dc1", "name": "HTTP Request", "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.2, "position": [ 1280, 260 ], "onError": "continueRegularOutput" }, { "parameters": { "url": "https://api.opencagedata.com/geocode/v1/json", "sendQuery": true, "queryParameters": { "parameters": [ { "name": "key", "value": "c3bac2cf2dc0482697c5468755aaceba" }, { "name": "q", "value": "={{ $json.city }}, España" } ] }, "options": {} }, "id": "73298590-6b61-4a16-a5eb-d94044569ca5", "name": "HTTP Request2", "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.2, "position": [ 820, 420 ], "executeOnce": false, "onError": "continueRegularOutput" }, { "parameters": { "mode": "runOnceForEachItem", "language": "python", "pythonCode": "from bs4 import BeautifulSoup\n\ndata = _input.item.json\n\ntry:\n # Add a new field called 'myNewField' to the JSON of the item\n html_content =_('HTTP Request1').item.json.data\n # Parse the HTML with BeautifulSoup\n soup = BeautifulSoup(html_content, 'html.parser')\n\n # Extract the content of the