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.

Matthias Frisch profile pictureBy
โ€ข

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, FAQs
  • flyweight-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

  1. Open the desired page (e.g., an FAQ page)
  2. Click on "Show HTML"
  3. Add the following comment at the very top of the code:
<!--flyweight:ignore-->

Set the flyweight ignore tab on Shopify html content

  1. 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-ignore tag 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

  1. Open the desired product in Shopify
  2. Go to the Tags section
  3. Add the following tag: flyweight-ignore
  4. Save the product

flyweight-ignore tag to exclude shopify products for the ai chatbot

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:

  1. Set the flyweight-ignore tag directly when creating
  2. 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-ignore tag

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 ๐Ÿš€

Get Started Today

Try your own AI chatbot for free and see how it grows your business. 7 days free, no limits on traffic or AI chats.

Click "Install" to add the "Flyweight AI" app to your Shopifyยฎ store. No credit card needed, no signup required.

Built for Shopify