AI Dictionary › Fondamenti AI
A webhook is a mechanism by which one web service automatically notifies another when an event occurs, by sending an HTTP call to a predefined URL. It reverses the logic of traditional APIs: instead of repeatedly asking whether anything new happened (polling), the system receives the news the moment it occurs. It is the don't call us, we'll call you principle applied to the web.
A webhook is a mechanism by which one web service automatically notifies another when an event occurs, by sending an HTTP call to a predefined URL. It reverses the logic of traditional APIs: instead of repeatedly asking whether anything new happened (polling), the system receives the news the moment it occurs. It is the don't call us, we'll call you principle applied to the web.
Whoever wants to be notified registers a URL with the source service. When the event happens, a completed payment, an uploaded file, a finished build, the service sends an HTTP POST request to that URL with the event data as JSON. The receiver verifies a signature to authenticate the sender and processes the payload. On failure, the sender retries delivery at increasing intervals.
In AI, webhooks connect models to the real world: a platform signals that a fine-tuning job has finished, an agent receives the result of a long generation task, an automation tool like Zapier or n8n triggers a chain of AI actions upon receiving an event. Outside AI they power payment notifications (Stripe), chat integrations (Slack) and development pipelines (GitHub).
The term was coined by programmer Jeff Lindsay in 2007, who proposed web hooks in a blog post as an evolution of the hook concept, the extension points through which programs let others extend their behavior. The idea spread through the 2010s until it became the de facto standard for integrations between cloud services.
Un webhook è un meccanismo con cui un servizio web notifica automaticamente un altro servizio quando accade un evento, inviando una chiamata HTTP a un URL predefinito. Rovescia la logica delle API tradizionali: invece di chiedere continuamente se ci sono novità (polling), il sistema riceve la notizia nel momento esatto in cui si verifica. È il principio non chiamarci, ti chiameremo noi applicato al web.
Chi vuole essere avvisato registra un URL presso il servizio sorgente. Quando l'evento accade, un pagamento completato, un file caricato, una build terminata, il servizio invia una richiesta HTTP POST a quell'URL con i dati dell'evento in formato JSON. Il ricevente verifica la firma per autenticare il mittente ed elabora il contenuto. In caso di errore, il mittente ritenta la consegna con intervalli crescenti.
Nell'AI i webhook collegano i modelli al mondo reale: una piattaforma notifica il completamento di un fine-tuning, un agente riceve l'esito di un job di generazione lungo, un sistema di automazione come Zapier o n8n scatena una catena di azioni AI alla ricezione di un evento. Fuori dall'AI alimentano notifiche di pagamento (Stripe), integrazioni di chat (Slack) e pipeline di sviluppo (GitHub).
Il termine fu coniato dal programmatore Jeff Lindsay nel 2007, che in un post sul suo blog propose i web hooks come evoluzione del concetto di hook (gancio), i punti di aggancio con cui i programmi permettono di estendere il proprio comportamento. L'idea si diffuse negli anni 2010 fino a diventare lo standard di fatto per le integrazioni tra servizi cloud.
From our network
AGORÀ Intelligence — Enterprise AI Governance Platform
Govern AI at scale: policies, adoption and measurable results on your data. Built for boards and C-suite.
Visit agora-intelligence.com →From the Agora Intelligence blog
📱 Download the Android app (beta) iOS coming soon
Say what you mean. Get what you need.
Grace Certified — the AI coach that trains and certifies your prompt engineering — by Agora Intelligence.