<?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: Amol Walunj</title>
    <description>The latest articles on DEV Community by Amol Walunj (@amol_walunj_d2ca1ae7a2241).</description>
    <link>https://dev.to/amol_walunj_d2ca1ae7a2241</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%2F4272355%2Fcf34764c-7f0f-4d35-9ea7-8104fd27758f.jpg</url>
      <title>DEV Community: Amol Walunj</title>
      <link>https://dev.to/amol_walunj_d2ca1ae7a2241</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/amol_walunj_d2ca1ae7a2241"/>
    <language>en</language>
    <item>
      <title>Your NPS Went From 25 to 35. Did Customer Experience Actually Improve?</title>
      <dc:creator>Amol Walunj</dc:creator>
      <pubDate>Sun, 29 Nov 2026 14:38:03 +0000</pubDate>
      <link>https://dev.to/amol_walunj_d2ca1ae7a2241/your-nps-went-from-25-to-35-did-customer-experience-actually-improve-46a1</link>
      <guid>https://dev.to/amol_walunj_d2ca1ae7a2241/your-nps-went-from-25-to-35-did-customer-experience-actually-improve-46a1</guid>
      <description>&lt;p&gt;The calculation behind Net Promoter Score is surprisingly simple. If someone asked me to implement it in an analytics dashboard, the formula itself would probably be the easiest part of the job.&lt;/p&gt;

&lt;p&gt;The more interesting problem is figuring out whether a change in that score actually means anything.&lt;/p&gt;

&lt;p&gt;Imagine your customer success team reports that NPS increased from +25 in October to +35 in November. Everyone is happy. The new customer support initiatives seem to be working.&lt;/p&gt;

&lt;p&gt;But what if you only received 100 survey responses each month? Would you still be comfortable drawing that conclusion?&lt;/p&gt;

&lt;p&gt;This is where a little statistics can make a significant difference to the way we build customer experience dashboards.&lt;/p&gt;

&lt;h2&gt;
  
  
  Calculating NPS is the easy part
&lt;/h2&gt;

&lt;p&gt;For anyone unfamiliar with Net Promoter Score, customers are asked how likely they are to recommend a business on a scale of 0 to 10.&lt;/p&gt;

&lt;p&gt;The responses are divided into three groups:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Promoters: scores of 9 or 10&lt;/li&gt;
&lt;li&gt;Passives: scores of 7 or 8&lt;/li&gt;
&lt;li&gt;Detractors: scores from 0 to 6&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The formula is simply:&lt;/p&gt;

&lt;p&gt;NPS = Percentage of promoters − Percentage of detractors&lt;/p&gt;

&lt;p&gt;One thing worth noting is that passives still count towards the total number of responses, even though they don't appear directly in the subtraction.&lt;/p&gt;

&lt;p&gt;Here's a basic JavaScript implementation:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;calculateNPS&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;scores&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&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="n"&gt;scores&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;scores&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;some&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;score&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt;
    &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nb"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;isInteger&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;score&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt;
    &lt;span class="n"&gt;score&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;score&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;10&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="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="s2"&gt;"Scores must be integers from 0 to 10"&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="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;promoters&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;scores&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;detractors&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;scores&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;filter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&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="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;promoters&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;detractors&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;scores&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;length&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;calculateNPS&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;6&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;span class="c1"&gt;// 20&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's essentially all you need to calculate NPS. But if I were building a production analytics dashboard, I wouldn't stop here.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem with reporting a single number
&lt;/h2&gt;

&lt;p&gt;Consider these two hypothetical survey periods:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Category&lt;/th&gt;
&lt;th&gt;October&lt;/th&gt;
&lt;th&gt;November&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Promoters&lt;/td&gt;
&lt;td&gt;50&lt;/td&gt;
&lt;td&gt;55&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Passives&lt;/td&gt;
&lt;td&gt;25&lt;/td&gt;
&lt;td&gt;25&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Detractors&lt;/td&gt;
&lt;td&gt;25&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Total responses&lt;/td&gt;
&lt;td&gt;100&lt;/td&gt;
&lt;td&gt;100&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;NPS&lt;/td&gt;
&lt;td&gt;+25&lt;/td&gt;
&lt;td&gt;+35&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;November looks better. There are more promoters, fewer detractors and a 10-point improvement in NPS.&lt;/p&gt;

