-
Type:
Suggestion
-
Resolution: Unresolved
-
Component/s: Connect - Frameworks
-
None
Hello,
I have integrated the JSD widget (this here: https://jsd-widget.atlassian.com/assets/embed.js) into the AI Docs Bot widget (an AI bot that parses our documentation and spits out answers asked by the users). After the user asks a single question a support link appears which I configured to run javascript in a callback to open the JSD widget. Here are the issues I've found while implementing this:
- There was no way to open the widget programmatically, I had write javascript to parse through the html document in the widget iframe and find the button, then issue a click event on it.
- There was no way to hide the widget button. I did not want it displayed, I only wanted the Ai Docs Bot button visible and to programmatically open the JSD widget when the user clicks the aforementioned support URL. I had to write a lot of complex javascript to hide the button.
- There was no way to pre-populate any fields. I had to find the email field using javascript in order to populate it.
- There was no callback that allowed me to view / modify any values the user entered when they submitted the ticket. I wanted to append the URL that the user was on when they created the ticket to the description field. I had to add an event handler to the submit button that allowed me to then find the description field and append the URL
Some suggestions for improvements:
- Both an option and an API to show / hide the button so I can hide it when the JSD widget javascript loads
- An API to open / close the widget
- A way to pre-populate the fields in the ticket
- A callback with an object that has the values of the ticket entered by the user which I can view and modify if I need to before it gets sent
- No theme / language support at the instance level. I think this exists as an option for all widgets, but each customer may speak a different language and have a different theme which would be nice to configure when instantiating the widget