Configuring Bot URLs
Configuring Bot URLs
To integrate your chatbots into your WordPress site, you must first define their source URLs within the plugin settings. This configuration maps your Supervised AI chatbot instances to specific IDs that can be called via shortcodes.
Accessing the Settings Interface
- Log in to your WordPress Admin Dashboard.
- Navigate to the Supervised AI Bots menu item (typically located in the sidebar or under the Settings menu).
- Locate the Bot URLs textarea.
Adding Chatbot URLs
The plugin uses a simple line-based system to manage multiple bots. To add your bots:
- Copy the full URL of your Supervised AI chatbot (e.g.,
https://supervised.co/ai/your-bot-id). - Paste the URL into the textarea.
- For additional bots, press Enter and paste the next URL on a new line.
Note: Ensure there are no empty lines between URLs, as each line corresponds directly to a numeric ID.
URL-to-ID Mapping
The plugin assigns an ID to each bot based on its row position in the textarea. This ID is required for the shortcode to display the correct bot.
| Row Position | Assigned ID | Shortcode Example |
| :--- | :--- | :--- |
| First Line | 1 | [supervised_ai_bot id="1"] |
| Second Line | 2 | [supervised_ai_bot id="2"] |
| Third Line | 3 | [supervised_ai_bot id="3"] |
Configuration Example
If you have two different bots—one for Sales and one for Support—your configuration textarea should look like this:
https://supervised.co/ai/sales-bot-123
https://supervised.co/ai/support-bot-456
In this scenario:
- To display the Sales Bot, use:
[supervised_ai_bot id="1"] - To display the Support Bot, use:
[supervised_ai_bot id="2"]
Shortcode Implementation
Once your URLs are configured and saved, you can embed the bots into any Page, Post, or Widget area using the following syntax:
[supervised_ai_bot id="YOUR_BOT_ID"]
Parameters:
id(Required): The line number of the URL in your settings (starting from 1).
Troubleshooting Tips
- Protocol: Always include the full protocol (e.g.,
https://) in the URL. - One per line: Do not separate URLs with commas or semicolons; use only new lines.
- Save Changes: Ensure you click the Save Settings button after updating the list of URLs for the changes to take effect on your live site.