&lt;p&gt;The problem is that we're measuring a sample of customers, not necessarily the entire customer population.&lt;/p&gt;

&lt;p&gt;If we repeated the survey with another group of 100 customers, we might get a noticeably different result, even if nothing about the business had changed.&lt;/p&gt;

&lt;p&gt;So how much confidence should we have in those numbers?&lt;/p&gt;

&lt;h2&gt;
  
  
  Adding confidence intervals to NPS
&lt;/h2&gt;

&lt;p&gt;A useful way to understand the mathematics is to represent every survey response as one of three values:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Promoter: +1&lt;/li&gt;
&lt;li&gt;Passive: 0&lt;/li&gt;
&lt;li&gt;Detractor: -1&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;NPS is essentially the mean of these values multiplied by 100.&lt;/p&gt;

&lt;p&gt;This representation allows us to estimate the variance and standard error of the score.&lt;/p&gt;

&lt;p&gt;The estimated variance of an individual response is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="n"&gt;variance&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pPromoter&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;pDetractor&lt;/span&gt;
           &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pPromoter&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;pDetractor&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;^&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The standard error of NPS is then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;standardError = 100 * sqrt(variance / n)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Where &lt;code&gt;n&lt;/code&gt; is the total number of survey responses.&lt;/p&gt;

&lt;p&gt;For an approximate 95% confidence interval, we multiply the standard error by 1.96.&lt;/p&gt;

&lt;p&gt;Let's put this into JavaScript.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;calculateNPSStats&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;promoters&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;passives&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;detractors&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="n"&gt;counts&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;promoters&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;passives&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;detractors&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;counts&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;some&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nb"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;isInteger&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="n"&gt;n&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="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="s2"&gt;"Invalid response counts"&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="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;total&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;promoters&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;passives&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;detractors&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;total&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;promoters&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;total&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;detractors&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;total&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;nps&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;variance&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt; &lt;span class="o"&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;pow&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&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="n"&gt;standardError&lt;/span&gt; &lt;span class="o"&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;sqrt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;variance&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;total&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;margin&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;1.96&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;standardError&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;total&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;nps&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;standardError&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;marginOfError&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;margin&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;lowerBound&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;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;nps&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;margin&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;upperBound&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;min&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;nps&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;margin&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;Running this against our October and November survey results gives us approximately:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;October&lt;/th&gt;
&lt;th&gt;November&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;NPS&lt;/td&gt;
&lt;td&gt;+25&lt;/td&gt;
&lt;td&gt;+35&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Margin of error&lt;/td&gt;
&lt;td&gt;±16.3&lt;/td&gt;
&lt;td&gt;±15.5&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;95% confidence interval&lt;/td&gt;
&lt;td&gt;+8.7 to +41.3&lt;/td&gt;
&lt;td&gt;+19.5 to +50.5&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Suddenly, that 10-point improvement doesn't look quite as convincing.&lt;/p&gt;

&lt;p&gt;This implementation uses a normal approximation, commonly known as a Wald interval. It's useful for explaining the concept, but for very small samples or scores close to the extremes, more robust methods such as adjusted Wald intervals should be considered.&lt;/p&gt;

&lt;p&gt;There's an interesting &lt;a href="https://doi.org/10.1080/00031305.2016.1158124" rel="noopener noreferrer"&gt;research paper on NPS interval estimation&lt;/a&gt; if you want to explore the statistical methods in more detail.&lt;/p&gt;

&lt;h2&gt;
  
  
  Comparing two NPS scores properly
&lt;/h2&gt;

