Shortcode Usage
Shortcode Usage
The Supervised AI Bots plugin provides a simple shortcode to display your configured chatbots on any WordPress post, page, or widget area.
The [supervised_ai_bot] Shortcode
To embed a chatbot, use the following syntax:
[supervised_ai_bot id="1"]
Attributes
| Attribute | Required | Description |
| :--- | :--- | :--- |
| id | Yes | The numeric ID corresponding to the chatbot's position in your settings list. |
Finding Your Bot ID
The id attribute is determined by the order of the URLs you entered in the plugin settings:
- Navigate to Supervised AI Bots in your WordPress Admin dashboard.
- Look at the list of URLs in the configuration textarea.
- The first URL corresponds to
id="1", the second toid="2", and so on.
Placement Examples
In a Post or Page
Simply paste the shortcode directly into the Block Editor (using a Shortcode block) or the Classic Editor:
Check out our new AI assistant below!
[supervised_ai_bot id="1"]
In a Sidebar or Footer
You can add the shortcode to a Text or Shortcode widget within your theme's widget areas to make the bot available across multiple pages.
Visual Behavior
When the shortcode is triggered:
- Launcher: A blue circular chat icon will appear in the bottom-right corner of the screen.
- Interface: Clicking the icon toggles a popup window (400px wide by 670px high) containing the AI chatbot interface.
- Responsive Design: The chat interface is fixed to the viewport, ensuring it remains accessible as users scroll through your content.