Add survey history to the Richpanel sidebar
Show earlier survey answers beside a Richpanel support conversation. The widget finds the customer by email and can show recent answers, satisfaction ratings and available sentiment scores.
Check a matching customer
In Shopoll, open Integrations → Richpanel → Set up customer history. Expand Preview a customer’s history and enter an email that has answered an identifiable survey. Expand a survey to inspect its answers.
Add the widget
- Copy the Request URL and the JSON request body from Shopoll. The body contains the
{{customer.email}}variable for the current customer. - Choose Create widget key and copy the header value while the window is open. This control is available to owners and admins on Standard and Unlimited.
- In Richpanel’s conversation sidebar, open the widget editor and add a Custom HTTP Widget. Name it Shopoll.
- Under Data Source, choose POST. Paste the publicly reachable HTTPS URL and add the header
Authorizationwith the full value copied from Shopoll. Set the content type toapplication/json, paste the copied JSON body and choose Test API. - In the widget designer, map
finishedto the finished response count,satisfaction.satisfied_percentto customer satisfaction andresponsesto the survey answer list. Save the widget and open a conversation for the customer you previewed. Richpanel custom HTTP widgets
Interpret empty values
If the customer has no matching responses, Shopoll returns no_history. Anonymous surveys stay out of the widget. If several known customer records share the address, the status is shared_email and agents receive no answers. A sentiment score appears only if Shopoll has analysed the response’s written feedback.
For a Richpanel rule or macro that calls an external service, configure an HTTP target in Richpanel. For displaying data to agents, use the sidebar widget. Revoke its key in Shopoll under Developer access when you disconnect it. Richpanel HTTP targets