Shortcode Reference
Shortcode Reference
The Supervised AI Bots plugin provides a simple shortcode to embed your configured chatbots into any WordPress post, page, or widget area.
Syntax
The basic syntax for the shortcode is:
[supervised_ai_bot id="1"]
Attributes
The [supervised_ai_bot] shortcode accepts one primary attribute:
| Attribute | Type | Description | Required |
| :--- | :--- | :--- | :--- |
| id | Integer | The index number of the chatbot URL as defined in the plugin settings. | Yes |
Understanding the id Attribute
The id corresponds to the line number of the URL you entered in the Supervised AI Bots settings page.
- If you have three URLs listed, the first URL is
id="1", the second isid="2", and the third isid="3".
Usage Examples
Display the primary chatbot
To display the chatbot associated with the first URL in your settings list:
[supervised_ai_bot id="1"]
Display a specific chatbot on a landing page
If you have a specialized bot (e.g., listed on line 3 of your settings) for a specific product page:
[supervised_ai_bot id="3"]
Appearance and Behavior
When the shortcode is added to a page, it generates a floating interface for your visitors:
- Trigger Button: A circular blue floating button appears at the bottom-right corner of the screen.
- Chat Window: Clicking the button opens a popup window (400px wide by 670px high) containing the chatbot interface.
- Integration: The chatbot is loaded securely via an iframe directly from the Supervised AI platform.
Note: Only one chatbot shortcode should typically be used per page to ensure optimal user experience and layout consistency.