RSS Post Importer - Use Case - How to Automatically Generate Articles Based on RSS Feed Content Using Gemini


Use Case - How to Automatically Generate Articles Based on RSS Feed Content Using Gemini

Back to User Guide

Note: This guide requires:

Introduction

The RSS Post Importer plugin lets you import posts or pages from an external site to your WordPress site. It can be useful for linking together sites that you own that should share content mutually, or for scraping similar sites for content that relates to what your site is about.

The integration with Gemini allows to generate new unique articles on your site taking the RSS feed content as a base.

Use Case Front-End

Example of the original content from RSS feed:

Example of the original content from RSS feed - RSS Feed Importer WordPress Plugin
Example of the original content from RSS feed

Example of writing a new article based on the content from RSS feed:

Example of writing a new article based on the content from RSS feed - RSS Importer WordPress
Example of writing a new article based on the content from RSS feed

Example of translating to French the content fetched from RSS feed:

Example of translating to French the content fetched from RSS feed - WordPress RSS Multi Importer Plugin
Example of translating to French the content fetched from RSS feed

Use Case Assumptions

In this example we will consider how to integrate the plugin with Gemini and automatically generate articles based on the RSS feed content. 

We assume that you have already bought the plugin, but not installed it yet.

It follows:

Installing the Plugin

The process is the same for all CM plugins and add-ons.

CreativeMinds Customer Account Dashboard - Downloads tab
CreativeMinds Customer Account Dashboard
  • Download the plugin from your customer dashboard.
  • Log in to WordPress and navigate to the WordPress Admin  → Plugins settings.
  • Click on Add New.
  • Activate it and add the license.

Learn more: Getting Started - Plugin Overview


Quick Recap

As in this example use case guide we cover only how to integrate the plugin with Gemini and configure its settings. We recommend you to get to know first how to work with the plugin in general. You can learn the following in our another use case guide: 

  • Configuring the plugin
  • Creating a Feed
  • Choosing What's Important in the Feed
  • Choosing What's Important in the Post
  • How the Posts Are Displayed (Post Template)
  • Managing Feeds
  • Fetch History

Learn more about it here: 

What is Gemini

Gemini, also known as Bard, is a friendly artificial intelligence chatbot created by Google. It is built on the large language model (LLM) of the same name and was developed as a direct response to the rapid growth of OpenAI's ChatGPT. Gemini was introduced in a limited capacity in March 2023 and later expanded to other countries in May. It was previously built on PaLM and initially belonged to the LaMDA family of large language models.

Creating API Key

To integrate Gemini with the RSS Post Importer, you will need an API key. To obtain it, you need to sign up on the Google AI Studio site. You need to register and verify your phone number. After you are registered and logged-in, head to the API Keys to create and get the key.

Copy this key and keep it safe and secure, as it provides access to your account and services. The copied key will be needed while configuring the plugin.

Enabling Gemini Integration On Your Site

To configure the default integration settings, navigate to Admin Dashboard → CM RSS Post Importer Pro → Options → Gemini tab.

Navigation to the Gemini integration settings - RSS Feeds Importer Plugin
Navigation to the Gemini integration settings

There you can find the following settings:

Gemini integration settings - RSS Feed Importer WordPress Plugin
Gemini integration settings
  • Enable Gemini - Turn on this option to activate Gemini feature.
  • Gemini Key - Add here Gemini API key obtained on the site Google AI Studio.
  • Gemini Model - The plugin supports two versions of Gemini which you can choose - Gemini Pro and Gemini Pro 1.5. Have a note that currently the version Gemini Pro 1.5 is a beta version, so it can give unexpected results.
  • Gemini Reply Length - Set the maximum length of the reply requested from the Gemini. This value is set in tokens. Have a note that Gemini Pro replies are limited by 2048 tokens, while Gemini Pro 1.5 can be unlimited.
  • Gemini Temperature - This option allows to define how accurate the generated forum answer will be. This value ranges from 0 to 2. Lower temperatures are good for prompts that require a more deterministic and less open-ended or creative response, while higher temperatures can lead to more diverse or creative results.
  • Gemini Prompt Title Template - Specify the request which the plugin will be sending to Gemini for generating new title for the article. Important: this template must contain the following placeholder: {rss_title}.
  • Gemini Prompt Content Template - Specify the request which the plugin will be sending to Gemini for generating new content for the article. Important: this template must contain the following placeholder: {rss_content}.
  • Gemini Safety Level - The Gemini API blocks content based on the probability of content being unsafe. By default, safety settings block content (including prompts) with medium or higher probability of being unsafe across any dimension. You can change safety level to the one is appropriate for your use case:
    • Always show regardless of probability of being harmful
    • Block low, medium or high probability of being harmful
    • Block medium or high probability of being harmful
    • Block high probability of being harmful

