How to Integrate Gemini AI in WordPress 7.0

How to Integrate Gemini AI in WordPress 7.0

The latest WordPress 7.0 update includes a new feature that lets you easily integrate Gemini AI into WordPress. You can use it to effortlessly create images for articles, tags, categories, titles, and even post summaries.

By default, there are three AI providers available: Anthropic (Claude), Google (Gemini), and OpenAI (ChatGPT). However, since the free API version is only available for Gemini, you can use Gemini if you do not have a subscription for the Claude or ChatGPT APIs.

How to Integrate Gemini AI in WordPress 7.0

To integrate Gemini AI in WordPress, make sure you have updated to WordPress 7.0, as this feature is available starting in that version. Once updated, you can proceed to the first step of this tutorial:

1. Install and Activate the AI plugin

Although you can connect AI directly using a connector by default, the AI plugin helps with further management, such as creating featured images, generating summaries, creating images, and more.

To install the AI plugin, you can open the menu Settings > Connectors, then click the button Install the AI Plugin and Install as well as Google.

Cara Intregrasi Gemini AI di WordPress 7.0 - WPGan.com - 1.1

2. Get a Google API Key

After the AI Plugin and Google are installed, you need to get a Google API Key from the page aistudio.google.com. When you first access AI Studio, you need to agree to the terms first

Cara Intregrasi Gemini AI di WordPress 7.0 - WPGan.com - 2.1

Once the terms are accepted, you can create an API Key by clicking the Create API Key button on the Get API Key page

Cara Intregrasi Gemini AI di WordPress 7.0 - WPGan.com - 2.2

Give the API Key you are creating a name, for example WPGan-WordPress, and for the Project, you can just use the default Project.

Cara Intregrasi Gemini AI di WordPress 7.0 - WPGan.com - 2.3

After the API Key is successfully created, you can copy the API Key to use in WordPress. You can save or ignore the other information

Cara Intregrasi Gemini AI di WordPress 7.0 - WPGan.com - 2.4

3. Add the API Key to WordPress

Now return to the Connectors section in WordPress, then click Activate Google to add the API Key you obtained

Cara Intregrasi Gemini AI di WordPress 7.0 - WPGan.com - 3.1

Simply paste your API Key, then click the Save button

Cara Intregrasi Gemini AI di WordPress 7.0 - WPGan.com - 3.2

If successful, there will be a badge Connected on the provider you selected

Cara Intregrasi Gemini AI di WordPress 7.0 - WPGan.com - 3.3

4. Enable AI

For AI to work in WordPress, you need to enable AI in WordPress first and choose which features you want to activate. To enable AI, you can open the menu Settings > AI, then turn on the Enable AI toggle

Cara Intregrasi Gemini AI di WordPress 7.0 - WPGan.com - 4.1

After activating the AI feature, make sure to also enable all features or the specific ones you need

Cara Intregrasi Gemini AI di WordPress 7.0 - WPGan.com - 4.2

5. Test AI

Finally, you can test the AI, such as creating the right title, generating a summary, creating an excerpt, and more from the WordPress editor page

Cara Intregrasi Gemini AI di WordPress 7.0 - WPGan.com - 5.1

For example, if you want to create a Title, the title will not change automatically. Instead, you will see information about the right title to use for the article you are creating, or you can choose to regenerate it

Cara Intregrasi Gemini AI di WordPress 7.0 - WPGan.com - 5.2

That is how easy it is to integrate Gemini AI in WordPress 7.0, so even while using WordPress, you can remain productive by utilizing AI features.

Written by

Muhammad Khoirun Nasikin

I enjoy tinkering with WordPress, hosting, VPS, web development, and various small experiments related to websites. I have over 3 years of experience in the web hosting industry.

COMMENTS

Loading...