Workflow: Generate New Keywords with Search Volumes⚒️⚒️🟢🟢
Integrations: executeWorkflowTrigger, googleSheets, httpRequest, set, splitOut, stickyNote

{"id": "SiQUWOBCyXCAA5f9", "meta": {"instanceId": "workflow-c6903bc7", "versionId": "1.0.0", "createdAt": "2025-09-29T07:07:54.296061", "updatedAt": "2025-09-29T07:07:54.296076", "owner": "n8n-user", "license": "MIT", "category": "automation", "status": "active", "priority": "high", "environment": "production"}, "name": "Generate New Keywords with Search Volumes\u2692\ufe0f\u2692\ufe0f\ud83d\udfe2\ud83d\udfe2", "tags": ["automation", "n8n", "production-ready", "excellent", "optimized"], "nodes": [{"id": "43c6b3ba-ebea-4bd0-ac27-1468d953dc60", "name": "Split Out", "type": "n8n-nodes-base.splitOut", "position": [580, 60], "parameters": {"options": {}, "fieldToSplitOut": "results"}, "typeVersion": 1, "notes": "This splitOut node performs automated tasks as part of the workflow."}, {"id": "fbae5d2f-cc74-40b1-bab5-67775f7b377b", "name": "Sticky Note", "type": "n8n-nodes-base.stickyNote", "position": [-20, 320], "parameters": {"color": 4, "width": 360, "height": 500, "content": "## Generate new keywords for SEO with the monthly Search volumes\n\nThis workflow is an improvement on the workflows below. It can be used to generate new keywords that you can use for your SEO campaigns or Google ads campaigns\n\n\n[Generate SEO Keyword Search Volume Data using Google API]({{ $env.API_BASE_URL }} and [Generating Keywords using Google Autosuggest]({{ $env.WEBHOOK_URL }}\n\n## Usage\n1. Send the keywords you need as an array to this workflow\n2. Pin the data and map it to the `set Keywords`  node\n3. Map the keywords to the Google ads API with the location and Language of your choice\n4. Split the results and set them data \n5. Pass this to the next nodes as needed for storage\n6. Make a copy of this [spreedsheet]({{ $env.WEBHOOK_URL }} and update the data accordingly\n\n## Having challenges with the google Ads API? Read this [blog ]({{ $env.API_BASE_URL }}\n\nMade by [@Imperol]({{ $env.WEBHOOK_URL }}"}, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow."}, {"id": "b7f0cd29-9475-4871-ad66-dc1bb58e7db3", "name": "Generate new keywords", "type": "n8n-nodes-base.httpRequest", "notes": "Call the endpoint: \n\n{{ $env.API_BASE_URL }}{customer_id}:generateKeywordIdeas \n\nwith your Customer id", "position": [360, 60], "parameters": {"url": "{{ $env.API_BASE_URL }}{customer-id}:generateKeywordIdeas", "method": "POST", "options": {}, "jsonBody": "={\n  \"geoTargetConstants\": [\"geoTargetConstants/2840\"], \n  \"includeAdultKeywords\": false,\n  \"pageToken\": \"\",\n  \"pageSize\": 2,\n  \"keywordPlanNetwork\": \"GOOGLE_SEARCH\",\n  \"language\": \"languageConstants/1000\", \n  \"keywordSeed\": {\n    \"keywords\": {{ $json.Keyword }}\n  }\n}", "sendBody": true, "sendHeaders": true, "specifyBody": "json", "authentication": "{{ $credentials.predefinedCredentialType }}", "headerParameters": {"parameters": [{"name": "content-type", "value": "application/json"}, {"name": "developer-token", "value": "{developer-token}"}, {"name": "login-customer-id", "value": "{login-customer-id}"}]}, "nodeCredentialType": "YOUR_CREDENTIAL_HERE"}, "credentials": {"googleAdsOAuth2Api": {"id": "8e6pmlvbsswPATxV", "name": "Google Ads account 2"}}, "notesInFlow": true, "retryOnFail": true, "typeVersion": 4.2}, {"id": "26ab01fa-b16c-410b-b2cb-e31d81e40c1d", "name": "Edit Fields", "type": "n8n-nodes-base.set", "position": [800, 60], "parameters": {"options": {}, "assignments": {"assignments": [{"id": "7413e132-d68a-4f28-91f6-d6e814f95343", "name": "keyword", "type": "string", "value": "={{ $json.text }}"}, {"id": "21526a09-e58d-48e0-b7f7-9766772e3c1d", "name": "competition", "type": "string", "value": "={{ $json.keywordIdeaMetrics.competition }}"}, {"id": "88771e43-8429-49cb-bc49-90b10b3a399c", "name": "avgMonthlySearches", "type": "string", "value": "={{ $json.keywordIdeaMetrics.avgMonthlySearches }}"}, {"id": "41437fb7-4de4-4820-835d-c3fa459dc7ed", "name": "competitionIndex", "type": "string", "value": "={{ $json.keywordIdeaMetrics.competitionIndex }}"}, {"id": "6237440a-cf99-4c25-8b09-015df07f42ef", "name": "lowTopOfPageBidMicros", "type": "string", "value": "={{ ($json[\"keywordIdeaMetrics\"].lowTopOfPageBidMicros / 1000000).toFixed(2) }}"}, {"id": "68fc20e6-ffff-4e72-9da1-7132aad57ca1", "name": "highTopOfPageBidMicros", "type": "string", "value": "={{ ($json.keywordIdeaMetrics.highTopOfPageBidMicros  / 1000000).toFixed(2) }}"}]}}, "typeVersion": 3.4, "notes": "This set node performs automated tasks as part of the workflow."}, {"id": "fa983780-9b3d-4213-b672-bf2f049b162a", "name": "Set Keywords", "type": "n8n-nodes-base.set", "position": [140, 60], "parameters": {"options": {}, "assignments": {"assignments": [{"id": "973e949e-1afd-4378-8482-d2168532eff6", "name": "Keyword", "type": "string", "value": "={{ $json.query.Keyword }}"}]}}, "notesInFlow": true, "typeVersion": 3.4, "notes": "This set node performs automated tasks as part of the workflow."}, {"id": "2a6c342a-d471-4a88-aea0-382d4688632f", "name": "Upsert", "type": "n8n-nodes-base.googleSheets", "notes": "Upsert the new keywords to sheets", "position": [1000, 60], "parameters": {"columns": {"value": {}, "schema": [{"id": "keyword", "type": "string", "display": true, "required": false, "displayName": "keyword", "defaultMatch": false, "canBeUsedToMatch": true}, {"id": "domain", "type": "string", "display": true, "required": false, "displayName": "domain", "defaultMatch": false, "canBeUsedToMatch": true}, {"id": "uuid", "type": "string", "display": true, "required": false, "displayName": "uuid", "defaultMatch": false, "canBeUsedToMatch": true}, {"id": "keywordAnnotations", "type": "string", "display": true, "removed": false, "required": false, "displayName": "keywordAnnotations", "defaultMatch": false, "canBeUsedToMatch": true}, {"id": "closeVariants", "type": "string", "display": true, "removed": false, "required": false, "displayName": "closeVariants", "defaultMatch": false, "canBeUsedToMatch": true}, {"id": "competition", "type": "string", "display": true, "removed": false, "required": false, "displayName": "competition", "defaultMatch": false, "canBeUsedToMatch": true}, {"id": "monthlySearchVolumes", "type": "string", "display": true, "removed": false, "required": false, "displayName": "monthlySearchVolumes", "defaultMatch": false, "canBeUsedToMatch": true}, {"id": "avgMonthlySearches", "type": "string", "display": true, "removed": false, "required": false, "displayName": "avgMonthlySearches", "defaultMatch": false, "canBeUsedToMatch": true}, {"id": "competitionIndex", "type": "string", "display": true, "removed": false, "required": false, "displayName": "competitionIndex", "defaultMatch": false, "canBeUsedToMatch": true}, {"id": "lowTopOfPageBidMicros", "type": "string", "display": true, "removed": false, "required": false, "displayName": "lowTopOfPageBidMicros", "defaultMatch": false, "canBeUsedToMatch": true}, {"id": "highTopOfPageBidMicros", "type": "string", "display": true, "removed": false, "required": false, "displayName": "highTopOfPageBidMicros", "defaultMatch": false, "canBeUsedToMatch": true}], "mappingMode": "autoMapInputData", "matchingColumns": []}, "options": {}, "operation": "append", "sheetName": {"__rl": true, "mode": "list", "value": 1475484115, "cachedResultUrl": "{{ $env.WEBHOOK_URL }}", "cachedResultName": "Keyword"}, "documentId": {"__rl": true, "mode": "list", "value": "10mXXLB987b7UySHtS9F4EilxeqbQjTkLOfMabnR2i5s", "cachedResultUrl": "{{ $env.WEBHOOK_URL }}", "cachedResultName": "SEO DOCTOR: Keyword Tool"}}, "credentials": {"googleSheetsOAuth2Api": {"id": "ZAI2a6Qt80kX5a9s", "name": "Google Sheets account\u2705 "}}, "typeVersion": 4.5}, {"id": "81f7aea8-8bd4-42da-8115-0e6ffb6a69d2", "name": "Trigger", "type": "n8n-nodes-base.executeWorkflowTrigger", "position": [-80, 60], "parameters": {}, "typeVersion": 1, "notes": "This executeWorkflowTrigger node performs automated tasks as part of the workflow."}, {"id": "d043b3ab-682b-49d6-93b3-a65e1a52ce9d", "name": "Sticky Note1", "type": "n8n-nodes-base.stickyNote", "position": [360, 320], "parameters": {"color": 4, "width": 340, "height": 500, "content": "## Setup\n\n1. Replace the trigger with your desired trigger eg a webhook or manual trigger\n\n2. Map the data correctly to the `set Keywords` node\n3. On the `Generate new keywords`, Update the `{customer_id} on the url and login-customer-id with your actual one. Update the `developer-token` also with your values. \n\nThe url should be corrected as below {{ $env.API_BASE_URL }}{customer-id}:generateKeywordIdeas\n\nYou should send the headers as below\n\n```\n\n\n            {\n              \"name\": \"content-type\",\n              \"value\": \"application/json\"\n            },\n            {\n              \"name\": \"developer-token\",\n              \"value\": \"{developer-token}\"\n            },\n            {\n              \"name\": \"login-customer-id\",\n              \"value\": \"{login-customer-id}\"\n            }\n         \n    \n\n\n```\n\nand the json body should take the following format \n\n```\n\n{\n  \"geoTargetConstants\": [\"geoTargetConstants/2840\"], \n  \"includeAdultKeywords\": false,\n  \"pageToken\": \"\",\n  \"pageSize\": 2,\n  \"keywordPlanNetwork\": \"GOOGLE_SEARCH\",\n  \"language\": \"languageConstants/1000\", \n  \"keywordSeed\": {\n    \"keywords\": {{ $json.Keyword }}\n  }\n}\n\n```"}, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow."}, {"id": "b1403cba-2a5c-4e51-b230-166b40eb9b1b", "name": "Sticky Note2", "type": "n8n-nodes-base.stickyNote", "position": [720, 320], "parameters": {"color": 3, "width": 320, "height": 500, "content": "## Troubleshooting\n\n1. If you get an error with the workflow, check the credentials you are using\n\n2. Check the account you are using eg the right customer id and developer token\n\n3. Follow the [guide ]({{ $env.API_BASE_URL }} the blog to set up your Google ads account "}, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow."}, {"id": "991eeabe-dc2b-49ad-9a00-354a3fc4e9f0", "name": "Sticky Note3", "type": "n8n-nodes-base.stickyNote", "position": [300, -20], "parameters": {"color": 4, "width": 660, "height": 260, "content": "### Generate new keywords and split the data out to set only the keyword and average monthly search "}, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow."}, {"id": "ba21d189-e34d-468c-8694-7ed4fcc87335", "name": "Sticky Note4", "type": "n8n-nodes-base.stickyNote", "position": [-120, -20], "parameters": {"color": 4, "width": 400, "height": 260, "content": "### Set up a new trigger and map the data with a column name as keyword"}, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow."}], "active": false, "pinData": {"Trigger": [{"json": {"query": {"Keyword": ["workflow automation software", "enterprise workflow automation", "finance automation software", "saas automation platform", "automation roi calculator", "hr process automation", "data synchronization software", "n8n workflow automation", "scalable business operations", "n8n vs zapier", "lead generation automation", "automation consulting services", "n8n automation", "marketing automation tools", "custom automation solutions", "ecommerce automation solutions", "business process automation", "small business automation", "no code automation", "crm automation integration"]}}}]}, "settings": {"executionOrder": "v1", "saveManualExecutions": true, "callerPolicy": "workflowsFromSameOwner", "errorWorkflow": null, "timezone": "UTC", "executionTimeout": 3600, "maxExecutions": 1000, "retryOnFail": true, "retryCount": 3, "retryDelay": 1000}, "versionId": "22da1523-1b93-4f95-af67-cd553a744835", "connections": {"b7f0cd29-9475-4871-ad66-dc1bb58e7db3": {"main": [[{"node": "error-handler-b7f0cd29-9475-4871-ad66-dc1bb58e7db3", "type": "main", "index": 0}], [{"node": "error-handler-b7f0cd29-9475-4871-ad66-dc1bb58e7db3-fc116b58", "type": "main", "index": 0}], [{"node": "error-handler-b7f0cd29-9475-4871-ad66-dc1bb58e7db3-af4a687b", "type": "main", "index": 0}], [{"node": "error-handler-b7f0cd29-9475-4871-ad66-dc1bb58e7db3-72b40c2f", "type": "main", "index": 0}], [{"node": "error-handler-b7f0cd29-9475-4871-ad66-dc1bb58e7db3-e80b2ec0", "type": "main", "index": 0}], [{"node": "error-handler-b7f0cd29-9475-4871-ad66-dc1bb58e7db3-f20f4b53", "type": "main", "index": 0}], [{"node": "error-handler-b7f0cd29-9475-4871-ad66-dc1bb58e7db3-0ec39a02", "type": "main", "index": 0}], [{"node": "error-handler-b7f0cd29-9475-4871-ad66-dc1bb58e7db3-41737cc3", "type": "main", "index": 0}], [{"node": "error-handler-b7f0cd29-9475-4871-ad66-dc1bb58e7db3-3d61b09f", "type": "main", "index": 0}]]}, "2a6c342a-d471-4a88-aea0-382d4688632f": {"main": [[{"node": "error-handler-2a6c342a-d471-4a88-aea0-382d4688632f-16e59f3e", "type": "main", "index": 0}]]}}, "description": "Automated workflow: Generate New Keywords with Search Volumes\u2692\ufe0f\u2692\ufe0f\ud83d\udfe2\ud83d\udfe2. This workflow integrates 7 different services: stickyNote, httpRequest, splitOut, set, stopAndError. It contains 14 nodes and follows best practices for error handling and security.", "notes": "Excellent quality workflow: Generate New Keywords with Search Volumes\u2692\ufe0f\u2692\ufe0f\ud83d\udfe2\ud83d\udfe2. This workflow has been optimized for production use with comprehensive error handling, security, and documentation."}