When you need it
Turn on identity verification if any chat action or lookup uses the Trusted only check on an input mapped to a context variable. See Context Variables. Without a valid signature, the variable’s value isn’t verified, the check fails, and the conversation either asks the customer to confirm (foruser_email) or
hands off to a Human Agent.
For variables that don’t need to be trusted (UI locale, display theme,
feature flags), you can skip this.
Get your signing secret
1
Open Identity verification
Go to Identity
verification
under chat installation.
2
Copy the key
Copy the
sk_... value shown in the panel and store it in your backend’s
secrets manager. You can regenerate it any time, which invalidates the
previous key.Sign the token on your backend
Sign a JWT with HS256 using the secret. Put the variables you want trusted in the payload. Keep expiry short (7 days or less).Pass the token to the widget
signedVariables are verified. Values in variables stay
unsigned and fail the Trusted only check on any input mapped to them.
Verification outcomes
Invalid signatures don’t reject the session. The variables are simply marked
unverified. If an action then hits a Trusted only input mapped to one of
them, the runtime rules in
Context Variables
apply.
See also
- Context Variables: declare context variables and customize action and lookup inputs
- Security & verification: the trust model behind input customization
- Chat configuration: chat channel overview