LearnPress: Use AI to Generate Lesson Content Based on Title

Have you created a LearnPress course with empty lessons that only have the title and would like to find a way to generate your lesson content based on the title? You are in the right place. We’ll show you how to generate LearnPress course lessons with generative AI.

Creating and sharing knowledge online has never been easier, thanks to tools like LearnPress. This powerful plugin helps educators build interactive courses, making online learning more engaging. But crafting lesson content from scratch can be time-consuming.

What if you already have a LearnPress course set up with lesson titles, but the lessons themselves are still empty? Writing each one manually could take hours. But that’s where AI can make a huge difference.

With WP Sheet Editor – AI, you can generate high-quality lesson content quickly and efficiently, turning your ideas into complete lessons in no time.

This is what you’ll need to generate LearnPress lessons with AI

Important: We assume you already have the LearnPress – WordPress LMS Plugin installed and activated on your WordPress site.

This is what you will need to generate course lessons with artificial intelligence:

1- WP Sheet Editor – Courses

This plugin allows you to view and manage courses from different LMS plugins (LearnPress, Tutor LMS, LeardDash, and others) using an intuitive spreadsheet with advanced search, bulk edit, export, and import tools. If you already have it, you can skip this.

You can download the plugin here:

Download Courses Spreadsheet Plugin - or - Check the features

2- WP Sheet Editor – AI

This is a WordPress AI assistant service that brings the power of generative AI to every WP Sheet Editor spreadsheet. You can connect with different AI providers and LLMs, and integrate the use of artificial intelligence in all spreadsheets of the WP Sheet Editor suite.

3- External API provider

The AI functionality in WP Sheet Editor relies on an external API like OpenAI, OpenRouter, etc. You’ll need an account with the provider and an API key to connect.

WP Sheet Editor – AI is compatible with these AI providers:

  • Open AI for text and images (more info here)
  • OpenRouter (more info here)
  • Any other provider that uses the same format as OpenAI.

Follow this guide to learn how to set up AI providers in WP Sheet Editor – AI.

Prompt for generating course lessons with AI

Important. Here is a prompt that you can use to generate lesson content based on the lesson title. If you want to customize it to ask the AI to take other fields as context for the creation of the lesson content, you can add other fields using $Field/Column Name$. Please note that in order for the lesson to be generated correctly, you must first create the lessons and add the lesson title, so that it takes a proper context. You can always customize the prompt.

Create an engaging and well-structured lesson on $Title$ in clean HTML format. Start with a short introduction that explains the importance of the topic. Then, break the lesson into key sections with clear explanations, examples, and step-by-step guidance where needed. Use proper HTML formatting, including <h2> and <h3> for headings, <p> for paragraphs, <ul> and <ol> for lists, and <strong> for emphasis. Avoid using <html>, <body>, <header>, or <footer> tags, as WordPress handles these automatically. The content should be ready for direct insertion into the Classic Editor. End with a summary and, if relevant, include practical exercises or key takeaways. Keep the tone informative and engaging.

Below, we show you three options to generate LearnPress lessons with AI.

Option 1: Generate lessons in TinyMCE editor

The first option we want to show you is how to generate the content of the lessons using the TinyMCE editor in the spreadsheet.

To do this, you need to go to the Content column and click on Edit, which will open the TinyMCE editor in a popup.

learnpress course lessons ai

Once in the popup editor, click on Edit with AI.

learnpress course lessons ai

Now you can enter the prompt we shared above or type your own prompt. The great thing about this method is that you can generate content even without having the lesson titles, because you can write your own prompts.

Click on Generate once you’ve added the prompt.

learnpress course lessons ai

As you can see, the AI has generated the lesson content, and we can start making any necessary changes to get our lesson ready to be published. This is the easiest way to create LearnPress course lessons with generative artificial intelligence.

learnpress course lessons ai

Now you can continue generating other lessons.

Option 2: Generate lessons in spreadsheet cells

Let’s see how to generate LearnPress course lessons with AI in the spreadsheet cells.

