You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UITS is developing new chatbot functionality that will allow the owners of websites to quickly create chatbots that are trained on the data contained in a curated list of sites. These can currently be easily added to websites by adding a javascript snippet in a block, but providing a module will make it easier add them and also to keep track of which sites are using these chatbots.
Proposed Resolution
Describe the solution you'd like
I would like a module created that will add a configuration option to the Quickstart Settings page (/admin/config/az-quickstart/settings) with one field for the chatbot URL.
Once configured with a valid URL, a block will be placed in an appropriate region to be displayed on every page and contains the following code:
<script>
function loadAndExecuteScript(url) {
return new Promise((resolve, reject) => {
const script = document.createElement('script');
script.src = url;
script.async = true;
script.onload = () => {
console.log(`Script from ${url} has been loaded and executed successfully.`);
resolve();
};
script.onerror = (error) => {
console.error(`Failed to load script from ${url}:`, error);
reject(error);
};
document.head.appendChild(script);
});
}
loadAndExecuteScript('**URL goes here**')
.then(() => {
console.log('Script execution completed.');
})
.catch((error) => console.error('Script execution failed:', error));
</script>
Describe alternatives you've considered
We could continue to just drop the code snippet in a block, but this feels like a better experience and will make it easier to keep track of which sites are using this feature in the case that targeted communications are needed in the future.
Roles and Permissions considerations
A clear and concise description of how each of the following roles would be impacted by this change:
Anonymous user
Authenticated user
Content editor
Content administrator (Required to configure the module)
Close coordination will be needed with the service owner of the chatbot service, Jay Timsina, around appropriate documentation and service request forms, etc.
The text was updated successfully, but these errors were encountered:
Motivation
UITS is developing new chatbot functionality that will allow the owners of websites to quickly create chatbots that are trained on the data contained in a curated list of sites. These can currently be easily added to websites by adding a javascript snippet in a block, but providing a module will make it easier add them and also to keep track of which sites are using these chatbots.
Proposed Resolution
Describe the solution you'd like
I would like a module created that will add a configuration option to the Quickstart Settings page (/admin/config/az-quickstart/settings) with one field for the chatbot URL.
Once configured with a valid URL, a block will be placed in an appropriate region to be displayed on every page and contains the following code:
Describe alternatives you've considered
We could continue to just drop the code snippet in a block, but this feels like a better experience and will make it easier to keep track of which sites are using this feature in the case that targeted communications are needed in the future.
Roles and Permissions considerations
A clear and concise description of how each of the following roles would be impacted by this change:
Additional context
You can see an example of this chatbot in action on housing.arizona.edu
Another example chatbot for web services can be tested here: https://test.chatbot.d2l.arizona.edu/arizona/nosso/webservice/webservice001?iframe=1
Close coordination will be needed with the service owner of the chatbot service, Jay Timsina, around appropriate documentation and service request forms, etc.
The text was updated successfully, but these errors were encountered: