Actions108
- AI Actions
- Transcribe
- Detect Brand
- Extract Contact Information
- Mood Detection
- Detect Adult Content
- Enitity Detection
- Language Detection
- Too Long To Read
- Check Content Policy
- Detect Faces
- Generate Python Code
- Picture Text Recognition
- Detect Color
- Generate Image
- PDF OCR
- Translation
- Detect Email Type
- Generate Javascript Code
- Picture Object Recognition
- Business Actions
- Calculate Actions
- Code Actions
- Convert Actions
- Crypto Actions
- Date & Time Actions
- Generate Actions
- Image Actions
- Operator Actions
- PDF Actions
- Storage Actions
- Text Actions
- User Actions
Overview
This node provides a utility to generate random strings based on user-defined criteria. It is useful in scenarios where you need to create random identifiers, passwords, tokens, or any string data with specific character sets and lengths. For example, you can generate a numeric-only string of length 10 for a verification code, or a complex alphanumeric string including special characters for secure password generation.
Properties
| Name | Meaning |
|---|---|
| Code Variables | Allows defining custom variables by selecting variable names/IDs from a list and assigning values. Useful when generating strings dynamically using predefined code variables. |
| Length | Defines the number of characters the generated string should have. |
| Type | Specifies the character set to use in the generated string. Options include: |
| - Only Numbers | |
| - Capital Letters + Lowercase Letters | |
| - Lowercase Letters | |
| - Capital Letters | |
| - Numbers + Lowercase Letters | |
| - Numbers + Capital Letters | |
| - Numbers + Capital Letters + Lowercase Letters + Special Characters |
Output
The output is a JSON array where each item contains the generated string according to the specified parameters. The exact structure depends on the implementation of the underlying API but typically includes at least one field holding the generated string value.
No binary data output is indicated for this operation.
Dependencies
- Requires an API key credential for authentication with the external "0CodeKit" service.
- The node makes HTTP POST requests to the endpoint corresponding to
generate/stringon the external service. - No additional environment variables are explicitly required beyond the API key credential.
Troubleshooting
- Common issues:
- Invalid or missing API key credential will cause authentication failures.
- Specifying an invalid length (e.g., zero or negative) may result in errors or empty outputs.
- Selecting an unsupported type option or malformed input could cause request failures.
- Error messages:
- Authentication errors indicate problems with the provided API key; verify and re-enter credentials.
- Validation errors related to input parameters suggest checking the "Length" and "Type" fields for correctness.
- Network or timeout errors imply connectivity issues with the external API service.
Links and References
- n8n Expressions Documentation — for using expressions in variable definitions.
- External service documentation (not included in source) would provide details on the "generate/string" API endpoint.