Interface and session
Receives the message, language, channel, state and identity when applicable.
May retain state or history; it is not “model memory”.
INS-0013 · AI chatbot architecture
Generated text follows one path. Business actions follow a separate branch with explicit permissions and controls.
Illustrative question: “Can I return a product bought twenty days ago?”
Receives the message, language, channel, state and identity when applicable.
Applies policy, prompts, routing, format, fallback and component order.
Retrieves authorised documents or records and adds them to runtime context.
Produces text from the instructions, question and available context.
May explain the policy and state what is missing. It remains distinct from an executed action.
TextThe model may propose a call. The application decides whether and how to execute it.
Entire branch optionalM4TIC synthesis of common architecture patterns, not a universal standard.Optional means the layer may be absent.Runtime retrieval ≠ model training.Retrieval, citations and guardrails do not guarantee correctness.
The main path begins with the interface and session, continues through rules, instructions and orchestration, may include authorised retrieval and data access, and then reaches the model that generates a text response. Application-managed memory is optional and separate from the model. Runtime retrieval is not training.
Business actions use a separate optional branch. Before or after calling a tool or API, the application must apply authentication, authorisation, validation, confirmation, logging and, where necessary, human handoff. Every layer has a possible failure point; retrieval, citations and guardrails do not guarantee that an answer is correct.