Flux
Toutes les sources

Freek Van der Herten

175 articles Flux RSS
Programmation Web
★ Exceptions that explain themselves

★ Exceptions that explain themselves

There There, the helpdesk we're building at Spatie, is a project of learned habits. Twenty-some years of writing Laravel apps has taught us which patterns pay off and which ones quietly rot. One that keeps earning its keep is a custom exception class for every domain error. This is a small pattern, but it's one of those things that makes a codebase nicer to live in. There There is in private beta right now, and you can apply for early access at there-there.app. Exceptions that explain…

Freek Van der Herten
★ Streaming AI replies from Laravel to React

★ Streaming AI replies from Laravel to React

A couple of posts back I walked through the agent and tools we built on top of the Laravel AI SDK for There There, the helpdesk we're putting together at Spatie. I ended that post on a small cliffhanger. We hand the agent off to a streaming service that turns the SDK's response stream into events the frontend can consume. That's this post. A quick reminder on our angle. After two decades of running our own customer support, we wanted a helpdesk where AI makes support agents faster, not one that…

Freek Van der Herten
★ More Jev in There There: smart conditions and AI assignment

★ More Jev in There There: smart conditions and AI assignment

Recently I wrote about how we use Jev in There There to detect spam, bounces, and automatic replies. Jev reads an incoming email and answers questions we define up front. We keep the probabilities and decide in our own code what counts as a match. The cheap checks on mail headers still run first. That post ended with a promise that we'd find more uses for Jev. Here are two we have since added to There There: smart conditions for workflows, and automatic assignment to a team or person.…

Freek Van der Herten
★ Detecting spam and auto-replies with Jev and the Laravel AI SDK

★ Detecting spam and auto-replies with Jev and the Laravel AI SDK

Yesterday Taylor announced that Jev support landed in the 1.x branch of the Laravel AI SDK. We started using it that same day for spam detection in There There. Let's take a look at what Jev is and how you can use it. How Jev is different from an LLM Jev is made by TypeSafe. An LLM generates text: you ask it something, it writes an answer, and if you want structured data back you have to ask for it and hope. Jev doesn't generate anything. You give it some state and a question, and it gives you…

Freek Van der Herten