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
| Field | Description | Default |
|---|---|---|
| Length | The length of the random string (1-40 characters). | 12 |
| Include numbers | Include numeric digits (0-9). | Enabled |
| Include lowercase letters | Include lowercase letters (a-z). | Enabled |
| Include uppercase letters | Include uppercase letters (A-Z). | Enabled |
| Include basic symbols | Include basic symbols (!@#$%^&*-_=+?). | Disabled |
| Include advanced symbols | Include advanced symbols (`~(){}[]|/.,<>"'). | Disabled |
Exclusions & Custom Characters
| Field | Description | Default |
|---|---|---|
| Exclude ambiguous characters | Exclude visually similar characters (iIlLoO0) to improve readability. | Enabled |
| Use each character only once | Ensure 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 include | Extra characters to add to the character pool. | None |
| Characters to exclude | Characters to remove from the character pool. | None |
Returned Variables
When you configure Store the results in Variable, later actions can use:
| Variable | Type | Description |
|---|---|---|
String | string | The 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.