The Output Node collects and renders data passed to it from previous nodes. It offers users a comprehensive view of the output, which can include text, images, links, and tables. This node not only displays the output in a stylized format but also allows users to download it in multiple file types, making it versatile and useful for end users.
Key Features
- Final Display: The Output Node is the last step in a workflow, presenting the accumulated output data from other nodes.
- Data Downloads: Users can download the output in PDF, Word, TXT, and raw JSON formats, allowing flexible usage of the data.
- Data Parsing and Formatting: The Display Node can handle various data types (text, URLs, images, arrays, objects) and formats them accordingly for clear presentation.
Using the Display Node
- Drag the Output Node to the endpoint of your workflow in Node Code Studio.
- Connect it to the previous node to receive the data output.
- Once the workflow runs, the Display Node will render the output on-screen, either in a modal window or directly in the node interface.
- Click View Result to open the modal and see the final output.
- Use the download options to save the data in different formats as needed:
- PDF: Download a stylized PDF version of the output.
- Word: Download the data in a .docx file, ideal for reports and further editing.
- TXT: Download a plain text version of the data.
- Raw JSON: Download the unformatted, raw JSON data as a .txt file.
Example Endpoint
In a deployed scenario, the Output Node is also the endpoint for remote API calls. For example:
In this case, the Output Node is the final output of the workflow, displaying results and allowing file downloads when accessed remotely.
Benefits of Using the Display Node
- Centralized Output: Ensures that all workflow data is gathered and displayed in a single, accessible location.
- Enhanced Usability: Allows users to download data in various formats, enabling easy sharing, reporting, and further processing.
- Flexible Data Handling: Automatically formats content for a clear and professional display, supporting different data types like images, tables, links, and plain text.
The Output Node in Node Code Studio is a versatile and powerful tool that provides users with a clear, organized view of their workflow outputs, along with options for easy data export.