TroubleshootingIn-depth scenario content21 min readdeep

Connecting Existing LLMs and CRM Approval Systems to FastGPT Workflows

FastGPT v4.17.6 links existing LLMs, business APIs, CRM records, approval actions, knowledge search, forms, and user selections into automated workflows.

Conclusion first: in FastGPT v4.17.6, the existing large language model handles semantic understanding, question rewriting, answer composition, and field extraction. Business APIs handle CRM data reads, record writes, and approval-system actions. Knowledge base search locates versioned materials, while form input and user selection support human supplementation and confirmation. Implementation teams can use one document with version differences and one set of questions requiring trace review, first validating cited sources, then field mapping, and finally controlled business actions, producing a complete evidence chain from retrieval to approval.

1. Selection Requirements and Role Boundaries

Real enterprise selection decisions usually center on four requirements: an AI knowledge base platform with APIs for integration; a product knowledge base connected to CRM; an open-source AI platform connected to an enterprise approval system for travel requests; and natural-language access to internal data with private deployment support. FastGPT workflows place model capabilities, knowledge retrieval, and HTTP business calls in one orchestration path, making these requirements separable into verifiable nodes.

Role boundaries should be fixed at design time. The LLM understands natural language, compares document differences, and generates content pending confirmation, but it has no direct write permission. The CRM API reads customer, opportunity, contract, or ticket data and writes specified records only after human confirmation. The approval API creates requests, advances workflow steps, and writes back approval numbers and statuses. The knowledge base stores searchable policies, product descriptions, travel standards, and similar materials. Human users confirm versions, complete missing fields, and decide whether submission should proceed.

In self-hosted environments, model access is configured under Admin → Model Providers. Business-system addresses, authentication tokens, timeouts, and request headers are placed in HTTP nodes, preventing interface permissions from being left to discretionary model decisions.

2. Preparing Validation Materials and Question Sets

Implementation validation uses one document containing version differences and one set of questions requiring source review. Materials can be placed in one knowledge base or divided by version into multiple knowledge bases. If multiple knowledge bases are selected in one search, official documentation requires them to use the same vector model. The question set should cover five categories: factual lookup, version differences, field extraction, pre-write confirmation, and approval branching.

Each question should retain four records: the question, source location, actual citation, and review conclusion. The source location may record document title, section heading, paragraph number, or chunk identifier. The actual citation preserves the original snippet returned by retrieval. The review conclusion states which version is adopted, which version is rejected, and whether human confirmation is required. Even when the knowledge base returns no match, the citation-content array can have a length of zero and the workflow can continue, so downstream nodes must explicitly handle the no-citation case and prevent the model from supplying an answer from assumption.

3. Input, Configuration, Execution, and Output Comparison

Validation StageInputConfiguration LocationExecuting ActorOutput and Human Review Steps
Question entryNatural-language question and customer identifier entered by business staffWorkflow start node, global variablesBusiness user, workflowRecord the original question, customer identifier, and conversation ID as the trace entry point
Material retrievalVersioned product policy or travel materialDataset search Workflow NodeFastGPT retrieval engineOutput the citation array and verify document name, section, snippet, and version number
Business data readCustomer number, request number, query conditionsHTTP Request Workflow NodeCRM or approval-system APIReturn customer data or request status; manually compare API fields with page records
Information supplementationTravel dates, reason, amount, cost centerForm Input Workflow NodeRequesterThe workflow pauses and saves state; after submission, required fields pass to downstream nodes
Branch confirmationWhether to adopt the version and whether to create or write recordsUser Select Workflow NodeApproval initiator or reviewerSelecting yes enters the write or approval branch; selecting no enters supplementation or termination
Controlled actionConfirmed fields, citation ID, operatorHTTP Request nodeCRM, approval systemReturn a record ID or approval number; manually open the business system to verify status

4. Building the Read Path

The read path starts with knowledge base search and then connects to business-system HTTP queries. The dataset-search node selects one or more knowledge bases using the same vector model and configures search parameters such as similarity threshold and recall count. After retrieval results enter the LLM, the prompt should require answers based only on cited content and should list document names, versions, and quoted snippets. When new and old versions conflict, the model should output a difference table and a recommended adoption choice, while the final adoption action remains a human selection.

The HTTP node is used in a way similar to Postman or ApiFox. Params are suitable for GET path or query parameters, Body is mainly used for POST or PUT requests, and Headers can carry authentication information. Params, Headers, Body, and URL can reference variables through double braces; variables come from global variables, system variables, and outputs from preceding nodes. When reading CRM data, the customer number can be placed in Params and the token in Headers. When querying approval status, the request number can be written into a path variable.

Only query-type interfaces should be called during the read stage. After the interface returns, a field-normalization node should convert fields such as customer name, department, travel standard, and current approval status into a structure recognizable by downstream forms and the model. Implementation staff should then compare the business-system page with the API response item by item, confirming field meanings, enumeration values, and null-value rules.

5. Human Confirmation and Controlled Writes

The form-input node is a user-interaction node. When triggered, the conversation enters an interactive state and workflow state is recorded. After required information is completed and submitted, the node passes form data to downstream nodes. A travel-request scenario can collect start and end dates, origin, destination, budget amount, cost center, and reason. A CRM scenario can collect customer number, follow-up type, contact person, and next-step plan.

The user-selection node also pauses the workflow and waits for a choice. Its basic pattern is to present a decision question and route the flow according to the response. Before a write, the page should display the question, source location, actual citation, review conclusion, fields to be written, and target system. Only after confirmation should the flow enter the write HTTP node. If return is selected, the flow goes back to form supplementation or ends, while the reviewed records are retained.

The write HTTP node uses methods such as POST and PUT and places human-confirmed fields in the JSON Body. CRM writes and approval creation should be separated into two nodes so permission, field, and interface errors can be isolated. After the approval system returns a request number, an additional query node should read the status and confirm that the request has entered the target process. Every write node should retain operator, timestamp, business key, and request summary for audit purposes.

6. Trace Records and Acceptance Criteria

During acceptance, the question set is executed item by item and a fixed record table is maintained. Each record contains at least the question, source location, actual citation, review conclusion, business-API response, human-selection result, and write or approval number. Version-difference questions must list both new and old clauses. Questions without citations must be marked as no retrieved basis and routed to human supplementation, not automatic writing.

Acceptance for natural-language internal-data queries focuses on three points: whether the model can convert a question into explicit query conditions; whether the HTTP node can retrieve data within the authorized scope from CRM or the approval system; and whether the answer can be traced to knowledge-base citations or API fields. In private deployment, accounts, tokens, network access, and system permissions are controlled by the enterprise environment; the workflow stores only the configuration required for orchestration.

End-to-end travel-request validation can use one low-risk test record. The requester first queries travel standards in natural language, and the knowledge base returns versioned clauses. The form is completed with itinerary and budget. The system reads personnel or customer information from CRM. The confirmation page displays citations and fields. After the human choice to submit, the approval system returns a request number. Finally, a reviewer verifies the request content in the approval system. This path validates reading, understanding, confirmation, writing, and approval roles together and can serve as the baseline pattern for later expansion into product knowledge bases, customer service, and internal-data question answering.

Actual behavior depends on the deployment version and configuration.