<?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: Samad Kiyani</title>
    <description>The latest articles on DEV Community by Samad Kiyani (@samadkiyani).</description>
    <link>https://dev.to/samadkiyani</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%2F4279321%2Ffd29194c-2450-42b4-83fe-4d61426a0dda.jpeg</url>
      <title>DEV Community: Samad Kiyani</title>
      <link>https://dev.to/samadkiyani</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/samadkiyani"/>
    <language>en</language>
    <item>
      <title>What Producing 500+ Course Videos &amp; Commercial Edits With AI Workflows Actually Takes</title>
      <dc:creator>Samad Kiyani</dc:creator>
      <pubDate>Fri, 04 Dec 2026 14:39:49 +0000</pubDate>
      <link>https://dev.to/samadkiyani/what-producing-500-course-videos-commercial-edits-with-ai-workflows-actually-takes-488h</link>
      <guid>https://dev.to/samadkiyani/what-producing-500-course-videos-commercial-edits-with-ai-workflows-actually-takes-488h</guid>
      <description>&lt;p&gt;When people talk about AI video production, they usually show a 5-second prompt clip on social media and skip everything that happens when a real client needs hundreds of consistent lessons or a finished commercial edit.&lt;/p&gt;

&lt;p&gt;After producing 500+ educational course videos and commercial media pipelines alongside automated workflows, I realized early on that generating raw clips is only about 15% of the job.&lt;/p&gt;

&lt;p&gt;The real engineering problem is pacing, continuity, and human review gates so you do not ship awkward timing or mismatched voice-to-visual beats.&lt;/p&gt;

&lt;h2&gt;
  
  
  Splitting generation from assembly
&lt;/h2&gt;

&lt;p&gt;The worst bottleneck in my early setups was trying to treat the entire video job as one big automated pass. When one segment drifted—say an audio pacing cue missed a visual transition by half a second—you ended up regenerating far more than you needed.&lt;/p&gt;

&lt;p&gt;Breaking the workflow into small, inspectable stages fixed most of that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Script timing and voice pacing get locked before a single visual cut is scheduled.&lt;/li&gt;
&lt;li&gt;Asset manifests track every scene ID, audio duration, and fallback clip in plain JSON rather than relying on an agent remembering filenames across steps.&lt;/li&gt;
&lt;li&gt;Final render checks verify frame dimensions, silence gaps, and audio sync automatically before anything reaches manual polish.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where humans still matter most
&lt;/h2&gt;

&lt;p&gt;Even with specialized AI agents handling research, rough cuts, captioning, and asset prep, final commercial work still lives or dies on human taste.&lt;/p&gt;

&lt;p&gt;Automation handles the repetitive heavy lifting across batches of dozens of educational modules without burning out an editor. Human review handles the final 10%—pacing adjustments, emotional beats, and cutting whatever feels subtly robotic.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I'm Samad Kiyani—an AI systems builder managing 30+ specialized agents across custom software, hospital &amp;amp; restaurant CRMs, AI calling workflows, and commercial media production.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>automation</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Designing Hospital &amp; Restaurant CRMs Around AI Calling Agents — Concurrency, Idempotency &amp; Staff Trust</title>
      <dc:creator>Samad Kiyani</dc:creator>
      <pubDate>Thu, 03 Dec 2026 20:46:46 +0000</pubDate>
      <link>https://dev.to/samadkiyani/designing-hospital-restaurant-crms-around-ai-calling-agents-concurrency-idempotency-staff-3mp0</link>
      <guid>https://dev.to/samadkiyani/designing-hospital-restaurant-crms-around-ai-calling-agents-concurrency-idempotency-staff-3mp0</guid>
      <description>&lt;p&gt;Most SaaS CRMs fail clinics and restaurants for the same reason: they are designed around sales pipelines that move over weeks, while clinics and hospitality teams live inside 15-minute operational windows.&lt;/p&gt;

&lt;p&gt;Over the last year building bespoke hospital and restaurant CRMs alongside AI voice and booking agents, the architecture lessons had very little to do with UI polish and everything to do with concurrency, state transitions, and recovery.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Model time slots as locked state transitions, not plain form rows
&lt;/h2&gt;

&lt;p&gt;In a standard CRUD app, two concurrent booking requests check availability, both see an open slot, and both write a reservation. When an AI phone agent is booking tables or patient visits in parallel with front-desk staff using a dashboard, optimistic CRUD breaks immediately.&lt;/p&gt;

