Semantic AI-powered SEO Keyword Research
- Knowledge Graphs
- Query Context and Session Context
- Practical/Lab Query Entity Extraction with Google NLP and Entity ML-enabled data analysis
Tools & Platforms
In shortGoogle's cloud-based JavaScript platform for automating Google Sheets and other Workspace apps, often used to call ML APIs from a spreadsheet without code.
Apps Script is Google’s cloud-based scripting platform, built on JavaScript, that lets you automate and extend Google Sheets, Docs, Gmail, Drive and other Workspace apps. For marketers it is the bridge between a spreadsheet and an API: a short script lets a Sheets formula send your text to a machine learning service and write the results back into cells, with no software to install.
Every Google Sheet has a script editor under Extensions > Apps Script. The code you place there can do three useful things for SEO work:
=analyzeFeedback(A2), and it returns values into the sheet.UrlFetchApp service sends requests to external APIs, such as the Google Cloud Natural Language API or the Knowledge Graph Search API, authenticated with your API key.Most of the no-code templates on MLforSEO run on Apps Script. The workflow is always the same: copy the template, open Apps Script, paste your API key into the marked line, save, and run the formula down a column of text. Common uses include:
In the MLforSEO sentiment template, the script defines a custom function that sends each cell’s text to the Natural Language API. Pasted next to a column of customer reviews, =TRANSPOSE(analyzeFeedback(A2)) returns the sentiment score, magnitude and a label such as “slightly negative”. Because the labels are set in the script, you can rename or regroup them to suit your project.
How to do Sentiment Analysis with Google’s Natural Language API in Google Sheets (Apps Script)
How to do Syntax Analysis with Google’s Natural Language API in Google Sheets (Apps Script)
How to do content moderation with Google’s Natural Language API in Google Sheets (Apps Script)
How to do Entity Extraction with Google’s Natural Language API in Google Sheets (Apps Script)