Publish a blog post. Get a precise, AI-generated summary — automatically, in the background, with zero extra effort.
AI Blog Summariser is a lightweight WordPress plugin that uses the Anthropic Claude API to generate concise summaries of blog posts the moment you hit “Publish.” The summary is stored as a custom meta field and can be displayed anywhere in your theme — via shortcode, Elementor, or plain PHP.
The plugin is developed by Nettsmed and used in production on nettsmed.no.
Innholdsfortegnelse
How It Works
- Install the plugin and enter your Anthropic API key under Settings → AI Summariser
- Publish a post as usual — the plugin triggers automatically in the background
- The summary is saved to the post’s meta field and ready to use in your theme, Elementor, or any page builder
Saving the post takes no longer than usual. The summary appears within seconds after publishing via a background job (WP-Cron).
Features
- 🤖 Automatic summaries on publish — no extra steps
- ⚡ Background processing — saving is never blocked by the API call
- 🌍 Language support — auto-detect, Norwegian Bokmål, or English
- 🔌 Compatible with Elementor, JetEngine, custom templates, and shortcodes
- ✏️ Manual override — edit the summary directly in the post editor
- 🔄 One-click regeneration via the meta box in the post editor
- ⚙️ Configurable — model, max words, language, custom prompt, and post types
- 💸 Cheap — approximately $0.005 per summary with Claude Sonnet
Settings
All settings are managed under Settings → AI Summariser in the WordPress admin.
| Setting | Default | Description |
|---|---|---|
| API Key | — | Your Anthropic API key from console.anthropic.com |
| Model | claude-sonnet-4-6 | Choose between Sonnet (fast, affordable), Haiku (fastest), or Opus (premium) |
| Post Types | post | Any public post type can be enabled |
| Generation Mode | On publish | On first publish, on every update, or manual only |
| Language | Auto-detect | Follows the post’s language, or can be forced to Norwegian/English |
| Max Words | 50 | Adjustable between 20–300 words |
| Custom Prompt | Built-in | Full control over the prompt sent to Claude |
Displaying the Summary
The summary is stored as post meta and can be displayed anywhere — in Elementor via dynamic tags, in custom PHP templates, or with the shortcode.
On nettsmed.no, the summary is displayed as a “TL;DR” box at the top of each blog post.
Requirements
- WordPress 6.0+
- PHP 8.0+
- An Anthropic API key
Installation
- Download or clone the repo from GitHub
- Upload the
ai-blog-summariserfolder towp-content/plugins/ - Activate the plugin under Plugins → Installed Plugins
- Go to Settings → AI Summariser and enter your API key
- Publish a post — the summary appears in the AI Summary meta box within seconds
Cost
With claude-sonnet-4-6 (~$3/M input, ~$15/M output tokens):
- Typical blog post (~1,000 words) ≈ ~$0.005 per summary
- 200 posts ≈ approximately $1
Source Code
The plugin is open source under the GPL-2.0+ license.
👉 GitHub: Nettsmed/wp-ai-summariser
Simple, single-file architecture — no Composer dependencies, just PHP and wp_remote_post.
Customization and Development
Need custom integrations, modifications, or additional functionality? Get in touch — we’re happy to extend the plugin to fit your needs.