Sign In

/How to create AI-powered content summaries for articles

Automation:

How to create AI-powered content summaries for articles

Used Tools:

OpenAI | Make | WordPress

In this post, I’ll show you how to set up AI-powered content summaries for your WordPress articles in just 30 minutes. We’ll use OpenAI’s API to generate concise summaries, automate the process with Make, and integrate everything seamlessly into your WordPress site. No advanced skills required—just follow along, and you’ll enhance your readers’ experience by providing quick, digestible takeaways for your content.
How to create AI-powered content summaries for articles

Ever found yourself drowning in lengthy articles, wishing for a quick summary? Well, you’re in luck! In this guide, I’ll walk you through setting up an AI-powered system that automatically summarizes long-form content, making it easier for you to digest information swiftly. We’ll be using OpenAI, Make (formerly Integromat), and WordPress to create this automation. Don’t worry if you’re new to this; I’ll break it down step by step. Let’s dive in!

Step-by-Step Guide

Step 1: Set Up Your OpenAI Account

First things first, you’ll need an OpenAI account to access their API.

  1. Go to the OpenAI signup page and create an account.
  2. Once logged in, navigate to the API Keys section.
  3. Click on “Create new secret key,” name it (optional), and copy the key. Store it securely, as you won’t be able to view it again.

You’ll also need your Organization ID:

  1. Go to your Organization settings.
  2. Copy the Organization ID displayed there.

Keep both the API key and Organization ID handy; we’ll need them soon.

Step 2: Set Up a Make Account

Make is a powerful automation platform that will help us connect OpenAI with WordPress.

  1. Sign up for a free account at Make.com.
  2. Once registered, log in to your dashboard.

Step 3: Create a New Scenario in Make

Now, let’s create a scenario that will handle the automation.

  1. In your Make dashboard, click on “Create a new scenario.”
  2. Click on the “+” button to add your first module.

Step 4: Set Up a Webhook to Receive Article Data

We’ll start by setting up a webhook that will receive data from your WordPress site whenever a new article is published.

  1. In the module search bar, type “Webhook” and select the “Custom webhook” module.
  2. Click on “Add” to create a new webhook.
  3. Name your webhook (e.g., “New Article Webhook”) and click “Save.”
  4. Copy the generated webhook URL; you’ll need to add this to your WordPress site.

Step 5: Configure WordPress to Send Data to the Webhook

We’ll use a WordPress plugin to send data to the Make webhook whenever a new post is published.

  1. In your WordPress dashboard, go to “Plugins” and click “Add New.”
  2. Search for and install the “WP Webhooks” plugin.
  3. Activate the plugin and navigate to its settings.
  4. Under “Send Data,” click on “Add Webhook.”
  5. Paste the webhook URL you copied from Make.
  6. Choose the trigger “Post Created” to send data whenever a new post is published.
  7. Save your settings.

Step 6: Parse the Article Content in Make

Back in Make, we’ll parse the data received from WordPress.

  1. After the webhook module, add a “Parse JSON” module.
  2. In the “Data” field, map the “body” output from the webhook.
  3. In the “Schema” field, input the JSON structure of the data sent by WordPress. You can get this by publishing a test post and checking the data received by the webhook.

Step 7: Connect to OpenAI to Generate the Summary

Now, let’s set up the connection to OpenAI to generate the summary.

  1. Add an “OpenAI” module after the “Parse JSON” module.
  2. Select the “Create a completion (prompt)” action.
  3. Click on “Add” to create a new connection.
  4. Enter your OpenAI API key and Organization ID that you obtained earlier.
  5. In the “Model” field, select “gpt-3.5-turbo” or the latest available model.
  6. In the “Prompt” field, input the following:

    Summarize the following article in a concise manner:

    {{Article Content}}

  7. Replace {{Article Content}} with the parsed article content from the previous module.
  8. Set “Temperature” to 0.3 for focused results.
  9. Set “Max tokens” to 150 to limit the length of the summary.

Step 8: Update the WordPress Post with the Summary

Finally, we’ll update the original WordPress post with the generated summary.

  1. Add a “WordPress” module after the OpenAI module.
  2. Select the “Update a Post” action.
  3. Connect your WordPress site by entering your site’s URL, username, and application password.
  4. In the “Post ID” field, map the ID from the parsed JSON data.
  5. In the “Content” field, map the original content and append the generated summary at the end. For example:

    {{Original Content}}

    Summary: {{Generated Summary}}

  6. Save your scenario.

Step 9: Test Your Automation

Before going live, it’s essential to test your setup.

  1. In Make, click on “Run once” to start the scenario.
  2. In WordPress, publish a new test post.
  3. Check if the post gets updated with the generated summary.

If everything works as expected, you’re good to go!

Optional Enhancements

Want to take this automation to the next level? Here are a few quick-win ideas:

  • Automate Social Media Sharing: After generating the summary, automatically share it on your social media platforms using Make’s integrations.
  • Send Email Notifications: Notify your subscribers via email whenever a new summarized post is published.
  • Translate Summaries: Use OpenAI to translate the summaries into multiple languages, catering to a broader audience.

And there you have it! With this setup, you can effortlessly generate AI-powered summaries for your articles, making content consumption a breeze for your readers. Happy automating!

Get to know the latest in AI

Join 2300+ other AI enthusiasts, developers and founders.

Comments

Leave a Reply

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

Related AI Automations

How to generate automated video scripts with AI

How to generate automated video scripts with AI

How to turn voice notes into written content with AI

How to turn voice notes into written content with AI

How to turn YouTube videos into blog posts with AI

How to turn YouTube videos into blog posts with AI

How to repurpose blog posts into social media content with AI

How to repurpose blog posts into social media content with AI

How to Auto-Publish Podcast Episodes to Spotify & Apple

How to Auto-Publish Podcast Episodes to Spotify & Apple

How to generate personalized product videos with Synthesia and Zapier

How to generate personalized product videos with Synthesia and Zapier

Related AI Tools