<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Jonald Penpillo</title>
    <description>The latest articles on DEV Community by Jonald Penpillo (@jonaldpenpillo).</description>
    <link>https://dev.to/jonaldpenpillo</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4225285%2Faca1178a-0652-419a-86a6-e920ff2cb4ff.jpg</url>
      <title>DEV Community: Jonald Penpillo</title>
      <link>https://dev.to/jonaldpenpillo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jonaldpenpillo"/>
    <language>en</language>
    <item>
      <title>Brigada Clip Studio: turning one broadcast into a week of posts</title>
      <dc:creator>Jonald Penpillo</dc:creator>
      <pubDate>Thu, 26 Nov 2026 06:59:02 +0000</pubDate>
      <link>https://dev.to/jonaldpenpillo/brigada-clip-studio-turning-one-broadcast-into-a-week-of-posts-37nc</link>
      <guid>https://dev.to/jonaldpenpillo/brigada-clip-studio-turning-one-broadcast-into-a-week-of-posts-37nc</guid>
      <description>&lt;p&gt;Brigada Clip Studio is a desktop app for a small newsroom that wants every episode to produce social posts without an editing team. The editor drops the full broadcast video into the app. From there, the system transcribes the episode, finds the short reel moments and the longer YouTube segments, and drafts the headlines, captions and subtitles. The editor stays in charge of everything that goes out.&lt;/p&gt;

&lt;p&gt;The first step is finding the moments. Speech-to-text runs over the episode, and a self-hosted LLM picks 30 to 45 second reels and 3 to 8 minute YouTube segments, best hook first. The editor then reviews the suggestions. Nothing renders until an editor approves it, and clips involving minors or pending cases are flagged and never approved in bulk.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu19phsy7gllofej5c8cj.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu19phsy7gllofej5c8cj.webp" alt="Brigada Clip Studio screenshot" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The video never leaves the station PC. FFmpeg pulls the audio out locally, and only the audio goes to Brigada's own AI server. Approved clips render back on the station PC with their on-screen text. Each reel also gets a posting slot, so the week's output is scheduled rather than improvised.&lt;/p&gt;

&lt;p&gt;Before anything is posted, auto-prepare checks each clip and writes its subtitles, posting text and YouTube pack in the speakers' own language. An in-app assistant can open pages and run the app's own functions, and it asks before approving, rejecting or rendering. The app ships itself with Windows and macOS builds, automatic updates, required versions and rollback, in English, Bisaya and Tagalog.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4jt6ygbn3sfzcmfiaqct.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4jt6ygbn3sfzcmfiaqct.webp" alt="Brigada Clip Studio screenshot" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Jonald designed and built Brigada Clip Studio, with QA passes, UI fixes and CI/CD from the Brigada development team. The stack is Flutter and Dart on the desktop, Express 5 and Node.js on the server side, FFmpeg for local audio extraction, Whisper for speech-to-text, Qwen 27B as the self-hosted LLM, Supabase for data, and Docker for deployment. The purpose was to let a small newsroom publish reels and YouTube segments from every episode while a person remains in charge of what goes out.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Brigada Clip Studio is a system built by Jonald Penpillo, a software developer and AI engineer in the Philippines.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Read the case study: &lt;a href="https://www.penpillo-jonald.online/?view=project&amp;amp;p=clip-studio" rel="noopener noreferrer"&gt;Brigada Clip Studio&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://www.penpillo-jonald.online/?view=insight&amp;amp;slug=brigada-clip-studio-turning-one-broadcast-into-a-week-of-posts" rel="noopener noreferrer"&gt;penpillo-jonald.online&lt;/a&gt;. Written with AI from the project's case study notes and published automatically.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>flutter</category>
      <category>video</category>
      <category>llm</category>
      <category>ffmpeg</category>
    </item>
    <item>
      <title>How Brigadahub and Range AI take a guest from question to paid booking</title>
      <dc:creator>Jonald Penpillo</dc:creator>
      <pubDate>Thu, 26 Nov 2026 06:16:18 +0000</pubDate>
      <link>https://dev.to/jonaldpenpillo/how-brigadahub-and-range-ai-take-a-guest-from-question-to-paid-booking-245l</link>
      <guid>https://dev.to/jonaldpenpillo/how-brigadahub-and-range-ai-take-a-guest-from-question-to-paid-booking-245l</guid>
      <description>&lt;p&gt;Brigadahub is the public booking and payments platform for Brigada Hub in General Santos City, a venue with a 30-bay golf driving range, pickleball court rental and open play, and a kids playground. Guests use it to reserve and pay for range bays, courts and play sessions in a few taps, while staff manage everything from one live admin panel. Range AI is the assistant behind the website chat and Facebook Messenger, answering guests in English, Tagalog, Taglish or Bisaya and able to carry a conversation from a first question to a completed payment.&lt;/p&gt;

