Skip to main content

Generative rich text editor

This content field extension replaces the built in rich text editor with a customizable editor that features embeddable content items, enhanced markdown support and a ChatGPT powered AI assistant.

The AI assistant helps improve your content production and editing workflow, and lets you generate and edit content using natural language. You might want to use it to get some inspiration to start a blog post, for example, or to rewrite text in a different style, or shorten text to match a word count, there are many possible uses.

Labs preview

The AI assistant feature of the Generative rich text editor extension is classified as an Amplience labs preview for you to evaluate and provide feedback. It's provided as is and is unsupported. Each time you use the generate text button you'll use one Amplience credit. Your organization is provided with a bundle of free credits to make it easy to get started with our AI services.

Using the Generative rich text editor extension
Link copied!

When you create some content that uses the extension, the "AI Assistant" button is shown in toolbar as highlighted in the image below. When clicking the button, the AI Assistant dialog is shown and from here you can enter a natural language prompt which is sent to ChatGPT.

Click the AI Assistant button to display the prompt

In this example we're asking the assistant to write a blog post about hats. We can then use this text as a starting point for our own blog.

At the AI assistant prompt, request the text to be generated

A blog called "The history of hats" is generated and added to the rich text field in the content form. When you select some text you'll notice some shortcuts at the bottom of the text field. You can choose a shortcut to improve, shorten or expand the selected text.

You can use shortcuts on the selected text to improve, expand, shorten or perform a custom operation

You can also enter your own prompt to rewrite the post in a certain number of characters or a certain style, for example. You can also add your own shortcuts.

If you run out of credits when using the Generative rich text editor or Image alt text generator, you'll still be able to use all the rest of the functionality of the extension and enter text yourself, you just won't be able to use the AI features to generate the text.

Schema examples
Link copied!

To make it easier to use the Generative rich text editor extension in your own schemas we've included some schema examples to help get you started.

Two schema examples are included to help you get started with the extension

There are two schema examples included: one that uses a registered extension and one that includes the extension URL directly in the schema. In most cases you will want to register the extension so that you do not have to specify the installation parameters each time you use it in a schema.

Schema example using a registered extension
Link copied!

In order to use this schema you will need to register the extension using the following details:

  • Category: Content field extension
  • Name: rich-text-extension (if you use a different name you will need to change the name in the example schema)
  • URL:
  • Initial height: 500

Link copied!

In the permissions section set the "allowSameOrigin" sandbox permission.

Installation parameters
Link copied!

In the installation parameters you can choose to set the language as "markdown" or "json". The example schema is set up to use markdown so include the following in the installation params section:

"language": "markdown"

Example schema
Link copied!

The schema example using the registered extension is shown below.

"title":"Generative rich text editor extension example",
"description":"Demonstrates how to use the generative rich text editor extension when it has been registered",
"title":"Some text",
"description":"some text",


Schema using the extension URL
Link copied!

This schema example shows how to include the extension in the schema using its URL. Note that if you are using your own OpenAPI account you will need to include your OpenAI API key in the tools section:

"$schema": "",
"$id": "",
"$comment": "Docs:",
"title": "Generative rich text editor extension example",
"description": "Demonstrates how to use the generative rich text editor extension without registering it",
"allOf": [
"$ref": ""
"type": "object",
"properties": {
"text": {
"title": "Markdown text",
"description": "Markdown text",
"type": "string",
"minLength": 0,
"maxLength": 32000,
"ui:extension": {
"url": "",
"params": {
"language": "markdown"
"propertyOrder": []

You can also find more details about configuring the extension on GitHub.

Using your own OpenAI account
Link copied!

You can use your own OpenAI account rather than Amplience credits. You'll need to create an API key and add it to installation parameters for the extension. See Generative rich text extension configuration on the GitHub repo for more details.


ChatGPT is not affiliated with Amplience and therefore any impact to ChatGPT services such as updates, busy periods, or outages are outside of Amplience control. By using this feature, you are solely responsible for ensuring that AI generated content complies with internal company policies, applicable laws and OpenAI's Terms.

Link copied!

The AI assistant dialog is not opened when you click the icon

  • Check that your OpenAI API Key has been added to the extensions's installation parameters for a registered extension, or in the parameters section of the property of the schema that uses the extension. See the Generative rich text extension configuration for full details.

  • Verify that your OpenAI key has sufficient credit. You may need to open a paid OpenAI account to ensure that you have sufficient credits to continue to make requests.

Extensions overview

Registering extensions

Schema examples

GitHub repository