Text Input
This component lets you type or paste text directly into the dashboard. The text you enter can then be passed to other components in your workflow, such as a language model or data processing step.
How it Works
When you enter text into the Text Input field, the component captures that string and wraps it in a simple Message
object. This object is then sent to any connected component that expects a text message. No external APIs are called by this component itself; it only handles the local input and packaging of the data.
Inputs
- Text: Text to be passed as input.
Outputs
- Text: A
Message
object containing the text you entered. This output can be used by downstream components that accept a text message, such as a prompt generator or a natural‑language processing step.
Usage Example
- Drag the Text Input component onto your workflow canvas.
- In the Text field, type or paste the sentence you want to use, e.g., “Explain how photosynthesis works.”
- Connect the Text output to a Prompt component that feeds the text into an AI model.
- Run the workflow to see the AI model generate a response based on your input.
Related Components
- Prompt – Uses the text from Text Input as a prompt for an AI model.
- Text Output – Displays the text message returned by Text Input or other components.
Tips and Best Practices
- Keep the input concise if you plan to use it as a prompt for a language model; long inputs can increase processing time.
- Use multiline input for longer passages or code snippets to preserve formatting.
- If you need to reuse the same text in multiple places, consider connecting the Text Input output to a Variable component for easier management.
Security Considerations
The Text Input component only stores the text locally within the Nappai workflow. It does not transmit data to external services on its own. However, any downstream component that sends the text to an external API (e.g., an AI model) will handle the data according to that component’s security settings. Ensure that any sensitive information is handled in compliance with your organization’s data‑privacy policies.