0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions114

Generate → Mock Data User

AI-generated

Overview

This node operation generates mock user data based on specified parameters. It is useful for creating sample user profiles for testing, development, or demonstration purposes without using real personal data. Users can specify the amount of mock users to generate and select which user attributes to include, such as email, avatar, password, birth date, username, address, phone number, creation date, and balance.

Use Case Examples

  1. Generating 10 mock users with email, username, and phone number for testing a user management system.
  2. Creating a single mock user profile with avatar and birth date for UI design mockups.

Properties

Name Meaning
Amount The number of mock users to generate.
Email Domain Whether to generate an email address for each mock user.
Avatar Whether to generate an avatar image for each mock user.
Password Whether to generate a password for each mock user.
Birth Date Whether to generate a birth date for each mock user.
Username Whether to generate a username for each mock user.
Address Whether to generate an address for each mock user.
Phone Number Whether to generate a phone number for each mock user.
Created At Whether to generate a creation date for each mock user.
Balance Whether to generate a balance amount for each mock user.

Output

JSON

  • amount - The number of users requested to generate.
  • emailRequired - Indicates if email addresses were generated.
  • avatarRequired - Indicates if avatars were generated.
  • passwordRequired - Indicates if passwords were generated.
  • birthDateRequired - Indicates if birth dates were generated.
  • usernameRequired - Indicates if usernames were generated.
  • addressRequired - Indicates if addresses were generated.
  • phoneRequired - Indicates if phone numbers were generated.
  • createdAtRequired - Indicates if creation dates were generated.
  • balanceRequired - Indicates if balances were generated.

Dependencies

  • An API key credential for the CodeKit API is required to authenticate requests.

Troubleshooting

  • If the node fails to generate data, check that the API key credential is correctly configured and has the necessary permissions.
  • Ensure that the 'Amount' parameter is a positive integer to avoid errors.
  • If specific fields are not generated as expected, verify that the corresponding boolean flags are set to true.

Discussion