~/blog/ai-in-real-web-projects.md
Bringing AI to real web projects: lessons from building a SaaS
Image generation, text-to-speech, speech-to-text and chatbots: what I learned shipping artificial intelligence in production web products.
During my time as a full stack web developer I worked on products where artificial intelligence was not a gimmick but the product itself: platforms like Morfeo with image generation, text-to-speech, speech-to-text and article writing, plus chatbots for social media. Here is what I took away.
The API is the easy part
Calling an AI model takes ten lines of code. The hard part is everything around it:
- Queues and waiting times. Generating an image or an audio clip takes seconds; users can’t stare at a frozen screen. Processing in the background and notifying the result completely changes the experience.
- Costs. Every request costs money. Per-plan limits, result caching and validating input before calling the model are a must in a subscription SaaS.
- Errors. Providers fail, change their limits or return unexpected responses. Retries and clear error messages are part of the product.
UX before “magic”
People don’t want to “use AI”, they want to get something done: a voice-over for their video, an image for their website, an article for their blog. Our best decisions were interface decisions: templates, example prompts and results you can download in one click.
Security and data
Coming from the world of VPS servers and MySQL helped me remember the basics: never expose API keys on the front-end, sanitise everything that comes in and be clear about which user data is sent to third parties.
Wrapping up
Bringing AI into a website is not about chasing the hype; it is about applying the same good old practices (architecture, security, UX) to a powerful new building block. And now that I work in enterprise environments with Appian, it is increasingly clear to me that processes + AI is where things get interesting.