Documentation Index
Fetch the complete documentation index at: https://docs.gu1.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
This guide demonstrates the complete automated onboarding flow for persons (individuals/customers) using gu1βs automatic entity creation with integrated risk assessment. The system will:- Fetch official data from government registries (e.g., CPF in Brazil)
- Execute enrichments to gather additional information
- Run compliance checks (PEP, sanctions, adverse media)
- Execute risk matrix rules to assess risk automatically
- Generate alerts and investigations if rules are triggered
- Send notifications via Socket.IO and webhooks
Prerequisites
Before starting, you need:- API Key - Get one from Settings > API Keys
- Risk Matrix - Create and configure a risk matrix with rules for the
entity_createdtrigger - Active Integrations - Enable enrichment and check providers from the Marketplace
- Valid Tax ID - A real tax ID from a supported country (e.g., CPF for Brazil)
The Complete Flow
Hereβs what happens when you create a person automatically with a risk matrix:Quick Start Example
Basic Person Onboarding with Risk Assessment
Complete Response Example
When the process completes successfully, youβll receive a comprehensive response:Step-by-Step Implementation
Step 1: Set Up Your Risk Matrix
Before creating entities, configure your risk matrix with rules:Step 2: Create Person with Specific Integrations
Instead of running all active integrations, you can specify which ones to execute:Step 3: Handle Real-Time Updates with Socket.IO
Listen for real-time events during the onboarding process:Step 4: Handle Risk-Based Workflows
Based on the risk score and alerts, implement different workflows:Understanding the Rules Engine Integration
How Risk Matrices Work
When you setriskMatrixId in your request, the system automatically:
- Creates the entity with basic data from official registries
- Executes enrichments to gather additional information
- Executes checks for compliance (PEP, sanctions, etc.)
- Triggers the risk matrix with the
entity_createdtrigger - Evaluates all rules that match:
triggersincludes"entity_created"targetEntityTypesincludes"person"enabledistrue
- Calculates risk score by summing scores from matched rules
- Generates alerts for rules that match and have high severity
- Consolidates alerts into investigations (after 3 seconds)
- Updates entity with final risk score and status
- Sends notifications via Socket.IO and webhooks
Rule Condition Examples
Rules can access enrichment and check results in their conditions:Error Handling
Common Errors and Solutions
Best Practices
1. Always Set a Risk Matrix
2. Use Specific Integrations for Better Performance
3. Handle Async Operations
The creation is synchronous, but notifications are async:4. Monitor Data Coverage
If rules fail due to missing data, check coverage:Related Documentation
Person API Reference
Complete API documentation for person creation
Risk Matrix Guide
Learn how to configure risk matrices and rules
Integrations Marketplace
Browse available enrichment and check providers
Webhooks Setup
Configure webhooks for event notifications