TypeConverter
Type Converter Plugin – Type Converter
Summary (SEO Meta Description):
The Type Converter plugin in WeHub converts input data types into desired output types.
Supports conversions between string, number, and boolean values for flexible workflows.
Overview
The Type Converter Plugin is used to change the data type of a workflow value.
It ensures compatibility across nodes and plugins where strict typing is required.
This is useful when integrating external systems that provide data in one format but require another for processing.
⚙️ Action: Type Converter
- Description: Converts an input value from one type to another.
- Use Case: Normalize data types across workflows (e.g., string → number, boolean → string).
Configuration Options:
| Field | Type | Description | 
|---|---|---|
| Label | String | Custom name for the node (e.g., "Convert Age to Number"). | 
| Name | String | Name of the parameter being converted. | 
| Input Type | Enum | Type of the input value. Options: STRING,NUMBER,BOOL. | 
| Output Type | Enum | Desired output type. Options: STRING,NUMBER,BOOL. | 
💡 Example Use Cases
- Healthcare: Convert patient ID from STRINGtoNUMBERfor database queries.
- Finance: Ensure numeric values from APIs are cast from string to number.
- Boolean Flags: Convert "true"/"false"string values into actualBOOL.
- Standardization: Enforce consistent typing across schemas and workflows.
FAQ
Q: What happens if conversion fails?
A: The node throws an error and workflow execution stops unless error handling is defined.
Q: Can I convert arrays or objects?
A: No, only STRING, NUMBER, and BOOL are supported.
Q: Can multiple conversions be defined in one node?
A: Yes, you can add multiple parameters with their own input/output type conversions.
Keywords: WeHub Type Converter Plugin, data type conversion, string to number, boolean to string, workflow typing