identify
method:
load the Chatbase script and call the identify
method with the user’s properties and optional metadata.identify
method allows the following properties:
Property | Description |
---|---|
user_id | The id of the user, the only verified variable as it is verified using the user_hash. |
user_hash | The hash of the user’s id. |
user_metadata | Optional object containing additional user information. This can include properties like name, email, company, or any other relevant data that you want to make available to your AI agent. Maximum 1000 characters total for all metadata fields combined. Exceeding this limit will result in the metadata being truncated. It’s strictly used as context to the AI Agent (equivalent to a user message)“ |
identify
multiple timesidentify
multiple times will overwrite the previous properties.