Actions40
- AI Actions
- Business Actions
- Calculate Actions
- Code Actions
- Convert Actions
- Crypto Actions
- Generate Actions
- Operator Actions
- PDF Actions
- Storage Actions
Generate → String
AI-generatedOverview
This node provides a utility to generate random strings based on user-defined criteria. It is particularly useful in scenarios where you need to create passwords, tokens, unique identifiers, or any other random string for automation workflows. For example, you might use it to generate temporary access codes, randomized filenames, or test data within your n8n automations.
Properties
| Name | Meaning |
|---|---|
| Length | Define how many chars your string should have. This sets the length of the generated string. |
| Type | Characters to include in your string. Options: - 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 will be a JSON object containing the generated string. The exact field name may vary depending on the API response, but typically you can expect a structure similar to:
[
{
"result": "a1B2c3D4e5"
}
]
result: The randomly generated string according to the specified length and type.
Dependencies
- External Service: Requires access to the CodeKit API.
- Credentials: You must configure the
codeKitApicredential in n8n for this node to function.
Troubleshooting
- Missing Credentials: If you see an error about missing credentials, ensure that the
codeKitApicredential is set up in your n8n instance. - Invalid Property Values: Providing invalid values (e.g., negative length) may result in errors from the API.
- API Errors: If the external service is unavailable or returns an error, the node will either throw an error or, if "Continue On Fail" is enabled, output an error message in the result.
Links and References
- n8n Documentation: Custom Nodes
- CodeKit API Documentation (if available; check with your provider for details)