Skip to main content
Categories
How To...PerformanceSEO

HOW TO: Make content creators lives easier with machine learning

The geniuses over at 10up have gone and done it again with a stable release of their plugin that seamlessly connects WordPress instances with machine learning tools to boost SEO and help writers concentrate on what they do best… write.

Introducing ClassifAI

No more need to add tags to posts, tags or alt text to images… even image cropping is taken care of by AI with this integration. On top of this, it integrates with ElasticSearch to make results far more intuitive and relevant.

You can read more about it here on their official site and the official readme/setup guide can be found on their Github so I won’t drone on… let’s go through how to get it set up nice and quick!

Quick set up guide

You’ll need a free Microsoft Azure account and a free IBM Cloud account so go ahead and create those if you don’t already have them.

To actually get access to the plugin, you’ll want to fill out 10up’s form here. Once that’s completed the plugin will download automatically in your browser. Go ahead and install that on your WordPress site.

You’ll also have been sent an email with your Registration Key which you’ll want to enter on the plugin page along with the email you signed up with.

In the IBM portal, click Create resource and search for Natural Language Understanding.

Select your region, leave everything else default (30,000 NLU p/m is free) and click Create.

Click on the Manage tab on the left, then Show credentials, copy the API key and paste into the ClassifAI plugin’s Language processing page (/wp-admin/admin.php?page=language_processing)

Do the same for API URL.

On the same page, select which Post types to be included and under Post Types to Classify, enable posts, pages and media.


Enable Category, Keyword, Entity and Concept (leaving the default 70% threshold in place for each) before clicking Save.

Now go to the Image processing page of the plugin settings and open a new tab for your Azure Account. Search for Computer vision.

Select the Free trial and click Create new under Resource group. You’ll want to give it a name that’s easily identifiable to you.

Select your region and name that instance also.

For Pricing Tier, pick Free F0. Proceeding from here brings you to the Review and create page that eventually validates… once it’s done, click Create. You should see Your deployment is complete.

Click Go to resource, then Keys and endpoint.

Click Show Keys and copy Key 1 and paste it back on the Image processing plugin settings page. Do the same for the Endpoint URL.

Under Tag Taxonomy select Watson keywords and also select Enable Smart cropping.

Leave everything else default and click Save changes.

The plugin is now configured for all future posts. To retroactively process existing posts you can use the following WP-CLI command:

wp classifai post {post_ids} [--post_type=post_type]

What it looks like

You may notice you now have new fields on posts and pages under the Document tab; Watson Categories, Watson Keywords, Watson Concepts and Watson Entities.

This is the first post I made with ClassifAI enabled. After publishing this post, the Categories and Concepts fields autopopulated:

… and after uploading this next image…

..the alt text was automatically added:

On top of this, ClassifAI ensures that the image is cropped around the focal point. Which is really cool.

What’s even better? It adds 4 new sitemaps to your site; watson-category-sitemap.xml, watson-keyword-sitemap.xml, watson-concept-sitemap.xml and watson-entity-sitemap.xml:

So don’t forget to submit those to your Google Search Console. Absolutely great work 10up!