Combine Text
Combine Text puts two texts together. You set the first one, the second one and what goes between them (a space, a line break, a comma…), and the component returns the full text.
It’s handy when you have two pieces that come from different places and need to pass them together to the next step.
When to use it
- Add a fixed greeting in front of an answer generated by an agent.
- Join the subject and body of an email before classifying it.
- Combine a customer’s first and last name into a single field.
- Put a fixed instruction together with a user’s question before sending it to a model.
Configuration
| Field | What it does |
|---|---|
| First Text | The text that goes first. You can type it or connect it from another component. |
| Second Text | The text that comes next. |
| Delimiter | What goes between the two texts. The default is a space. |
Output
The Combined Text output returns a message with both texts joined by the delimiter. You can connect it to an agent, an output component or any component that takes text.
Example
A customer service flow generates an answer with an agent. Before emailing it, Combine Text puts “Hi, thanks for getting in touch.” in First Text, the agent’s answer in Second Text and a line break in Delimiter. The customer gets the greeting and the answer in a single message.