Articles on: Developers

How to automatically set users phone numbers

Learn how to set an authenticated visitor phone number from your website code.


When your website already knows the visitor phone number, you can pass it to Crisp so agents have the right contact details without asking the customer to type them again.



Set the visitor phone number


Use the $crisp JavaScript SDK after the Crisp chatbox snippet is available on the page.


// Replace this value with the phone number from your own authenticated user data.
$crisp.push(["set", "user:phone", ["+14152370800"]]);


Use an international format when possible, such as E.164 with a country code.



Developer documentation


Read the $crisp Methods documentation for more user setters, including email, nickname, avatar, company, and custom session data.


Updated on: 03/05/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!