&lt;p&gt;We moved slot reservation to atomic database claims with short-lived hold tokens (&lt;code&gt;pending_hold&lt;/code&gt; -&amp;gt; &lt;code&gt;confirmed&lt;/code&gt; or auto-expired after 180 seconds), so a voice call and a walk-in receptionist can never claim the same slot.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Keep the agent out of direct SQL writes
&lt;/h2&gt;

&lt;p&gt;Giving an agent raw create/update/delete freedom over customer tables turns minor phrasing ambiguity into corrupted records. Instead, every CRM action goes through narrow, idempotent domain commands (&lt;code&gt;create_or_update_draft_booking&lt;/code&gt;, &lt;code&gt;attach_callback_note&lt;/code&gt;, &lt;code&gt;confirm_appointment&lt;/code&gt;) validated against schema and business hours on the server.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Audit every AI touchpoint for staff trust
&lt;/h2&gt;

&lt;p&gt;Reception teams do not reject automation because they dislike technology; they reject it the first time a record appears without explaining &lt;em&gt;why&lt;/em&gt;. Storing the call summary, confidence flags, and exact state diff alongside each CRM entry meant staff could verify an AI-booked visit in three seconds.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Graceful degradation beats brittle full-automation
&lt;/h2&gt;

&lt;p&gt;Whenever a caller asks for something outside policy—rescheduling multiple family visits, special dietary prep, or unclear insurance notes—the CRM switches the ticket to &lt;code&gt;needs_human_callback&lt;/code&gt; instead of forcing an awkward bot loop.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I'm Samad Kiyani—an AI systems builder running 30+ specialized agents solo across custom software, hospital &amp;amp; restaurant CRMs, AI calling &amp;amp; sales workflows, and commercial media.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>architecture</category>
      <category>backend</category>
      <category>saas</category>
      <category>systemdesign</category>
    </item>
    <item>
      <title>Why Production AI Voice Agents Fail After 30 Seconds (And How We Fixed Turn-Taking &amp; CRM Writes)</title>
      <dc:creator>Samad Kiyani</dc:creator>
      <pubDate>Thu, 03 Dec 2026 14:02:43 +0000</pubDate>
      <link>https://dev.to/samadkiyani/why-production-ai-voice-agents-fail-after-30-seconds-and-how-we-fixed-turn-taking-crm-writes-2o76</link>
      <guid>https://dev.to/samadkiyani/why-production-ai-voice-agents-fail-after-30-seconds-and-how-we-fixed-turn-taking-crm-writes-2o76</guid>
      <description>&lt;p&gt;Text chatbots are forgiving. If an agent pauses for four seconds before replying in a web widget, the user barely notices.&lt;/p&gt;

&lt;p&gt;On a phone call, four seconds of silence feels like the line dropped.&lt;/p&gt;

&lt;p&gt;Over the past year building AI voice and calling systems alongside hospital and restaurant CRMs, the hardest bugs had almost nothing to do with prompts. Almost every failure came down to turn-taking, background noise, and dirty database writes.&lt;/p&gt;

&lt;p&gt;Here is what broke in real calls—and what actually fixed it.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Barge-in detection breaks in noisy rooms
&lt;/h2&gt;

&lt;p&gt;Our early voice setups used a naive energy threshold for Voice Activity Detection (VAD). The moment a caller was in a busy clinic lobby or a kitchen, a clattering plate triggered barge-in, cut off the AI mid-sentence, and wiped its response buffer.&lt;/p&gt;

&lt;p&gt;What helped:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Separating acoustic speech detection from semantic end-of-turn checks so short noises ("uh-huh", background chatter) do not hijack the turn.&lt;/li&gt;
&lt;li&gt;Adding a slight debounce window before flushing the audio queue instead of cancelling on frame one.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  2. Callers repeat themselves—your CRM writes cannot
&lt;/h2&gt;

&lt;p&gt;On phone calls, people rarely give clean structured input in a single pass. Someone confirms an appointment slot, pauses, asks a follow-up question, and re-states their phone number two minutes later.&lt;/p&gt;

&lt;p&gt;Without idempotency keys per call session, the agent dutifully fired duplicate booking records into the restaurant or clinic CRM.&lt;/p&gt;

&lt;p&gt;Every call now carries a single &lt;code&gt;call_sid&lt;/code&gt; draft state. Tool calls update that draft state first, and the final CRM commit happens only once when the caller confirms the summary—or on hangup if required fields are verified.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Latency feels worse than a slightly shorter answer
&lt;/h2&gt;

&lt;p&gt;A long, polite paragraph from an LLM reads fine on a screen and sounds unbearable over TTS. We moved to streaming sentence-by-sentence synthesis and capped spoken turns to two short sentences unless the caller specifically asked for details.&lt;/p&gt;

