Ask your own question.

Someone from our team or the Crisp community will answer publicly.

We will ask your email to let you know when an answer is published.

Thanks! We will let you know when an answer is published.

Tell us why you are not satisfied.

Tell us how we can improve, and what is missing.

We will answer if we need more details, and improve this help section.

Thanks! We will get back to you if we need more information.

How can I automatically set user emails?

If you are using Crisp on a website where users are authenticated, you may want to set their email so that they don't have to specify it when they start a chat with you.

This method uses the Crisp JavaScript API, that you can call from your own code. Given that you know the authenticated user's email from your code, you'll be able to set it for the Crisp chatbox.

Here's how you would proceed to set the visitor's email:

// Feed this call with your own internal email data.
$crisp.push(["set", "user:email", ""]);

Here's how you would proceed to get the visitor's email:

var visitor_email = $crisp.get("user:email");

Want to know more about the $crisp interface? Read: How to use $crisp Javascript SDK?

Valerian Saliou
Was this article helpful?YesNo
Thanks! 👍
Don’t find what you are looking for?

Ask your own question.

Ask Now