Flows are a versatile tool that allows you to connect many variations of components. That’s why you need a way to tell the bot you’re done creating, and it’s time for it to craft an answer based on the connected components.
What is the Chat Output
The Chat Output component is how you tell the chatbot to start crafting an answer based on the connected components. One flow can have several outputs coming together in a single reply. For example, one output generates a text answer from AI, while a second one adds relevant links from your knowledge base.
Always being at the end of the chain, it doesn’t connect to anything, but any component that outputs text can connect to it. To see the options, just hover over the connector handle.
How to use multiple outputs
Each flow can only contain a single Chat Input component but may contain various outputs. These are useful for creating complex answers consisting of several elements. Let’s look at an example of a flow with several outputs.
Imagine the user wants to know what an IVR is. Let’s say you want your bot to answer the question in a lighthearted, conversational way and then link further reading from your website.
To achieve this, you will want to create two separate outputs:
- The first output connects the Generator component to create a text answer with ChatGPT’s help.
- The second output retrieves knowledge from your knowledge sources and displays it in a visual, interactive way thanks to the URL Widget:
The final answer will combine these two types of outputs:
Separated outputs provide greater flexibility and control over the chatbot. By adding other outputs, you can continue making the answers more complex. For example, you can make the related sources more elaborate by adding Google Search to the mix, or you can introduce follow-up questions to prompt the user to ask more questions.
Frequently Asked Questions
What is the Chat Output component?
The Chat Output component tells the bot to create an answer based on connected components. It marks the end of the flow or a specific part of it. There may be several outputs, adding complexity to the final answer.
Can I build a chatbot with only the Chat Input and Output components?
It’s possible, but the bot would be useless. Since the user input would be the only component it could work with, it would simply mirror the input. Other components, such as the desired LLM model or knowledge sources, must be added for the bot to function correctly.
What happens if I forget to use Chat Output?
If output is missing, the bot doesn’t know where to end. If you forget to include it, the app will remind you that at least one output must be present.