How can I automatically set user company?
*If you are using Crisp on a website where users are authenticated, you may want to set their company attributes, so that you can store where this user works.*
This method uses the Crisp JavaScript API, that you can call from your own code. Given that you know the authenticated user's company attributes from your *code* (eg. company name, website, location, etc.), you'll be able to set it for the Crisp chatbox.
*Here's how you would proceed to set the visitor's company:*
// Feed this call with your own company data (replacing Crisp as a company).$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"] }]]);` `$crisp.push(["set", "user:company", ["Crisp"]]) ``*Here's how you would proceed to get the visitor's company:*
var visitor_company = $crisp.get("user:company");
Bijgewerkt op: 12/02/2026
Dankuwel!