---
url: 'http://workflows-of-ai.com/blog/less-complex-text'
title: 'Less Complex Text'
author:
  name: 'Marcus Johansson'
  url: 'http://workflows-of-ai.com/about/marcus-johansson'
date: '2023-10-12T14:07:29+02:00'
updated: '2026-10-10T12:14:04+02:00'
type: article
summary: 'Rewrite complex articles into easy-to-read text with headers in Drupal, using the AI Interpolator OpenAI module and GPT-4.'
tags:
  - 'Marcus Johansson'
  - Workflows
  - 'Drupal AI'
image: 'http://workflows-of-ai.com/sites/default/files/previews/98664bdc8ce48ca1.jpg'
published: true
og:
  site_name: 'Workflows of AI'
  'image:width': '1280'
  'image:height': '720'
  'image:alt': 'Less Complex Text'
---
Drupal AI

# Less Complex Text

Get an easy-to-read version of any article, with headers, written by GPT-4 next to the original.

  Marcus Johansson

October 12, 2023 · 1 min read

 ## About this video

In this specific use case, the AI Interpolator OpenAI module is employed to transform complex text into a simpler, more accessible version. Users begin by pasting the intricate text into an HTML field. The text, often laden with complex terminologies and elaborate sentence structures, is seamlessly fed into OpenAI's robust API.

The refined text, now simplified, is made available, ensuring that intricate concepts and ideas are accessible and easily digestible for readers of all ages and literacy levels. This integration of OpenAI's algorithms into the module underscores a commitment to leveraging top-tier AI technology to break down barriers in content accessibility and comprehension.

*This video is from before the AI Interpolator module became AI Automators, part of the [AI module](https://www.drupal.org/project/ai). Module and menu names have changed since, and some steps look different today.*

## Watch the video

[Watch on YouTube: Less Complex Text](https://www.youtube.com/watch?v=nyjBtJLCfqk)

### Video chapters

- 0:00 Making a news article easier
- 1:15 Adding the easier-to-read field
- 2:16 Writing the rewrite prompt
- 3:24 GPT-4 and moderation settings
- 4:04 Generating the simpler text
- 4:31 Using it through an API

## Transcript

YouTube's automatic captions, lightly corrected. Click a line to jump to that moment in the video.

### Transcript

- 0:01 hi there uh Marcus here as uh in this video I'm going to talk about how we're going to take this article that's pretty complex I have copied it from cnn.com talking about um China basically um and
- 0:17 make a more accessible version of it so an less complex text uh that we can use for accessibility reasons or it could be that you want children to read it as well um um as always this already have
- 0:33 Drupal installed so a base standard Drupal installation it already has uh the AI interpolators installed so if you don't know how to do this you can check the uh the description of the video and
- 0:48 there's links on how to set it up there's also links there on uh a video basically explaining what the AI interpolator does uh in the background if you want to understand what the AI
- 1:01 interpolator is um this is open source it's free after this video you can just go ahead and download it and set up the exact same process of course there's cost uh connected to using OpenAI then
- 1:15 so let's start we start by logging in uh in this case I have a content type set up so the article I'm just going to go and manage field you see the article field there we're going to create a new
- 1:27 field that's a text formatted long uh that's a easier to read uh text we call this field right and since it's a text formatted long it can take HTML uh we just say we just need one
- 1:44 field we take one field and generate an one field as well allow full HTML in this case um we enable the interpolator uh and we choose the roll OpenAI text long so we take a text long as context
- 1:59 and we create a text long field the text long Fields allows HTML in this case this is very important because of accessibility reasons you want you or you might want headers because of
- 2:10 accessibility reasons uh as the base field so the context we say the article and then we just write our prompt based on the context re write the text in an easy to understand way that even uh t 10
- 2:30 year old would understand uh write around 10 paragraphs you may use or may you may use HTML tags like headers em and strong use headers like H2 and H3 in the text so
- 2:58 the H1 is probably already set somewhere on the the page in this case uh and then we have to do the context should be in this case we just choose the clean version we just need
- 3:11 the text sometimes it helps to actually have um have some marker where the context starts and ends like this um we take advanced settings because in this case we have to use GPT-4 it's just Superior in
- 3:28 in creating these SU we turn on batch mode because we want to see progress and write a role you are an assistant helping rewriting text in an easier to understand
- 3:48 manner understand manner we have on the moderation so it uh checks against moderation so we don't break any terms of services because we don't want our OpenAI account block we go then go to the
- 4:01 content where we have the article and just click save so you see the field exists here it's not filled out so now it's going to get filled out because it was empty in this case uh also if you
- 4:13 would change the base article and you have check uh the setting that you want the summary to change when the article change it would change as well you have to decide if this is important of course
- 4:24 because uh if you just do a minor change it might not make sense to rewrite the whole summary um for anyone working with Drupal you have more steps to do after because you
- 4:36 have to hide this article and so on if you don't work with Drupal and you don't want to work with Drupal but you still want to chain this so what you can do is you can actually set this up uh using
- 4:48 Drupal in API mode and then basically you get the same thing available where you can send in a text and you get the text out but your application can run some other framework right
- 5:00 um so now it's finished we click edit and it should have filled out here uh easier to read text with headers as we asked um and that's basically it we're finished
- 5:15 now uh so yeah thanks for watching

  Filed under [Workflows](/blog?category=6) [Drupal AI](/blog?category=2)

Parts of this content were produced by AI.

This site has not assessed whether a label is required for this content.

  How was AI used?The video and the introduction are Marcus's own, first published on workflows-of-ai.com. AI wrote the subtitle, the summary and the video chapters from the transcript, and corrected misheard names in YouTube's automatic captions.

   Marcus Johansson

Tinkers with AI and Drupal

 [About Marcus](/about/marcus-johansson)[Drupal.org profile](https://www.drupal.org/u/marcus_johansson)[Drupal AI](https://www.drupal.org/project/ai)

## The post in three sentences

A formatted long text field next to the article asks OpenAI to rewrite it so a 10-year-old could understand it, with H2 and H3 headers. GPT-4 runs in batch mode with OpenAI moderation turned on. The example simplifies a CNN article about China, and the same chain can be used through Drupal's API from another application.