Multi-Turn Conversation and Prompts for Laboratory Hazardous Chemical Purchasing and Records: Manage Authorized Access and External Services

Lab Chemicals: review conversation for authorized access. Check source versions, input mappings and the values received by downstream nodes.

What this category's data looks like

Laboratory hazardous chemical procurement and ledger materials cover three categories: procurement applications, requisition registrations, and inventory ledgers. Procurement applications include product name, specifications, quantity, application date, and approval signature; requisition registrations include requisitioner, requisition date, purpose, and issuance signature; inventory ledgers include balance quantity, inbound date, storage location, and inventory count signature. Materials are updated by batch; after procurement arrives, the ledger is synchronized, and after requisition, the registration and balance are written back. When these three categories of materials enter the multi-turn dialogue and prompt feature, procurement applications serve as the basis for determining the authorized visible scope, requisition registrations serve as follow-up context, and inventory ledgers serve as the reference draft for quantity and date verification. The external service entry only exposes the field scope matching the identity; unauthorized content is not visible.

Configuration and implementation checks

This part is executed by the memory turn count and prompt configuration in the application settings, outputting the referenced historical message scope and answer constraints. The externally available entry and authorization scope are determined by the publishing service and file permissions; the model only processes filtered materials. The publishing service and file permissions are responsible for the entry and authentication; the memory turn count and prompt themselves do not generate access entries, nor do they perform identity or file authentication.

ObjectCheckVerification action
Procurement applicationApplication date and approval signature are complete; product name and quantity match the ledgerCheck the memory turn count value in the application settings, run a trial with two consecutive questions, and check whether the previous reference in messages is correctly carried forward
Requisition registrationRequisition date, purpose, and issuance signature are complete; quantity matches the ledger deductionAccess once with a restricted identity, and check whether the visible scope contains only authorized fields and unauthorized content is not visible
Inventory ledgerBalance quantity, inbound date, and inventory count signature are complete; version is synchronized with the procurement applicationCompare the usage records of two runs, and confirm that after adjusting the turn count, the context scope associated with variables and chatId is consistent

Three common errors

  • Symptom: The quantity for the same batch number does not match between the procurement application and the ledger. Cause: The requisition registration was not written back in time, and the version was not synchronized.
  • Symptom: The application date and arrival date are inconsistent between the two materials. Cause: The receipt is missing, and the signature field is empty.
  • Symptom: When a reference is used in the second question, the answer does not address the question. Cause: The memory turn count is too small, and the previous context scope is insufficient.

How to verify the setup

Acceptance for this feature: Ask two consecutive follow-up questions, see whether the second question carries forward the reference from the first question, and check whether the references of the three identifiers messages, chatId, and variables in the historical scope are consistent.

Business test: Access once with a restricted identity, and see whether the visible scope matches the setting.

  • Check the current value of the memory turn count in the application settings, and match it with the previous context scope required by the question.
  • Compare the usage records of two runs, and confirm that consumption changes accordingly after adjusting the turn count.