Actions114
- AI Actions
- AI Advanced OCR
- Check Content Policy
- Detect Adult Content
- Detect Brand
- Detect Color
- Detect Email Type
- Detect Faces
- Enitity Detection
- Extract Contact Information
- Extract Customizable Information From Text
- Fuzzy Text Matcher
- Generate Image
- Generate Javascript Code
- Generate Python Code
- Language Detection
- Mood Detection
- PDF OCR
- Picture Object Recognition
- Picture Text Recognition
- Redact Sensitive Information From PDF
- Too Long To Read
- Transcribe
- Translation
- 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
Generate → String
AI-generatedOverview
This node operation generates a random string based on user-defined parameters such as length and character type. It is useful for creating random passwords, tokens, or any string data that requires specific character sets and lengths.
Use Case Examples
- Generating a 10-character string with only numbers for a verification code.
- Creating a 15-character string with capital and lowercase letters for a password.
- Producing a 20-character string including numbers, letters, and special characters for a secure token.
Properties
| Name | Meaning |
|---|---|
| Code Variables | Allows the user to add custom code variables that can be used within the string generation logic. Users can select variable names defined in the code editor and assign values to them. |
| Length | Defines how many characters the generated string should have. |
| Type | Specifies the character set to include in the generated string, such as only numbers, letters, or a combination including special characters. |
Output
JSON
generatedString- The generated string based on the specified length and character type.
Dependencies
- An API key credential for the CodeKit API is required to authenticate requests.
Troubleshooting
- If the node fails to generate a string, ensure that the API key credential is correctly configured and valid.
- Check that the length parameter is a positive integer; invalid lengths may cause errors.
- Ensure the type parameter is set to one of the supported options to avoid unexpected results.
Links
- 0CodeKit Node Documentation - Official documentation for the 0CodeKit node in n8n, providing detailed usage and examples.