How to collect and use user information in your Release0 chatbot agents with GDPR compliance
Learn how to use the User Info block to collect network, location, device, and browser information while maintaining GDPR compliance and user privacy in your Release0 agents.
Overview
The User Info block enables you to collect comprehensive user information including network data, IP-based geolocation, device details, and browser specifications within your Release0 agent. This block is designed with privacy-first principles and automatic GDPR compliance for EU users.
Important: This block uses IP-based geolocation (not GPS). Location data is derived from the user’s IP address using Vercel’s geolocation headers, providing country, city, and approximate coordinates based on ISP location.
Key Features
- 🛡️ Privacy by Default: Automatic anonymization for EU users
- 🌍 IP Geolocation: Location data derived from IP address with privacy protection
- 📱 Device Detection: Hardware and browser information
- ⚖️ GDPR Compliant: Built-in legal compliance mechanisms
- 🔧 Flexible Options: Both anonymized and raw data available
Available Actions
Available Actions
The User Info block provides four specialized actions for different types of user data:
1. Get Network Info
Collect network-related information including IP address, referer, user agent, and host.
2. Get Location Info
Retrieve geographical data such as country, city, coordinates, and region information based on IP geolocation.
3. Get Device Info
Gather device hardware details including type, vendor, and model.
4. Get Browser Info
Obtain browser and operating system information including name, version, and language preferences.
GDPR Risk Classification
Understanding the privacy implications of each data type:
🔴 High Risk Data (Automatically Protected)
- IP Address: Last octet anonymized for IPv4, final segments for IPv6
- IP Geolocation Coordinates: Precision reduced to ~1km for EU users (based on IP address, not GPS)
🟡 Medium Risk Data (Partially Anonymized)
- Referer: Only origin domain preserved for EU users
- User Agent: Detailed version information removed for EU users
🟢 Low Risk Data (No Anonymization Required)
- Country, City, Region: General location data
- Device Type, Vendor, Model: Hardware information
- Browser Name, Version: Software information
- Operating System: Platform details
- Host: Request destination
Network Information Collection
Basic Network Data Setup
Use the Get Network Info action to collect network-related data:
Available Variables:
IP
- Anonymized IP address (GDPR-safe)IP (Raw)
- Original IP address (requires consent)Referer
- Anonymized referring URL (GDPR-safe)Referer (Raw)
- Original referring URL (requires consent)User Agent
- Partially anonymized user agent (GDPR-safe)User Agent (Raw)
- Original user agent (requires consent)Host
- Request host (no privacy risk)
Example Configuration:
Network Data Usage Example
Create a personalized welcome message based on network information:
Text Block:
Location Information Collection
Geographic Data Setup
Use the Get Location Info action to collect IP-based geographical data:
Data Source: Location information is derived from the user’s IP address using Vercel’s geolocation service. This provides approximate location based on ISP data, not device GPS.
Available Variables:
Country
/Country (Raw)
- User’s countryCity
/City (Raw)
- User’s cityContinent
/Continent (Raw)
- Continental regionRegion
/Region (Raw)
- State/province informationLatitude
- Reduced precision coordinates (GDPR-safe, IP-based)Latitude (Raw)
- Original precision coordinates (requires consent, IP-based)Longitude
- Reduced precision coordinates (GDPR-safe, IP-based)Longitude (Raw)
- Original precision coordinates (requires consent, IP-based)Is EU Country
- Critical boolean for GDPR compliance and regional logic
Is EU Country is one of the most valuable variables for building compliant, region-aware chatbots. Use this to trigger different flows, privacy notices, data handling, pricing, and legal compliance automatically.
Example Configuration:
Location-Based Personalization
Create location-aware content and services using the powerful Is EU Country flag:
GDPR Compliance Flow:
Regional Business Logic:
Data Collection Strategy:
Device Information Collection
Hardware Detection Setup
Use the Get Device Info action to collect device details:
Available Variables:
Device Type
- Mobile, desktop, tablet, etc.Device Vendor
- Manufacturer (Apple, Samsung, etc.)Device Model
- Specific model name
Example Configuration:
Device-Optimized Experience
Adapt the conversation based on device capabilities:
Conditional Logic Block:
Browser Information Collection
Browser and OS Detection
Use the Get Browser Info action to collect browser details:
Available Variables:
Browser Name
- Chrome, Firefox, Safari, etc.Browser Version
- Version numberBrowser Language
- Full language preferenceBrowser Language Code
- ISO language codeBrowser Language Region
- Regional preferenceOS Name
- Operating systemOS Version
- OS version number
Example Configuration:
Multi-Language Support
Implement automatic language detection:
Conditional Logic Block:
Complete Workflow Example
Let’s create a comprehensive user profiling system:
Step 1: Collect All User Information
User Info Collection Block:
Add multiple User Info actions:
-
Get Network Info:
- Map “IP” to
{{user_ip}}
- Map “Host” to
{{request_host}}
- Map “IP” to
-
Get Location Info:
- Map “Country” to
{{user_country}}
- Map “City” to
{{user_city}}
- Map “Is EU Country” to
{{is_eu_user}}
- Map “Country” to
-
Get Device Info:
- Map “Device Type” to
{{device_type}}
- Map “Device Vendor” to
{{device_brand}}
- Map “Device Type” to
-
Get Browser Info:
- Map “Browser Name” to
{{browser_name}}
- Map “Browser Language Code” to
{{user_language}}
- Map “OS Name” to
{{operating_system}}
- Map “Browser Name” to
Step 2: Create User Profile Summary
Text Block:
Step 3: Privacy Notice for EU Users
Conditional Logic Block:
The Power of “Is EU Country” Detection
The Is EU Country variable is arguably the most powerful single data point for building compliant, region-aware chatbots. This boolean flag automatically determines if a user is in an EU country and enables:
⚖️ Automatic Legal Compliance
- GDPR compliance without manual configuration
- Cookie consent flows triggered automatically
- Data retention policies applied correctly
- Privacy notices shown when required
💰 Regional Business Logic
- VAT-inclusive pricing for EU customers
- Currency conversion and regional offers
- Shipping restrictions and local regulations
- Payment method availability by region
🛡️ Privacy-First User Experience
- Automatic data anonymization for EU users
- Transparent data handling messaging
- User rights information (deletion, access, portability)
- Consent management workflows
🌍 Localization and Personalization
- Language detection combined with region
- Cultural adaptation of communication style
- Regional content and product availability
- Local support routing and business hours
Example: Smart EU Detection Flow
Critical Implementation Note: Always use the Is EU Country flag as your primary decision point for GDPR compliance, not individual country checks. This ensures you catch all 27 EU member states automatically, including any future additions.
Best Practices
Privacy and Compliance
- Automatic Protection: The block automatically protects EU users - no additional configuration needed
- Consent Management: Use raw data options only with proper legal basis
- Data Minimization: Collect only the data you actually need
- Transparency: Always inform users about data collection
Performance Optimization
- Selective Collection: Use only the actions you need (network, location, device, browser)
- Variable Mapping: Map only necessary variables to avoid bloat
- Conditional Logic: Use collected data to optimize user experience
Error Handling
- Graceful Degradation: Ensure your flow works even if user info collection fails
- Fallback Content: Provide default experiences when data is unavailable
- Validation: Verify collected data before using in critical logic
Privacy Considerations
For EU Users (Automatic)
- IP addresses are automatically anonymized (last octet removed)
- IP geolocation coordinates are reduced to ~1km precision
- Referer URLs are truncated to origin only
- User agents have detailed version info removed
For All Users
- Device and browser information is considered low-risk
- Country and city data are generally safe
- Host information poses no privacy risks
Raw Data Usage
- Use “(Raw)” variables only with proper consent
- Ensure compliance with local privacy laws
- Document your legal basis for raw data collection
Troubleshooting
Common Issues
- No Data Collected: Ensure at least one variable is mapped in response mapping
- Empty Variables: Check that the action is placed after user interaction starts
- GDPR Conflicts: Verify you have consent before using raw data options
- Location Inaccuracy: Remember that EU coordinates have reduced precision and are IP-based (not GPS)
Debugging Tips
- Test Both EU and Non-EU: Use VPN to test different regional behaviors
- Check Browser Console: Network requests may provide additional debugging info
- Validate Mappings: Ensure variable names match exactly in your flows
- Monitor Privacy Flags: Use “Is EU Country” to understand protection status
Data Structure Reference
Network Data Format
Location Data Format
Location Accuracy: Coordinates are derived from IP geolocation, which typically provides city-level accuracy (1-10km range) depending on ISP and infrastructure. This is not GPS data from the user’s device.
Device Data Format
Browser Data Format
With these configurations, your Release0 agent can collect comprehensive user information while maintaining privacy compliance and providing personalized experiences across different devices, locations, and user preferences.
Important Limitations
IP Geolocation vs GPS
- What it is: Location data derived from IP address geolocation
- What it’s not: GPS coordinates from user’s device
- Accuracy: City-level accuracy (1-10km range), varies by ISP
- Source: Vercel’s geolocation headers based on IP infrastructure
Data Availability
- Location data depends on Vercel’s geolocation service
- Some corporate networks or VPNs may provide inaccurate location data
- Mobile networks may show ISP location rather than user’s actual location
- Coordinates may be null for some IP ranges