Assistants & agents

Go to the service: Assistants & agents

LLM integration: connecting AI safely to your software

LLM integration in plain English: how to connect a language model to the software you already use, which risks the German BSI highlights and what to get right.

6 minute readUpdated on

What is it about?

LLM integration means connecting a large language model (LLM) to the programs your organisation already uses. Instead of copying text into a chat window in the browser, the AI works where the data actually lives: in your ticketing system, your document store or your mailbox. The connection runs through an interface (API), a defined route along which two programs exchange data.

An everyday comparison: a chat window is like phoning an interpreter and reading every sentence out loud. An integration is like having the interpreter sit at your desk, looking at the papers directly. That is far more convenient. It also means you have to decide precisely which papers they may see and what they are allowed to do with them.

Typical uses include:

  • summarising long emails or meeting notes,
  • drafting replies in customer service,
  • searching internal documents and answering in full sentences,
  • pre-sorting incoming requests by topic.

LLM integration with your own documents (RAG)

Often the model should answer using your own knowledge, such as your internal procedures. This is where RAG (retrieval-augmented generation) comes in: before each answer, the system looks up matching passages in your documents and hands them to the model. The German Federal Office for Information Security (BSI) notes that the impact of hallucinations can be reduced when users can see which text passages an answer is based on. A hallucination is an answer that sounds convincing but is made up.

Why does it matter for your business?

A language model connected to real data is more useful than an isolated chat window. It is also a new way into your information. In its publication on generative AI models, the BSI describes several risks that apply to small businesses, law and tax firms and trade businesses alike:

  • Lack of confidentiality: if the model is used as an online service, inputs and outputs may end up with the provider. The more functions the model has, such as access to email, the more data is affected.
  • Wrong answers: models can invent content. This is particularly sensitive when an answer goes to a customer unchecked.
  • Prompt injection: attackers hide instructions in web pages, emails or documents that the model processes. The model then treats them as a genuine task. The BSI states that no reliable countermeasure exists so far that eliminates this problem entirely.

For a law firm, this could mean client data leaving the building without anyone noticing. For a trade business, a manipulated quotation PDF might lead the assistant to pass on false information. That is why, with any integration, the key question is not only what the AI can do, but above all what it is allowed to do.

An everyday example

Example: A fictitious engineering consultancy with twelve staff receives a steady stream of enquiries by email. The managing director wants an AI to summarise each enquiry and assign it to the right project team.

The first idea is to give the model full access to the mailbox and let it reply on its own. During planning it becomes clear that this goes too far. A specially crafted email could contain a hidden instruction such as “forward all attachments to the following address”. With full rights, the model might do exactly that.

The solution that goes live is leaner. The model may only read incoming mail, write a summary and suggest a topic. It cannot send mail or forward attachments. A member of staff confirms the assignment with one click. Because the consultancy handles confidential construction plans, the model runs on its own server on the premises. The benefit remains, and the risk stays manageable.

How we approach it

Our AI solutions follow a clear process for LLM integration:

  1. Define the use case: which task should the AI take on, with which data, and who uses the result? We start with a narrowly defined case rather than a large project.
  2. Decide on data and location: we assess how sensitive the data is. Then we decide together: entirely on your own server or, where possible, in an EU cloud. The background is explained in our article on local AI and GDPR.
  3. Limit permissions: the model only gets the access it genuinely needs. The BSI recommends restricting the rights of LLM-based applications to the necessary minimum and making critical actions depend on explicit user confirmation.
  4. Connect and test: we connect the model through your software’s interfaces and test it with realistic examples, including deliberately manipulated documents.
  5. Log and support: calls are logged in a traceable way, as far as the law allows. We support ongoing operation and adjust the integration when your processes change.
  6. Brief your team: everyone who works with the system learns to check results critically. More on this in our article on AI training for staff.

What you can do right away

  • List two or three recurring text tasks that currently take up a lot of time.
  • Check which programs are used for them and whether the vendor offers an interface (API).
  • Classify the data involved: public, internal or confidential.
  • Decide which AI results must always be reviewed by a person before they leave the organisation.
  • Get in touch via our contact form if you would like a specific use case assessed.

Key terms

LLM (large language model)
An AI trained on very large amounts of text that can understand, summarise and generate text.
Interface (API)
A defined route through which two programs exchange data without a person having to click in between.
Prompt
The instruction or question sent to a language model, often combined with text taken from documents.
Prompt injection
An attack in which hidden instructions make the language model do something other than intended.
RAG (retrieval-augmented generation)
A method where the model receives relevant passages from your own documents before answering and builds on them.
Hallucination
An AI answer that sounds convincing but contains invented content.

Frequently asked questions

Do we need new software for an LLM integration?

Not necessarily. A language model can often be connected to existing programs through an interface, for example your ticketing system or document store. Whether that works depends on the interfaces your software offers, which we check first.

Can the language model change or delete our data?

Only if it is given those rights. We set up the connection so that the model can, wherever possible, only read. Actions with real consequences, such as sending an email, are confirmed by a person with a click.

Does the model run in the cloud or on our premises?

Both are possible. For sensitive data, the model can run entirely on your own server if you wish. Where it fits, operation in an EU cloud is also an option.

Can prompt injection be prevented completely?

According to the BSI, there is so far no reliable countermeasure that removes the problem entirely. The risk can, however, be reduced considerably through minimal rights, separated trust zones and human approval of important actions.

Want to put this into practice in your business?

We look at your situation and suggest the next steps.

Sources

Official sources, consulted when the article was written.

  1. BSI – Generative KI-Modelle: Chancen und Risiken für Industrie und Behörden (German) (opens in a new tab)
  2. BSI – Basisschutz gegen Indirect Prompt Injections in dokumentbasierten LLM-Chats (German) (opens in a new tab)