Text Output
The Text Output component displays textual data that is received from previous steps in your workflow. It's a fundamental component for presenting text-based results and information to users.
Credit Cost
Free
Usage
The Text Output component has a single input handle that accepts text data from previous components. When text data flows into the component, it will be displayed in the interface or returned in the API response. If no data is received, the output will not appear in the UI or API response.
Variable Handling
The Text Output component will only accept a single variable of type 'text'. It will output the text value of the variable automatically, without any additional configuration.
Properties
Identifier
- Type: text
- Description: The identifier of the output component. See Input/Output Identifiers for more details.
API Response
When using the Text Output component through the API, the output will be included as a string in your response body.
Single Output Example
For a workflow with one Text Output component (identifier: "Output A"):
{
"output": {
"Output A": "Generated text result"
}
}
Multiple Outputs Example
For a workflow with multiple Text Output components:
{
"output": {
"Summary": "Brief summary of the analysis",
"Detailed Report": "Comprehensive analysis results",
"Conclusion": "Final remarks and recommendations"
}
}