After users have logged in, you can identify them by passing a unique user ID (required) along with the attributes you would like to see on the Cohere dashboard — for instance, their name and email.
Cohere.identify("<user_id>", // Required: can be any unique ID{displayName: "<user_display_name>", // Optionalemail: "<user_email>", // Optional});
If you need to support users who haven't already logged in (e.g. if you're assisting them through a phone call), you can add a button to your page that generates a unique code for the user.
Cohere.showCode();// Optionally, pass in a position ("bottomRight", "bottomLeft", "topLeft", "topRight")// like so: Cohere.showCode("bottomLeft");
This will open a modal containing the generated code in the corner (bottom right by default) of your user's screen, which they can then read to you:
You'll be able to find the user by searching for this code in the Cohere dashboard.