Share to AI — Buttons for ChatGPT, Perplexity & More

Description

Share to AI adds clean, configurable share buttons to your posts so readers can summarise your articles directly in their favourite AI tool — ChatGPT, Claude, Perplexity, Google Gemini, Grok, Google AI, and optionally DeepSeek, Mistral, Copilot, Qwen and Meta AI.

Each button opens the AI tool with a pre-filled, fully editable prompt that points to the article the reader is on. You control the wording per tool, so you can ask each AI to summarise, extract key points, or surface specific questions — in whatever language and tone suits your audience. Useful for blogs and publishers who want to give readers a frictionless way to engage with longer-form content.

Some AI tools (Gemini, DeepSeek, Mistral, Copilot, Qwen and Meta AI) don’t accept a prompt in the URL. For those, the button copies the prompt to the reader’s clipboard and opens the tool in a new tab, with a small on-screen confirmation so they know to paste it. Tools that do support URL prompts (ChatGPT, Claude, Perplexity, Grok, Google AI) open pre-filled as usual.

Key Features:

  • Support for 11 AI Tools: ChatGPT, Claude, Perplexity, Gemini, Grok and Google AI enabled out of the box, plus optional DeepSeek, Mistral, Copilot, Qwen and Meta AI. Editable in the backend so you can update endpoints as platforms change.
  • Smart Sharing: URL-prompt tools open pre-filled; clipboard-only tools (like Gemini) copy the prompt and open the tool, with a confirmation toast — so the prompt always reaches the AI.
  • Custom Prompts: Write your own prompts in any language to guide how each AI interprets and summarises your content, using the {url} and {sitename} placeholders.
  • Per-Post-Type Control: Choose exactly which content types show the buttons — Posts, Pages, or any public custom post type.
  • Per-Post Opt-Out: A “Share to AI” box in the post editor lets you hide the buttons on any individual post.
  • Flexible Placement & Sizing: Inline (before/after content) or sticky floating (left/right), in three button sizes (Small / Normal / Large), with an option to hide the buttons on mobile.
  • Three Display Modes: Text + Icons (default), Icons only, or Text only.
  • Built-in Icons: Lightweight, brand-distinct inline SVG icons for every tool. Zero extra HTTP requests, scales perfectly on retina displays, fully accessible.
  • Customisation: Use the native WordPress colour picker to match each button to your brand theme.
  • Secure & Sanitised: Fully compliant with WordPress escaping and sanitisation standards, built natively without external dependencies.

Screenshots

Installation

  1. Upload the plugin files to the /wp-content/plugins/ewebmarketing-llm-summariser directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Use the ‘Share to AI’ settings screen (under Settings) to choose your content types, pick which AI tools to display, edit the prompts, and customise the button colours and size.

FAQ

Which content types can show the buttons?

Any public content type. In the settings you can tick Posts, Pages, and any custom post type registered on your site. The buttons appear on the single view of the types you select. You can also hide the buttons on an individual post using the “Share to AI” box in the editor sidebar.

Why does clicking Gemini (or DeepSeek, Mistral, Copilot, Qwen, Meta AI) copy the prompt instead of pre-filling it?

Those tools do not accept a prompt through the URL. To make sure the prompt still reaches them, the button copies the prompt to your clipboard and opens the tool in a new tab, then shows a brief “Prompt copied — paste with Ctrl/Cmd+V” message. Tools that do support URL prompts (ChatGPT, Claude, Perplexity, Grok, Google AI) open pre-filled automatically.

Can I customise the default prompts?

Yes — every prompt is fully editable per tool in the settings panel. Write in any language and any tone of voice to suit your audience, and use the {url} and {sitename} placeholders to inject the current page link and your site name into the prompt at runtime.

Why does an AI tool give a security warning when I click a share button?

