Integrating GenAI in Software Applications

Integrating GenAI models into software systems (sometimes named AIIA – AI Infused Applications) may seem increasingly straightforward, especially with frameworks like LangChain. These frameworks abstract away much of the complexity and allow developers to connect quickly with APIs from OpenAI, Anthropic, or Google. However, ease of use should not be mistaken for production readiness.

Coding responsibly

Many teams begin by wiring up simple input-output flows using user prompts and model responses, but quickly encounter deeper challenges: reliability, safety, and maintainability.


One critical risk is the unfiltered use of user input in prompts. When this input is passed directly to a model, it opens the door to prompt injection and other forms of manipulation. While frameworks like LangChain offer tooling to help mitigate these risks, responsibility ultimately lies in the design of the system around the model, using, for example, input sanitization, standard or custom guardrails, human-expert-in-the-lead oversight, monitoring and alerting, and more.


There have been multiple instances where chatbots, when integrated into applications without adequate security measures, have generated responses that could potentially damage the reputation of the company. For example, one case involved a user successfully purchasing a car through a chatbot for only one dollar. In another instance, chatbots began promoting competitors or producing even more problematic content.


Another common misstep is allowing models to directly update databases or trigger internal processes. While technically possible, this should never be done without an intermediate validation layer, ideally a mix of programmatic rules and human expert review. Failing to implement such controls can result in serious vulnerabilities or unintended consequences.


As with prompt libraries, model integration code can age quickly. Updates to APIs, shifts in model behavior, or changes in provider capabilities often require code refactoring. Treating LLM integrations as lightweight experiments is fine during prototyping, but production deployments require careful abstraction, monitoring, and versioning strategies.

In short: while the tooling is improving fast, coding responsibly with GenAI models is still as much about good engineering discipline as it is about model performance. To guide responsible integration, we strongly encourage teams to apply our “When to use and NOT to use GenAI” decision model. This decision model helps ensure that the right expertise is involved, the right questions are asked (e.g., Does it matter if the output is correct?), and that GenAI is only applied where it truly adds value.

ISO 42001 Standard for AI Management Systems

The ISO 42001 is an internationally recognized standard that defines the requirements for establishing, implementing, maintaining, and continually improving an Artificial Intelligence Management System (AIMS). It provides organizations with a structured framework to govern the responsible use of AI, with a strong focus on risk management, compliance, and accountability across AI-enabled products and services. The standard offers clear implementation guidelines and a comprehensive set of controls that help organizations identify, assess, and mitigate AI-related risks, while ensuring transparency and traceability of AI decisions and outcomes.
In the context of quality engineering and testing, ISO 42001 is particularly relevant because it embeds AI quality assurance into organizational processes, enabling testers to validate not only functional behavior but also ethical, regulatory, and non functional aspects of AI systems. Certification against ISO 42001 strengthens trust among clients, partners, and regulators, and provides a demonstrable competitive advantage by showing that AI systems are developed and tested under controlled, auditable conditions. With increasingly strict regulations such as the EU AI Act, the ISO 42001 is critical to amplifying quality engineering, offering organizations a well-founded way to align innovation in AI with governance, compliance, and sustainable quality practices.