How to Exclude Knowledge from Your Shopify Chatbot
Learn how to exclude content from your Shopify chatbot. Discover how to use HTML comments or the flyweight-ignore tag to remove knowledge from your Flyweight AI Chat Assistant and Agent.
In our previous article, we showed you how to add additional knowledge to your AI Chatbot for Shopify. Now we'll show you the opposite: How to exclude content from your Flyweight AI Assistant.
For your Shopify Chatbot to use only relevant information, you sometimes need to consciously exclude certain content. In this article, we'll show you two effective ways to remove content from Flyweight AI's knowledge base.
The key tools at a glance:
<!--flyweight:ignore-->โ HTML comment for pages, blogs, FAQsflyweight-ignoreโ Tag for products
This is particularly important when certain content:
- is not intended for customers
- is outdated
- is no longer actively sold
- should deliberately not be used by the AI agent
How Flyweight AI Processes Content
Flyweight AI automatically reads all public content from your Shopify store:
- Product pages
- Pages
- FAQs
- Blog articles
- Other HTML content
All data is refreshed every 24 hours.
This means: Changes โ whether adding or removing content โ always take effect with the next 24-hour refresh.
1. Exclude Content via HTML Comment
The most flexible method is the Flyweight Ignore HTML comment:
<!--flyweight:ignore-->
Simply add this comment at the very top of a page's HTML code โ done.
This solution works for all HTML-based content:
- Product pages
- Pages (FAQ etc.)
- Blog articles
How to Do It
- Open the desired page (e.g., an FAQ page)
- Click on "Show HTML"
- Add the following comment at the very top of the code:
<!--flyweight:ignore-->

- Save the page
At the next 24-hour refresh, this page will be completely removed from the AI backend. The AI chatbot will no longer use this content for answers or recommendations.
When Is This Method Useful?
- When an entire page should not be considered
- When content should be temporarily disabled
- When internal information was accidentally made public
- When you want to remove seasonal content from the AI chat
๐ This method gives you maximum control at the HTML level.
2. Exclude Products via Tag (ideal for many products)
For products, there's an even simpler solution: The flyweight-ignore tag.
Simply add the
flyweight-ignoretag to the product โ done.
This method is particularly efficient when you:
- want to exclude many products at once
- work with CSV uploads
- set tags automatically
How to Do It
- Open the desired product in Shopify
- Go to the Tags section
- Add the following tag:
flyweight-ignore - Save the product

The flyweight-ignore tag has the same effect as the HTML comment <!--flyweight:ignore-->.
At the next refresh cycle, the product will be:
- No longer recommended in chat
- No longer used as a knowledge source
- Removed from the AI backend
Important: Changes Don't Take Effect Immediately
As with adding knowledge, the same applies here:
All changes are applied during the next 24-hour refresh.
This means:
- Content is not excluded immediately
- After a maximum of 24 hours, the change is active
Pro Tip
When creating a new product that should never be used by the AI chat:
- Set the
flyweight-ignoretag directly when creating - Or add the
<!--flyweight:ignore-->comment immediately
This way, the content never enters the AI system in the first place.
Best Practices for Clean AI Content Management
A high-performing Shopify AI chatbot needs clear structures.
Recommendations:
- Consistently remove outdated content
- Exclude test products with
flyweight-ignore - Use tags for bulk changes
- Use
<!--flyweight:ignore-->for precise control at the page level - Regularly check which content is publicly available
This ensures that your Flyweight AI Assistant only works with relevant information.
Conclusion
With Flyweight AI, you have complete control over what knowledge your Shopify chatbot uses.
Summary of methods:
- Pages, blogs, FAQs โ
<!--flyweight:ignore-->in HTML - Products โ
flyweight-ignoretag
A well-maintained content base means:
- More precise answers
- Better product recommendations
- Fewer misunderstandings in chat
- Higher conversion rates
If you have any questions or need support, feel free to reach out to us anytime.
We're happy to help you optimize your AI Assistant ๐