Articles on: Contacts & CRM

How to automatically push user company information

Learn how to set and read a visitor company from your website with the Crisp JavaScript SDK.


If your website has authenticated users, you can pass company information to Crisp automatically. This helps your team understand where a visitor works and keeps company context available in the conversation.



Set the visitor company


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


// Replace this company data with your own values.
$crisp.push(["set", "user:company", [
"Crisp", {
url: "https://crisp.chat/",
description: "Give your customer experience a human touch.",
employment: ["CTO", "Software Engineer"],
geolocation: ["FR", "Nantes"]
}
]]);


The company object is optional. Only the company name is required.


$crisp.push(["set", "user:company", ["Crisp"]]);


For the company to be saved in your Contacts database, the user email must be set at some point, before or after pushing the company. Your workspace also needs to be on a paid plan such as Mini, Essentials, or Plus.



Read the visitor company


You can read the company currently stored in the visitor session with $crisp.get.


var visitorCompany = $crisp.get("user:company");



Go further


The same SDK can also set the visitor email, phone number, nickname, avatar, custom data, segments, and events.


Want to know more about the $crisp interface? Read How do I use the $crisp chatbox SDK?.



Updated on: 03/05/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!