In addition to being able to generate lesson content in the text editor, you can also add prompts in spreadsheet cells as plain text. You can add complete prompts using ai:prompt (replace “prompt” with the actual prompt) or use global prompts using the shortcut ai:prompt-slug (replace “prompt-slug” with the global prompt slug).

Optional: Create global prompt

WP Sheet Editor – AI allows you to create global prompts so you don’t have to type the prompt every time you want to use it. You can create a bank of global prompts that will make your work much easier. You can use global prompts both in the spreadsheet rows and in the Bulk Edit tool.

To create a global prompt for generating LearnPress course lessons based on the lesson title, you need to:

  • Go to WP Sheet Editor > AI > Settings > Prompts.
  • Click on Add new.
  • Enter a name that is easy to remember in the Name field.
  • Enter the prompt text in the Prompt field. You can add the prompt we shared above.
  • Click on Save.

learnpress-ai-generate-lesson-content-from-title

Once you have saved your global prompt, you will see an auto generated prompt slug.

This will be important when using the prompt in spreadsheet cells. You can type ai:prompt-slug to run the pre-saved global prompt in spreadsheet cells (ai:lesson in this case).

learnpress-ai-generate-lesson-content-from-title

Now you need to open the LearnPress lessons spreadsheet.

Go to WP Sheet Editor > Edit Lessons.

learnpress-ai-generate-lesson-content-from-title

As you can see, we have some lessons with empty content, but the lessons have clear titles, based on which we will generate the lessons’ content.

learnpress generate lessons with generative ai

To generate lesson content with AI, you need to add the prompt in the cells of the Content column.

In this case, we will use the ai:lesson shortcut, but you can type a full prompt using ai:prompt. Just replace “prompt” with the actual prompt you’ll use to generate lessons.

learnpress generate lessons with generative ai

The AI will start working to write your lesson’s content, so you’ll see a loading icon in the cell.

learnpress generate lessons with generative ai

As you can see below, we have generated content for the first lesson using AI.

learnpress generate lessons with generative ai

If you want to generate content for multiple lessons at once, you can paste the prompt shortcut or the full prompt in multiple cells.

learnpress generate lessons with generative ai

As you can see, we’re generating five lessons at once.

learnpress generate lessons with generative ai

And once the task has been completed, we can save the changes.

learnpress generate lessons with generative ai

You can click on Edit in the Content cells to open the text editor in a popup and make the changes you wish. This is great because it allows you to save a lot of time. You just have to make some necessary changes and publish your lessons.

learnpress generate lessons with generative ai

Option 3: Bulk generate LearnPress lessons with AI

WP Sheet Editor allows you to edit any field in hundreds or thousands of items. And with artificial intelligence integration, it allows you to generate or edit content with AI in bulk.

So in this case, you’ll be able to generate lesson content for your LearnPress courses. Just make sure your lessons have a clear title.

In this example, we will select the lessons manually and open the Bulk Edit tool.

learnpress bulk generate lessons with ai

Now select these values in order to generate lesson content with AI:

  • Select the rows that you want to update: In this case, we will edit all the lessons we selected in the spreadsheet.
  • What field do you want to edit: Content
  • Select type of edit: Here you have two options:
    • First option: You can select a pre-saved global prompt. For example, we will select our Lesson prompt, displayed as AI command: Lesson. This way, you don’t have to type the prompt.
    • Second option: You can select AI Prompt, and you can paste or type the full prompt.
  • AI Provider: If you have configured multiple providers, you can select the one you want to use to complete this task.
  • You can click on Show preview to see the result before saving the changes.
  • Now you can click on Execute Now and the AI will start generating your LearnPress lessons’ content.

learnpress bulk generate lessons with ai

Using artificial intelligence to generate lessons for your LearnPress courses is great with WP Sheet Editor – AI. You can generate content from scratch, generate content based on lesson title, and even refine existing lessons for better consistency, readability, etc.

Do you need help?

You can receive instant help in the live chat during business hours, or you can contact us and we will help you via email.