&lt;p&gt;Simply checking whether two confidence intervals overlap isn't a reliable statistical significance test.&lt;/p&gt;

&lt;p&gt;For two independent survey samples, we can instead estimate the uncertainty around the difference between their scores.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;compareNPS&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;previous&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;current&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="n"&gt;difference&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;current&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;nps&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;previous&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;nps&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;standardError&lt;/span&gt; &lt;span class="o"&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;sqrt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;previous&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;standardError&lt;/span&gt; &lt;span class="o"&gt;**&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt;
    &lt;span class="n"&gt;current&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;standardError&lt;/span&gt; &lt;span class="o"&gt;**&lt;/span&gt; &lt;span class="mi"&gt;2&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="n"&gt;margin&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;1.96&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;standardError&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;change&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;difference&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;lowerBound&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;difference&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;margin&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;upperBound&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;difference&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;margin&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;significant&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;abs&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;difference&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;margin&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="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;october&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;calculateNPSStats&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;50&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;25&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;25&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="n"&gt;november&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;calculateNPSStats&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;55&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;25&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;compareNPS&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;october&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;november&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;The approximate result:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Change: +10 points
95% confidence interval: -12.5 to +32.5
Statistically significant: false
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This doesn't mean customer experience hasn't improved. It means our survey data doesn't provide sufficiently strong evidence to establish that improvement.&lt;/p&gt;

&lt;p&gt;There's an important difference between those two statements.&lt;/p&gt;

&lt;p&gt;This is also one of the reasons why I wanted our &lt;a href="https://cevanos.ai/tools/nps-calculator" rel="noopener noreferrer"&gt;free NPS calculator&lt;/a&gt; to go beyond calculating the headline score. It allows you to enter survey responses, estimate the margin of error, compare previous periods and explore industry benchmarks without uploading customer data to a server.&lt;/p&gt;

&lt;h2&gt;
  
  
  The same improvement with a larger sample
&lt;/h2&gt;

&lt;p&gt;Now imagine we received 1,000 responses each month instead of 100, with exactly the same proportions of promoters, passives and detractors.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;100 responses per month&lt;/th&gt;
&lt;th&gt;1,000 responses per month&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;October NPS&lt;/td&gt;
&lt;td&gt;+25&lt;/td&gt;
&lt;td&gt;+25&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;November NPS&lt;/td&gt;
&lt;td&gt;+35&lt;/td&gt;
&lt;td&gt;+35&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Improvement&lt;/td&gt;
&lt;td&gt;+10&lt;/td&gt;
&lt;td&gt;+10&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Confidence interval for change&lt;/td&gt;
&lt;td&gt;-12.5 to +32.5&lt;/td&gt;
&lt;td&gt;+2.9 to +17.1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Statistically significant&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The NPS improvement is identical in both scenarios. The strength of the evidence is completely different.&lt;/p&gt;

&lt;p&gt;If your dashboard only displays the NPS value, both scenarios will look exactly the same.&lt;/p&gt;

&lt;h2&gt;
  
  
  Another problem: identical scores can hide very different customers
&lt;/h2&gt;

&lt;p&gt;Here's something else I find interesting about NPS.&lt;/p&gt;

&lt;p&gt;Imagine two businesses with these survey results:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Category&lt;/th&gt;
&lt;th&gt;Business A&lt;/th&gt;
&lt;th&gt;Business B&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Promoters&lt;/td&gt;
&lt;td&gt;40%&lt;/td&gt;
&lt;td&gt;60%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Passives&lt;/td&gt;
&lt;td&gt;50%&lt;/td&gt;
&lt;td&gt;10%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Detractors&lt;/td&gt;
&lt;td&gt;10%&lt;/td&gt;
&lt;td&gt;30%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;NPS&lt;/td&gt;
&lt;td&gt;+30&lt;/td&gt;
&lt;td&gt;+30&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Both have an NPS of +30.&lt;/p&gt;

