GetFeedback

Embedding Surveys in Salesforce Email Signatures

Essentials feature: Available on Essentials, Pro, and Ultimate plans.

If you’re using Service Cloud as your CRM and want to collect CSAT or CES feedback from your customers, your support agents can embed a survey in their Salesforce email signature. This makes collecting feedback easy for your support team.

You can embed the following question types in an email:

  • Rating
  • Net Promoter Score (NPS)
  • Like/Dislike
  • Multiple choice

Here’s an example of a survey embedded in an email.

An email to a customer, with a 5-answer NPS question at the bottom of the email.

For the best results, create a survey with 1 question and remove the title page. When respondents answer the survey question, their response is automatically submitted.

Create links for each answer option in the question you want to embed in your email.

  1. In app.getfeedback.com, create or open your survey.
  2. From the survey builder, select the Rating, NPS, Like/Dislike, or Multiple choice question to embed.
  3. In the right panel, select Copy Embed Link. You’ll paste this link into your Salesforce email template for each answer option. For example, if you use a rating question with a scale of 1-5, you’ll paste the link 5 times.

Create an email template in Service Cloud and embed your survey. To add your survey to a Salesforce email template:

  1. Create an HTML email template in Salesforce. Add any merge fields to personalize the template, such as Agent Name.
  2. Paste the embed link for each possible answer type. It will look something like this: https://www.getfeedback.com/r/xxxxxx?gf_q[8571]=
    In this example, we use a CSAT question. The CSAT question has 5 response options (1-5), so we created 5 links, one for each possible answer.
  3. Add an = symbol, then add the number of the answer value. Repeat this for each link in your email.

Each question type has different values. For example, for a CSAT question with a scale of 1-5, add =1 to the end of the first link.

https://www.getfeedback.com/r/xxxxxx?gf_q[8571]=1
https://www.getfeedback.com/r/xxxxxx?gf_q[8571]=2
https://www.getfeedback.com/r/xxxxxx?gf_q[8571]=3
https://www.getfeedback.com/r/xxxxxx?gf_q[8571]=4
https://www.getfeedback.com/r/xxxxxx?gf_q[8571]=5

You can add images to your links in your HTML email template, such as button icons. For example, the HTML below includes an image for the first answer choice.

Image of code showing how to embed an image in a Salesforce email

The Salesforce email template builder will also allow you to add images and links.

If you map response data back to Salesforce, make sure to add any merge fields you’re mapping to. Learn more about using merge fields in Salesforce

The example below shows a link that includes an image and the Case ID, Case Contact, and Agent Name merge fields:

Image of code that adds merge fields to survey links in Salesforce email

Once you add your survey links and merge fields, test your email template to make sure it’s working correctly. To test your email:

  1. Save your email template.
  2. Select Send Test and Verify Merge Fields. Check the test email to make sure your survey works and your merge fields populated correctly.

If you’re happy with the test email, your service agents can start using the email template to add the survey to their emails.