Configuring Chatbot URLs
Configuring Chatbot URLs
To integrate your Supervised AI chatbots with your WordPress site, you must first register their endpoint URLs within the plugin settings. This allows the plugin to generate the necessary iframes and manage multiple bot instances simultaneously.
Accessing the Configuration Page
- Log in to your WordPress Admin Dashboard.
- Locate the Supervised AI Bots menu item in the left-hand sidebar.
- Click on the menu to open the administration interface.
Managing Bot Endpoints
The configuration interface features a centralized text area where you can manage all your chatbot instances.
- Adding URLs: Enter the full URL of your Supervised AI chatbot (e.g.,
https://supervised.co/bot/your-unique-id). - Multiple Bots: To add multiple chatbots, enter each URL on a new line.
- Formatting: Ensure there are no leading or trailing spaces on each line to prevent loading errors.
Identifying Bot IDs
The plugin uses a row-based indexing system to identify which chatbot to display. The ID of a bot corresponds directly to its line number in the settings textarea:
| Line Number | Bot ID | Shortcode Example |
| :--- | :--- | :--- |
| Line 1 | 1 | [supervised_ai_bot id="1"] |
| Line 2 | 2 | [supervised_ai_bot id="2"] |
| Line 3 | 3 | [supervised_ai_bot id="3"] |
Configuration Example
If you want to manage a Sales Bot and a Support Bot, your settings field would look like this:
https://supervised.co/bot/sales-department-xyz
https://supervised.co/bot/support-team-abc
- To display the Sales Bot, you would use:
[supervised_ai_bot id="1"] - To display the Support Bot, you would use:
[supervised_ai_bot id="2"]
Save Changes
After entering or modifying your URLs, click the Save Settings button. The plugin will immediately update the mapping, and the corresponding shortcodes will begin pulling content from the updated URLs.
Note: If you remove a URL from the middle of the list, the IDs of all subsequent bots will shift. Ensure you update your pages or posts if you reorder the URLs in the settings page.