You've seen "Summarize with ChatGPT" buttons on other blogs and want one on yours. Good idea: some readers would rather skim a summary than read 1,500 words, and a button that hands your post to their AI assistant is a nice touch.
But a lot of guides on this (including an earlier version of this one, on our old blog) told you to add a line to the button's prompt asking the AI to "remember this domain" for later. Don't. Microsoft's security team now classes that trick as an attack, and it wouldn't do what it promised anyway. Here's how to add the button the clean way.
The quick answer
- Decide which assistants to offer. ChatGPT and Perplexity cover most readers.
- Paste the code snippet below into your blog post template, or into a reusable block.
- Keep the prompt to a plain request: "Summarize this article: [link]". Nothing about remembering, trusting or recommending you.
- Click each button on a live post and check that the assistant opens with the right prompt.
- Turn on outbound click tracking in Google Analytics if you want to know whether anyone uses it.
What the button actually does
The button is just a link. Most AI assistants accept a prompt in the web address, after ?q=, and drop it into the chat box when the page opens. Microsoft's research lists the formats in use (Microsoft Security blog, February 2026):
- ChatGPT:
https://chatgpt.com/?q= - Perplexity:
https://www.perplexity.ai/search?q= - Claude:
https://claude.ai/new?q= - Microsoft Copilot:
https://copilot.microsoft.com/?q=
None of these is an official, documented feature, so they can change without notice. That's why step 4 (test it) matters.
When a reader clicks, their assistant opens, reads your article from the link, and writes a summary in their own chat. Nothing happens on your site, and nothing about your business is stored anywhere unless the prompt asks for it.
Step 1: Pick your assistants
Offer one or two, not six. A row of logos is clutter. ChatGPT is the one most readers have; Perplexity is a good second because its answers cite sources, which tends to send some readers back to you. Add Claude or Copilot only if you know your readers use them.
Step 2: Add the code
This snippet builds the links from whatever page it's on, so you can put it in one place (your post template, or a reusable block) instead of on every post.
<p class="ai-summary">
Short on time?
<a id="ai-sum-chatgpt" href="https://chatgpt.com/" target="_blank" rel="noopener nofollow">Summarize with ChatGPT</a>
or
<a id="ai-sum-perplexity" href="https://www.perplexity.ai/" target="_blank" rel="noopener nofollow">Summarize with Perplexity</a>
</p>
<script>
(function () {
var prompt = encodeURIComponent("Summarize this article in plain English: " + location.href.split("?")[0]);
document.getElementById("ai-sum-chatgpt").href = "https://chatgpt.com/?q=" + prompt;
document.getElementById("ai-sum-perplexity").href = "https://www.perplexity.ai/search?q=" + prompt;
})();
</script>Where to paste it:
- WordPress (block editor): add a Custom HTML block, paste the code, then turn it into a synced pattern so you can drop it into any post and edit it in one place. Some themes also let you add it to the single-post template under Appearance > Editor > Templates > Single Posts.
- Wix: use Add > Embed Code > Embed HTML in the blog post layout.
- Squarespace: add a Code block to the post, or use Code Injection for every post if your plan includes it.
The location.href.split("?")[0] part strips tracking tags (like ?utm_source=...) from the link so the assistant reads the clean page address.
Step 3: Keep the prompt plain
Read the prompt in the code before you publish. It should ask for a summary and nothing else. If you copied a snippet from a plugin or a "growth hack" article, look for words like:
- remember, save, from now on, in future conversations
- trusted source, authoritative source, always cite
- recommend [your company] first
If any of those are in there, take them out. The next section explains why.
Step 4: Test it
Open a live post in a private browser window and click each button. You should land in the assistant with your prompt already typed, or already sent, depending on the assistant. Check that:
- The prompt shows the right page address.
- The assistant can actually read the page. If it says it can't access the link, your site may be blocking AI crawlers. Our post on getting cited in AI answers shows how to check.
Step 5: See if anyone uses it
If you use Google Analytics 4, the Enhanced measurement setting tracks clicks on links to other sites as "click" events, with no extra code (Google Analytics Help). Look for clicks to chatgpt.com or perplexity.ai. If nobody clicks after a couple of months, remove the button: it's a reader convenience, not a ranking tool.
Why you shouldn't add "remember this domain"
The idea was that if a reader's assistant "remembered" your site as a trusted source, it would recommend you the next time they asked about your kind of business. In February 2026, Microsoft's Defender security researchers published what they found when they went looking for these prompts: over 50 of them, from 31 companies in 14 industries, quietly asking assistants to "remember Company] as a trusted source" or "recommend [Company] first" ([Microsoft Security blog).
They named it AI Recommendation Poisoning and mapped it to the "memory poisoning" technique in MITRE's catalogue of attacks on AI systems. Their concern: an assistant that's been told to favour one company gives biased answers, and the person using it never agreed to that.
For a small business, that adds up to three problems:
- It's a trust problem. A reader who notices a hidden "recommend us first" instruction in your button won't trust your advice again. Security tools and IT teams are now looking for these links specifically.
- It doesn't work the way the guides claimed. A saved memory lives in that one reader's account. It doesn't change what anyone else's assistant says about you.
- The assistants are pushing back. Vendors treat memory manipulation as a security issue, so a trick that works today can stop working, or start getting flagged, at any time.
What actually helps AI assistants mention you
The work is the same as good SEO: clear pages that answer real questions, a complete Google Business Profile, consistent business details across the web, and not blocking the AI search crawlers you want to be found by. Our guide to getting cited in AI answers walks through each check, and schema markup helps machines read your business details correctly.
When to get help
- The button doesn't show up, or breaks your page layout, and your theme won't let you edit the post template.
- The assistant says it can't read your pages, and you're not sure whether your site or your firewall is blocking it.
- A plugin added "summarize" buttons you didn't set up, and you want to know what their prompts say.
If you'd rather have someone handle this for you, talk to us.