&lt;p&gt;A guest starts by asking a question in chat, often about prices, availability or how open play works. Range AI classifies the message with word and character TF-IDF features into a calibrated LinearSVC covering about 94 intents, so it can tell a pricing question from a booking request or a waiver question. When the intent is a booking, the assistant moves the guest into the flow rather than just replying with text.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqxd01iovyd7dgw6yz45i.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqxd01iovyd7dgw6yz45i.webp" alt="Brigadahub + Range LLM screenshot" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Inside the chat, Range AI presents live slot chips for available bays and courts, then walks the guest through the waiver, a quote and payment without leaving the conversation. The same booking path is available on the Brigadahub site as a five-step checkout with live bay and court availability and PayMongo checkout. For open play, the platform runs a live queue, digital waivers and QR check-in so guests and staff work from the same state.&lt;/p&gt;

&lt;p&gt;The assistant never invents a price. Management-approved replies are reworded by Gemini Flash only behind a fact guard that blocks any changed price, link or amount, so the model can make an answer sound natural without altering the facts. When the system cannot resolve a request, it hands off to staff and sends email alerts. Accuracy on real guest messages was raised from 55% to 71%, which reflects the gap between clean test phrases and how guests actually type.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqybud2t0cgtvrk54ckws.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqybud2t0cgtvrk54ckws.webp" alt="Brigadahub + Range LLM screenshot" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Behind the interface, the stack is React 19 and TypeScript on the front end, Express 5 and Supabase for the API and data, PayMongo for payments, and Python with FastAPI and scikit-learn for the intent classifier. Gemini is reached through OpenRouter, and Messenger is integrated through the Messenger API so the same assistant answers on Facebook at any hour. Staff use a role-based admin panel to run the venue, manage the open-play queue and handle check-ins.&lt;/p&gt;

&lt;p&gt;The system was built to solve three connected problems: let guests book and pay in a few taps, keep staff on one live admin panel instead of scattered tools, and answer the same questions on Messenger at any hour without ever inventing a price. Range AI and Brigadahub are two views of the same booking state, which is why a guest can ask a question in chat and end up with a paid reservation that staff can see immediately.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Brigadahub + Range LLM is a system built by Jonald Penpillo, a software developer and AI engineer in the Philippines.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Read the case study: &lt;a href="https://www.penpillo-jonald.online/?view=project&amp;amp;p=golf-range" rel="noopener noreferrer"&gt;Brigadahub + Range LLM&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://www.penpillo-jonald.online/?view=insight&amp;amp;slug=how-brigadahub-and-range-ai-take-a-guest-from-question-to-paid-booking" rel="noopener noreferrer"&gt;penpillo-jonald.online&lt;/a&gt;. Written with AI from the project's case study notes and published automatically.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>react</category>
      <category>fastapi</category>
      <category>scikitlearn</category>
      <category>payments</category>
    </item>
    <item>
      <title>How Brigada LLM routes internal questions to the right agent</title>
      <dc:creator>Jonald Penpillo</dc:creator>
      <pubDate>Thu, 26 Nov 2026 06:04:34 +0000</pubDate>
      <link>https://dev.to/jonaldpenpillo/how-brigada-llm-routes-internal-questions-to-the-right-agent-31i4</link>
      <guid>https://dev.to/jonaldpenpillo/how-brigada-llm-routes-internal-questions-to-the-right-agent-31i4</guid>
      <description>&lt;p&gt;Brigada LLM is an internal chat for Brigada's AI agents. Staff ask a question in one place, and a router reads it and sends it to the right specialist: the Policy Agent for company-policy questions with citations, or the Quality Rubrics Agent for explanations of assessment results. The system was built to give staff one trustworthy place to ask about policies and quality assessments, with answers that cite their source, respect what each person is allowed to see, refuse what is out of scope, and get reviewed and corrected over time.&lt;/p&gt;

&lt;p&gt;The router is the first step. It uses bge-m3 embeddings to shortlist which agent should handle the question, then Qwen3.8 27B judges close calls and splits two-part questions. When a question covers two topics, it is split and asked to both agents in parallel, and every answer comes back labelled with the agent that wrote it. Jonald built the router and the Policy Agent; the Quality Rubrics Agent was co-built with Jed Tan, who wrote its retrieval core, while Jonald built its interface and answer cards.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq2xjrp32mwkm992cu24t.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fq2xjrp32mwkm992cu24t.webp" alt="Brigada LLM screenshot" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For policy questions, the Policy Agent runs permission-aware hybrid retrieval over the policy library, combining vector and full-text search fused with RRF, and returns answers with citations. It replies in English, Tagalog, Taglish, Cebuano or Bislish, matching the employee's language. Prompt-injection screening, rate limits and polite refusals for off-topic requests keep the system safe by design.&lt;/p&gt;