Some AI platforms, like Claude, have strict Prompt Injection and Cross-Site Scripting (XSS) protections. When a URL contains a pre-filled prompt, they may show a security banner to ensure the user actually intends to run the prompt.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Share to AI — Buttons for ChatGPT, Perplexity & More” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.4.0

  • Fixed: Gemini (and other tools that ignore URL prompts) now reliably receive the prompt. Clicking the button copies the prompt to the clipboard, opens the tool, and shows a brief confirmation so the reader knows to paste. This resolves the long-standing issue where Gemini opened with an empty input.
  • New: Five additional AI tools — DeepSeek, Mistral, Copilot, Qwen and Meta AI. They ship disabled by default; enable any you want in the settings.
  • New: Per-post-type control — show the buttons on Posts, Pages, or any public custom post type, chosen individually.
  • New: Per-post “Share to AI” meta box to hide the buttons on a specific post.
  • New: Button size option (Small / Normal / Large) and a “hide on mobile” toggle.
  • Improved: Google AI Mode now uses the standard udm=50 search URL (the non-standard aep=11 parameter has been removed). Existing installs are migrated automatically.
  • Security: The new clipboard buttons carry the prompt in data-* attributes that are escaped at output and passed through the plugin’s strict wp_kses() safelist; the frontend helper is a tiny dependency-free vanilla script with no external requests.
  • All prior settings are migrated automatically on upgrade — nothing needs to be re-saved.

1.3.0

  • Added brand-distinct inline SVG icons for ChatGPT, Claude, Perplexity, Gemini, Grok and Google AI. Icons inherit the button’s text colour via currentColor so they always match your theme.
  • Replaced the “Show Text Labels” checkbox with a “Button Display Elements” dropdown offering three options: Text + Icons (default), Icons only, and Text only.
  • Existing installs auto-migrate the old show_labels value to the equivalent new mode on first load — no settings get lost.
  • Icon-only buttons receive a proper aria-label for screen readers; visible text continues to provide the accessible name in the other two modes.
  • Security: SVG output is run through a custom strict wp_kses() safelist (only the exact SVG subset the plugin produces is permitted — no script, style, or event-handler attributes).

1.2.0

  • Renamed the plugin to “Share to AI — Buttons for ChatGPT, Perplexity & More” to better describe what it does. The plugin slug, options, and settings page URL are unchanged, so existing installs continue to work with no migration required.
  • Rewrote the default prompts in neutral, international English so the plugin reads well to a global audience.
  • Updated the Plugin URI and Author URI to the new ewebmarketing.au domain.
  • Tidied admin copy and the “View details” modal to match the new plugin name.

1.1.1

  • Security: Hardened the inline CSS pipeline — LLM array keys are now validated against a strict whitelist and passed through sanitize_html_class() before being interpolated into any CSS selector.
  • Security: Hex colour values are re-validated with sanitize_hex_color() at output time (escape-late) before being injected into inline CSS, eliminating any possibility of CSS breakout from a corrupted option.
  • Security: All dynamic output now uses context-appropriate escaping at the moment of echo (esc_html(), esc_attr(), esc_url(), esc_textarea(), wp_kses_post(), wp_strip_all_tags()), in line with “escape-late” best practice.
  • Compliance: Renamed all PHP identifiers to use the unique ewebllsu_ / EWEBLLSU_ prefix (class, methods, option name, settings group, hooks, constants, script/style handles, CSS classes) to avoid collisions with other plugins/themes.
  • Compliance: Renamed the stored option from emls_settings to ewebllsu_settings; settings group renamed to ewebllsu_settings_group.
  • Hardened the LLM whitelist in sanitize_options() so only known keys are ever written to the database.
  • Made all user-facing strings translatable via the ewebmarketing-llm-summariser text domain.

1.1.0

  • Completely rebranded to EwebMarketing LLM Summariser to comply with official WordPress Plugin Repository guidelines.
  • Fixed text domain configuration to strictly match WordPress directory requirements.
  • Set explicit versioning on wp_register_style() to prevent frontend and admin caching issues.
  • Removed all external icon libraries (Font Awesome / SVGs) for maximum performance and strict security compliance.
  • Exposed the Base URL fields in the admin settings so users can manually update LLM routing endpoints as platforms (like Gemini) change their structures.

1.0.0

  • Initial release on the WordPress Plugin Repository!
  • Native WP Colour Picker integration.
  • Comprehensive output escaping and strict data sanitisation.
  • Flexible display settings (Inline or Sticky placement).