&lt;p&gt;The best trick was putting deterministic lookups (opening hours, doctor availability, table capacity) behind fast cached endpoints so the model never stalls mid-sentence waiting on a slow SQL query.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Know when to shut up and book a callback
&lt;/h2&gt;

&lt;p&gt;The fastest way to ruin trust with a caller is having a voice agent stubbornly loop when an accent, bad cell signal, or unusual edge case trips transcription.&lt;/p&gt;

&lt;p&gt;After two failed clarification attempts, our agent stops asking people to repeat themselves, logs the partial call transcript in the CRM, and promises a human callback first thing—or transfers directly if staff are available.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I'm Samad Kiyani—I work solo orchestrating 30+ specialized AI agents across custom apps, hospital &amp;amp; restaurant CRMs, AI calling &amp;amp; sales workflows, and commercial media. Always happy to compare notes in the comments if you're debugging voice latency or CRM tool loops.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>architecture</category>
      <category>backend</category>
    </item>
    <item>
      <title>What It Actually Takes to Run 30+ AI Agents Alone in Production — Samad Kiyani</title>
      <dc:creator>Samad Kiyani</dc:creator>
      <pubDate>Wed, 02 Dec 2026 22:40:47 +0000</pubDate>
      <link>https://dev.to/samadkiyani/how-i-run-a-30-ai-agent-operation-solo-78k-in-2026-samad-kiyani-4p6j</link>
      <guid>https://dev.to/samadkiyani/how-i-run-a-30-ai-agent-operation-solo-78k-in-2026-samad-kiyani-4p6j</guid>
      <description>&lt;p&gt;Running one AI agent in a weekend demo is easy. Keeping more than 30 specialized AI agents reliable when real clients are waiting—and you are the only human accountable for the outcome—is a completely different emotional and engineering challenge.&lt;/p&gt;

&lt;p&gt;I am &lt;strong&gt;Samad Kiyani&lt;/strong&gt;, an AI Expert operating a solo multi-agent studio across software development, business automation, and commercial video production. In the beginning, the hardest part was not getting AI to write code or edit footage; it was dealing with the quiet panic at 2 AM when an agent confidently claimed a build was ready while an edge case was still broken underneath.&lt;/p&gt;

&lt;p&gt;That frustration taught me the lesson that changed my entire workflow: you cannot ask one generalist agent to carry an entire project, and you cannot trust output without verification.&lt;/p&gt;

&lt;p&gt;Instead of one mega-prompt, I separated my studio into focused roles that behave like a disciplined engineering and media team. Dedicated coding and QA agents build custom applications, business websites (&lt;code&gt;lattafadubai.com&lt;/code&gt;, &lt;code&gt;rumahreno.my&lt;/code&gt;, &lt;code&gt;aircondfixer.my&lt;/code&gt;, &lt;code&gt;quickfixwp.com&lt;/code&gt;), and specialized &lt;strong&gt;CRMs for hospitals and restaurants&lt;/strong&gt; where reliability actually matters to real staff and patients. Separate voice and revenue agents handle custom &lt;strong&gt;AI calling and sales workflows&lt;/strong&gt; so client leads do not go cold overnight. And on the creative side, motion-graphics and editing pipelines work under my own creative eye to scale production without losing human rhythm.&lt;/p&gt;

&lt;p&gt;With that structure in place, a single operator can take on work that normally takes an entire agency—producing &lt;strong&gt;500+ UK educational course videos&lt;/strong&gt; for &lt;code&gt;readwithus.org.uk&lt;/code&gt; (alongside building their platform ahead of a 2027 marketing launch), editing executive webinars for &lt;strong&gt;Fane Levy&lt;/strong&gt; at &lt;strong&gt;Shore Financial&lt;/strong&gt;, and producing TV-grade commercial ads. Keeping myself as the final human gatekeeper before anything ships is what turned early trial-and-error into steady client trust, quietly scaling delivery past $78K across 2026 without a traditional human payroll.&lt;/p&gt;

&lt;p&gt;AI only earns respect when the person behind it takes pride in the craft. The agents multiply what one builder can carry, but accountability stays human.&lt;/p&gt;




&lt;p&gt;You can also read my work on &lt;a href="https://medium.com/@samadkiyani-ai/about" rel="noopener noreferrer"&gt;Medium&lt;/a&gt; and &lt;a href="https://www.quora.com/profile/Samad-Kiyani" rel="noopener noreferrer"&gt;Quora&lt;/a&gt;, or message me directly here for custom AI agents, CRMs, apps, or commercial video.&lt;/p&gt;

</description>
      <category>webdev</category>
    </item>
  </channel>
</rss>