&lt;p&gt;However, Business A has a large population of passive customers who might be converted into promoters. Business B has considerably more promoters but also three times as many detractors.&lt;/p&gt;

&lt;p&gt;The customer experience teams at these two businesses probably shouldn't follow the same strategy.&lt;/p&gt;

&lt;p&gt;This is why I prefer dashboards that show the distribution of responses alongside the final score.&lt;/p&gt;

&lt;p&gt;A single number is convenient for reporting, but it inevitably hides information.&lt;/p&gt;

&lt;h2&gt;
  
  
  Statistical significance isn't everything
&lt;/h2&gt;

&lt;p&gt;Even with a large sample size, there are several things that can distort an NPS comparison.&lt;/p&gt;

&lt;p&gt;For example, sending surveys only to customers whose support tickets were successfully resolved will probably produce a different result from surveying the entire customer base.&lt;/p&gt;

&lt;p&gt;The same issue arises when comparing different customer segments, geographic regions or survey channels.&lt;/p&gt;

&lt;p&gt;Before comparing two NPS scores, I would check:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Were similar customer populations surveyed?&lt;/li&gt;
&lt;li&gt;Was the same survey question used?&lt;/li&gt;
&lt;li&gt;Did the response rate change significantly?&lt;/li&gt;
&lt;li&gt;Were surveys sent at similar points in the customer journey?&lt;/li&gt;
&lt;li&gt;Are we accidentally counting multiple responses from the same customer?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The confidence interval addresses sampling uncertainty. It doesn't automatically correct selection bias or poor survey design.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would include in an NPS dashboard
&lt;/h2&gt;

&lt;p&gt;If I were designing an NPS dashboard today, I would want it to display more than a large number with a green or red arrow next to it.&lt;/p&gt;

&lt;p&gt;At a minimum, I'd include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Current NPS and historical trends&lt;/li&gt;
&lt;li&gt;Total survey responses&lt;/li&gt;
&lt;li&gt;Promoter, passive and detractor distributions&lt;/li&gt;
&lt;li&gt;Confidence intervals&lt;/li&gt;
&lt;li&gt;Changes between reporting periods&lt;/li&gt;
&lt;li&gt;Customer segmentation&lt;/li&gt;
&lt;li&gt;Common themes from customer feedback&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For customer support teams specifically, I would also look at resolution rates, repeat contact rates and customer satisfaction alongside NPS.&lt;/p&gt;

&lt;p&gt;NPS can tell you something about customer loyalty, but it doesn't necessarily explain why customers feel the way they do.&lt;/p&gt;

&lt;p&gt;That's where operational data and qualitative feedback become valuable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final thoughts
&lt;/h2&gt;

&lt;p&gt;I think NPS is a good example of how an apparently simple business metric can become much more interesting once you start looking at the underlying data.&lt;/p&gt;

&lt;p&gt;Calculating the score takes a few lines of code. Understanding whether it has genuinely changed requires more thought.&lt;/p&gt;

&lt;p&gt;The next time your analytics dashboard shows a 10-point improvement in NPS, check how many customers actually responded before celebrating.&lt;/p&gt;

&lt;p&gt;You might be surprised by what the numbers are really telling you.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: I'm the founder of Cevanos, which publishes the linked NPS calculator. AI assistance was used in drafting this article.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>datascience</category>
      <category>analytics</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>What I Learned Building an AI Customer Service Agent That Does More Than Answer Questions</title>
      <dc:creator>Amol Walunj</dc:creator>
      <pubDate>Sun, 29 Nov 2026 13:37:26 +0000</pubDate>
      <link>https://dev.to/amol_walunj_d2ca1ae7a2241/what-i-learned-building-an-ai-customer-service-agent-that-does-more-than-answer-questions-2e74</link>
      <guid>https://dev.to/amol_walunj_d2ca1ae7a2241/what-i-learned-building-an-ai-customer-service-agent-that-does-more-than-answer-questions-2e74</guid>
      <description>&lt;p&gt;When we started building Cevanos, there was already no shortage of AI customer support platforms.&lt;/p&gt;

