> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.crisp.chat/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# 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.

---

# ${color}[#0080dd](Set the visitor company)

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

```javascript
// 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.

```javascript
$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**.

---

# ${color}[#0080dd](Read the visitor company)

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

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

---

# ${color}[#0080dd](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?](/en/article/how-do-i-use-the-crisp-chatbox-sdk-1lp254r/).