Airgentic Help
External Script URLs let an approved account load one or more hosted JavaScript files inside the Airgentic widget iframe.
Use this feature only when CSS is not enough and you need custom behaviour in the chat widget or inline search interface.
This is an advanced feature currently enabled only for selected accounts. If you do not see the setting in Service Configuration → User Interface, contact Airgentic support.
For enabled accounts, the setting appears as External Script URLs. Enter one HTTPS URL per line.
https://www.example.edu/path/to/airgentic-enhancements.js
Only absolute https:// URLs are accepted. Empty lines, duplicate URLs, relative URLs, and http:// URLs are ignored.
Scripts are loaded inside the Airgentic widget iframe after the core widget has initialized.
They are not injected into the parent website page, and they are not loaded into the floating chat icon iframe.
This means a custom script can change the Airgentic widget experience, but it should not be used as a general website script loader.
Treat any configured script as trusted code.
A script loaded this way may be able to:
postMessage handlers exposed to the iframe.A script should not be able to directly modify the parent website DOM unless the browser and website origin allow it through normal web platform rules.
Custom JavaScript is much more powerful than custom CSS.
Before adding a script URL, make sure you understand these risks:
Only use scripts hosted and reviewed by your organisation or by a trusted vendor.
External scripts are an advanced customisation point.
Airgentic can confirm that the configured URL is passed to the widget and that the browser attempts to load it. Airgentic does not guarantee that custom JavaScript will continue to work across widget updates.
Custom scripts may break if:
Test scripts in staging before using them in production.
External scripts are appended after the Airgentic widget receives its service customisations.
The core widget bundle is already running at that point. If your script needs to wait for a specific element, observe the DOM or retry briefly rather than assuming the element is present immediately.
If a script does not appear to work:
https://.console.log('Airgentic custom script loaded').If the script loads but the widget behaves unexpectedly, remove the URL and retest before contacting support.
style.css for visual changes.