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
| 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, these variables become available for use in subsequent actions:
| Variable | Type | Description |
|---|---|---|
String | string | The 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