&lt;p&gt;Everything runs on self-hosted models on the company's own AI server, so policy text never leaves the company's servers. Approved and corrected answers are exported as training data, closing a human review loop that lets the system improve over time. The stack is Python, FastAPI, Qwen3.8 27B, bge-m3, pgvector, Supabase and SSE.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2fcub679hvgg0q3nuvdu.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2fcub679hvgg0q3nuvdu.webp" alt="Brigada LLM screenshot" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The system is measured, not guessed: it was evaluated on 90 policy questions and 76 routing cases. That test set covers both the routing decision and the cited policy answers, giving the team a concrete baseline for the review loop.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Brigada LLM is a system built by Jonald Penpillo, a software developer and AI engineer in the Philippines.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Read the case study: &lt;a href="https://www.penpillo-jonald.online/?view=project&amp;amp;p=brigada-ai" rel="noopener noreferrer"&gt;Brigada LLM&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://www.penpillo-jonald.online/?view=insight&amp;amp;slug=how-brigada-llm-routes-internal-questions-to-the-right-agent" rel="noopener noreferrer"&gt;penpillo-jonald.online&lt;/a&gt;. Written with AI from the project's case study notes and published automatically.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>rag</category>
      <category>routing</category>
      <category>llm</category>
      <category>fastapi</category>
    </item>
    <item>
      <title>How Brigada Clip Studio turns one broadcast into a week of posts</title>
      <dc:creator>Jonald Penpillo</dc:creator>
      <pubDate>Thu, 26 Nov 2026 06:00:36 +0000</pubDate>
      <link>https://dev.to/jonaldpenpillo/how-brigada-clip-studio-turns-one-broadcast-into-a-week-of-posts-2kl0</link>
      <guid>https://dev.to/jonaldpenpillo/how-brigada-clip-studio-turns-one-broadcast-into-a-week-of-posts-2kl0</guid>
      <description>&lt;p&gt;A small newsroom can produce a full broadcast episode every day but rarely has the editing team to cut it into social posts. Brigada Clip Studio was built to close that gap: an editor drops the episode video into a desktop app, and the system turns it into a week of reels and YouTube segments without taking the final decision away from a person. The goal is volume without losing editorial control — every clip that goes out has been approved by an editor first.&lt;/p&gt;

&lt;p&gt;The workflow starts with speech-to-text on the episode. A self-hosted LLM then reads the transcript and picks the moments: 30 to 45 second reels and 3 to 8 minute YouTube segments, ordered with the best hook first. For each pick it drafts the headlines, captions and subtitles, and an auto-prepare step checks the clip and writes its posting text and YouTube pack in the speakers' own language. The editor reviews the list and approves each clip individually; nothing renders until that approval happens, and clips involving minors or pending cases are flagged so they are never approved in bulk.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu19phsy7gllofej5c8cj.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu19phsy7gllofej5c8cj.webp" alt="Brigada Clip Studio screenshot" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The privacy constraint shaped the architecture. FFmpeg pulls the audio out locally on the station PC, and only that audio is uploaded to Brigada's own AI server. The video itself never leaves the machine. Once an editor approves a set of clips, the station PC renders them with their on-screen text, and each reel is assigned a posting slot so the week's output is scheduled rather than dumped all at once.&lt;/p&gt;

&lt;p&gt;An in-app assistant sits over the whole flow. It is a chat that can open pages and run the app's own functions, and it asks before approving, rejecting or rendering anything, keeping the editor in the loop even when the work is driven from the assistant. The desktop app ships as Windows and macOS builds with automatic updates, required versions and rollback, and the interface is available in English, Bisaya and Tagalog.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4jt6ygbn3sfzcmfiaqct.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4jt6ygbn3sfzcmfiaqct.webp" alt="Brigada Clip Studio screenshot" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The stack is Flutter and Dart for the desktop app, Express 5 and Node.js on the server side, FFmpeg for local audio extraction and rendering, Whisper for transcription, Qwen 27B as the self-hosted model, Supabase for data and Docker for deployment. Jonald designed and built the system, with QA passes, UI fixes and CI/CD from the Brigada development team.&lt;/p&gt;

