Employee Portal
Portal Setup
Each group can have its own employee portal. Configure it in the group's access settings:
{
"access_config": {
"portal": true,
"embed": true,
"whitelabel": true,
"api": true
}
}
The portal URL uses the group's slug: /portal/g/petcenter-belgrade
Employee Login
Employees access the portal with their email and password. After login, they see only the agents their roles grant access to. The portal uses its own JWT token type (portal) with 8-hour expiry.
Role-Based Agent Access
What an employee sees in the portal depends on their roles:
- Chat agents they can use appear as chat interfaces
- Portal dashboards they have access to show live events
- Analyst agents let them query business data
Agents not in their role's access list are completely hidden.
White-Label & Custom Domain
Groups with whitelabel: true in access_config can use a custom domain via CNAME. The portal renders without Neimar.io branding. CSP headers (frame-ancestors) are set based on the group's configuration.
Embed Code
Groups with embed: true can embed portal components on external websites. The embed code provides an iframe-based integration with the group's agents.