&lt;p&gt;Chatbase made it easy to build chatbots using company knowledge. Tidio combined live chat with AI automation. Freshdesk and Intercom offered established customer support infrastructure with increasingly capable AI features.&lt;/p&gt;

&lt;p&gt;These are all useful products. However, the engineering problem that interested me was slightly different: how do you make an AI agent reliable enough to perform real business operations while respecting the rules of an organization?&lt;/p&gt;

&lt;p&gt;For businesses evaluating &lt;a href="https://cevanos.ai/blog/tidio-alternatives" rel="noopener noreferrer"&gt;Tidio alternatives&lt;/a&gt;, this distinction becomes particularly important as their customer support requirements grow from answering questions to completing increasingly complex requests across multiple channels.&lt;/p&gt;

&lt;p&gt;Building &lt;a href="https://cevanos.ai/" rel="noopener noreferrer"&gt;Cevanos&lt;/a&gt; gave us an opportunity to explore this problem in depth. Here are some of my biggest engineering learnings.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Understanding intent doesn't mean the agent should execute it
&lt;/h2&gt;

&lt;p&gt;Imagine a customer asking an AI agent to cancel an order.&lt;/p&gt;

&lt;p&gt;The LLM correctly understands the request, identifies the cancellation tool and extracts the required parameters.&lt;/p&gt;

&lt;p&gt;But several questions remain:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Has the customer's identity been verified?&lt;/li&gt;
&lt;li&gt;Does the order belong to this customer?&lt;/li&gt;
&lt;li&gt;Has the order already been shipped?&lt;/li&gt;
&lt;li&gt;Is cancellation permitted under the company's policy?&lt;/li&gt;
&lt;li&gt;Does this operation require human approval?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;While building an AI agent for an ecommerce store, we realised that without proper identity verification, someone who knows another customer's email address could potentially cancel their order.&lt;/p&gt;

&lt;p&gt;These aren't decisions that should depend entirely on an LLM's interpretation of a prompt.&lt;/p&gt;

&lt;p&gt;A separate authorization and policy layer should determine whether an action is permitted before it reaches the execution layer.&lt;/p&gt;

&lt;p&gt;This is where &lt;a href="https://cevanos.ai/ai-agent-governance" rel="noopener noreferrer"&gt;AI agent governance&lt;/a&gt; becomes particularly important. Identity verification, spending limits, business policies and approval requirements should be enforced independently of the language model.&lt;/p&gt;

&lt;p&gt;The model can understand the customer's intent and propose an action. The system decides whether that action is authorized.&lt;/p&gt;

&lt;p&gt;No amount of persuasion or clever prompting should allow a customer to bypass these restrictions.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Design tools around business operations
&lt;/h2&gt;

&lt;p&gt;Giving an AI agent unrestricted access to an external API introduces unnecessary risk.&lt;/p&gt;

&lt;p&gt;Instead, expose narrowly scoped business operations such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Get order status&lt;/li&gt;
&lt;li&gt;Check refund eligibility&lt;/li&gt;
&lt;li&gt;Cancel an eligible order&lt;/li&gt;
&lt;li&gt;Update a delivery address&lt;/li&gt;
&lt;li&gt;Reschedule an appointment&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each operation should have its own validation requirements, permissions and execution constraints.&lt;/p&gt;

&lt;p&gt;One useful design pattern is to classify tools into three categories:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Reads:&lt;/strong&gt; Operations that retrieve information without modifying anything.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Writes:&lt;/strong&gt; Operations that modify records or business state.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Financial actions:&lt;/strong&gt; Operations involving refunds, payments or other monetary transactions.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each category requires different levels of authorization and safeguards.&lt;/p&gt;

&lt;p&gt;For example, retrieving general product availability shouldn't require the same level of verification as issuing a $500 refund.&lt;/p&gt;

