Text Output
The Text Output component lets you show any text you want directly in the Nappai dashboard. It’s useful for displaying messages, summaries, or any information that comes from other parts of your workflow.
How it Works
When you drop this component into a workflow, you simply type or paste the text you want to display into the Text input field. The component then creates a Message
object containing that text and shows it in the dashboard. No external services are called – everything happens locally inside Nappai.
Inputs
- Text:
Enter the text you want to display. You can type it directly, paste it, or connect it to the output of another component that generates text.
Outputs
- Text:
The component outputs aMessage
object that holds the same text you entered. This output can be used by other components that expect a message, such as logging or notification components.
Usage Example
-
Show a greeting
Drag a Text Output component into your workflow.
In the Text field, type:Hello, welcome to Nappai!Run the workflow – the greeting appears in the dashboard.
-
Display a summary from an LLM
Connect the output of an LLM component to the Text input of this component.
The LLM’s response will automatically be shown in the dashboard.
Related Components
- Text Input – Lets users type text that can be fed into this component.
- Log Message – Records the text to a log file instead of displaying it.
- Notification – Sends the text as a pop‑up notification to the user.
Tips and Best Practices
- Keep the text concise; long blocks of text can clutter the dashboard.
- Use this component to confirm actions or show status updates to users.
- Combine it with a Text Input to create interactive prompts and responses.
Security Considerations
- The text is displayed locally; it does not leave the Nappai environment.
- If you display user‑generated content, consider sanitizing it to avoid script injection in the UI.