How to set a visitor’s company with the JavaScript SDK
Show agents which company a signed-in visitor belongs to. Send the company name on its own or include details such as the visitor’s job title, then check what Crisp received.
Send company details from your website
Once the Crisp chatbox snippet is available, call user:company with the company name from your visitor’s account. That name is the only required value.
Example with a company name only → Replace Crisp with the company name from your own application.
$crisp.push(["set", "user:company", ["Crisp"]]);
If your application has more information, pass a second argument with any company details you want to share. For employment, provide the visitor’s job title followed by their role. For geolocation, provide the company’s country code, followed by the city if you know it.
Example with optional details → This also sends a website, description, job title and role, and company location.
// Replace this company data with your own values.
$crisp.push(["set", "user:company", [
"Crisp", {
url: "https://crisp.chat/",
description: "Customer messaging software",
employment: ["CTO", "Engineering"],
geolocation: ["FR", "Nantes"]
}
]]);
Check the company in Crisp
To see what your agents will see, open the conversation for a signed-in visitor whose company your website has sent. If your setup also saves company details in Contacts, open the linked profile to view them there.
To read the company in your own JavaScript, use the getter after Crisp is ready. Define the callback before loading the Crisp script, or put the getter in your existing ready callback.
window.CRISP_READY_TRIGGER = function() {
const visitorCompany = $crisp.get("user:company");
// Use visitorCompany here.
};
The getter returns the company information available in the current browser session, or null if Crisp has none yet. At startup, this callback may run before the command that sets the company. If you want to confirm that the details were saved in Contacts, open the contact profile in Crisp.
Updated on: 29/11/2026
Thank you!