plugin-icon

Jigar Patel Post Content Summary With AI

Generate a short, AI-written summary for any post, let editors review/edit it, and automatically display it in a styled box above the article.
Évaluations
Version
1.0.0
Mis à jour récemment
Jul 21, 2026

JP Post Content Summary With AI adds a « Generate Summary with AI » button to the post editor. One click sends the article content to your chosen AI provider (Anthropic Claude or OpenAI), which returns a short summary (200 characters max). The summary lands in an editable text field so editors can tweak it before publishing. Once the post is saved, the summary is stored in post_meta and automatically prepended to the post content on the front end, inside a rounded, bordered box.

Features

  • One-click AI summary generation from the post editor
  • Editable summary field with a live 200-character counter
  • Works with Anthropic (Claude) or OpenAI — your choice, your API key
  • Summary is stored in post_meta (key: _ai_short_summary)
  • Automatically displayed above the post content in a styled box — no theme edits needed
  • Server-side enforcement of the 200-character limit, even if the field is edited manually
  • Nonce-protected AJAX request and standard WordPress capability checks

How It Works (Step by Step)

  1. Configure your API key Go to Settings JP PostSummary With AI in wp-admin. Choose a provider (Anthropic or OpenAI), paste your API key, and optionally specify a model (defaults: claude-sonnet-4-6 for Anthropic, gpt-4o-mini for OpenAI). Save changes.

  2. Open a post Edit any post (new or existing). Below the main content editor you’ll see a « Short Summary (AI) » box.

  3. Generate the summary Click « Generate Summary With AI. » The plugin sends the post’s title and content (up to ~6000 characters) to the configured AI provider via a secure server-side AJAX request (admin-ajax.php, nonce-verified). The AI returns a short summary, which is inserted into the text field below the button.

  4. Review and edit The summary is fully editable. A live character counter (e.g. « 142 / 200 ») shows how much room is left, and turns red if you exceed the limit. You can also skip AI generation entirely and type your own summary.

  5. Save/Publish the post When you click Update or Publish, WordPress’s standard save_post hook fires. The plugin verifies the nonce and your editing capability, sanitizes the text, truncates it to 200 characters at a clean word boundary if needed, and saves it to post_meta under the key _ai_short_summary.

  6. Automatic front-end display On the single post view, a the_content filter checks for a saved summary. If one exists, it’s wrapped in a <div class="jppsai-summary-box"> — rounded corners, subtle border and shadow — and prepended before the rest of the article content. No template edits are required; this happens automatically via the filter.

External services

This plugin uses the WordPress AI Client, the AI infrastructure built into WordPress core (7.0+), to generate short article summaries. It does not connect to any external service directly or on its own — it works only through whichever AI provider(s) the site administrator has configured under Settings AI Credentials. Depending on that configuration, the plugin’s « Generate Summary by AI » button will cause the post title and content to be sent to one of the following third-party services:

Anthropic (Claude models) * What it is / what it’s used for: a generative AI service used to produce the short article summary text. * What data is sent, and when: the post title and up to approximately 6,000 characters of the post content, sent only when an editor clicks the « Generate Summary by AI » button (never automatically or in the background). * Terms of Service: https://www.anthropic.com/legal/consumer-terms * Privacy Policy: https://www.anthropic.com/legal/privacy

OpenAI (GPT models) * What it is / what it’s used for: a generative AI service used to produce the short article summary text. * What data is sent, and when: the post title and up to approximately 6,000 characters of the post content, sent only when an editor clicks the « Generate Summary by AI » button (never automatically or in the background). * Terms of Service: https://openai.com/policies/row-terms-of-use/ * Privacy Policy: https://openai.com/policies/row-privacy-policy/

Data & Privacy Notes

  • Post title and content (up to ~6000 characters) are sent to the configured third-party AI provider (Anthropic or OpenAI) when the « Generate Summary With AI » button is clicked.
  • No data is sent automatically — generation only happens on explicit button click.
  • Refer to your chosen provider’s privacy policy and terms of service for how they handle submitted data.

Known Limitations

  • Any user with edit_posts capability can trigger a billed API call by clicking the button. If you have many editors, consider adding rate-limiting.
  • Summary generation is synchronous — the request happens while the editor waits, so response time depends on the AI provider’s latency (typically a few seconds).
Gratuitsur les plans payants
En procédant à l’installation, vous acceptez les Conditions d’utilisation de WordPress.com ainsi que les Conditions de l’extension tierce.
Testé jusqu’à version
WordPress 7.0.2
Cette extension est disponible en téléchargement pour votre site .