Workflow Orchestration for In-Terminal Natural Language Retrieval (Function Entry)

Data for this function entry originates from end-user natural language retrieval trigger requests. The update rhythm follows real-time generation of a

What the data for this category looks like

Data for this function entry originates from end-user natural language retrieval trigger requests. The update rhythm follows real-time generation of a single data entry upon trigger. The document structure includes standardized fields:

  • The query_text field stores user input retrieval text, measured in characters.
  • The terminal_sn field stores the unique terminal device identifier, using a string type.
  • The trigger_timestamp field records the millisecond-level timestamp of the trigger moment.
  • The user_session_id field associates end-user session information.

No batch aggregation is performed. A single data entry corresponds to exactly one single retrieval trigger action.

What constraints these characteristics impose on workflow orchestration

The real-time update rhythm requires workflow nodes to support millisecond-level response, to prevent delays that impact end-user experience. A single data entry corresponds to one single retrieval action, so batch processing logic must not be configured during workflow orchestration. Workflows must be adapted for independent execution of single requests. Standardized field requirements mandate that workflow input parameters strictly match preset field names such as query_text and terminal_sn. Failure to do so prevents correct reception of data passed from the terminal. The presence of the user_session_id field requires adding a permission verification step in the workflow. This ensures retrieval requests originate from legitimate terminal sessions and prevents unauthorized access to knowledge base content.

How to set configurations

Configuration ItemRecommended ValueRationale
workflow_timeout30 secondsMatches the response latency requirements of in-terminal natural language retrieval, avoiding interruption of user interaction due to timeout
retrieve_top_k3-5 entriesAdapts to information accuracy demands in financial scenarios, reducing redundant information that interferes with user decision-making
variable_reference_scopeCurrent workflow only + global variablesMeets variable permission isolation requirements in financial scenarios, preventing cross-workflow data leakage
axios_request_timeout10 secondsCovers standard network latency for knowledge base recall, avoiding timeout failures during single retrieval
workflow_id_validationEnabledVerifies the format validity of input workflow IDs, blocking invalid invocation requests

The parameter values provided on this page are common recommended starting points for configuration. Actual values are affected by material form, data volume and business rules. Specific issues require individual analysis, and actual testing on local samples is recommended before finalizing settings.

Three Common Misconfigurations

  • No selectable values appear when selecting knowledge base variable references in the workflow. The cause is that the variable permission configuration of the current workflow is not enabled, or global variables are not included in the reference scope.
  • A 400 Bad Request error is returned when invoking the workflow. The cause is that the 24-bit hexadecimal format workflow ID was not correctly obtained, or the passed ID format does not match requirements.
  • An axioserror error is thrown during execution of the workflow's code node. The cause is that a correct axios request timeout time was not configured, or a network connectivity issue exists with the target knowledge base interface.

How to Confirm Configuration Completion

  • Verify the parameter configuration of the workflow input node, confirm that preset fields including query_text and terminal_sn are included, and that field names exactly match parameters passed by the terminal.
  • Trigger one in-terminal retrieval action, view workflow running logs, confirm that input parameters are correctly received with no missing values.
  • Verify the format of the workflow ID, confirm that it meets the requirement of 24-bit hexadecimal characters. The standard ID can be obtained through the platform's workflow management page.
  • Run the workflow test node, verify that the axios request response status code is normal, and confirm that network and interface connectivity meet requirements.

Question material comes from public community discussions. Configuration values are common starting points and should be measured against your own samples. Verified on 2026-09-14.