AI Buttons adds a row of buttons that send your post to ChatGPT, Grok, Google AI or Perplexity in one click. The reader lands in that AI tool with a ready-made prompt (“Summarize this article for me” plus your post’s link), and you style the buttons like any core Button block.
Before you start
- WordPress 6.0 or later
- PHP 5.6 or later
Install
- In your WordPress dashboard, go to Plugins → Add New Plugin.
- Click Upload Plugin.
- Choose the plugin zip file.
- Click Install Now.
- Click Activate.
How to use
Add AI buttons to a post
- Open a post, page or template in the block editor.
- Click + and add the AI Buttons block.
- You get four buttons to start: ChatGPT, Grok, Google AI and Perplexity. Delete any you don’t want.
- Click a button to edit its text, if you like.
There’s no link to set. Each button builds its own link when the page loads, using the post’s permalink, and opens the AI tool in a new tab. If you add AI Buttons to a single post template, each post gets buttons for itself.
Add a button back
Inside the AI Buttons block, use the inserter and pick Grok, Google AI, ChatGPT or Perplexity. Each one is a version of the AI Button block set up for that service. AI Button only works inside AI Buttons.
Change the prompt
- Select a single button.
- In the sidebar, edit Prompt Before URL and Prompt After URL.
The prompt the reader sees is your before text, then the post’s link, then your after text, each on its own line. For example, “Give me the three key tips from this post” before the link, and “Keep it under 100 words.” after it. Prompts are set per button, so you can word each service differently.
Style the buttons
- Select the AI Buttons block to set layout (justification, orientation, wrapping), spacing between buttons, background, typography and border for the whole group.
- Select a single AI Button to pick the Fill or Outline style, set its colors, typography, padding, border, shadow and Width, and align its text.
Press Enter with an empty button to leave the button group and start a new paragraph below it.
Block options
AI Button
- Prompt Before URL: “Text to add before the URL in the AI prompt.” Default: “Summarize this article for me”.
- Prompt After URL: “Text to add after the URL in the AI prompt.” Default: empty.
- Width (in the Settings panel): 25%, 50%, 75% or 100% of the group. Default: none (fits the text).
- Styles: Fill (default) or Outline.
Where each button goes
- ChatGPT: opens chatgpt.com with your prompt.
- Grok: opens Grok on x.com with your prompt.
- Google AI: opens a Google search for your prompt in Google’s AI Mode.
- Perplexity: opens a new Perplexity search with your prompt.
Developer reference
Coming soon: the hooks, filters and functions you can use with this plugin from your theme or a code snippet.
FAQs
Can I add another AI service?
Not from the editor. The four services are built in: ChatGPT, Grok, Google AI and Perplexity.
Can I switch a button to a different service?
Remove it and add the service you want from the inserter inside AI Buttons. Then copy over any prompt changes.
Can I stop the buttons opening a new tab?
No. AI buttons always open in a new tab so your reader keeps your post open.