---
title: "Auto-Tagging"
video_id: IrsooHJoYOE
url: https://www.youtube.com/watch?v=IrsooHJoYOE
workflow_page: https://workflows-of-ai.com/workflow/auto-tagging
language: en
captions: generated
---

0:01 hey there Marcus here um today's
0:04 workflow is going to be very specific
0:06 for grouple so if you're just interested
0:08 in using the AI interpolator for
0:10 chaining uh AI tools and manipulating
0:13 content and not interested in the CMS
0:15 part of Drupal this will not be
0:17 interesting for you but if you're a
0:18 Drupal developer working with Drupal as
0:21 the classic CMS cmf this uh it's a very
0:25 simple tutorial where we would take an
0:27 article with a text and uh generate uh
0:32 tags for it so this is just a base
0:35 truple with I've added admin toolbar but
0:39 otherwise no other modules and the AI
0:41 interpolator module and the AI
0:43 interpolator open AI in this case so
0:45 what we want to do is take this article
0:47 I just copied something from some
0:49 website about Iceland uh declaring state
0:51 of emergency over Volcan threat of
0:54 volcanic
0:55 eruptions and I want it to be auto tag
0:58 with tags like Iceland I'm I'm guessing
1:00 and maybe
1:01 emergency um but I don't want to do this
1:04 myself because maybe I have thousand
1:06 articles and I realize oh I need to
1:08 tag this and this takes forever so let's
1:11 use AI for it so we start off very easy
1:15 we log into our uh
1:18 environment I can just show you the
1:21 content before we start manipulating
1:23 Fields so there's a image that comes
1:25 here as well but I haven't filled out
1:26 that and then you see there's tags and
1:28 this is what we want to fill in in so a
1:31 normal workflow would be something like
1:33 this right that we start generating
1:35 stuff but in this
1:38 case uh we're going to do this
1:40 automatically then with
1:43 AI so there is this tags field and
1:46 what's important to remember with this
1:47 it has unlimited number of values so we
1:50 can generate multiple
1:52 tags uh and it also have set create
1:57 reference entities if they don't already
1:59 exist with means we don't have
2:00 predefined tags in this case you can
2:02 actually write whatever you want and
2:03 this is going to create a taxonomy
2:05 entity for that so what we do here is
2:09 that we're going to enable the AI
2:10 interpolator use the taxonomy Rule and
2:14 use the article as based
2:17 base uh and what we can do here is we're
2:22 actually just going to copy this prompt
2:24 that's inside
2:27 here uh
2:30 because it's pretty good actually for
2:32 our use
2:34 case so what this says is based on the
2:37 context choose up to
2:40 uh we say three to five categories from
2:43 the category context that fits the
2:47 text category options value options
2:49 comma oh sorry in this case it doesn't
2:52 fit this because this would be based on
2:54 us having categories so in this case
2:57 we're not going to write this what are
2:59 we're going to write instead based on
3:01 the context text
3:04 create up to five 3 to five uh
3:14 tags that fits the text
3:18 content of course you can set whatever
3:20 number you want there depending on what
3:22 you want to
3:23 do uh and this is a very basic prompt
3:27 now of course you should better this so
3:29 it actually fits your
3:31 purpose um in this case this the only
3:35 thing we're going to do so we set 100 we
3:37 set direct we can take
3:39 gp4 uh so we get a little bit better um
3:45 result we have moderation on and then we
3:48 save and now if we go and resave
3:51 hopefully that's it basically it's going
3:53 to fill out tags and it's going to
3:54 generate them as
3:56 well so we're saving here
4:02 and if we go back you see it has created
4:04 Iceland earthquakes volcanic eruption
4:06 emergency EV evacuation civil Protection
4:11 Agency uh of course I could be I should
4:14 have been uh maybe more exact that I
4:17 wanted it to always have uh capital
4:20 letter in the beginning of a tag uh and
4:24 so on but this is basically it it's
4:28 generating the tags because we have set
4:30 it that it should create the tags it's
4:32 going to create them as
4:34 well uh and that's it basically very
4:38 simple workflow but also very powerful
4:42 workflow thank you for
4:45 watching
