 Hello everyone Thank you for coming and welcome to a assisted content editing with CK editor 5 and open. I Okay A little bit about myself from Raffaele. I'm a tech lead at into a Drupal Italian company and I work with Drupal since 2011 so I Maintainer or commentator of different country models and also of course Open AI for the CK editor part Let's introduce the agenda of this session we're gonna have a first overview on the open AI module that is available already available in on Drupal.org and on the initial setup of the module basically some Some easy step to set up the module and then we're gonna dive into some new some use cases such as AI assisted content creation basically Detect detect oven safe or safe content for using open AI Generating a media using the W1 API in You can validate also the context or the syntax of your HTML Using open AI also generating an SEO friendly counting basically some some basic stuff to generate SEO compliant software And then we're gonna talk about the roadmap of its model Okay, so this is the page of the module The open AI module aims to provide a suite of models And Open AI you can generate text content the images content and also other stuff Basically, we're we're merging open I seek editor the the module that you see on the bottom right of the screen It was my module basically I've created this model and so After that I created this model I was contacted by Kevin Quillian because Kevin Quillian is the main maintainer of open AI and Then we decided to merge the effort To to to combine oh my module that is the one on the bottom right seek editor open AI into open AI basically The goal is also to have an easy out-of-the-box experience for the content editor Also initial users of Drupal You basically have to enable the module insert your open AI key and features are available and ready to use So this is the concept Uh Here are some key points about the module It uses seek editor 5 and Drupal API to integrate open AI into seek editor 5 basically the the wizard week of Drupal Just works out of the box I'd assistive tools for different areas of the content editing process First released in January 2023 and the last release is an alpha Uh It supports multiple open AI models, so you can choose which models to use The minimum requirement is PHP 8.1 so let's start with the practical stuff and We download and install the module like any other Drupal module in this case we enable the open AI content content tools that it's Basically for moderation and other assistive tools and of course we enable the open AI seek editor integration Here you have a form to insert your open AI key from your account you need to get that from open AI the the platform is on this key and It's your personal key or your company After that you've inserted your open AI key now you're able to configure and of course enable the seek editor module Now you're able to configure a standard text format into Drupal using the new features You get the new button and you can drag the button inside the active toolbar and save the form and after this operation You're able to use the the open AI extension. You you ready to go And let's start with a practical demo. I'll try to play the the video So this is basic text completion. We are in the body of an article content We have already enabled the open AI seek editor module as you see And we provide simple text to charge gpt. This is what we're trying to do So I asked him the history of Italy in 70 words So here on the bottom you can see that it's waiting for the the responses in Ajax. So you can see the loader and Just just let you see the end And it provides us the the text the the completion api of charge gpt But you can also generate the the content in bulk Via the completion api if you want to create all the content you need Maybe for testing purposes or for other stuff. You can use this bulk content generation tool And you can choose the the the temperature basically the creativity of open AI and it will fieldruple with your content Okay Here we go We choose content generation. We insert the subject Here I Insert the subject of my city enables always and and choose Which field to populate basically Choose as I told before the temperature the number of nodes you want to generate and then click on generate And it generates our content Using the subject that we provided before it uses batch api Here we go. Okay. Okay And we see the content generated content after this operation Here is the Standard basic page of the world basically generated from from open AI But we have also a devil generate integration We can Use this in an automated pipeline maybe maybe because you can use this to to generate content and Automated test on this content. So you you got also a devil generate integration This is the output of the previous example on the body field and in In the example field basically But open AI can also analyze content and tell you what content policies it may violate This could be a crucial feature to make content more inclusive. Maybe Uh, this is beneficial if your audience are certain demographics or sensitive to certain categories, maybe And you can also think to use this api to validate embark your content So so if you got a pre existing site and you want to check if the count the site the content of the site violates certain policy you can do this in bulk Let's see an example So here we we analyze a content that doesn't contain violations and in charge pt tells us No, it's okay. Our test is okay When I write I hate something basically He detects a violation A violation for the hate category You can also you can also perform a content translation in this case We display pop-up in which you can serve the destination language We get the selection from seek editor and transform the text basically Let's see Let's see. I want to translate this text in italian basically Okay, and it's translated in italian. I confirm some Okay And We can also reformat html Um Basically, uh, here we invoke also the completion api of open AI Open AI and we tell Fixed this text to be marked with semantic html using Only least headers or paragraph tags or we can give to charge pt also another set of tags In this case is only lists header and paragraphs So it will get our html and transform it to lists header and paragraphs You'll see a list Waiting for response on the bottom. Okay And he Corrected our text maybe uses lists and all the tags that we gave him We can also use as I told before The dali api to perform media generation. This is the dali one version And we can give we can provide an input and Um Basically, we we choose the Dali api and provide the text to generate the image and here is the city of naples also in italism It will print an image or Naples Okay, and we can also provide a list of keywords to open AI to Always using the completion api We can write a cell compliant article with a set of keywords and In also in the language that you need because this site is in italian a and he writes also a cell compliant article in in the language of the site because it integrates with the language of so If you choose SEO text generation give him three words basically in And degenerates a cell compliant article in the language and With the words that we need complex articles We can also generate summary and potential taxonomy terms for a content To categorize the page For instance, we can suggest a cell compliant title like in this case And we already have a content here. We already have a content We are asking open AI to suggest a content title in this case He also speaks about naples so And we can also suggest the taxonomy categories see write just a list of five taxonomy term And we can create also a summary using the integration with the open AI. This is a lot longer Longer farm summer Okay, this is the summary that he generated Just a focus on the re-engineering of the model We wanted to droopalize it so We're trying to use the droopal form api instead of the ck editor form api to create form because we are droopal developers so we want to create form with droopal not with the javascript api and We are accelerating the process for other developers to create other extensions The the open AI module has got also other features basically log analysis prompt also audio and other stuff External to ck editor, but the model is in constant development Also the roadmap, this is very important We are providing an api as I told you before that will make easier to extend open AI ck editor So you don't need to write tons of javascript code to create another extension And another idea that we got is to provide Automatical accessibility suggestions to the to the editor in the process So it can analyze the content and make using open AI Oh make this text more accessible using this tag instead of this and stuff like that So that's all Thank you for listening We have any questions? I'm here Thanks for the talk. Do you plan to integrate things like Buttons to the if you generate the headline for example, do you plan to integrate a button to send it to the title directly or Right now. It's a bit of copy paste things from the suggestions to your real fields. Yeah. Yeah It can be an improved and user experience improvement. So I agree. I agree. Yeah, I agree Yeah, the user experience is ongoing. We are just I agree Thank you for the presentation and your open source work and I know nobody pays you to do that or do they pay you? I don't know, but uh, it would be nice Okay, so, uh, I was thinking it would be nice to integrate with other LLMs, you know, like, I don't know barred or Metal thinking, you know, but uh, I wonder all of these functionalities can be used with other LLMs Probably cheaper maybe or something like that. But the module is called open ai as well That's the problem. But any plan to integrate with other LLMs I mean the major functionality is going to be the same if you use like llama for instance You know, so it would be nice if there's a configuration page when you're setting your api key You know to select, okay. I'm using for instance barred instead of, uh, well chat gpp Yeah Yeah, thank you Also another question is that I was wondering if uh, you have any plan to integrate with uh, Gutenberg, you know editor? Uh, no No plans We will do it. We steal your code and do it. Thank you. I appreciate