Build an AI Chatbot with Phoenix LiveView
Build an AI chatbot with Phoenix LiveView: persisted conversations, LiveView streams, context window budgeting, and tool calling with real authorisation.
By Liam Killingback
We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
The blog
Tips, tricks & guides on building with Phoenix and Elixir.
Build an AI chatbot with Phoenix LiveView: persisted conversations, LiveView streams, context window budgeting, and tool calling with real authorisation.
By Liam Killingback
Stripe metered billing in Elixir: create Billing Meters, report usage idempotently from Oban, scale with the meter event stream, and reconcile the totals.
By Liam Killingback
Build an MCP server in Elixir from scratch: JSON-RPC, tools, stdio transport, and Claude Desktop. A practical Model Context Protocol guide for Phoenix devs.
By Liam Killingback
A complete guide to usage-based billing in Elixir and Phoenix: metering events on the ETS hot path, reporting usage to Stripe, and enforcing plan quotas.
By Liam Killingback
A complete guide to Elixir PDF AI extraction: pull text from a PDF, send it to a model with a strict JSON schema, handle scans with vision, and validate.
By Liam Killingback
Build real-time Phoenix usage metering with ETS: count API calls on an in-memory hot path, enforce plan quotas, and flush to Postgres for billing.
By Liam Killingback
Build a pgvector Elixir RAG pipeline on Postgres: embed content with the OpenAI API and Req, query nearest chunks with Ecto, answer in LiveView.
By Liam Killingback
Aurora Meter brings usage-based billing, real-time metering, and plan entitlements to Phoenix and Elixir — count, gate, and bill on the BEAM, from a free MIT core.
By Liam Killingback
Learn how to stream OpenAI responses in Phoenix LiveView token-by-token — using Req, async tasks, and clean error handling. Real Elixir code, no JS framework.
By Liam Killingback
Whether you want to explore structured data, test AI database integrations, or learn how to build secure AI-powered apps with Phoenix, MCP Chat Buddy is your new go-to starting point.
By Liam Killingback
Phoenix 1.8 has officially launched, bringing a host of enhancements that streamline development, bolster security, and improve user experience. Here's a breakdown of the key features and updates
By Liam Killingback
With the introduction of Phoenix Native, developers can extend their LiveView apps seamlessly to mobile platforms, bringing a whole new level of flexibility and power to the Elixir ecosystem.
By Liam Killingback
Do you need a seamless way to interact with PDFs in real-time? Meet pdfai, our latest website template on phxtemplates, designed for developers who want a robust PDF analysis solution built with Phoenix, LiveView, and OpenAI.
By Liam Killingback