&lt;p&gt;Developers implementing their own integrations should also think carefully about which API parameters the model can control and which response fields it can access.&lt;/p&gt;

&lt;p&gt;Our &lt;a href="https://cevanos.ai/docs/integrations/custom-actions" rel="noopener noreferrer"&gt;custom API actions implementation guide&lt;/a&gt; provides a practical example of how these capabilities can be configured.&lt;/p&gt;

&lt;p&gt;The objective is to give the AI enough flexibility to solve customer problems without giving it unrestricted access to business infrastructure.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Handle concurrency and duplicate requests
&lt;/h2&gt;

&lt;p&gt;Consider a customer requesting a refund through website chat while simultaneously contacting customer support on WhatsApp.&lt;/p&gt;

&lt;p&gt;Both conversations might independently determine that the refund is eligible.&lt;/p&gt;

&lt;p&gt;Without idempotency and atomic checks at the execution layer, you could potentially process the same refund twice.&lt;/p&gt;

&lt;p&gt;For operations involving money, I would consider the following essential:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Idempotency keys&lt;/li&gt;
&lt;li&gt;Atomic transaction limits&lt;/li&gt;
&lt;li&gt;State validation immediately before execution&lt;/li&gt;
&lt;li&gt;Persistent audit logs&lt;/li&gt;
&lt;li&gt;Consistent authorization across communication channels&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Another important consideration is stale state.&lt;/p&gt;

&lt;p&gt;Imagine an AI agent checking refund eligibility at the beginning of a conversation. By the time the customer confirms the refund, another support agent might have already processed it.&lt;/p&gt;

&lt;p&gt;The system should revalidate the relevant business state immediately before executing the transaction, rather than relying on information retrieved earlier in the conversation.&lt;/p&gt;

&lt;p&gt;These guarantees belong in the execution layer, not in the LLM's instructions.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Evaluate outcomes rather than responses
&lt;/h2&gt;

&lt;p&gt;A traditional chatbot can be evaluated on the accuracy of its answers.&lt;/p&gt;

&lt;p&gt;An AI agent needs a more comprehensive evaluation framework.&lt;/p&gt;

&lt;p&gt;For example, when testing a refund request, check whether:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The correct customer was identified.&lt;/li&gt;
&lt;li&gt;The correct order was selected.&lt;/li&gt;
&lt;li&gt;The refund policy was respected.&lt;/li&gt;
&lt;li&gt;The correct amount was processed.&lt;/li&gt;
&lt;li&gt;No unintended operation was performed.&lt;/li&gt;
&lt;li&gt;The customer received an accurate confirmation.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A perfectly written response means very little if the underlying operation was incorrect.&lt;/p&gt;

&lt;p&gt;Our team evaluated 12 LLMs across 7,218 benchmark runs involving realistic customer support scenarios.&lt;/p&gt;

&lt;p&gt;One of the most interesting findings was that selecting the correct tool initially does not necessarily translate into successful task completion.&lt;/p&gt;

&lt;p&gt;There are several dimensions worth evaluating when selecting an LLM for production:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Tool selection accuracy&lt;/li&gt;
&lt;li&gt;End-to-end task completion&lt;/li&gt;
&lt;li&gt;Unwanted action rates&lt;/li&gt;
&lt;li&gt;Instruction adherence&lt;/li&gt;
&lt;li&gt;Operating costs&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The results of our research into the &lt;a href="https://cevanos.ai/blog/best-llm-for-ai-customer-service-agent" rel="noopener noreferrer"&gt;best LLMs for AI customer service agents&lt;/a&gt; illustrate why model selection should depend on the complexity and risk of the business operations an agent performs.&lt;/p&gt;

&lt;p&gt;An agent answering FAQs has very different requirements from one processing refunds or modifying customer accounts.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. AI automation shouldn't necessarily require replacing your helpdesk
&lt;/h2&gt;

&lt;p&gt;One of the challenges of designing a customer support platform is that most established businesses already have considerable infrastructure in place.&lt;/p&gt;

