TroubleshootingIn-depth scenario content24 min readdeep

Cross-Department AI Agent Reuse: Verifying Source Versions and Answer Evidence

Learn how FastGPT workflows use forms, dataset search, HTTP records, and human review to verify source versions and answer evidence across departments.

Conclusion first: when an enterprise AI agent is reused across departments, source versions and answer evidence should be traceable in one workflow. FastGPT v4.17.6 builds applications through Flow node orchestration. Each node consists of inputs, outputs, and triggers, allowing form collection, knowledge base search, HTTP requests, and AI conversation to be connected in sequence. A technical team can place a common retrieval chain in a shared application, then distinguish departmental scope through form fields, knowledge base permissions, and external-system interfaces. For verification, prepare one document with version differences and a set of questions requiring source review. Record each question, source location, actual citation, and review conclusion to determine whether the answer comes from the correct version.

1. Selection Requirements and Foundation Components

When customers choose an AI knowledge base tool suitable for private deployment by a technical team, they usually focus on four requirements: controllable source code and deployment, with model providers connected centrally in the admin console; a knowledge base that can hold policies, product materials, after-sales records, and research documents; applications reusable by multiple departments while retaining their differences; and answers that can be checked against original text. In evaluations of popular RAG knowledge base platforms, open-source AI knowledge base recommendations should emphasize retrieval, orchestration, interfaces, and permissions. Recommendations for easy-to-deploy and easy-to-learn tools should also reduce configuration costs for ordinary departments.

Since V4.0, FastGPT has used Flow node orchestration to build AI applications. A node can be understood as one step; multiple nodes are joined to produce the final output gradually. System nodes provide user guidance and workflow entry, while functional nodes perform operations such as knowledge base search and AI conversation. Functional nodes have inputs and outputs and can be combined freely. Node inputs support manual entry and variable references. Variables can come from global variables and outputs of any preceding node, and outputs can be referenced by later nodes. This foundation is suitable for turning question intake, retrieval, generation, review, and write-back into an executable task.

2. Preparing Verification Documents and Questions

The verification scenario uses one document with version differences and a group of questions that require source review. The document may be two versions of the same policy, such as employee travel standards 2025 edition and 2026 edition, with differences in accommodation limits, approval levels, and reimbursement deadlines. It may also be two versions of a product manual, with differences in API fields, package benefits, and compatibility scope. Before upload, keep the version number, effective date, and applicable department in the file name, title, or body, preventing vector retrieval from matching similar passages without revealing the version.

The question set should cover three categories: factual questions for checking specific values, difference questions for comparing two versions, and boundary questions for confirming departmental applicability. Each question needs a predefined manual review action: first inspect the passage cited by the agent, then open the corresponding location in the original file, and finally mark the result as pass, correction required, or material required. If the dataset search output array has a length of 0, the chain still completes. The conclusion should then be recorded as no citation and material required, avoiding treatment of unrestricted model generation as document evidence.

3. From Real Input to an Executable Task

After creating a workflow on the application orchestration page, place a workflow start node to receive the user question. To collect department, requested document version, and review requirements accurately, add a Form Input Workflow Node. This user-interaction node places the conversation in an interactive state and records workflow state after triggering. After required information is submitted, the form data is passed to subsequent nodes. The form can contain four fields: department, document version, question category, and whether original-text review is required. Department and version constrain the retrieval context.

Next, connect a Dataset search Workflow Node. This node can select one or more knowledge bases using the same vector model and configure search parameters. Its output is an array of cited content, which may have a length of 0. For multi-department sharing, one application can contain multiple search nodes, each linked to an authorized department knowledge base, or the department field in the form can determine later branches. Common settings include recall quantity, similarity, and citation return method. Departmental differences appear in knowledge base scope, responsibility wording in prompts, and form fields.

After search results enter an AI conversation node, the prompt should require the model to list citations before giving a conclusion and to state explicitly when source versions conflict. If review records must be written to tickets, audit tables, or document systems, add an HTTP Request Workflow Node. Its Params, Headers, Body, and URL can reference variables through double braces. Variables come from global variables, system variables, and preceding node outputs, in a manner similar to Postman or ApiFox. System variables such as appId, chatId, variables, cTime, and histories help locate the conversation and submission time.

