Multi-tenant isolation
The active tenant is resolved on the server from the request header and validated against the memberships table. Every query and mutation includes the tenant identifier in its filter. The client never freely chooses what it can see.
- Explicitly denied when the user does not belong to the workspace.
- No hidden “global support mode” in the product.
- Demo workspaces are clearly labeled and use fictional data.
Access and roles
OAuth authentication. Sessions use signed cookies with expiration and attributes suited to the deployment environment. Each procedure declares the required permission in resource:action format—for example, lead:write, approval:decide, or billing:read.
The four roles (OWNER, ADMIN, OPERATOR, VIEWER) have a permissions matrix visible on the workspace Settings screen. Changing a role requires member:manage and is audited. The OWNER cannot be removed.
Human approval and separation of duties
Any external effect—launching a campaign, publishing content, or triggering a tool—goes through the Approval Center. The request stores the payload, risk, author, and expiration. The decision requires approval:decide permission and cannot be made by the person who submitted the request.
- Expired approvals are marked EXPIRED and rejected.
- A decision that has already been made cannot be repeated (PRECONDITION_FAILED).
- Approving triggers the tool and records a verification and an audit event.
- Rejecting takes no action—and the reason is recorded.
Audit
Creations, changes, decisions, executions, and AI calls generate events with an actor, action, entity, identifier, diff, request ID, and timestamp. The Audit screen queries only the active tenant, with a configurable read limit.
The audit trail is designed to be append-only: the product does not allow events to be edited or deleted through the interface. Retention and export are defined in each customer's contract.
AI usage
AI calls go through a single gateway that records the model, tokens, latency, and estimated cost per workspace, while respecting the plan quota. The prompt and version are identified so changes in behavior can be traced.
- AI does not have direct access to the database; it receives context assembled by the server.
- Actions proposed by AI do not execute without approval.
- Deterministic fallback when the model is unavailable.
- Demo data is fictional and contains no information about real people.
Secrets and integrations
Integration credentials are stored in environment variables or the environment’s secret vault, never in frontend code. The installation package includes .env.example with no real values. Connecting a channel without valid credentials leaves the integration in PENDING with a reason—the system does not simulate a successful sync.
LGPD and Personal Data
The product processes personal data about leads and users for sales operations, under the instructions of the customer acting as the data controller. This version includes the following commitments:
- Data minimization: collect only the fields needed for operations (name, company, title, email, phone, source).
- Purpose: use data for qualification, prioritization, and communications authorized by the customer.
- Data subject rights: lead search, correction, and deletion are available in the interface (soft deletion and removal from the knowledge index).
- Retention: defined by contract; audit events are retained for the period required by law and security needs.
- Subprocessors: hosting, managed database, and AI providers are listed in the data processing addendum.
- Security: role-based access, logging of administrative access, and encryption in transit (HTTPS).
NexInsights does not sell data about data subjects or use data from one workspace to train models for another customer.
Operations and Continuity
- Public health check for monitoring and orchestration.
- Managed database backups follow the provider’s policy; exports are available upon request.
- Schema changes are tracked through versioned migrations.
- Incident response plan: containment, notification to the data controller, and postmortem.