I wanted to learn what data is sent by the UserVoice Inspector Gadgets (I do appreciate the name 😉), but there was no information I could find online.
Here’s some basic information about the HTTP request that is made by the Gadget.
UserVoice Custom Gadget Webhook Data
In the examples below, assume we set the URL of the Gadget to “https://example.com”.
The following is the structure of the query parameters passed to the provided URL in a
UserVoice Custom Gadget Headers:
URL Query String Parameters
The values are all URL-encoded. In the table below, they are shown decoded.
|Query Strings||Example Content||Description|
|name||The full name of the customer being supported.|
Note: “null” is passed as a string, not empty value.
|Not sure what could be passed here (in this Gadget context).|
|user_id||The UserVoice User ID of the user you are currently supporting.|
|ticket||Encoded JSON with information about the ticket you are viewing. Includes ID, Ticket Number, Created At timestamp, Updated At timestamp|
Here’s the raw URL pinged by UserVoice:
What’s a Custom Gadget?
To add a Custom Gadget, when viewing a ticket, click the gear icon in the top-right corner of the sidebar (what UserVoice calls the “Inspector”).
Then click “Add/Remove Gadgets”:
Then click “Add custom gadget” at the bottom of the Gadgets for Inspector settings page:
You will be presented with a modal asking you to name your Gadget and provide a URL…with no additional information available.
I hope this has helped anyone else hoping to learn more about how to create a UserVoice Custom Gadget!