Skip to main content

Generate a Random String

The Generate a Random String action generates a string of random characters that is safe to use for passwords and access keys. 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, later actions can use:

VariableTypeDescription
StringstringThe generated random string

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

Notes​

  • For security-sensitive values, such as a form access key, use at least 12 characters and several character sets. Random strings are not guaranteed to be unique.
  • History records the generated string. Anyone who can view the automation's history can see it.
  • The action builds its character pool from the enabled sets, then removes Exclude ambiguous characters and Characters to exclude, and adds Additional characters to include.