# Show survey history in Gorgias

Show a customer’s survey answers beside their Gorgias support ticket. Your team can read the feedback while replying to the customer.

## Preview the customer

In Shopoll, open **Integrations → Gorgias → Set up customer history**. Expand **Preview a customer’s history** and enter the email on a ticket. Expand a response to read its answers. The preview shows only this workspace’s responses that Shopoll can link to a person.

## Connect the HTTP integration

1. Copy the **Request URL** and the **JSON request body** from Shopoll. The body contains the `{{ticket.customer.email}}` variable for the current customer.
2. Choose **Create widget key** and copy the header value. Shopoll shows it once. A workspace owner or admin on Standard or Unlimited can create a separate key for each helpdesk.
3. In Gorgias settings, add an **HTTP Integration**. Name it **Shopoll**, choose **POST** and paste the URL. Set the request content type to `application/json` and paste the copied JSON body. Add a header named `Authorization` and paste the full value, including `Bearer `.
4. Enable **Ticket created** and **Ticket message created**. Save, then open a ticket for a customer whose history you previewed.
5. Open the sidebar settings on that ticket. Drag the returned Shopoll fields into the sidebar and save. [Gorgias HTTP integration and widget setup](https://developers.gorgias.com/docs/display-third-party-data-within-tickets)

## Choose what agents see

Start with `submissions`, `satisfaction.satisfied_percent` and the question and answer pairs in `responses`. Satisfaction is the percentage of five-point CSAT answers rated four or five. If no rating or sentiment score is available, that field is blank. If multiple known customers share a mailbox, Shopoll returns an empty history with the status `shared_email`.

For pagination, other fields and access management, see the [customer history API](/api/#look-up-a-customer).
