Text Input
Text Input gives the flow a starting text: an instruction, a piece of data or a paragraph the rest of the components will use. Unlike Chat Input, there is no conversation: you type the text, run the flow and that’s it.
In the playground, a flow with a Text Input and no chat shows a box to type that text and the Run Flow button. See Test the flow in the playground.
When to use it
- Giving a flow the text of a contract or an email so it summarises it.
- Telling a flow the topic it should write a post about.
- Setting a value used in several components, such as a customer name or an order reference.
- Testing parts of a flow with a sample text.
Configuration
| Field | What it does |
|---|---|
| Text | The text that enters the flow. You can type it in the component, in the playground, or receive it from another connected component. |
Output
Text returns the text as a message. Connect it to an agent, a Prompt or any component that works with text.
Example
A law firm wants quick summaries of its contracts:
- Add Text Input and connect its Text output to an agent with the instruction “Summarise this contract in five points”.
- Connect the agent’s answer to a Text Output.
- In the playground, paste the contract in the box and click Run Flow: the summary appears in the result.
Related components
- Text Output: shows a text as a result in the playground.
- Chat Input: for flows that hold a conversation.