Skip to main content

Search Knowledge Base by Keyword

This KB documentation is using Advanced Search, Links Editor and Elegant Layouts add-ons.

Print

AI Smart Search Shortcode

The AI Smart Shortcode allows you to display the full AI search box on any page or post. This includes the AI search input and the multi-panel results layout (AI Answer, Matching Articles, Related Questions, etc.), exactly as configured in your AI Smart Search settings.

Learn more about AI Smart Search here.

Use this shortcode when you want to provide AI search outside of the Knowledge Base Main Page, for example, on a dedicated support page, contact us page or home page.

WordPress Shortcode
				/* Default KB , Default Taining Data */
%crel_bracket_open%ai-smart-search%crel_bracket_close%

/* Specify a Knowledge Base */
%crel_bracket_open%ai-smart-search kb_id="1"%crel_bracket_close%

/* Specify an AI Training Data Collection */
%crel_bracket_open%ai-smart-search kb_ai_collection_id="10"%crel_bracket_close%

/* Specify both */
%crel_bracket_open%ai-smart-search kb_id="1" kb_ai_collection_id="10"%crel_bracket_close%





			

Shortcode Parameters

  • kb_id

    • If provided, the shortcode uses the KB ID provided.

    • If not provided, it defaults to KB ID 1.

  • kb_ai_collection_id

    • If provided, the shortcode uses that collection.

    • If not provided, it defaults to AI Training Data collection ID 1

Configuration Notes

The shortcode does not include any additional configuration options.
All AI layout, panel order, and column settings must be configured in:

AI → Search → Search Settings → Smart Search Results

Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Need help?
Table of Contents