---
title: "Unleash your editors"
video_id: CUjZ4HQTZ14
url: https://www.youtube.com/watch?v=CUjZ4HQTZ14
workflow_page: https://workflows-of-ai.com/workflow/unleash-your-editors
language: en
captions: generated
---

0:01 hey guys uh this video is sponsored by
0:04 freely give freely give H hires me to
0:07 write open source code for the AI module
0:10 which is
0:11 awesome uh so if if you need help with
0:14 Drupal and AI combination or Drupal in
0:17 general AI in general please contact us
0:20 we're a full service provider that can
0:22 help you with anything on these topics
0:25 we have a lot of smart
0:27 people so it's beenin a minut it
0:32 um because I've been working on this
0:34 module the AI module uh I've been
0:37 focusing very heavy heavily on it and
0:40 there's two reasons I haven't uh done
0:42 videos so one thing is I spent so much
0:44 time on this that I I really didn't have
0:47 any time uh outside of my family to
0:50 actually do any videos so you know there
0:53 was just not time there's so much stuff
0:55 that we want to make between my ideas
0:59 and Jamie's idea here uh that I work
1:01 with that it's just just wasn't feasible
1:05 uh and we wanted to have a lot of stuff
1:08 basically ready before Barcelona so
1:10 Groupon Barcelona in next week but
1:13 finally it's it's starting to come down
1:16 the other reason was that because it's
1:18 under heavy development I didn't want to
1:20 show stuff that just you know gets
1:22 outdated in a month's time so
1:26 uh because of that it didn't make sense
1:28 and this also a the reason why I
1:31 will uh you might have read about uh AI
1:35 search which is really cool but I'm not
1:37 going to Showcase that much about it yet
1:39 because it's very much still
1:41 experimental stuff might change so I
1:43 don't want to showcase something that
1:45 gets you know I spend a lot of time
1:47 doing a video and then it's just uh uh
1:50 deprecated this information In Like A
1:52 month's time but I'm going to talk about
1:54 the module today subm module today that
1:56 is fairly stable now uh that actually
2:00 come comes from the open aai module it
2:02 comes from the brain of Kevin Uh Kevin
2:04 that has uh had this in the open AI
2:07 module but he has improved it a lot and
2:10 that's a plugin for CK editor where you
2:12 can give the editor uh some different
2:15 ways of interacting inside CK editor
2:18 with uh
2:20 AI uh and Kevin has spent a lot of time
2:23 now uh first of moving it then to the uh
2:27 from the open AI into a pro Byder
2:30 agnostics system like in the AI module
2:33 but he also has moved uh moved out all
2:36 of the JavaScript or abstracted it away
2:39 so now it's just a Drupal plugin system
2:42 where you need to write one plugin code
2:44 to create one more uh feature for this
2:48 which is really awesome because it makes
2:50 stuff a lot easier uh I should also
2:52 mention Fric vouter have spent a lot of
2:55 time uh uh fixing up stuff uh uh around
2:59 the module
3:00 to make it even more awesome so the
3:03 these what I'm going to show today is
3:05 the brainchild from Kevin and a lot of
3:08 time spent from Frederick I have spent
3:11 outside of code reviews I haven't spent
3:13 any time on this actually it doesn't
3:15 come for me at all but um I'm just going
3:17 to Showcase it so you know how to use
3:21 it uh so let's get started what I have
3:25 added on this site uh before I uh uh
3:30 started this video is I have installed
3:31 the site I've added the key module and
3:33 added my open AI key that's it I have
3:36 added admin tool bar andin uh theme as
3:39 well to make it look a little bit
3:42 nicer uh well I have it added gin I'm
3:45 not using the ad tool bar sure um so
3:48 we're going to start with AI
3:50 Core and uh install that and the AIC
3:55 editor integration that's what we're
3:56 going to talk about today then and I'm
3:58 going to add the open a
4:00 provider install this and then the first
4:04 thing we're going to do is set up the
4:05 open AI provider so that's under AI
4:07 provider settings open AI
4:09 authentication just connect it to my key
4:12 if you don't know how to create a key
4:14 you just click
4:15 here save this and there's a lot of
4:18 status messages here because something
4:20 that can happen now is when you set up a
4:22 provider if there is no default provider
4:25 set up for a specific operation the
4:28 provider can ask to to become the
4:30 default for this uh and this is because
4:33 we want as easy of an installation
4:36 process as possible because the defaults
4:38 or something then that the different
4:40 third party modules like the CK editor
4:43 can use and there's a lot of messages
4:45 here because open AI does a lot of stuff
4:47 it doesn't just do you know normal chat
4:49 it also does uh like transcription it
4:53 does create audio from text create
4:55 images from text
4:58 embeddings uh we also have two modes
5:00 that's called chat with image Vision
5:02 which means uh chatting but being able
5:05 to look at images because not all LMS or
5:08 most LMS can't do that uh and chat with
5:12 complex Json which
5:15 is uh there's no clear definition for
5:18 this but we have set it where we feel
5:20 that a model is good enough to work with
5:23 complex stuff like AI search or AI
5:26 automator where we're asking it to
5:27 generate Json
5:30 uh if you take G Gemma 2B or some small
5:32 model it's not going to be able to do
5:34 this so it makes no no sense to even try
5:36 to set this up for those kind of
5:40 stuff if you want to change this this is
5:43 under ai ai default settings and you can
5:45 change to whatever model you want for
5:48 this different things uh but you're just
5:51 going to see what fits so if you look at
5:52 complexation you see there is no GPT 3.5
5:55 for instance it's just not good enough
5:57 for that uh same with you know image
6:01 Vision you're not going to see 3.5
6:04 because it can't do Vision or or
6:06 actually the uh new model 01 can do
6:09 Vision so you wouldn't see it there as
6:12 well when you have done this for the CK
6:16 editor then the important stuff is under
6:18 content authoring text formats and
6:20 editors we're going to go into full
6:23 HTML uh because this is the one we want
6:26 to change and oh the configuration was
6:30 there let just let me save here because
6:32 I I tested this one time so this is how
6:35 it's going to look when you install it
6:37 you just have to take the AI editor drag
6:40 it down here it's going to show up AI
6:42 tools
6:43 here and then you just enable the stuff
6:46 that you want to use and there's
6:49 currently four plugins that comes with
6:51 it there's a very simple summarization
6:54 I'm not going to show that that's very
6:55 simple you just enable it basically
6:58 there's translation
7:00 uh where you can translate text there's
7:02 generate with AI where you can generate
7:06 text from just a description inside your
7:08 editor field and there is tone that can
7:11 rewrite a text in a certain tone but
7:13 what is cool with this now is that you
7:15 can connect these to actual taxonomies
7:17 so you can create your own list of to
7:19 tones and own list of translation
7:22 languages uh and also how it's supposed
7:25 to generate this so I'm going to show
7:27 this now I'm going to just here
7:30 open uh tonomy and add a vocabulary that
7:34 we call
7:37 Tone and I'm going to add a term that I
7:40 call
7:42 angry so we could leave it at this or
7:45 you what you could even do is you could
7:47 create the tone of voice and then there
7:50 is actually uh the uh possibility to
7:54 turn on allow autoc create then instead
7:57 of a select field this becomes a
7:58 autocomplete field field where people
8:00 can start adding their own stuff because
8:03 you might know not know of all the tone
8:05 of voices that you want on the website
8:07 or that your users want on the website
8:10 uh but you want them to be reusable so
8:12 you see them when you start typing but
8:15 in this case we're going to uh at least
8:17 for the uh at least for the tone of
8:21 voice we will create them ourself but
8:23 the cool thing is here also you can use
8:25 the description field to actually say
8:28 how it should uh translate this toone so
8:32 you can leave it with angry what's going
8:33 to happen then there's going to be a
8:35 prompt that says can you take this text
8:37 snippet and rewrite it as the tone of
8:39 voice that is angry something like that
8:42 that's not the voice but it's something
8:44 like that but instead if you add a
8:46 description it's going to use that
8:47 description as well like how you're
8:49 going to use it so I will write here
8:52 sound very
8:55 angry and use the word bad at least
8:59 twice
9:01 okay so this is going to sound very
9:03 angry and use the word bad at least
9:06 twice when we use this and then we can
9:09 do
9:11 positive be very
9:14 positive and write how
9:18 appreciative you are and write thank you
9:24 to the audience so we have to uh very
9:29 distinct tone of voices we're just going
9:32 to reload this I have to drag it here
9:34 now again because I never
9:37 saved and we go to tone and we're going
9:40 to choose tone here
9:42 then and
9:45 then we're going to enable it oh while
9:49 I'm doing that I can add another uh
9:52 vocabulary here just called uh
9:56 translation language
9:59 but this I'm not going to add any terms
10:01 we can allow autograde there okay uh
10:04 tone we still have and we use term
10:07 description for tone description allow
10:09 that and here you can choose the model
10:10 by the way as
10:12 well uh the other thing then is that
10:15 we're going to use translate and in this
10:18 case we use translation
10:21 language we enable it and we allow outo
10:26 create in this
10:27 case uh for for Generate with AI we just
10:31 enable it we can let the AI provider be
10:35 there so now when we have done that we
10:38 can just start adding our content as a
10:40 editor you're going to see this well I'm
10:43 going to choose full HTML because that's
10:45 what to re change in this case and I'm
10:47 going to start with generate with AI so
10:49 I click on this and I can just write
10:52 here what I want to do so uh uh write me
10:55 two
10:57 sentences about p
11:01 penguins and yeah I just click generate
11:03 and it's going to write me two sentences
11:05 about penguins now then and H if I'm not
11:09 happy with that I can always just
11:11 regenerate regenerate and when I am
11:13 happy I just save changes to the editor
11:15 or can of course even cancel if I'm not
11:17 happy with
11:18 anything and when I've done that I can
11:21 mark text now now I'm going to use the
11:23 tone of voice so we take
11:26 tone we select that we want the first
11:28 sentence here than to be
11:31 angry so penguins are bad the bad so you
11:35 see it's using bad to times is using our
11:39 way of writing it uh we take this one as
11:42 well and take tone but we take happy or
11:45 positive instead here change the tone
11:48 it's going to say hopefully thank you
11:50 yes and be very
11:52 appreciative so so that is tone of voice
11:55 what we can do then as well we realized
11:58 okay we wanted this actually in Spanish
12:00 so then we you see here is outo complete
12:03 instead so I just write Spanish quick
12:07 translate and we get this in Spanish
12:10 instead and now if I were to uh try to
12:14 translate this again and start typing
12:16 Spanish you see it's there because it's
12:17 autoc
12:19 completing uh so that is it that's the
12:22 CK editor uh uh module and yeah thanks
12:28 to Kevin thank thanks to Frederick again
12:31 uh hope you like to use it
