Directory / plugin

Preferable: AI Summary & Preferred Source Buttons

v0.2.2 · by wpformation

Let readers summarize your posts with their AI assistant and add your site to their Google preferred sources.

View on WordPress.org

About this plugin

🇫🇷 Fully translated into French. Interface intégralement traduite en français.

AI summary buttons and the Google preferred source button, in one free plugin, with no third-party script before a click.

Make your site the source your readers prefer, in their AI assistant and on Google. Preferable adds two kinds of buttons under your posts.

Summarize with AI. Readers open the post in ChatGPT, Claude, Perplexity, Mistral or Google AI Mode, with a short question that asks for a faithful summary. Busy readers get the gist in the assistant they already use, and your page is the source of the answer. Gemini, Copilot and Grok are available too.

Add as a preferred source on Google. Readers who pick your site as a preferred source see its articles more often in their Top Stories, marked as preferred, also in AI Mode and AI Overviews. One click opens Google’s own window. In the card layout, the button comes with an invitation, an explanation, a note and a drawing of the result, all editable.

Built to be trusted

  • Nothing leaves the page before a click. Every button is a plain link. Google’s script loads only when a reader clicks the Google button; if Google does not answer within 4 seconds, the reader goes to Google’s official page.
  • An honest question. The default question asks for a summary that sticks to the article, in its language, and readers see it before sending it. Preferable refuses custom questions that ask the assistant to remember or recommend your site (AI recommendation poisoning).
  • No cookie, no tracking, no account. Preferable stores no personal data.
  • Free, with every feature. No paid version, no upsell.

Beautiful by default

  • Four styles that look nothing alike: Soft (a rounded card, pills), Editorial (an accent rule, underlined links, a serif headline), Graphic (thick lines, hard shadows) or your theme’s buttons.
  • A card or a compact row, the Google button first or last, aligned left, centered or full width.
  • Assistant logos in your accent color or in their own colors, or neutral icons.
  • Seven palettes and your own, one color for the AI buttons, one for the Google button. Colors follow your theme by default, light or dark, and always stay readable.
  • A live preview, rendered by your site, on a desktop, a phone or in a sidebar.

Placed where you want

  • Automatically, content type by content type: before the content, after it, or both.
  • On block themes, as a block in the templates, which you can move or remove in the Site Editor.
  • In a sidebar or a footer, with the Preferred source button for Google block or the Preferable widget.
  • Anywhere else with the Preferable: AI & Google buttons block, the [preferable] shortcode or preferable_render() in a template.
  • Hidden on any content with one switch in the editor.

The settings also give the Google link and its QR code (SVG, PNG) for newsletters, social posts or print. The QR code is drawn in your browser.

The [preferable] shortcode

[preferable] shows the buttons with your settings. Options override them:
  • show="ai" or show="google": one family of buttons only.
  • providers="chatgpt,claude": these assistants, in this order (chatgpt, claude, perplexity, mistral, google-ai-mode, gemini, copilot, grok).
  • template="soft|classic|outline|theme" (classic: Editorial, outline: Graphic), layout="card|row", order="ai|google", align="start|center|stretch", icons="logos|color|neutral", heading="Your heading".
  • post="123": the buttons of another post.

In a theme template, <?php do_action( 'preferable_render', array( 'show' => 'google' ) ); ?> does nothing when Preferable is deactivated.

For developers

  • Filters: preferable_providers, preferable_should_display, preferable_html, preferable_icon_svg, preferable_heading_level, preferable_ogeeat_buttons, preferable_palette, preferable_palette_variable, preferable_guard_words.
  • The output of preferable_html and preferable_icon_svg goes through wp_kses(): tags outside the plugin’s list, such as scripts, are removed. Icons may use the basic SVG shapes.
  • CSS variables: --preferable-accent, --preferable-text, --preferable-bg, --preferable-ai, --preferable-google, --preferable-radius, --preferable-gap.

Translations

Preferable ships with a complete French translation: settings, editor, block, widget and buttons. Translations into other languages are welcome on translate.wordpress.org.

Credits

Made by Fabrice Ducarme of WPFormation. An optional credit link under the buttons is off unless you turn it on.

Bundled resources, licenses in assets/licenses/ and assets/fonts/: assistant and Google icons from Simple Icons (CC0 1.0) and LobeHub Icons (MIT), the uqr QR code library (MIT), the Inter and JetBrains Mono fonts (SIL Open Font License 1.1).

Preferable is not affiliated with OpenAI, Anthropic, Perplexity, Mistral AI, Google, Microsoft or SpaceXAI (formerly xAI). Their names and logos belong to them and only identify each service.

External services

Preferable links to the services below. None of them is contacted while a page loads: each one is reached only when a visitor clicks its button, by the visitor’s browser. The site owner needs no account with any of them; a visitor uses their own account where the service asks for one.

AI assistants

When a visitor clicks an assistant button, the browser opens that assistant with a question. The question contains the title and the address of the article (and, if the site owner enabled it, utm parameters naming the assistant). For Gemini and Copilot, the question is copied to the visitor’s clipboard instead and the assistant opens without it.

  • ChatGPT, by OpenAI (chatgpt.com). Terms: https://openai.com/policies/terms-of-use/ Privacy: https://openai.com/policies/privacy-policy/
  • Claude, by Anthropic (claude.ai). Terms: https://www.anthropic.com/legal/consumer-terms Privacy: https://www.anthropic.com/legal/privacy
  • Perplexity (perplexity.ai). Terms: https://www.perplexity.ai/hub/legal/terms-of-service Privacy: https://www.perplexity.ai/hub/legal/privacy-notice
  • Le Chat, by Mistral AI (chat.mistral.ai). Terms: https://legal.mistral.ai/terms/eu-consumers-terms-of-service (European Union) and https://legal.mistral.ai/terms/row-consumer-terms (elsewhere) Privacy: https://legal.mistral.ai/terms/privacy-policy
  • Google AI Mode (google.com) and Gemini (gemini.google.com), by Google. Terms: https://policies.google.com/terms Privacy: https://policies.google.com/privacy
  • Copilot, by Microsoft (copilot.microsoft.com). Terms: https://www.microsoft.com/en-us/servicesagreement Privacy: https://www.microsoft.com/en-us/privacy/privacystatement
  • Grok, by SpaceXAI, formerly xAI (grok.com). Terms: https://x.ai/legal/terms-of-service Privacy: https://x.ai/legal/privacy-policy

Google preferred sources

When a visitor clicks the Google button, the browser loads Google’s script https://news.google.com/swg/js/v1/publisher.js, which opens Google’s window to add the site to the visitor’s preferred sources. The script receives the address of the page, like any script a browser loads. If the script does not answer within 4 seconds, or if JavaScript is off, the browser opens https://www.google.com/preferences/source with the site’s domain. Terms: https://policies.google.com/terms Privacy: https://policies.google.com/privacy

Plugin tags