0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions114

Generate → String

AI-generated

Overview

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

  1. Generating a 10-character string with only numbers for a verification code.
  2. Creating a 15-character string with capital and lowercase letters for a password.
  3. 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

Discussion