Inside Search Engines: Enhancing SEO with Latenode
Tags: seo, lowcode, nocode, automation
Published: 2023-08-24 19:46:42


Hello DEV community!

SEO optimization is a creative process that requires ongoing effort. "How does the search engine see my site? Does it understand the area I'm focusing on?" – these are important questions to ask. Remember, before real people see your content, search engines look at and sort it first. This is like how a librarian puts a Harry Potter book in the fantasy section, making sure readers find it easily.

It's interesting to note that Google sorts content by **looking at the whole meaning of the text**, not just separate words. So, when you're adding content to your site, it's important to understand how search engines read your content and where they think it belongs.

Instead of trying different things and waiting to see results, you can talk to these search engines directly today. To help with this, in the next 3 minutes, you'll learn how to use a free tool on the Latenode platform to improve your SEO adventure.

## Google NLP
There are many cloud services out there, but Google has a special system for reading and analyzing text: Google NLP (natural language processing). This tool can:
- Understand if the text feels positive, negative, or neutral
- Recognize names of people, places, and organizations, and their specifics
- Analyze the structure of the text (like sentences and words)
- And most importantly for us – **classify text into content categories**

With this tool, we can understand how search engines see our website's content and where they think it belongs. If you want to use the power of Google NLP now and not wait to see slow results, here's a step-by-step guide. Using it, by just entering a website address, you can see your website the way Google does.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/avywde2u2r8f96brmrp9.gif)

## Step-by-step Guide

## 1. Get the API Key
You probably have a Google account. Log in to the [Google Cloud Platform console](http://console.cloud.google.com/),start a new project by going to the  “[Resource Management](https://console.cloud.google.com/cloud-resource-manager)” page. Click on **CREATE PROJECT**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/17kbgfxuz4mjrbvqxk31.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1dd11pw951l70hl9iyfw.png)

Name your project and generate an ID (highlighted in the screenshot above). **If you're new to the Google Cloud Platform, there's a generous $300 bonus awaiting you**. With the content classification service, it's quite a hard  to deplete this bonus. Make sure to set up [payment settings](https://console.developers.google.com/billing) for your account.

When the account and project configurations are ready, turn on the Google Cloud Natural Language API. In [the API and Services ](https://console.cloud.google.com/apis)tab, click on **ENABLE API AND SERVICES**.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hh6kjo7lc4gm9l6zkw6x.png)


Find the **Cloud Natural Language API** in the search bar. Click **ENABLE **to activate the API.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vpu2hjxud1d2qlslsujl.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x1lnfskt0j2p3oz13y00.png)



Now, you need to make the API key because we'll use curl to send info to the Natural Language API. Go to the [API and Services Credentials](https://console.cloud.google.com/apis/credentials) part of your Google Cloud console. Click on the "**Create credentials**" and choose **API key**.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wzvwankogaemvh3wdbbq.png)


A popup will show your new API key. Save this by copying and keeping it safe.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6h8ig7p9yxwfiyk1wiiy.png)



## 2. Copy Template
Now, go to the Latenode platform. It's quick and easy here.

First, copy the code from this link:[https://latenode.notion.site/Google-NLP-URL-Classify-Latenode-com](https://latenode.notion.site/Google-NLP-URL-Classify-Latenode-com). This code has a special script that takes text from a website, sends it to Google Cloud, and gets the sorted result.

After copying, put this code into the script editor on the platform ([app.latenode.com](app.latenode.com)). Everything will set up by itself.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/obv5s6gz4szzqjdd54pw.gif)

Our script is a chain of 6 modules, each doing its own job:
1. **Webhook**: Starts the script and sends the website link with the ?url= parameter.
2. **Convert Website to Text**: Parses the site's content from HTML.
3. **JavaScript**: Cleans the HTML text, removes special symbols, and limits text size.
4. **HTTP request**: Sends the clean text to Google NLP and gets the result.
5. **JavaScript**: Makes the data into an HTML table showing Confidence and Name columns.
6. **Webhook response**: Shows the table with categories (Name) and how sure it is about each category (Confidence)

## 3. Modify Values 
Soon you can use this tool. But first, you need to change some things in the code. Right now, you just copied the template.

In the first Webhook part, change the URL, so the code knows to start.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kokgwc2pdjwh4jp3uhr4.png)



Next, put your API key in the HTTP request section. After that, save and turn on the code.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9k2p17onrkecz98898es.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/swvwjpmhcvzfd7qj19qz.png)




And there you have it! Classify myriad websites from your browser's address bar. Just use the Webhook URL and add the website you want to sort. Visually, it will look like:
**https://webhook.latenode.com/49/dev/CreateYourOwnUrl + ?url=****https://apple.com**
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bdzgyb3a4jvaz7a0egvk.gif)

> Join our low-code enthusiast [Discord channel](http://go.latenode.com/space). We'll answer any questions about the Latenode platform ([app.latenode.com](http://app.latenode.com/)) and how to automate things on it.