Widget
Integrate an agent app on your website with a widget
Public AirOps Chat Agent
<div
data-airops-widget="<APP-UUID>"
data-airops-init="true"
></div>
<script src="https://assets.airops.com/widget/index.js"></script>Private AirOps Chat Agent
require "openssl"
def user_id_hash
api_key = "YOUR_API_KEY" # your workspace token (keep safe!)
user_id = "YOUR_USER_ID"
# Convert your api key to bytes
key = api_key.encode("utf-8")
# Hash the message using HMAC-SHA256 and the key
hash = OpenSSL::HMAC.hexdigest('sha256', key, user_id)
endimport hashlib
def user_id_hash():
api_key = "YOUR_API_KEY" # your workspace token (keep safe!)
user_id = "YOUR_USER_ID"
# Convert your api key to bytes
key = bytes(api_key, 'utf-8')
# Hash the message using HMAC-SHA256 and the key
hash = hashlib.sha256(key + bytes(user_id, 'utf-8')).hexdigest()
return hashAirOps App with Variables
Programmatically Initialize
Overview of Attributes
Last updated
Was this helpful?