Skip to main content

Generate a Random String

The Generate a Random String action generates a random 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 unique token, temporary password, or random identifier
  • You want a configurable mix of character types (letters, numbers, symbols)
  • You need a value that is unique 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

  • 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