This plugin allows anyone to use Generative AI (GenAI) to create content for their WordPress website: text and images for their pages.

  • Start by adding the plugin to your website, via your dashboard (Plugins -> Add plugin and search for Entgenai).
  • Then activate the plugin. After activation, you will see some new entries in the Dashboard which allow you to configure the plugin, and to use it to generate content.

Let’s use it to create an image using Google Gemini’s model for images.

First we configure the plugin, specifying which API Service Provider we want to use, which model and our API Key:

Figure 1. Configuring your AI API Provider

The plugin comes with a few pre-installed API Providers, but you can add new ones or modify those pre-installed.

Figure 2. Use “Manage” to add or edit Providers

Just press on Manage, as above, and you will see a popup with a list of providers, an Add New button, and then the editable details of the selected provider.

Figure 3. Editing a Provider’s details

The provider details are very much as what you would find in their documentation, except for a few variables, which are used to populate the prompt, model, api key, system, and streaming preferences when selecting and using a given provider. Those variables start with _, and include _PROMPT, _LLMODEL, _APIKEY, _SYSTEM and _STREAM.

Figure 4. The details match a Provider’s documentation

Once you save your configuration, using the “Save Settings” button (see Figure 2 above), you are ready to generate content using your chosen API. Pressing the “Generate” button on the left, brings up the following view:

Figure 5. Pressing on “Generate” brings up the AI Assistant View

Enter a message for the assistant to prime its behaviour, like “you are a friendly assistant”, “you are an experienced teacher”, etc, and then write the specific prompt describing what you want to generate. For instance, “write an article about starting a marketing business”, or “create an image of a Lion reading a book about how to hunt alone”. Specify whether you want to receive the result at once, or whether you’d prefer to stream it. The press “AI Generate”.

Figure 6. Use “AI Generate” to submit your prompt

The bar at the top indicates your request is being processed.

Figure 7. A bar displays at the top, while we wait

Generated content shows below the “AI Generate” button. Generated text will display in full, and you can choose to save it as a page (in draft), which you can then edit with the WordPress editor, as you would for any other page.

If you asked for an image, at this point you will only see image information, like the file name, and the fact that the image has been added to the media folder, as this is a text only control.

Figure 8. The AI Enhanced image prompt and image info

Let’s give it a title and save it as a page:

Figure 9. Saving generated content as a WordPress page, in draft

We receive confirmation that the content has been saved:

Figure 10. Confirmation that the content was saved

There is now also an “Edit as Page” button below “Save”. After closing the confirmation dialog, we can press on it:

Figure 11. Let’s go edit that page

Now, finally, we can see the generated image on the page:

Figure 12. Finally we got to see a Polar bear on a summer holiday
Figure 12. The bear having a good time

The image looks too wide compared to our paragraphs, let’s convert everything to blocks

Figure 13. Click a paragraph, then choose “Convert to blocks”

Clicking on that top paragraph will show the menu, and we can now choose “Convert to blocks”, which will lead to paragraphs and images becoming blocks with the same width.

Figure 14. Now everything is a block

We can now press on the Image block and write an Alt text for the image, on its right.

Figure 15. Image edit: alt, crop, etc

Finally, we can get rid of unwanted text, add other text, and save and preview or publish our page.

Figure 16. Save draft or publish
Figure 17. Page preview

That’s it, thank you for reading. Give it a try and publish your own Ai assisted creations! 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *