Visitor Identity Verification
Identity verification helps you to setup a secure chatbot.
The identity verification system uses HMAC (Hash-based Message Authentication Code) to securely verify user identities. When enabled, users must provide valid authentication credentials to interact with the chatbot.
Step 1: Get your secret key
First, get your widget secret key from your widget settings:
-
Open your chatbot from the dashboard
-
Go to Widget ->
Settings
-
Copy your
Secret Key
- youβll need it for generating HMAC signatures
Step 2: Generate HMAC Signature
The HMAC verification follows a specific priority order:
- external_user_id (highest priority)
- phone (lowest priority)
Generate the HMAC signature using your secret key and the highest-priority parameter available. Here are examples for each field:
Step 3: Perform identity verification
You can perform identity verification by setting the userβs contact information using the set
method and including the HMAC hash in the user_hash
parameter.
Security Considerations
- Keep your secret key secure and never expose it in client-side code
- Implement proper error handling for failed verifications
Troubleshooting
If you encounter verification issues:
- Ensure your secret key matches the one in your dashboard
- Check that all parameters match between HMAC generation and visitor identification
- Confirm your HMAC generation algorithm matches our specifications
For additional support or questions, please contact our support team.