Shortcode Attributes
Shortcode Attributes
The Supervised AI Bots plugin uses a single primary shortcode to render your chatbots. To display a specific chatbot, you must use the id attribute to tell the plugin which configuration to load.
id
The id attribute identifies which chatbot URL to display based on the list provided in the plugin settings.
- Type:
integer - Required: Yes
- Default: None
How the ID is determined
The id corresponds directly to the row number of the URL you entered in the "Supervised AI Bots" settings page.
- Navigate to the settings page in your WordPress dashboard.
- Locate the textarea where you entered your chatbot URLs.
- The first URL in the list is
id="1", the second URL isid="2", and so on.
Usage Examples
Displaying the first chatbot
To embed the chatbot associated with the first URL in your settings list:
[supervised_ai_bot id="1"]
Displaying a specific chatbot on a page
If you have multiple bots configured for different departments (e.g., Sales is the second URL in your list), use:
[supervised_ai_bot id="2"]
Technical Notes
- Placement: The shortcode can be placed anywhere within your post or page content. It will render a floating action button (launcher) that opens the chatbot in a popup interface.
- Validation: Ensure the
idyou provide corresponds to an existing row in your settings. If anidis used that does not have a corresponding URL, the bot will not initialize.