&lt;p&gt;The result is a tool that lets a newsroom publish from every episode without hiring an editing team, while a person stays in charge of everything that goes out. The system does the transcription, selection, drafting and rendering; the editor does the deciding.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Brigada Clip Studio is a system built by Jonald Penpillo, a software developer and AI engineer in the Philippines.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Read the case study: &lt;a href="https://www.penpillo-jonald.online/?view=project&amp;amp;p=clip-studio" rel="noopener noreferrer"&gt;Brigada Clip Studio&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://www.penpillo-jonald.online/?view=insight&amp;amp;slug=how-brigada-clip-studio-turns-one-broadcast-into-a-week-of-posts" rel="noopener noreferrer"&gt;penpillo-jonald.online&lt;/a&gt;. Written with AI from the project's case study notes and published automatically.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>flutter</category>
      <category>ffmpeg</category>
      <category>whisper</category>
      <category>llm</category>
    </item>
    <item>
      <title>Why our Messenger booking bot doesn't use an LLM to decide what to say (and went from 55% to 71% on real guest messages)</title>
      <dc:creator>Jonald Penpillo</dc:creator>
      <pubDate>Wed, 04 Nov 2026 03:18:06 +0000</pubDate>
      <link>https://dev.to/jonaldpenpillo/why-our-messenger-booking-bot-doesnt-use-an-llm-to-decide-what-to-say-and-went-from-55-to-71-on-47ak</link>
      <guid>https://dev.to/jonaldpenpillo/why-our-messenger-booking-bot-doesnt-use-an-llm-to-decide-what-to-say-and-went-from-55-to-71-on-47ak</guid>
      <description>&lt;p&gt;&lt;em&gt;By Jonald Penpillo, AI developer and software engineer in General Santos City, Philippines.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Most guests of a sports venue in the Philippines don't open a booking page. They open Facebook Messenger and type something like:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;magkano ang driving range&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That's Tagalog for "how much is the driving range?". The next guest writes in English, the one after in Bisaya, and plenty write in Taglish, switching languages mid-sentence. They expect an instant answer, at any hour, and an exact price.&lt;/p&gt;

&lt;p&gt;This is the story of &lt;strong&gt;Range AI&lt;/strong&gt;, the assistant I built for &lt;strong&gt;Brigadahub&lt;/strong&gt;, the booking and payments platform of Brigada Hub in General Santos City: a 30-bay golf driving range, pickleball courts with open play, and a kids playground. Range AI answers guests on the website chat and on Facebook Messenger, and it can take a guest from a first question all the way to a &lt;strong&gt;paid booking inside the chat&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;On real guest messages, its accuracy went from &lt;strong&gt;55% to 71%&lt;/strong&gt;. Here's how it's built, and why the most important design decision was &lt;em&gt;not&lt;/em&gt; letting a language model decide what to say.&lt;/p&gt;

&lt;h2&gt;
  
  
  The one rule: never invent a price
&lt;/h2&gt;

&lt;p&gt;A venue chatbot that hallucinates is worse than no chatbot. If it quotes ₱200 when the rate is ₱250, the front desk has an argument and management loses trust in the whole system. A generic "LLM with a system prompt" is fluent, but fluency is exactly the problem: it will confidently produce a plausible wrong number.&lt;/p&gt;

&lt;p&gt;So the system is split into two jobs:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Deciding what the answer is.&lt;/strong&gt; This is a classification problem.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Saying it naturally.&lt;/strong&gt; This is where a language model helps.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Only the second job uses an LLM, and only behind a guard.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: classify the intent
&lt;/h2&gt;

&lt;p&gt;Every incoming message goes through an &lt;strong&gt;intent classifier&lt;/strong&gt;: word-level and character-level &lt;strong&gt;TF-IDF&lt;/strong&gt; features feeding a &lt;strong&gt;calibrated LinearSVC&lt;/strong&gt; (scikit-learn), covering &lt;strong&gt;about 94 intents&lt;/strong&gt;, from driving-range rates and club rental to pickleball court rental vs. open play, opening hours and the playground.&lt;/p&gt;

&lt;p&gt;Why a classic model instead of an LLM?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Character n-grams handle Filipino chat.&lt;/strong&gt; Guests misspell, abbreviate and mix languages. Character-level features catch "mgkano", "magkano" and "how much" landing on the same intent far more robustly than word features alone.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Calibration gives an honest confidence score.&lt;/strong&gt; A calibrated classifier's probability means something, so "I'm sure this is a pricing question" and "I'm guessing" look different in the numbers instead of being the same raw score.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It's fast, cheap and testable.&lt;/strong&gt; Every prediction can be checked against a labelled set of real messages, so a change either improves the score or it doesn't ship.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 2: answer from approved replies only
&lt;/h2&gt;

