StringConst

Overview¶
The StringConst Block takes a predefined string as configuration and outputs it. This Block is useful for setting up constant string values that can be referenced across workflows when a static text input is needed.
Description¶
Takes a string as config and outputs it.
Metadata¶
- Category: Misc
 
Configuration Options¶
| Name | Data Type | Description | Default Value | 
|---|---|---|---|
| output | str | 
Inputs¶
No inputs available.
Outputs¶
| Name | Data Type | Description | 
|---|---|---|
| output | str | 
State Variables¶
No state variables available.
Example(s)¶
Example 1: Output a predefined string¶
- Create a 
StringConstBlock. - Set the 
outputconfiguration to"Hello, World!". - The Block will output the string 
"Hello, World!". 
Example 2: Use as a constant text in a workflow¶
- Set up a 
StringConstBlock withoutputset to"Config Value". - Use this Block's output in downstream Blocks to provide a consistent string reference.
 
Error Handling¶
- If the 
outputconfiguration is not set to a string, the Block will raise aTypeError. - This Block expects a valid string to be provided in the configuration.
 
FAQ¶
Can the string value change during execution?
No, the StringConst Block outputs a static string based on its configuration. It is intended for constant values that do not vary during the workflow.
What happens if output is not configured?
If output is not set, the Block will raise a configuration error. The output configuration is required and must be a string.
Can I use special characters in the string?
Yes, you can use any characters in the string, including special characters, and the Block will output it as configured.