Using AI to help write software and building software that uses AI are two different things. Our AIDA lessons on LLM API integration made that distinction much clearer to me.
As a developer, I am used to thinking about APIs in terms of requests, responses, status codes, and predictable data contracts. A normal endpoint might return a list of records or an error that I can handle. With an LLM endpoint, I still have those ordinary integration concerns - but the content of a successful response can be uncertain.
A valid response is not necessarily a correct one
Suppose an application asks an LLM to classify a user’s message and return a category. The request succeeds with HTTP 200. The response is even valid JSON. That tells us the integration worked at a technical level, not that the category makes sense.
Structured output helps because my backend can work with a defined shape rather than attempting to interpret arbitrary paragraphs. Still, I would validate the output, handle missing or unexpected values, and decide what should happen when the model cannot give a reliable result.
This connects directly to things I already know from backend development: input validation, DTOs, clear contracts, logging, error handling, and testing. AI does not make those fundamentals less important. If anything, it makes them more important.
Design the workflow, not just the prompt
The tempting demo is to put a prompt in a controller method, call an API, and send the answer to the frontend. A production-ready design needs more thought.
What if the model times out? What if the provider rate-limits the application? What if someone sends a huge input? Should we retry? How much does each request cost? And which user information is allowed to leave our system?
I would prefer to put the LLM call behind a service layer, keep credentials out of the codebase, set sensible timeouts, and validate the returned content before using it in business logic. I would also want predictable fallback behaviour if the external service is unavailable.
Where I see the value
I can imagine useful LLM features in many applications: summarising documents, turning unstructured text into a draft, or helping someone find information in a large knowledge base. But I would be cautious about letting a model make irreversible decisions on behalf of users.
In our Christmas Market system, for example, an AI-generated draft of explanatory text could potentially be helpful. Deciding whether to approve an application or change an organiser’s settings should remain an explicit, controlled workflow - not simply an instruction hidden in a prompt.
That is a design reflection, not a claim that we implemented an LLM-backed feature in our market project.
My takeaway: Integrating an LLM is still software engineering. The clever part is the model; the reliable part has to come from the surrounding application.