Actions132
- AI Actions
- Extract Text From Document
- Check Content Policy
- Detect Adult Content
- Detect Brand
- Detect Color
- Detect Email Type
- Detect Faces
- Extract Entities
- Extract Contact Information
- Extract Customizable Information From Text
- Fuzzy Text Matcher
- Generate Image
- Generate JavaScript Code
- Generate Python Code
- Detect Language
- Detect Mood
- Extract Text From PDF
- Recognize Objects in Image
- Extract Text From Image
- Redact Sensitive Information From PDF
- Remove Background Image
- Summarize Text
- Transcribe
- Translate Text
- Image Actions
- Business Actions
- Convert Actions
- Generate Actions
- Crypto Actions
- Operator Actions
- Storage Actions
- Scheduler Actions
- Text Actions
- Chart Actions
- Code Actions
- Calculate Actions
- Date and Time Actions
- PDF Actions
- Compress PDF File
- Count PDF Pages
- Create Empty PDF
- Decrypt PDF
- Convert DOCX to PDF
- Draw Image on PDF
- Draw Text on PDF
- Encrypt PDF
- Convert HTML to PDF
- Convert Markdown to PDF
- Manage PDF Metadata
- Merge PDF Files
- Add PDF Pages
- Remove PDF Pages
- Resize PDF Pages
- Rotate PDF Pages
- Convert PDF to Base64
- Convert PDF to Image
- Split PDF File
- Add Image Watermark to PDF
- Add Text Watermark to PDF
- Shortened URL Actions
Generate → Mock Data User
AI-generatedOverview
The node provides a utility to generate mock user data, which is useful for testing, prototyping, or populating applications with sample user information. It can create multiple fake users with customizable options such as locale and whether to include avatar images. This helps developers and testers simulate real-world scenarios without needing actual user data.
For example, you might use this node to generate 10 mock users in English (US) locale including avatars to test a social media app's user profile display.
Properties
| Name | Meaning |
|---|---|
| Number of Users | The number of mock user profiles to generate. |
| Include Avatar | Whether to include avatar image URLs in the generated user data (true/false). |
| Locale | The locale/language for the generated user data. Options: English (US), German (DE), French (FR), Spanish (ES). |
Output
The output JSON contains an array of generated mock user objects. Each user object includes typical user profile fields such as name, email, and optionally an avatar URL if enabled. The exact structure depends on the external service response but generally represents realistic user data suitable for testing.
No binary data output is produced by this node.
Dependencies
- Requires an API key credential for authentication with the external "0CodeKit" service.
- The node sends a POST request to the endpoint
/generate/mockdata-useron the base URLhttps://prod.0codekit.com. - The request body includes parameters for count, includeAvatar, and locale based on user input.
Troubleshooting
- Common issues:
- Invalid or missing API key credential will cause authentication errors.
- Providing zero or negative numbers for "Number of Users" may result in no data or errors.
- Unsupported locale values (outside the provided options) are not accepted.
- Error messages:
- Authentication failures typically indicate invalid or missing API credentials; verify your API key setup.
- Validation errors may occur if required parameters are missing or out of range; ensure all required inputs are correctly set.
- Network or service errors from the external API should be retried or checked for service availability.
Links and References
- 0CodeKit API Documentation (for detailed API usage and capabilities)
- n8n documentation on Using Credentials