Thena help centerWebsite
How can I create the HASH key?

How can I create the HASH key?

Victor

Last updated: 7 July 2025

You'd need to programmatically create the HASH key based on the following:

You can use the following function as a reference to generate the HASH key:

function generateHmac(email, name) {
  return crypto
    .createHmac('sha256', this.hmacSecret)
    .update(`${email}:${name}`) 
    .digest('hex');
}

Here the email and the name would be of the end-user who'd be reaching out to the AI Agent/Team via the web widget.


Related articles
Did you find this article helpful?