Part 1: A Model for Developing and Executing AI-Supported Processes

Why is a carefully worked-out collection of prompts not enough to deploy AI in productive processes?

How Do You Get from Prototype to a Reliable Product?

Many AI projects do not fail at the first prototype, which often emerges surprisingly quickly: a prompt, a model call, a few sample documents, perhaps a well-chosen set of tools deliver a result that is convincing in the demo session. The problem begins afterwards.

As soon as the prototype is to become a productive process, the framing of the question changes. It is not enough for a result to sound plausible. It must be clear which steps were carried out in what order, which data were used, where the language model was allowed to decide and where classical logic took the lead, which tools were available, what happens in case of errors, and how a result can later be verified.

With a toolkit of prompts, tools, and scripts, this cannot be implemented reliably. It remains dependent on conventions: the developers have to remember which tools a prompt may use, trace in the code how intermediate results and error handling are passed on, and put together retries and aborts themselves. As the process progresses, a tangle arises that is only with difficulty read, reviewed, and changed. Whereas in the prototype it is enough that something works, in the product it must be visible why it works, and what happens when it does not.

Abstract, Big data network and AI technology, Deep learning and algorithm, Innovative and Data science, Businessman touch a data flow on global network and Fast connection. The world is in your hands.

The Wrong Responsibility for the Language Model

The growing disillusionment with AI has a simple reason: AI projects fail less due to model problems than due to the architecture, which places too much responsibility on the LLM. A Large Language Model is strong when it comes to understanding language, recognizing meanings, formulating variants, classifying fuzzy information, or forming a plausible pattern from several hints. But it has weaknesses when it is supposed to support the stable sequence of an industrial process. Sequencing, scheduling, error handling, state management, and traceability are not tasks that one should leave to a language model.

A language model is fast, pattern-recognizing, and flexible, but it lacks a checking, structuring instance. This control layer has to come from outside: through architecture, deterministic logic, and clear boundaries. This is precisely what the MADWYN principle of Make AI Do What YOU Need means: it is not the model that determines what is to be done; humans specify need, task, and boundaries, and the AI is committed to these. AI only becomes industry-capable through this separation of cognitive and algorithmic parts – the model takes over the interpreting and formulating, the architecture the reliable frame. The language model is not to carry the process, but to take effect where its strength lies, embedded in a sequence that remains stable, transparent, and verifiable. This is derived in detail in the PROSTEP whitepaper “The MADWYN Principle – Make AI do what YOU need”.

A Model for the Development and Execution of the Process

An industrial AI process therefore needs a model that encompasses both the development of the process and its execution. One must be able to describe the process before it runs, be able to review it before it is delivered, and execute it at runtime in such a way that its boundaries are observed and its steps remain observable. At PROSTEP, this model is the AI Pattern Language (APL). APL keeps the process flow algorithmic and embeds AI as a cognitive step precisely where language, meaning, or judgment are needed.

APL is not merely a notation for prompts but a formal language for describing AI-supported processes. For execution, APL provides a program library that loads the formal definition of the AI process and works through it step by step.

Because the runtime environment is provided as a library, rather than being an external service such as a commercial agent platform that runs somewhere in the network, it can become an integral component of any application. In this way, AI can be seamlessly integrated into the business logic of a software product, with full version control, test support, and review capability. In this way, from a loose script alongside the actual system, a genuine product feature emerges.

How does this differ from widespread approaches? With libraries such as LangChain, prompts can be chained into a sequence very quickly. But this sequence exists only in the program code, even where it is structured as a graph: there is no independent, up-front reviewable procedure document, and what the AI may do sits in code conventions rather than in a clear, visible specification. Other tools automatically optimize prompts until they perform well in tests. That is practical where success can be measured, but the resulting prompt is hardly comprehensible afterwards. And classical workflow tools do steer processes reliably, but they are not made for AI at all. APL deliberately positions itself in between: with a readable, up-front reviewable procedure in which the AI decides only at clearly delineated points, and that is available as a document of its own, not hidden in the code. This combination of a procedure that you read and release in advance, and a runtime that sits inside the product itself rather than as a service alongside it, is not known to us in any other tool.

APL Processes Are Maintainable for Humans and Agents

The value of such a model lies in the fact that it not only ensures that a process runs today. It also ensures that it can be changed tomorrow, without losing control over the process.

In productive AI applications, the boundary between algorithmic and cognitive parts shifts constantly: one step becomes deterministically solvable, another suddenly needs AI, a model change alters the prompt behavior, a new use case demands other tools. If the process consists only of code, prompts, and conventions, such changes are risky. If, however, it is determined – as in APL – by a clear, declarative abstraction layer and the execution rules of the runtime environment, changes can be carried out in a targeted manner and with lower risk of side effects. The procedure remains readable, the transition between algorithmic and cognitive visible, and the boundaries of the AI a part of the description.

Because APL enforces the separation of process logic, cognitive and deterministic steps, tools, and runtime behavior, not only can humans understand the AI process better. The separation and the declarative character also make APL easy to handle for coding agents: an agent can add new steps, swap prompts, or adjust tool boundaries without rewriting the whole application and without having to read the details of the execution logic. In this way, not only the execution but also the further development of the process becomes controllable.

As Much AI as Necessary and as Little as Possible

An AI process becomes industry-capable not through as much AI as possible, but through fulfilling four properties:

  • Transparent: it can be seen which steps were carried out.
  • Controllable: one determines which tools and decisions are available to the AI.
  • Verifiable: results can be traced back to intermediate steps and sources.
  • Scalable: the approach carries not only for a demo case, but for many processes, products, and variants.

A loose collection of prompts can achieve this in isolated spots. A model of language and runtime turns it into architecture.

The next article makes this core principle concrete — and answers the question that immediately arises with it: how do you even recognize which spot in the process the AI should take over, and which is better handled by classical logic?