These settings are the default ones. For each added RSS feed you can enable or disable the Gemini integration and override some of the default settings.

When you finished configuring the settings, click the button Save Changes at the bottom of the page.

Saving the changes - RSS Importer WordPress
Saving the changes

So, let's enable the Gemini feature, add an API key, and change both prompt templates to:

  • Write a new title based on this: {rss_title}
  • Write a new article based on this: {rss_content}

And change the safety level to:

  • Always show regardless of probability of being harmful

This is how our settings look like after setting up:

Editing Gemini integration settings - WordPress RSS Multi Importer Plugin
Editing Gemini integration settings

These settings are the default ones. For each added RSS feed you can enable or disable the Gemini integration and override some of the default settings.

So, let's configure the RSS feed import.

RSS Feed Settings

To manage RSS feeds, navigate to Admin Dashboard → CM RSS Post Importer Pro → RSS Feeds. There you can either add new RSS feed by clicking the Add RSS Feed button or edit the existing feed by hovering on it and clicking Edit.

Adding/editing RSS feeds - RSS Feeds Importer Plugin
Adding/editing RSS feeds

TIP

We will not consider the whole process of adding/editing the RSS feed, only the part related to the Gemini integration. To learn more about this process, check these use case guides:

In the box General, find the section API Settings. The options there allow you to enable the Gemini feature for this RSS feed and override some of the global plugin settings.

Settings for overriding global Gemini integration settings - RSS Post Importer
Settings for overriding global Gemini integration settings

The settings are:

  • Use Gemini for current feed - Check the box to enable the Gemini feature for the current RSS feed. By default, it's disabled.

Next 6 options allow you to override the global plugin settings:

  • Gemini Reply Length
  • Gemini Temperature
  • Gemini Safety Level
  • Disable rewriting the title with Gemini - Turn on this option if you want to keep the original article title provided by the source feed.
  • Gemini Prompt title template
  • Gemini Prompt content template

If some field is empty, then it follows the global plugin settings.

Let's create 2 feeds with the same RSS source:

1. The first one will follow the global Gemini integration settings. Here we will just enable the first option and keep all other fields empty, so the task will be to write a new article based on the content fetched from RSS feed:

Enabling Gemini feature for the current RSS feed - RSS Feed Importer WordPress Plugin
Enabling Gemini feature for the current RSS feed

2. For the second field, we will change the prompt template for the title and content - the task will be to translate the content to French:

Overriding global plugin settings for Gemini integration - RSS Importer WordPress
Overriding global plugin settings for Gemini integration

Examples of Generated Content

First let's see the original content article in the RSS feed:

Example of the original content from RSS feed - WordPress RSS Multi Importer Plugin
Example of the original content from RSS feed

Here's the example of the post, where Gemini should write a new article:

Example of writing a new article based on the content from RSS feed - RSS Feeds Importer Plugin
Example of writing a new article based on the content from RSS feed

And here's the example of the post, where the Gemini should just translate the content to French:

Example of translating to French the content fetched from RSS feed - RSS Post Importer
Example of translating to French the content fetched from RSS feed

TIP

If you want to have more control over the published content, you can hold the generated content for moderation. When editing the RSS import process, find the box Post Template (Export). You can choose the necessary Status for the generated posts in the relevant option, for example - Draft. This way, you can review and edit articles before publishing them.

Changing the post status for the generated content - RSS Feed Importer WordPress Plugin
Changing the post status for the generated content

End Result

Following the instructions found in the plugin and guides, you should be able to integrate the plugin with Gemini and automatically generate articles based on the RSS feed content.

Use Case Front-End

Example of the original content from RSS feed:

Example of the original content from RSS feed - RSS Importer WordPress
Example of the original content from RSS feed

Example of writing a new article based on the content from RSS feed:

Example of writing a new article based on the content from RSS feed - WordPress RSS Multi Importer Plugin
Example of writing a new article based on the content from RSS feed

Example of translating to French the content fetched from RSS feed:

Example of translating to French the content fetched from RSS feed - RSS Feeds Importer Plugin
Example of translating to French the content fetched from RSS feed

More information about the RSS Post Importer plugin for WordPress

Other WordPress products can be found at CreativeMinds WordPress Store

Let us know how we can Improve this Product Documentation Page

To open a Support Ticket visit our support center
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.