&lt;p&gt;Their customer conversations, ticket history, internal workflows, reporting and integrations may all depend on an existing helpdesk.&lt;/p&gt;

&lt;p&gt;Replacing that infrastructure simply to introduce AI can create unnecessary migration work.&lt;/p&gt;

&lt;p&gt;For example, businesses researching &lt;a href="https://cevanos.ai/blog/freshdesk-alternatives" rel="noopener noreferrer"&gt;Freshdesk alternatives&lt;/a&gt; should first determine whether they actually need a different helpdesk, additional AI capabilities or a more suitable pricing model.&lt;/p&gt;

&lt;p&gt;These are three different problems that don't necessarily require the same solution. Freshdesk also has its own AI capabilities, which are worth evaluating before considering a replacement.&lt;/p&gt;

&lt;p&gt;This influenced an important architectural decision behind Cevanos: the AI layer should be capable of operating independently of the helpdesk.&lt;/p&gt;

&lt;p&gt;Businesses should be able to introduce AI agents while retaining their existing ticketing systems, CRM, ecommerce platforms and operational workflows.&lt;/p&gt;

&lt;p&gt;From an engineering perspective, this separation also reduces coupling between the conversational interface and the underlying business systems.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Consider the economics of AI automation
&lt;/h2&gt;

&lt;p&gt;Technical capabilities are only one part of selecting an AI customer service platform. The economics become equally important when conversation volumes increase.&lt;/p&gt;

&lt;p&gt;Customer support platforms use several different pricing models:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Per human support agent&lt;/li&gt;
&lt;li&gt;Per AI conversation&lt;/li&gt;
&lt;li&gt;Per successful AI outcome&lt;/li&gt;
&lt;li&gt;Usage-based credits&lt;/li&gt;
&lt;li&gt;Flat monthly subscriptions&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each model has its own advantages and trade-offs.&lt;/p&gt;

&lt;p&gt;For example, &lt;a href="https://cevanos.ai/blog/intercom-pricing" rel="noopener noreferrer"&gt;Intercom's pricing structure&lt;/a&gt; combines helpdesk seat subscriptions with outcome-based billing for its Fin AI agent.&lt;/p&gt;

&lt;p&gt;This can make sense for businesses that prefer paying for qualifying outcomes. However, teams should model how their total expenditure changes as customer conversation volumes and automation rates increase.&lt;/p&gt;

&lt;p&gt;When designing an AI system, I would track the cost per successfully completed customer request rather than looking exclusively at token consumption or cost per message.&lt;/p&gt;

&lt;p&gt;A cheaper model that frequently requires retries, additional tool calls or human intervention may ultimately be more expensive than a stronger model.&lt;/p&gt;

&lt;p&gt;Pricing decisions should reflect the entire workflow rather than just the cost of inference.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Building versus buying
&lt;/h2&gt;

&lt;p&gt;Not every business needs to build its own agent infrastructure.&lt;/p&gt;

&lt;p&gt;The current AI customer service landscape includes knowledge-based chatbots, ecommerce support platforms, traditional helpdesks with AI capabilities, developer-focused agent builders and autonomous AI agents.&lt;/p&gt;

&lt;p&gt;For relatively straightforward knowledge-based support, a platform such as Chatbase may be sufficient. Businesses with more complex operational requirements might evaluate &lt;a href="https://cevanos.ai/blog/chatbase-alternatives" rel="noopener noreferrer"&gt;alternatives to Chatbase&lt;/a&gt; that offer different approaches to integrations, action execution, governance and voice support.&lt;/p&gt;

&lt;p&gt;Before choosing an approach, I would evaluate the following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How deeply does the platform integrate with existing business systems?&lt;/li&gt;
&lt;li&gt;Can it execute business operations or only answer questions?&lt;/li&gt;
&lt;li&gt;Can authorization and business policies be enforced independently of the LLM?&lt;/li&gt;
&lt;li&gt;Does it support human approval workflows?&lt;/li&gt;
&lt;li&gt;Can developers extend its capabilities through custom APIs?&lt;/li&gt;
&lt;li&gt;What happens when the AI cannot resolve a customer request?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Building everything internally offers greater control, but it also introduces significant responsibilities around security, evaluation, monitoring, integrations and ongoing maintenance.&lt;/p&gt;

