0-CodeKit icon

0-CodeKit

A toolbox of no-code utilities

Overview

The 0-CodeKit node, when configured with the Generate resource and the String operation, generates random strings based on user-defined criteria. This is useful for creating passwords, tokens, unique identifiers, or any scenario where a random string of specific length and character set is needed.

Practical examples:

  • Generating temporary passwords for new users.
  • Creating random API keys or tokens.
  • Producing test data for software development.

Properties

Name Meaning
Length Define how many chars your string should have. (Required)
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 is a JSON object containing the generated string. The exact field name may depend on the API response, but typically you can expect:

{
  "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 codeKitApi credential in n8n for this node to function.

Troubleshooting

Common issues:

  • Missing credentials: If the codeKitApi credential is not set up, the node will fail to execute.
  • Invalid property values: Supplying non-numeric values for Length or an unsupported option for Type may result in errors.
  • API errors: If the external service is unavailable or returns an error, the node will output an error message.

Error messages and resolutions:

  • "Missing required parameter": Ensure all required fields (Length and Type) are filled.
  • "Invalid credentials": Check that the codeKitApi credential is correctly configured in n8n.
  • "API request failed": Verify network connectivity and the status of the CodeKit API.

Links and References

Discussion