Person
AI-generatedOverview
This node generates fake data using the Faker.js library. It is useful for testing, prototyping, or populating applications with realistic but non-sensitive sample data. For example, you can generate fake person profiles, company details, internet user information, product descriptions, financial records, or vehicle data. This helps developers and testers simulate real-world scenarios without exposing actual personal or business data.
Properties
| Name | Meaning |
|---|---|
| Number of Records | Number of fake records to generate (e.g., 1, 5, 10) |
Output
The output is an array of JSON objects, each representing a generated fake record according to the selected operation "Person". Each record contains the following fields:
firstName: A fake first name.lastName: A fake last name.email: A fake email address.phone: A fake phone number.address: A fake street address.city: A fake city name.country: A fake country name.
The output format is:
[
{
"json": {
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"phone": "+1-202-555-0173",
"address": "1234 Elm St",
"city": "Springfield",
"country": "United States"
}
},
...
]
No binary data is produced by this node.
Dependencies
- The node depends on the external library Faker.js (
@faker-js/faker) to generate fake data. - No external API keys or credentials are required.
- No special n8n environment configuration is needed.
Troubleshooting
- Common issues:
- If the node fails to execute, ensure that the Faker.js dependency is properly installed and accessible.
- Providing a non-positive number for "Number of Records" may result in no output.
- Error messages:
- Errors related to missing Faker.js methods could indicate version mismatches or corrupted installations.
- Invalid parameter values will typically cause the node to throw validation errors before execution.