&lt;p&gt;The right decision depends on the complexity of your business workflows, your engineering resources and the level of control you require.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. Measure the impact on customers
&lt;/h2&gt;

&lt;p&gt;Technical accuracy is only one part of the equation.&lt;/p&gt;

&lt;p&gt;Businesses should also track whether customers are experiencing faster resolutions, fewer repeat conversations and better overall service.&lt;/p&gt;

&lt;p&gt;Some metrics I would prioritize are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Actual resolution rate&lt;/li&gt;
&lt;li&gt;Repeat contact rate&lt;/li&gt;
&lt;li&gt;Average time to resolution&lt;/li&gt;
&lt;li&gt;Human escalation quality&lt;/li&gt;
&lt;li&gt;Customer satisfaction&lt;/li&gt;
&lt;li&gt;Net Promoter Score (NPS)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Alongside operational metrics, longer-term customer loyalty can be monitored using Net Promoter Score.&lt;/p&gt;

&lt;p&gt;However, simply comparing NPS before and after implementing AI can be misleading, particularly when survey sample sizes are small or customer populations differ.&lt;/p&gt;

&lt;p&gt;For example, an improvement from an NPS of 35 to 40 doesn't necessarily indicate a statistically meaningful change.&lt;/p&gt;

&lt;p&gt;Tools such as our &lt;a href="https://cevanos.ai/tools/nps-calculator" rel="noopener noreferrer"&gt;free NPS calculator with confidence intervals and industry benchmarks&lt;/a&gt; can help teams interpret survey results beyond the headline score.&lt;/p&gt;

&lt;p&gt;The objective of AI implementation should be to improve customer experience while making business operations more efficient, not simply to increase ticket deflection.&lt;/p&gt;

&lt;h2&gt;
  
  
  9. Treat human escalation as part of the architecture
&lt;/h2&gt;

&lt;p&gt;Not every customer conversation should be resolved autonomously.&lt;/p&gt;

&lt;p&gt;There will always be situations involving ambiguous policies, exceptional requests, sensitive decisions or frustrated customers that benefit from human judgment.&lt;/p&gt;

&lt;p&gt;Instead of treating escalation as an AI failure, design it as a first-class capability.&lt;/p&gt;

&lt;p&gt;A good escalation should provide the human support agent with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A summary of the conversation&lt;/li&gt;
&lt;li&gt;Verified customer information&lt;/li&gt;
&lt;li&gt;Relevant business records&lt;/li&gt;
&lt;li&gt;Actions already attempted&lt;/li&gt;
&lt;li&gt;The reason for escalation&lt;/li&gt;
&lt;li&gt;Suggested next steps&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The customer shouldn't have to explain everything again simply because the conversation has moved from AI to a human.&lt;/p&gt;

&lt;p&gt;I believe the most effective customer support systems will be those where AI and humans complement each other rather than operate as completely separate systems.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final thoughts
&lt;/h2&gt;

&lt;p&gt;One of my biggest learnings while building AI agents is that intelligence and reliability are two very different things.&lt;/p&gt;

&lt;p&gt;Better models will continue to improve intelligence.&lt;/p&gt;

&lt;p&gt;Reliability, however, requires thoughtful engineering around permissions, business policies, execution, testing, concurrency and observability.&lt;/p&gt;

&lt;p&gt;The challenge isn't just making an AI agent understand what a customer wants. It's making sure the agent can safely and correctly deliver that outcome.&lt;/p&gt;

&lt;p&gt;That's the part of agentic AI development I find particularly interesting.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>saas</category>
      <category>llm</category>
    </item>
  </channel>
</rss>
