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
โ€ข

Optimize Your Shopify Chatbot with AI: How to Exclude Content

In the last article, we covered how to add extra knowledge to your AI Chatbot for Shopify. This time, we're doing the reverse: how to exclude content from your Flyweight AI Assistant.

If you want your Shopify Chatbot to answer with the right context, it helps to leave certain content out on purpose. In this guide, we'll walk through two simple 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 matters most when content:

  • isn't meant for customers
  • is outdated
  • is no longer being sold
  • shouldn't be used by the AI agent


How Flyweight AI Processes Content

Flyweight AI automatically reads all public content from your Shopify store, including:

  • Product pages
  • Pages
  • FAQs
  • Blog articles
  • Other HTML content

All data is refreshed every 24 hours.

So if you add or remove content, the change will take effect after the next 24-hour refresh.


1. Exclude Content via HTML Comment

The most flexible option is the Flyweight Ignore HTML comment:

<!--flyweight:ignore-->

Add this comment at the very top of a page's HTML, and you're done.

This works for any HTML-based content, including:

  • Product pages
  • Pages (FAQ, etc.)
  • Blog articles

How to Do It

  1. Open the page you want to exclude, like an FAQ page
  2. Click "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

On the next 24-hour refresh, that page will be removed from the AI backend. The AI chatbot will stop using it for answers and recommendations.


When Is This Method Useful?

  • When you want to exclude an entire page
  • When content should be turned off temporarily
  • When internal information was accidentally published
  • When you want to remove seasonal content from the AI chat

๐Ÿ‘‰ This gives you maximum control at the HTML level.


2. Exclude Products via Tag (ideal for many products)

For products, there's an even easier option: the flyweight-ignore tag.

Add the flyweight-ignore tag to the product, and you're done.

This is especially useful if you:

  • want to exclude a lot of products at once
  • use CSV uploads
  • apply tags automatically

How to Do It

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

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

The flyweight-ignore tag works the same way as the HTML comment <!--flyweight:ignore-->.

After the next refresh cycle, the product will:

  • Stop showing up in chat recommendations
  • Stop being used as a knowledge source
  • Be removed from the AI backend

Important: Changes Don't Take Effect Immediately

Just like when adding knowledge, the same rule applies here:

All changes are picked up during the next 24-hour refresh.

That means:

  • Content is not excluded right away
  • The change will be active within 24 hours

Pro Tip

If you're creating a new product that should not be used by the AI chat:

  1. Add the flyweight-ignore tag when you create it
  2. Or insert the <!--flyweight:ignore--> comment right away

That way, the content doesn't get pulled into the AI system to begin with.


Best Practices for Clean AI Content Management

A strong Shopify AI chatbot starts with clean content.

Recommendations:

  • Remove outdated content regularly
  • Exclude test products with flyweight-ignore
  • Use tags for bulk updates
  • Use <!--flyweight:ignore--> for precise control at the page level
  • Regularly review what content is publicly available

This helps your Flyweight AI Assistant work from relevant, up-to-date information.


Conclusion

With Flyweight AI, you stay in control of 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 leads to:

  • More precise answers
  • Better product recommendations
  • Fewer misunderstandings in chat
  • Higher conversion rates

If you have questions or need help, feel free to reach out anytime.

We're happy to help you get more out of 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