Automate Keyword Service Detection with n8n & AI Agents

This workflow automates identifying IT software or service-related keywords in your Google Sheets using n8n and AI agents. It eliminates manual checking, saving hours and improving keyword analysis accuracy.
ManualTrigger
Google Sheets
AI Agent
+4
Workflow Identifier: 2493
NODES in Use: ManualTrigger, Google Sheets, SplitInBatches, Wait, AI Agent, LM Chat OpenAI, Output Parser Structured
Automate keyword detection with n8n and AI agents

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Automation Does

This workflow gets keywords from a Google Sheet and tells if each is a known IT software or service name.

It helps avoid slow manual checks and errors.

The steps are simple: fetch keywords, split them into small groups, pause to avoid API limits, send each group to an AI model that says yes or no, and then update the original sheet with these answers.

This saves lots of time and makes keyword checking easier and clearer.


Step-by-Step Guide

How to Use This Workflow in Production

1. Import the Workflow

  1. Open the n8n editor.
  2. Click on “Import from File” and select the workflow file downloaded from this page.

2. Configure Credentials and IDs

  1. Add Google Sheets credentials with read/write access to your keywords sheet.
  2. Add OpenAI API Key with GPT-4o-mini model access.
  3. Check and update the Google Sheet document ID and sheet ID if your sheet is different.

3. Edit AI Prompt if Needed

  1. Open the AI Agent node.
  2. Check the System Message prompt and adjust it if you want to detect different keyword types.
  3. For example, use this prompt exactly as shown:
  4. Check the keyword I provided and define if this keyword has a name of the known IT software, service, tool or app as a part of it (for example, ServiceNow or Salesforce) and return yes or no.

4. Test the Workflow

  1. Use the Manual Trigger node by clicking “Execute Workflow” or “Test Workflow”.
  2. Verify that keywords are fetched, processed, and results update the Google Sheet.

5. Activate for Production

  1. Enable the workflow trigger if you want it to run on a schedule or event.
  2. Monitor runs in the Execution List and keep backups of your Google Sheet data.

Follow self-host n8n if running on your own server for better control.


What Inputs, Processing, and Outputs Happen

Inputs

  • Google Sheet: List of keywords in a designated sheet and column.
  • OpenAI API Key: Allows communication with GPT-4o-mini model.

Processing Steps

  • Fetch Keywords: Retrieves keyword list using Google Sheets API.
  • Batch Keywords: Groups the list into sets of 6 keywords each for safe API calls.
  • Wait Node: Pauses flow briefly to prevent hitting rate limits.
  • AI Analysis: Each batch is sent to the AI Agent node with a clear prompt to label keywords as known IT services or not.
  • Parse Output: Transforms the AI reply into simple JSON with “Isservice”: “yes” or “no”.
  • Update Sheet: Writes the classification back in the Google Sheet in a new column called “Service?”.

Outputs

  • Enhanced Google Sheet: Original keyword list with an added column showing AI’s yes/no classification.

Customizations

  • Change the batch size in the Process Keywords in Batches node to tune speed versus API limits.
  • Edit the AI prompt in the AI Agent node to detect things other than software names, like industries or competitors.
  • Add new columns in Google Sheets and update the Update Sheet with Analysis Results node to save extra insights such as confidence scores.
  • Add error-handling nodes to retry or log API call failures after the AI Agent node.

Troubleshooting

Issue: “Error 429 Too Many Requests” from OpenAI API.

Cause: Too many requests sent too fast.

Fix: Increase wait time in Prevent API Rate Limiting node or reduce batch size in Process Keywords in Batches.

Issue: Google Sheets node can’t read or write data.

Cause: OAuth credentials expired or wrong sheet/document ID used.

Fix: Re-check Google Sheets OAuth setup and sheet/document ID fields.


Pre-Production Checklist

  • Confirm Google Sheets credentials have read and write access to the keyword sheet.
  • Make sure OpenAI API key is valid and has access to GPT-4o-mini model.
  • Run a test with a few keywords to check data flow and classification.
  • Adjust batch sizes and wait times according to API limits and speed needs.
  • Backup Google Sheet before large updates to avoid data loss.

Deployment Guide

Enable workflow triggers as needed for scheduled or manual runs.

Use Manual Trigger node for on-demand executions and testing.

Watch executions inside n8n’s Execution List to catch errors early.

Keep regular backups of the Google Sheet as updates happen automatically.


Automate keyword detection with n8n and AI agents

Visit through Desktop to Interact with the Workflow.

Author
Written By
Vikash Kumar
Building AI agents, n8n workflows and end-to-end automation for 30+ Brands across India, the US, Europe, Dubai & Australia. 7+ years of Experience saving founders real hours every week - no code required.
Author
Written By
Vikash Kumar
Building AI agents, n8n workflows and end-to-end automation for 30+ Brands across India, the US, Europe, Dubai & Australia. 7+ years of Experience saving founders real hours every week - no code required.

Frequently Asked Questions

Yes, the OpenAI Chat Model node supports different GPT models. Change the model in the node’s settings.
Bigger batches mean fewer API calls but may cause rate limits. Smaller batches use more calls but are safer.
Wrong OAuth credentials or incorrect sheet/document IDs cause failure to fetch or update data.
Yes, data is sent securely over HTTPS to OpenAI API. Keep n8n secure for overall safety.

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.