---
title: "Sentiment Analysis"
video_id: HBxqzhhOtG0
url: https://www.youtube.com/watch?v=HBxqzhhOtG0
workflow_page: https://workflows-of-ai.com/workflow/sentiment-analysis
language: en
captions: generated
---

0:01 hi there uh Markus here again this time
0:05 uh we're going to create a workflow that
0:07 creates a sentiment
0:09 analysis um so the idea behind that is
0:12 basically that
0:15 uh you might for instance have a large
0:18 database of reviews of something uh but
0:21 you want to have some actual metad data
0:24 on a scale what this review means right
0:28 so it's typical for review site to set 1
0:31 to 10 in in h rating or maybe 1 to five
0:35 right so what I have done here is I've
0:38 set up two articles I just copied the
0:40 verdict from The Legend of zelog Arena
0:42 of time so that's one of the greatest
0:43 games ever
0:45 right uh and I also copied the Lord of
0:49 the Rings golum which uh not to beat on
0:51 a dead horse but didn't get the best
0:54 reviews and no one really liked it um so
0:59 the idea is here here to set up a a
1:01 structure field that's uh rating
1:03 basically where we let the AI set the
1:07 rating so um before I start with this
1:11 this is running Drupal it has the AI
1:14 interpolator modules
1:16 running uh if you want to know more
1:18 about what Drupal is and how to set it
1:20 up and also how to set up the AI
1:23 interpolator Suite please look at the
1:26 description uh of the video there's link
1:30 there there's also links that explain
1:31 what the in AI interpolator module is
1:34 doing in the background and why it was
1:36 built and so on uh and also everything
1:41 is open source it's free to use what I
1:43 show here you can just download and do
1:46 yourself so we start by logging
1:49 in as a admin so we have rights to
1:52 change structures and things we have a
1:55 content type it's called article it
1:57 should probably be a review I just
1:58 reviewed something here here uh and now
2:01 we want to set our rating right and
2:03 we're going to use a list integer in
2:05 this case so I mean we could have a
2:08 normal integer or float so it basically
2:10 just sets a number but in this case we
2:12 want the number to actually mean
2:14 something in a human readable form so we
2:17 set our rating and here you say the
2:18 allowed values list right so one is the
2:23 worst two is bad three is neutral four
2:29 is good five wa five
2:33 is great right we're just going to set
2:37 one
2:38 review uh if you're using druple by the
2:40 way you can of course use the rate
2:42 module or something where you see stars
2:44 and stuff and have it really cool but uh
2:47 in this case I'm just going to show it
2:49 as a in a text form we enable the AI
2:53 interpolator uh in this case we're going
2:55 to use the integer
2:57 field uh because we're creating an
2:59 integer from in this case from a text
3:01 field right uh and we're going to base
3:05 it on the article in this case there is
3:08 actually uh in the placeholder a pretty
3:11 good
3:13 uh um text that we can use so we're just
3:18 going to copy this oh
3:21 W yeah I'm going to mouse pad here so
3:26 let's
3:27 see there we copy up with the keyboard
3:31 instead so based on the content text add
3:34 a sentiment rating from the sentiment
3:36 list where Min so that's the minimum
3:39 numeric value and Max is the max numeric
3:44 value uh means
3:47 positive uh in this
3:50 case uh no there's going to be a Min and
3:52 a Max uh ratings is just a comma
3:56 separated list of options and the
3:58 context is the article then
4:02 uh we can probably use GPT 3.5 uh in
4:06 this case and we write you are a game
4:09 reviewer review H you're game reviewer
4:13 that's enough right we can do direct
4:14 because gbd3 five is fast we don't need
4:16 to see any
4:18 progress now if we go back to our
4:20 content so in this tab we have golum
4:23 there is no rating right now right so we
4:26 could manually set that rating and then
4:27 the AI doesn't kick in but as long as we
4:29 leave this empty it's going to set the
4:31 rating
4:32 now
4:34 so it put it to bad which is probably
4:38 right it doesn't say that it's quite
4:40 horrible right but the Legend of Zelda I
4:44 hope uh if I reload so I get the edit
4:46 here because I was logged out and now
4:49 I'm logged in click save it should be
4:52 great I hope yes so it is great uh so
4:57 there we have it we have a sentiment
4:59 analysis since this is now saved as
5:01 structure data in Drupal in this case we
5:03 could easily create a view as it's
5:06 called in Drupal where you can create a
5:08 filter like just show me the five star
5:11 reviews or yeah search for something
5:14 whatever it's it's very easy to build up
5:16 it's a Content management framework
5:18 create very nice uh content Management
5:21 Systems around it but as always also the
5:24 chains that you set up or the the work
5:28 uh flows that you set set up can be
5:31 available as API Json API graph kill or
5:34 something as well from Drupal so you
5:36 could use your own application but just
5:38 use this for the AI
5:40 part uh so that's it uh workflows of AI
5:43 there's more so workflows of ai.com
5:46 there's more videos of workflows if
5:48 you're
5:49 interested and yeah thanks for watching
