Type Converter

Estimated reading: 2 minutes

The Type Converter component acts as a fundamental bridge in your workflow, ensuring compatibility between components by transforming data from one format into another.

Supported Formats

The Type Converter supports the following data formats:

a. Message: Structured format for passing information between components. 
b. Data: Generic structured or tabular data. 
c.
DataFrame: Table-like data structure with rows and columns (e.g., spreadsheet data).
d. Text: Plain string-based data.
e. JSON: Structured data represented as key-value pairs.

Parameters

Parameter Description
Input The data received from the previous component that will be converted to the selected output type.
Output Type Specifies the target format for the output. Supported formats include Message, Data, DataFrame, Text, and JSON.
Schema (Optional) Defines the expected data structure and data types. When provided, the converter validates both the input and output against the schema. If the data does not conform to the schema, an error is generated. If omitted, no schema validation is performed.

Output

Output Description
Output Returns the converted data in the format specified by the selected Output Type (Message, Data, DataFrame, Text, or JSON).

How to Use the Type Converter

1. Add Component: Drag and drop the Type Converter onto your workflow canvas. 
2. Connect Input: Link the output of the source component to the Type Converter’s input.
3. Configure Output: Select the desired format from the Output Type dropdown.
4. Connect Output: Link the Type Converter’s output to the next component in your workflow.
5. Validate: Execute the workflow to confirm the data is correctly converted.

Example Scenario

Step 1: Use the Scrapy Web Scraper to fetch live content from a URL (outputs JSON).
Step 2: Connect the Type Converter to transform the JSON output into a readable Message (Text).
Step 3: Pass the converted Message to Robility LLM to generate a structured documentation draft.

Share this Doc

Type Converter

Or copy link

CONTENTS
Robility Chatbot
Robility Assistant
Online