4. Executors, Output, and Manual Source Review

There are four executor roles. Administrators connect model providers under Admin and Model Providers and maintain the underlying service. Application owners orchestrate the workflow and configure forms and retrieval nodes. Department document administrators maintain knowledge bases, version labels, and permissions. Reviewers open original text based on citations and enter review conclusions. The agent executes retrieval and generation in node order, while the HTTP node pushes structured records to external systems. Version correctness still requires reviewer confirmation, especially when several documents use similar wording.

A fixed output structure is recommended: question, department, requested version, matched document, source location, actual citation, preliminary answer, and review conclusion. The source location can record file name, section number, page number, or paragraph title. The actual citation should copy the original passage returned by the search node. The review conclusion should use only three values—pass, correction required, or material required—with a reason. This supports cross-department reuse and lets auditors trace an answer back to input, configuration, executor, and original text.

Check ItemInput ExampleConfiguration LocationExecutorOutput and Manual Review
Original questionWhat is the accommodation standard in first-tier cities?User question in the workflow start nodeQuestionerSave the original question; reviewer checks whether it was rewritten
Department and versionSales Department; travel policy 2026 editionRequired fields in the form input nodeCompleted by questioner; configured by ownerOutput department and version; reviewer confirms applicability
Document retrievalTravel policy 2025 edition and 2026 editionKnowledge bases linked to the dataset search nodeConfigured by application owner; authorized by document administratorOutput citation array; reviewer opens matched documents
Source location2026 edition, Section 4.2, accommodation standardDocument title, section, or pageMaintained by document administratorCompare with actual citation and confirm the location exists
Actual citationFirst-tier city accommodation limit is 500 yuan per nightAI conversation node cites search resultsWorkflow executionReviewer compares wording verbatim and marks pass or correction
Review conclusionPass; old 2025 edition limit is no longer effectiveHTTP node writes back to audit tableSubmitted by reviewerCreate a record for later department reuse and sampling

5. Reuse Boundaries and Departmental Differences

The Workflow Core Mechanics and Scheduling Principles explain that nodes are connected through triggers, and connected nodes determine in sequence whether execution should proceed. Reuse boundaries should be defined around this chain. Common parts include workflow start, form structure, dataset search parameters, answer format, and write-back fields. Different parts include department knowledge bases, version allowlists, business wording in prompts, HTTP authentication, and target addresses. An application maintained by headquarters can be reused by subordinate departments, but each department can retrieve only authorized knowledge bases. If a department uses a different vector model, separate search nodes or independent knowledge-base groups should be used, because one dataset search node requires knowledge bases using the same vector model.

Version governance should follow three rules. First, keep the version number and effective date in both the file name and the first page of the body. Second, move retired versions to a separate archive knowledge base and make default search cover current versions only. Third, difference questions must return both old and new citations for reviewer confirmation. For answers shared across departments, adding fields such as applicable region, customer type, and contract status to the form reduces the risk of extending one department's interpretation to others.

6. Implementation Verification Checklist

Pre-launch verification can be performed in five steps. First, prepare two versions of a document on the same topic and at least five questions covering values, processes, differences, and no-answer scenarios. Second, use the form node to collect department, version, and review requirements, and check whether the task remains in the interactive state when required fields are missing. Third, run dataset search and inspect document names, sections, and passages in the citation array; when no result is found, confirm that the answer clearly states insufficient material. Fourth, have a reviewer complete question, source location, actual citation, and review conclusion for each item, and write the records to an external table through the HTTP node. Fifth, retest with another department account to confirm access is limited to authorized materials while the common workflow still runs.

After these checks, the technical team can use the task as a standard acceptance sample for a privately deployed RAG knowledge base. It addresses the controllability requirements in open-source AI knowledge base recommendations, the retrieval and orchestration requirements in popular RAG platform evaluations, and the form-based operation requirements in recommendations for easy-to-deploy tools. During ongoing operation, only document versions, department permissions, prompt wording, and review records need maintenance, allowing the cross-department agent to be reused within clear boundaries.

Actual behavior depends on the deployment version and configuration.