Skip to main content

Gainsight PX User Feedback API

 

UseCaseThere are situations a user need to leave the application and return to the help site or email in order to contact support team.Instead, I would love to engage my user to stay within the app and interact or submit a support ticket.

 

Approach:

 

  • This can be achieved using the PX feedback API

  • We can create the custom feedback categories and consume them as part of the API

IMPLEMENTATION

  • Design a unique icon or button for your application that will allow users to contact the support staff. Upon clicking a pop up can appear as shown belowQzDevCMvPlEug_FxzoYjAq1wCtunSIKVvKTTqSObkIZrRYNBBchvfh3a21F72uP5RihCI_tVArNON_NkmiX0xDWxWsjd3WEc0NbOBRgXJyxqMGrg0zwMOpq1AwUqsOemHGPqjbgjRN6H5-4HXZG06TrkQA=s2048sPbxb_LXdJSVzeufmNuom-VMrB6OdZFLhkfLV6o0fwxHI4boAXYJUG7gkhlQVLWlsTtm5pIQX1d6yerPz1HNTqYNPCpAaAsQSKChpXVnD6jD1nFEjjCG5xuvInpcNCpY5Vxsq1Ws8xJrhGTDlf5w3gfwAQ=s2048

  • Ensure we have created the required custom feedback Categories in your PX subscription under feedback and they are case sensitive, these can be consumed on your category drop down

8GbXf5KBivw7WCxeKYtCqPVMBl7myEsbMC4KD7r5b6PB7D30PtfBMI3ezLVaStShxI1gk8P-MwrehYmPJVV2qPVJD5H0LmQuceZpUwyN2JPvymmI6nifXeMMuVPuucSxkyE0u08aYe87j7sCrW2BMlWHMQ=s2048FAtf_NihnzupEy-O63ancsnliAd23zcqBc0CC4Xe3neiH_EPIG_8gSp5Yt3BTiZI5grTiSViUW6rKJ1HafVJRQH8ax_64w8MNdPD8-BKgOJcGc_ZyqrmL0IpwdqiSR-Jy_YNmEpl2Gk1pPeJ3iIMDvnP0A=s2048

Dk58c4k25gB1-FbHfAvAj2jhGox-jTUEFVL1ZBRSHiqSyuc3mx_gBxOkJvRi9Y3brpw4BBKC5xNLMwfYSIqHIA68SYLZzj36OdHQYQr2vEr3LM1Li3oKv8JphNt2Q4sR4X7R2mj7M0EK5eeRC7VVTNRD2g=s2048

UYHeAtvuvfz879wxD3ZcSLyjCcf-VRk6HLd3W3lfjW0c3xC8OsdCPBu8sZzZU5LGdiKFbmRK9Y9iOTCOvKuT32GxfcReLFSSXL-fA6VzoCvY6m2YaPr8Tb4vURRa9KoxB5J_M2apANSQmFpfBvUJh0k_Vg=s2048

0ScN11ss5I6jWCUhWRxvxNLdm_illbDMRCwo_F6fg-_2llPiggPggjswtmPK_46WNEfxKBAs0sHPLYHuU-EvBirSpbiVUSQ7AV5pmEkEK8xvHa-ZWe0Jo3uoRcxIybe8VG223rTgZcTLqKiwpL1pe6FZLQ=s2048

R1AfnBGtKW68014S62-vEfeJG6KaIUd7M3ewpO8kIbB_b7OKjRktjM5Mn5yCOWEC1D4wVXkWZELDNHsGmmFLEuQmguwM4H8_jyjBpwDsg0rGgyBgIXz7K3Xp1mZ4-yBs7pVJUREgZw5pGz8Q7aSEN4mGUQ=s2048

  • Sample JS Code for feedback capturing (This is Important)epL3SkIPHxjBi5XgGAuO9KUezHD-0oxQaZ_fzJDiwm7Pr5I8v833PWImztQlLQ9_PY2JtMXOKuLC3PLPntYSPhJKIqCUBAka7AZ6aV7EJsMszXsgLONN_FCxh0tJTIXq4q9O4FIM8eGobRAlk2ZtfxjkHw=s2048

 

Working Demo:

 

 

@dileepnalla Thank you for this. Just so I am clearly understanding this, can you tell me if my assumptions below are correct?

 

The code provided first is the code to show a popup form within product.

And then the JS code is used to push the response information captured using the Gainsight REST API ?

I don’t actually see the REST API documentation in Apiary. https://aptrinsic.docs.apiary.io/

  1. Is it a form of a PUT statement to the Form Submit call? 
  2. How does it push the response information to the API without an API key?

This is really interesting to me.

 


Hi @JPKelliher , you are not using the REST API here. You are using the javascript aptrinsic API which is like the PX identify calls. Hence you do not need API keys to record the feedback on PX. Using the identify call which already got initialised on the product with the help of PX tag, we have the user information, the page information, and when you map the feedback fields and send it to the PX Feedback Javascript API, the feedback seamlessly gets recorded in the Feedback section.

 

-Abhilash


Reply