Reference

QueryNode

Entry point for user queries in the chatbot workflow. This node receives user input and passes it through to the next nodes in the workflow.

Overview

The QueryNode is a required entry point node that serves as the starting point for all workflows. It accepts user queries and makes them available to other nodes in the workflow.

Note: Every workflow must include at least one QueryNode. This is the only way to receive user input in a workflow.

Inputs

QueryNode has no inputs. It generates output from its parameter.

Outputs

query

Type: string

The processed query ready for the next node. This is typically connected to LanguageModelNode, KnowledgeBaseRetrievalNode, or other processing nodes.

Parameters

query *

Type: string | Required: Yes

The user's input query or message. This is the text that will be processed by the workflow.

Default: "Hi there!"

Example Usage

Here's a basic workflow using QueryNode:

javascript
// Workflow structure:
QueryNode (query: "Hello, how are you?")
  ↓ [query output]
LanguageModelNode (service: "openai", model: "gpt-3.5-turbo")
  ↓ [response output]
ResponseNode
  → Final response: "Hello! I'm doing well, thank you for asking..."

Tools Used

QueryNode does not use any tools. It simply passes through the query parameter as output.

Styling

QueryNode has a distinctive pill-shaped design with a cyan border to indicate it's a start point:

  • Shape: Pill (rounded ends)
  • Border Color: Cyan (#06b6d4)
  • Background: Dark (#1f1f1f)
  • Subtitle: "START POINT"
Was this page helpful?