<?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: Wellness Practice Marketing</title>
    <description>The latest articles on DEV Community by Wellness Practice Marketing (@wellnesspracticemark).</description>
    <link>https://dev.to/wellnesspracticemark</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%2F4271260%2F1af2d6e4-f281-4db4-8b0a-abb73fda14b8.png</url>
      <title>DEV Community: Wellness Practice Marketing</title>
      <link>https://dev.to/wellnesspracticemark</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/wellnesspracticemark"/>
    <language>en</language>
    <item>
      <title>How We Would Add AI to Functional Medicine Marketing Reports</title>
      <dc:creator>Wellness Practice Marketing</dc:creator>
      <pubDate>Sat, 28 Nov 2026 19:21:28 +0000</pubDate>
      <link>https://dev.to/wellnesspracticemark/how-we-would-add-ai-to-functional-medicine-marketing-reports-2fi4</link>
      <guid>https://dev.to/wellnesspracticemark/how-we-would-add-ai-to-functional-medicine-marketing-reports-2fi4</guid>
      <description>&lt;p&gt;At Wellness Practice Marketing, our work with functional medicine clinics spans Google Ads, service landing pages, and tracking the transition from a click to a booked discovery call. One project used dedicated landing pages and booking tracking to compare which search campaigns turned into scheduled conversations. That kind of work suggests a narrow use for an LLM: draft the weekly explanation after the numbers are already calculated.&lt;/p&gt;

&lt;p&gt;Here is the architecture we would use for that reporting step. The example data and code are illustrative. They describe a proposed implementation, with no client data or production deployment results.&lt;/p&gt;

&lt;h2&gt;
  
  
  Give the model a report, not the raw data
&lt;/h2&gt;

&lt;p&gt;Compute counts and ratios before calling the model. Use one row per reporting window and campaign grouping at a granularity the clinic has approved. Filter and aggregate upstream. The model does not need individual appointment records, search queries, form text, call transcripts, contact details, or identifiers. If a grouping contains very few events, combine it with a broader reporting window or suppress it before export.&lt;/p&gt;

&lt;p&gt;Use the same boundaries across periods. For example, choose whether a weekly report groups by the date an inquiry arrived or the date a booking was made. If the report groups by inquiry date, allow both periods the same amount of time to mature before comparing bookings.&lt;/p&gt;

&lt;h3&gt;
  
  
  Define the metrics in code
&lt;/h3&gt;

&lt;p&gt;This TypeScript example produces model inputs from already approved aggregate rows. The model can reference the facts by ID, while the application renders the numbers from the original data.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="nc"&gt;WeeklyTotals&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;week&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;string&lt;/span&gt;
  &lt;span class="n"&gt;spendCents&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;
  &lt;span class="n"&gt;bookedCalls&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;number&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;bookingFacts&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;WeeklyTotals&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;week&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;spendCents&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;bookedCalls&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;spendCents&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;bookedCalls&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;every&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;isSafeInteger&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt;
      &lt;span class="n"&gt;spendCents&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;bookedCalls&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Expected nonnegative integer totals'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;week&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;spendCents&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;bookedCalls&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;costPerBookingCents&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;bookedCalls&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
      &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;
      &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;spendCents&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;bookedCalls&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For a synthetic week with $240 in media spend and six booked calls, this produces $40 per booking. A week with zero bookings produces a missing ratio. That case should display as “no bookings recorded” and stay out of any percentage-change calculation. Also label the numerator as media spend so nobody mistakes the ratio for the clinic’s fully loaded acquisition cost.&lt;/p&gt;

&lt;h2&gt;
  
  
  Ask for a bounded output
&lt;/h2&gt;

&lt;p&gt;Give the model two fact rows and ask for a structured response: a short observation, the fact IDs it used, and one question for someone to investigate. Validate the response schema and reject unknown IDs. For an even tighter boundary, restrict the output to an observation key such as &lt;code&gt;bookings_up&lt;/code&gt; and let your application render the observation from the corresponding facts. Let the model suggest the follow-up question in a separate field.&lt;/p&gt;

&lt;p&gt;A change from four to six bookings can justify checking search coverage or appointment availability. Those counts alone cannot establish which change caused the increase. If the report lacks a metric, the model should be able to return “insufficient data.” A plain deterministic summary is a useful fallback when generation times out or fails validation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Evaluate against the reports a clinic actually needs
&lt;/h2&gt;

&lt;p&gt;Build a small fixture suite with a missing prior week, zero bookings, an incomplete import, and a week where the booking definition changed. Check that the system withholds comparisons in those cases. Also run a scenario where bookings increase but attendance is unknown. The resulting report should say “booked calls,” with attendance and patient acquisition left open.&lt;/p&gt;

&lt;p&gt;For a pilot, compare the same batch of synthetic or approved aggregate reports with and without the generated summary. Track whether a reviewer can tie each observation to a fact, how often they have to correct a claim, and whether the suggested follow-up saves them time. The model should have no ability to change bids, update tracking, or publish reports. A reviewer decides what is worth sharing.&lt;/p&gt;

&lt;p&gt;The broader context is our &lt;a href="https://www.wellnesspracticemarketing.com/blog/functional-medicine-marketing" rel="noopener noreferrer"&gt;functional medicine marketing guide&lt;/a&gt;, which explains how paid search, clinic websites, and appointment booking fit together. The reporting pattern here can be reused whenever an engineering team wants an LLM to explain measurements without calculating or acting on them.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: This article and its illustrative code were generated with AI from publicly documented Wellness Practice Marketing work.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>analytics</category>
      <category>marketing</category>
    </item>
  </channel>
</rss>
