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
Open Identity verification
Go to Identity
verification
under chat installation.
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
| Signature | Variables treated as | Pass the Trusted-only check |
|---|---|---|
| Valid JWT | Verified | Yes |
| Invalid, missing, or expired | Unverified | No |
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