Skip to main content

Generate a Random String

The Generate a Random String action uses cryptographically secure randomness to generate a string of characters. Configure which character sets to include and how long the result should be.

When to Use This Action​

Use this action when:

  • You need a random token, temporary password, or random identifier
  • You want a configurable mix of character types (letters, numbers, symbols)
  • You need a new random value for each workflow execution

Configuration​

Character Set​

FieldDescriptionDefault
LengthThe length of the random string (1-40 characters).12
Include numbersInclude numeric digits (0-9).Enabled
Include lowercase lettersInclude lowercase letters (a-z).Enabled
Include uppercase lettersInclude uppercase letters (A-Z).Enabled
Include basic symbolsInclude basic symbols (!@#$%^&*-_=+?).Disabled
Include advanced symbolsInclude advanced symbols (`~(){}[]|/.,<>"').Disabled

Exclusions & Custom Characters​

FieldDescriptionDefault
Exclude ambiguous charactersExclude visually similar characters (iIlLoO0) to improve readability.Enabled
Use each character only onceEnsure every character in the result is unique. May produce a shorter string if the eligible character pool is smaller than the requested length.Disabled
Additional characters to includeExtra characters to add to the character pool.None
Characters to excludeCharacters to remove from the character pool.None

Returned Variables​

When you configure Store the results in Variable, these variables become available for use in subsequent actions:

VariableTypeDescription
StringstringThe generated random string

Example usage: {{custom.myVariable.String}}

Notes​

  • Choose sufficient length and character variety for security-sensitive values. Randomness does not guarantee uniqueness.
  • The action records the generated string in execution history. Restrict history access when generating sensitive values.
  • The character pool is built from the enabled sets, then filtered by exclusions and custom settings
  • If the pool contains fewer characters than the requested length and "Use each character only once" is enabled, the result may be shorter than expected