Identity verification lets your agent know who the user is — enabling personalized support and persistent conversations.Documentation Index
Fetch the complete documentation index at: https://docs.argide.ai/llms.txt
Use this file to discover all available pages before exploring further.
What You Get
| Feature | Anonymous | Verified |
|---|---|---|
| Chat | Yes | Yes |
| Conversation history | No | Yes |
| Personalized by name | No | Yes |
| User-specific actions | No | Yes |
How It Works
- User logs into your app
- Your backend mints an Argide identity token (JWT signed with your Argide secret)
- Your frontend calls
window.argide('identify', { token }) - Widget now knows who the user is
This is not your app’s session JWT. It’s a separate Argide-scoped identity token that your backend mints specifically for Argide. Your app JWT stays private.
1. Get Your Secret
Go to dashboard.argide.ai/dashboard/deploy/widget → copy Verification Secret. Add to your backend environment:2. Create Backend Endpoint
JWT Payload
| Field | Type | Required | Description |
|---|---|---|---|
user_id | string | Yes | Unique user identifier |
exp | number | Yes | Expiration (Unix timestamp) |
email | string | No | User’s email |
name | string | No | Display name |
3. Identify in Frontend
getIdentityToken to the widget component. The SDK calls it on mount and auto-refreshes when the token expires — no manual polling needed.
4. Handle Logout
Troubleshooting
| Issue | Solution |
|---|---|
| User not identified | Check secret matches dashboard, user_id is a string |
| Token invalid | Check exp is in the future, algorithm is HS256 |
| History not persisting | Call identify() on page load, not just after login |