&lt;p&gt;Each intent maps to a &lt;strong&gt;management-approved reply&lt;/strong&gt;: the venue's own wording, with the real rates and links. For the driving-range question above, the reply is fixed text with the public rates (₱250 for 1.5 hours with unlimited balls, club rental ₱150, extension ₱150 per hour) and a follow-up question about the date and time of the visit.&lt;/p&gt;

&lt;p&gt;The bot never writes a price. It retrieves one that management already signed off.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: let the LLM reword, behind a fact guard
&lt;/h2&gt;

&lt;p&gt;Fixed replies can sound robotic, especially when the guest wrote in Bisaya and the reply bank is in English. So the approved reply is passed to &lt;strong&gt;Gemini Flash (via OpenRouter)&lt;/strong&gt; to reword it naturally and match the guest's language: English, Tagalog, Taglish or Bisaya.&lt;/p&gt;

&lt;p&gt;Then a &lt;strong&gt;fact guard&lt;/strong&gt; checks the reworded text against the approved original and blocks any rewrite that changed a &lt;strong&gt;price, an amount or a link&lt;/strong&gt;. The LLM improves the tone; it never gets the final say on facts.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: book and pay inside the chat
&lt;/h2&gt;

&lt;p&gt;Answering questions is half the job. When a guest wants to book, Range AI turns the conversation into a booking flow: it asks whether it's a court rental or open play, offers &lt;strong&gt;live slot chips&lt;/strong&gt; from real availability, shows the &lt;strong&gt;waiver&lt;/strong&gt; and a &lt;strong&gt;quote&lt;/strong&gt;, and ends with a &lt;strong&gt;pay-now&lt;/strong&gt; button that completes the booking through &lt;strong&gt;PayMongo&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;On the website, the same platform runs a five-step booking flow with live bay and court availability and PayMongo checkout, so guests can book whichever way they prefer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: know when to hand off
&lt;/h2&gt;

&lt;p&gt;When the bot shouldn't handle a conversation, Range AI &lt;strong&gt;hands it to staff&lt;/strong&gt; and sends an &lt;strong&gt;email alert&lt;/strong&gt;. A fast "let me get a teammate" beats a confident wrong answer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Measuring on real messages: 55% → 71%
&lt;/h2&gt;

&lt;p&gt;Accuracy was measured on &lt;strong&gt;real guest messages&lt;/strong&gt; from an anonymized chat dataset, not on examples we wrote ourselves. That distinction matters: test phrases you write yourself are clean and predictable, while real guests misspell, abbreviate and switch languages mid-sentence.&lt;/p&gt;

&lt;p&gt;The first version scored &lt;strong&gt;55%&lt;/strong&gt; on those real messages. Iterating on the classifier and its training data against that same real-world set brought it to &lt;strong&gt;71%&lt;/strong&gt;. Every change was judged by one question: does the score on real guest messages go up?&lt;/p&gt;

&lt;p&gt;71% is not 100%, and that's fine, because the system is designed around the classifier sometimes being wrong. Staff handoff catches what the bot shouldn't answer, and the fact guard means a reworded reply can never come out with a changed price.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd tell anyone building a business chatbot
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Separate deciding from wording.&lt;/strong&gt; Use the LLM where fluency matters and something deterministic where correctness matters.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Measure on real user messages.&lt;/strong&gt; Your own test phrases are always easier than what customers actually type.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Calibrate your classifier.&lt;/strong&gt; A confidence score is only useful if it's honest; calibration is what makes it mean something.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Guard the facts.&lt;/strong&gt; Prices, amounts and links should be checked mechanically, never trusted to a model.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Finish the job.&lt;/strong&gt; The win isn't answering "how much?". It's ending the conversation with a confirmed, paid booking.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Stack:&lt;/strong&gt; React 19, TypeScript, Express 5, Supabase, PayMongo, Python, FastAPI, scikit-learn, Gemini via OpenRouter, Messenger API.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I'm Jonald Penpillo, an AI developer and software engineer in the Philippines. I build AI assistants and chatbots (RAG, LLM agents, Messenger bots) and the booking, payment and business systems they run in. If you need a developer to build yours, see &lt;a href="https://www.penpillo-jonald.online/hire-a-developer/" rel="noopener noreferrer"&gt;penpillo-jonald.online&lt;/a&gt; or the full &lt;a href="https://www.penpillo-jonald.online/?view=project&amp;amp;p=golf-range" rel="noopener noreferrer"&gt;Range AI case study&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>chatbot</category>
      <category>machinelearning</category>
      <category>python</category>
    </item>
  </channel>
</rss>
