# Google Text analysis services

**URL:** <https://forum.uipath.com/t/google-text-analysis-services/87964>\
**Category:** Help\
**Tags:** cognitive, activities\
**Created:** [1월 14, 2019, 6:23오전 UTC](https://forum.uipath.com/t/google-text-analysis-services/87964 "2019-01-14T06:23:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon93596912](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@anon93596912](https://forum.uipath.com/u/anon93596912)\
**Post date:** [1월 14, 2019, 6:23오전 UTC](https://forum.uipath.com/t/google-text-analysis-services/87964/1 "2019-01-14T06:23:31Z")

</div>

Hello & Good Morning,  
I need information about Google Text analysis on the below Issue:  
I need to perform different operations for a specific request based on the request mentioned by the customer in the email body. based on a few keywords in the body I decide the flow.  
when I feed that mail body to the Google text analysis it returns back few keys words which serve my purpose, but  
My question is we can do the same using UiPath code, using the command “Contains” and mentioning the keywords.  
what more services do google text analysis could provide?

can anyone explain me, please?

Thanks & Regards.

---

<div class="post-metadata">

**Author:** ![Tuhin\_Samanta](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/tuhin_samanta/32/43330_2.png) [@Tuhin\_Samanta](https://forum.uipath.com/u/Tuhin_Samanta)\
**Post date:** [1월 14, 2019, 6:13오후 UTC](https://forum.uipath.com/t/google-text-analysis-services/87964/2 "2019-01-14T18:13:41Z")

</div>

Using Google Text Analysis activity, you can analyse the sentiment ( positivity, negativity,) , polarity and lot more which normal string operations cannot achieve.  
You can learn more here:[https://activities.uipath.com/docs/google-text-analysis](https://activities.uipath.com/docs/google-text-analysis)  
Following are different use cases of Text analysis;  
[The Risk And Market Intelligence Blog | AYLIEN](http://blog.aylien.com/text-analysis-10-business-use-cases-you-may-not/)

---

<div class="post-metadata">

**Author:** ![anon93596912](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@anon93596912](https://forum.uipath.com/u/anon93596912)\
**Post date:** [1월 15, 2019, 4:54오전 UTC](https://forum.uipath.com/t/google-text-analysis-services/87964/3 "2019-01-15T04:54:39Z")

</div>

Thanks for responding and proving some info. It is helpful.  
But i need a bit more information.

---

<div class="post-metadata">

**Author:** ![Amit\_Modi](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/amit_modi/32/105340_2.png) [@Amit\_Modi](https://forum.uipath.com/u/Amit_Modi)\
**Post date:** [11월 4, 2019, 8:25오후 UTC](https://forum.uipath.com/t/google-text-analysis-services/87964/4 "2019-11-04T20:25:28Z")

</div>

@Tuhin_Samanta I am using Google Text Analysis activity but the OutPut Variable Raw Result is giving invalid json. I am not able to parse the json.  
Can you please assist me.

Best Regards  
Amit M

Here is the error: Deserialize JSON: Cannot create and populate list type Newtonsoft.Json.Linq.JToken. Path ‘sentences’, line 2, position 16.

and bleow is the Json

"{\n “sentences”: ,\n “tokens”: ,\n “entities”: [\n {\n “name”: “hardware”,\n “type”: “OTHER”,\n “metadata”: {},\n “salience”: 0.34424457,\n “mentions”: [\n {\n “text”: {\n “content”: “hardware”,\n “beginOffset”: -1\n },\n “type”: “COMMON”\n }\n]\n },\n {\n “name”: “music”,\n “type”: “WORK\_OF\_ART”,\n “metadata”: {},\n “salience”: 0.16264704,\n “mentions”: [\n {\n “text”: {\n “content”: “music”,\n “beginOffset”: -1\n },\n “type”: “COMMON”\n },\n {\n “text”: {\n “content”: “music”,\n “beginOffset”: -1\n },\n “type”: “COMMON”\n }\n]\n },\n {\n “name”: “speaker”,\n “type”: “PERSON”,\n “metadata”: {},\n “salience”: 0.07311107,\n “mentions”: [\n {\n “text”: {\n “content”: “speaker”,\n “beginOffset”: -1\n },\n “type”: “COMMON”\n }\n]\n },\n {\n “name”: “amazon”,\n “type”: “OTHER”,\n “metadata”: {},\n “salience”: 0.047477193,\n “mentions”: [\n {\n “text”: {\n “content”: “amazon”,\n “beginOffset”: -1\n },\n “type”: “COMMON”\n }\n]\n },\n {\n “name”: “example”,\n “type”: “OTHER”,\n “metadata”: {},\n “salience”: 0.043456104,\n “mentions”: [\n {\n “text”: {\n “content”: “example”,\n “beginOffset”: -1\n },\n “type”: “COMMON”\n }\n]\n },\n {\n “name”: “youtube”,\n “type”: “OTHER”,\n “metadata”: {\n “mid”: “/m/09jcvs”,\n “wikipedia\_url”: “[https://en.wikipedia.org/wiki/YouTube”\n](https://en.wikipedia.org/wiki/YouTube%E2%80%9D%5Cn) },\n “salience”: 0.04271461,\n “mentions”: [\n {\n “text”: {\n “content”: “wynk”,\n “beginOffset”: -1\n },\n “type”: “COMMON”\n },\n {\n “text”: {\n “content”: “youtube”,\n “beginOffset”: -1\n },\n “type”: “PROPER”\n }\n]\n },\n {\n “name”: “software front”,\n “type”: “OTHER”,\n “metadata”: {},\n “salience”: 0.035568237,\n “mentions”: [\n {\n “text”: {\n “content”: “software front”,\n “beginOffset”: -1\n },\n “type”: “COMMON”\n }\n]\n },\n {\n “name”: “commands”,\n “type”: “OTHER”,\n “metadata”: {},\n “salience”: 0.03539345,\n “mentions”: [\n {\n “text”: {\n “content”: “commands”,\n “beginOffset”: -1\n },\n “type”: “COMMON”\n }\n]\n },\n {\n “name”: “any”,\n “type”: “OTHER”,\n “metadata”: {},\n “salience”: 0.015295136,\n “mentions”: [\n {\n “text”: {\n “content”: “any”,\n “beginOffset”: -1\n },\n “type”: “COMMON”\n }\n]\n },\n {\n “name”: “music apps”,\n “type”: “CONSUMER\_GOOD”,\n “metadata”: {},\n “salience”: 0.015295136,\n “mentions”: [\n {\n “text”: {\n “content”: “music apps”,\n “beginOffset”: -1\n },\n “type”: “COMMON”\n }\n]\n },\n {\n “name”: “saavn”,\n “type”: “OTHER”,\n “metadata”: {},\n “salience”: 0.0134896105,\n “mentions”: [\n {\n “text”: {\n “content”: “saavn”,\n “beginOffset”: -1\n },\n “type”: “COMMON”\n }\n]\n },\n {\n “name”: “natural language processing”,\n “type”: “OTHER”,\n “metadata”: {},\n “salience”: 0.011291221,\n “mentions”: [\n {\n “text”: {\n “content”: “natural language processing”,\n “beginOffset”: -1\n },\n “type”: “COMMON”\n }\n]\n },\n {\n “name”: “hope”,\n “type”: “OTHER”,\n “metadata”: {},\n “salience”: 0.011049568,\n “mentions”: [\n {\n “text”: {\n “content”: “hope”,\n “beginOffset”: -1\n },\n “type”: “COMMON”\n }\n]\n },\n {\n “name”: “query”,\n “type”: “OTHER”,\n “metadata”: {},\n “salience”: 0.01038831,\n “mentions”: [\n {\n “text”: {\n “content”: “query”,\n “beginOffset”: -1\n },\n “type”: “COMMON”\n }\n]\n },\n {\n “name”: “example”,\n “type”: “OTHER”,\n “metadata”: {},\n “salience”: 0.010281061,\n “mentions”: [\n {\n “text”: {\n “content”: “example”,\n “beginOffset”: -1\n },\n “type”: “COMMON”\n }\n]\n },\n {\n “name”: “query”,\n “type”: “OTHER”,\n “metadata”: {},\n “salience”: 0.009517636,\n “mentions”: [\n {\n “text”: {\n “content”: “query”,\n “beginOffset”: -1\n },\n “type”: “COMMON”\n }\n]\n },\n {\n “name”: “times”,\n “type”: “OTHER”,\n “metadata”: {},\n “salience”: 0.009503888,\n “mentions”: [\n {\n “text”: {\n “content”: “times”,\n “beginOffset”: -1\n },\n “type”: “COMMON”\n }\n]\n },\n {\n “name”: “gaana”,\n “type”: “OTHER”,\n “metadata”: {},\n “salience”: 0.009078462,\n “mentions”: [\n {\n “text”: {\n “content”: “gaana”,\n “beginOffset”: -1\n },\n “type”: “COMMON”\n }\n]\n },\n {\n “name”: “echo”,\n “type”: “OTHER”,\n “metadata”: {},\n “salience”: 0.009053629,\n “mentions”: [\n {\n “text”: {\n “content”: “echo”,\n “beginOffset”: -1\n },\n “type”: “COMMON”\n }\n]\n },\n {\n “name”: “products”,\n “type”: “CONSUMER\_GOOD”,\n “metadata”: {},\n “salience”: 0.009053629,\n “mentions”: [\n {\n “text”: {\n “content”: “products”,\n “beginOffset”: -1\n },\n “type”: “COMMON”\n }\n]\n },\n {\n “name”: “most”,\n “type”: “OTHER”,\n “metadata”: {},\n “salience”: 0.008350227,\n “mentions”: [\n {\n “text”: {\n “content”: “most”,\n “beginOffset”: -1\n },\n “type”: “COMMON”\n }\n]\n },\n {\n “name”: “access”,\n “type”: “OTHER”,\n “metadata”: {},\n “salience”: 0.008011961,\n “mentions”: [\n {\n “text”: {\n “content”: “access”,\n “beginOffset”: -1\n },\n “type”: “COMMON”\n }\n]\n },\n {\n “name”: “answer”,\n “type”: “OTHER”,\n “metadata”: {},\n “salience”: 0.006979949,\n “mentions”: [\n {\n “text”: {\n “content”: “answer”,\n “beginOffset”: -1\n },\n “type”: “COMMON”\n }\n]\n },\n {\n “name”: “os”,\n “type”: “OTHER”,\n “metadata”: {},\n “salience”: 0.0062795673,\n “mentions”: [\n {\n “text”: {\n “content”: “os”,\n “beginOffset”: -1\n },\n “type”: “COMMON”\n }\n]\n },\n {\n “name”: “music base”,\n “type”: “OTHER”,\n “metadata”: {},\n “salience”: 0.0062728566,\n “mentions”: [\n {\n “text”: {\n “content”: “music base”,\n “beginOffset”: -1\n },\n “type”: “COMMON”\n }\n]\n },\n {\n “name”: “alexa”,\n “type”: “OTHER”,\n “metadata”: {},\n “salience”: 0.00626669,\n “mentions”: [\n {\n “text”: {\n “content”: “alexa”,\n “beginOffset”: -1\n },\n “type”: “COMMON”\n }\n]\n },\n {\n “name”: “integration”,\n “type”: “OTHER”,\n “metadata”: {},\n “salience”: 0.00626669,\n “mentions”: [\n {\n “text”: {\n “content”: “integration”,\n “beginOffset”: -1\n },\n “type”: “COMMON”\n }\n]\n },\n {\n “name”: “google”,\n “type”: “OTHER”,\n “metadata”: {\n “mid”: “/m/045c7b”,\n “wikipedia\_url”: “[https://en.wikipedia.org/wiki/Google”\n](https://en.wikipedia.org/wiki/Google%E2%80%9D%5Cn) },\n “salience”: 0.0053556873,\n “mentions”: [\n {\n “text”: {\n “content”: “google”,\n “beginOffset”: -1\n },\n “type”: “PROPER”\n }\n]\n },\n {\n “name”: “plateform”,\n “type”: “OTHER”,\n “metadata”: {},\n “salience”: 0.0043874555,\n “mentions”: [\n {\n “text”: {\n “content”: …
