---
title: "Categorize Content"
video_id: cotaZwTHEKc
url: https://www.youtube.com/watch?v=cotaZwTHEKc
workflow_page: https://workflows-of-ai.com/workflow/categorize-content
language: en
captions: generated
---

0:01 hey there uh Marcus here um this
0:04 workflow is one of the those that are
0:07 very easy but also very
0:09 powerful uh so the idea is basically
0:12 this you have some old article or you
0:14 might have thousands of article that's
0:17 rather the case right and you realize oh
0:21 I needed to categorize them in some way
0:24 because you want to make your search
0:26 engine internal search engine better or
0:29 uh maybe you want to show you know the
0:32 typical block with related articles to
0:35 this article which is very easy when you
0:37 have have article um categorized in
0:41 different
0:42 ways so that's what we're going to do
0:44 and in this case we're going to use the
0:46 system that is built into Drupal that's
0:49 called the vocabulary taxonomy
0:53 system uh and yeah I should start with
0:56 saying this is druple you're seeing in
0:58 front of you a Content management
0:59 framework work um it's just vanilla with
1:02 one article type and one article is
1:04 everything I added there's the AI
1:06 interpolator module if you want
1:08 information on how to set this up look
1:10 into the uh video
1:12 description uh there's soon going to be
1:15 some information there on how you can
1:16 set it up and
1:19 um that's basically it let's get started
1:23 oh I will also say this is open source
1:26 this is free if you like what you see
1:28 you can download it and you can do
1:30 whatever you want with it it's free to
1:33 use um so we start by logging
1:38 in and I will just show you that I also
1:43 prepared a taxonomy called uh yeah it's
1:46 mobile phone provider provider I just
1:48 called it um uh because you saw that
1:52 article I saw before maybe you didn't
1:54 see it was about Apple so of course I
1:57 could you know set apple on that article
2:00 but if I have thousand or tens of
2:02 thousand or hundreds of thousands
2:05 it's um a daunting job um even for an
2:09 intern adting job but this is something
2:11 where AI just does it very
2:15 easily and at a very low cost and at a
2:19 very uh well it's very Speedy actually
2:23 so we're going to go to this content
2:24 type and add um this taxonomy field to
2:29 it now so we're going to add a taxonomy
2:31 term called we call it mobile provider
2:33 here so but we're going to use this
2:35 provider
2:37 taxonomy we say that you can check
2:40 multiple uh that makes little sense in
2:44 this case but we do it anyway just to
2:47 make sure that it actually works it
2:49 doesn't check Samsung and Apple for
2:53 instance um because well it could make
2:56 sense because if you have news article
2:58 where you're comparing Samsung and apple
3:00 then you want to check both of course
3:02 which chose the provider uh vocabulary
3:05 and here we enable the AI interpolator
3:08 and then there is this open AI tonomy
3:11 we're going to use the base mode and use
3:13 the article as the context in this case
3:16 I'm actually going to just inspect here
3:19 so I can uh copy this placeholder
3:23 because it's actually pretty
3:25 good let's copy everything so
3:30 uh because that's basically all we need
3:32 based on the Contex text choose up to
3:34 max
3:35 amount uh this has no actual value now
3:39 because we set unlimited so we say two
3:42 categories from the category context
3:45 that fits the text category options and
3:48 then you see value options comma so this
3:51 is a placeholder that basically shows
3:54 all the categories that's available that
3:56 you can choose from and then the context
3:59 is start article
4:00 right uh if you can try this on a couple
4:05 of article if it doesn't give good
4:07 responses with GPT 3.5 you can use GPT 4
4:11 it basically depends on the uh
4:14 complexity of the text and complexity of
4:16 the category but in this case the text
4:18 is very
4:20 straightforward uh and the category of
4:22 choosing the brand is very
4:24 straightforward so we just keep it at
4:26 3.5 um and this should basically be it
4:29 if we go now to our content then and
4:31 resave
4:33 it it
4:35 oh let's do this into a checkbox so it
4:38 looks a little bit nicer but this out
4:40 the complete
4:43 field so we go to manage form display
4:46 and we say that the mobile provider
4:47 should be checkboxes radio buttons
4:49 instead reload so you see we have the M
4:52 mobile provider but nothing is filled
4:54 out so we save
4:56 it and then we click edit again it's 35
4:59 so it goes very fast as you see and
5:01 apple is filled in so that's a very
5:05 simple workflow but a very powerful
5:08 where you can fill out categories
5:11 automatically um yeah thanks for
5:16 watching
