help.chat-api.com

messengers API integration with Google natural language using API Chains

Google natural language is a unique and powerful text analysis tool. It is used in a number of areas, such as machine translation, chatbots, spam filters, as well as search engine optimization (SEO). In search engine optimization, the most interesting elements are the tonality of the text (sentiment), entities and salience (significance/salience).

We strongly recommend that you familiarize yourself with the service more closely, you can do it here. You will immediately be offered a demonstration of the service's capabilities:

Where you can make an independent analysis of the text:

API chains provide the ability to configure 2 types of analysis: Entities and Sentiment.

An entity is a word or phrase representing an object that can be identified, classified and categorized, for example, people, goods, events, numbers, organizations, etc.

Sentiment is an analysis of the emotional coloring of the text: positive, negative, neutral.

Customization

In the initial setup, you will need a Google key. We wrote more about creating a key here.   

Next, we need to configure the dynamic document parameter, regardless of whether we request.

https://cloud.google.com/natural-language/docs/reference/rest/v1beta2/documents/analyzeEntities

or

https://cloud.google.com/natural-language/docs/reference/rest/v1beta2/documents/analyzeSentiment

the document must contain at least "content" and "type" parameters (https://cloud .google.com/natural-language/docs/reference/rest/v1beta2/documents#Document ), therefore, it is necessary to use additional text processing using custom NodeJS code to create the object we need.

Response

You will also find the answer options in the documentation:

https://cloud.google.com/natural-language/docs/reference/rest/v1beta2/documents/analyzeEntities

or

https://cloud.google.com/natural-language/docs/reference/rest/v1beta2/documents/analyzeSentiment

Was this article helpful?

Your opinion will be used to improve the content of the article

The Most Multifunctional API Provider

Chat API has been operating since 2015 and is one of the first and largest providers in Eastern Europe.

Here are some curious and important figures:

  • We have tremendous expertise in docker container management at scale with an SLA of 99.5+%;
  • Chat API involves in its work more than 200 servers, with the ability to quickly connect another 100;
  • 3200 cores and 25 terabytes of RAM;
  • 200+ methods and features that keep adding;
  • Highload system, Up Time servers 99.9%;
  • Support 24\7;
Get access to the API