With the Input node, you will be able to:

  • Send text messages to any node that accepts text strings as input
  • Let your users send messages to those same nodes

The most popular nodes accepting inputs are:

  1. The LLM nodes (adding the input as part of their prompt).
  2. The Knowledge Base nodes (they use the input as a prompt to retrieve information from their contents)

Here are a few quick facts:

  • The inputs can be text fields of any length and are passed to their connected node in the flow.

  • While inputs can have any length, you should be mindful that LLM prompts have a limit on how long of an input they can process. To handle long inputs, look at the Text Data Loader.

  • To expose an Input node to your users, you will need to set it up in the Interface builder.

How to expose your Inputs externally?

When creating a chatbot, it’s essential to make one of your Input nodes accessible externally, allowing users to enter text. To do this, navigate to the “Interface” Builder and select “Chat Assistant”. Then, choose the relevant Input node. Remember, for a chatbot, only one Input node can be selected at a time. However, other Input nodes can be utilized to relay pre-defined texts to various nodes within your workflow.

When constructing a form or a custom internal tool, you may need to expose one or more of your Input nodes. Use the same methodology described above, but navigate to the “Form” section instead. Unlike before, there’s no restriction on the number of input nodes you can expose.