# 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

1. Copy the **Request URL** and the **JSON request body** from Shopoll. The body contains the `{{customer.email}}` variable for the current customer.
2. 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.
3. In Richpanel’s conversation sidebar, open the widget editor and add a **Custom HTTP Widget**. Name it **Shopoll**.
4. Under **Data Source**, choose **POST**. Paste the publicly reachable HTTPS URL and add the header `Authorization` with the full value copied from Shopoll. Set the content type to `application/json`, paste the copied JSON body and choose **Test API**.
5. In the widget designer, map `finished` to the finished response count, `satisfaction.satisfied_percent` to customer satisfaction and `responses` to the survey answer list. Save the widget and open a conversation for the customer you previewed. [Richpanel custom HTTP widgets](https://updates.richpanel.com/custom-http-widgets-333827)

## 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](https://updates.richpanel.com/http-targets-%28connect-zapier-other-apps%29-224845)
