Embedding a Salespeak Link in Emails
Salespeak supports embedding a "widget link" in emails that passes user-specific information to enhance chat interactions on any page where our widget is installed. By embedding this link, each interaction is personalized based on the user’s email address and initial message.
How It Works
-
Pass User Email as Query Parameter
- Add
salespeakInitUserEmail
as a query parameter to the URL, setting it to the user’s email address. This enables Salespeak to identify follow-up chat interactions with the specified email. - When the user clicks this link, our widget stores a cookie on their browser with their user ID, ensuring a seamless experience in future sessions.
Example Usage:
https://www.salespeak.ai/blog?salespeakInitUserEmail=
jon.smith
%40freshworks.comhttps://www.salespeak.ai/home-demo?salespeakInitUserEmail=j
on.smith
%40freshworks.com
- Add
-
Include a User Message in the Header
- Salespeak also supports the
salespeakInitUserMessage
header, allowing you to prefill an introductory message for the user. This message appears within the chat widget upon load, enhancing engagement and personalizing the experience. For example "Hello I'm Jon, I have a few questions"
Example Message:
salespeakInitUserMessage=Hello%20Im%20Jon%2C%20I%20have%20a%20few%20questions
- Salespeak also supports the
-
Example Link in Email
- Here’s an example of how the full link might look in an email:
Benefits
- Automatic User Identification: User sessions are personalized and associated with their email, enhancing continuity across interactions.
- Seamless Communication: Opening with a personalized message can improve response rates and user experience by acknowledging the user’s intent immediately.
Note: Ensure the email and message strings are properly URL-encoded to avoid any issues with special characters.