<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Victor Okoroafor on Medium]]></title>
        <description><![CDATA[Stories by Victor Okoroafor on Medium]]></description>
        <link>https://medium.com/@vic7ord1st?source=rss-c346332236a8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*BQYIvrE84M-Ji0oTX8gcnQ.jpeg</url>
            <title>Stories by Victor Okoroafor on Medium</title>
            <link>https://medium.com/@vic7ord1st?source=rss-c346332236a8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 01:46:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vic7ord1st/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Inbox Zero Hack Every Private Contractor Needs: Gmail + Slack]]></title>
            <link>https://medium.com/swlh/the-inbox-zero-hack-every-private-contractor-needs-gmail-slack-c5e10b171c5f?source=rss-c346332236a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/c5e10b171c5f</guid>
            <category><![CDATA[inbox-management]]></category>
            <category><![CDATA[freelancers]]></category>
            <category><![CDATA[business-owner]]></category>
            <category><![CDATA[inbox-zero]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[Victor Okoroafor]]></dc:creator>
            <pubDate>Mon, 21 Oct 2024 17:02:22 GMT</pubDate>
            <atom:updated>2024-10-21T17:25:05.669Z</atom:updated>
            <content:encoded><![CDATA[<h4>Navigating Email Overload: A Common Struggle for Private Contractors</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3aIWosBUlMVt2rMUc54tkg.jpeg" /><figcaption>Copyright: cartoonresource — Fotolia</figcaption></figure><p>As a private contractor and a small business owner, I often find myself buried in an endless stream of emails— client inquiries, invoices, project updates, the random cold emails and everything in between. Managing this flood of communication can eat into your productive hours, making it hard to focus on high-priority tasks.</p><p>That’s where the <strong>Inbox Zero</strong> philosophy comes in: the goal is to keep your inbox as empty as possible by organizing and automating email workflows. But staying on top of every message isn’t easy unless you have the right tools.</p><p>I became a fan of the inbox zero philosophy and used it religiously. I start each day sorting my emails, responding immediately to urgent ones, and scheduling the rest on my calendar. But over time, it became a tedious chore, and whenever a task feels that way, I either automate it or delegate it.</p><p>Although I set clear expectations with my clients and subcontractors for a 24-hour response window, I realized that I was becoming a bottleneck on certain projects with this rule and needed a more efficient solution.</p><p>So, in 5 minutes, I’ll show you how I built an automated Gmail + Slack integration using Google Apps Script and Slack webhooks. This simple, effective workflow will keep your inbox under control by automatically sending important emails to Slack, ensuring nothing gets lost — and saving you hours of manual sorting.</p><h4><strong>Game Plan</strong></h4><p>Here’s the strategy:</p><ol><li>Use <strong>Gmail</strong> to collect and label unread emails.</li><li>Write a <strong>Google Apps Script</strong> that checks for new emails, sends key details (like the subject and sender) to <strong>Slack</strong>, and marks them with a custom label.</li><li>Avoid notifications for noisy senders (like Facebook or automated platforms) by filtering them out in the script.</li><li>Use <strong>Slack</strong> to get real-time alerts, so you can quickly take action without being glued to your inbox.</li></ol><p>This setup is easy to implement and will reduce the mental load of managing emails while ensuring you never miss anything important.</p><h4>Setting It All Up: Step-by-Step</h4><p><strong>Step 1: Create a Slack Webhook</strong></p><ol><li>Open <strong>Slack</strong> and go to <strong>Automation</strong>.</li><li>Navigate to <strong>“Workflows”, </strong>click <strong>“New Workflow”. </strong>From the popup, click <strong>“Build Workflow”</strong></li><li>Select <strong>“From a webhook” </strong>as the event that initiates the workflow</li><li>Set the following variables <strong>“from”</strong>, <strong>“subject”</strong> and <strong>“link” </strong>and Slack will generate a <strong>Webhook URL</strong> — keep this handy. You’ll use it in your Google Apps Script.</li><li>Choose the channel where you want to receive the email alerts (I chose to send it as a direct message to myself) then add the variables from <strong>“Step 4”.</strong></li></ol><p><strong>Step 2: Copy the Google Apps Script Code below</strong></p><p>This script will scan for unread emails, send their details to Slack, and filter out unwanted messages.</p><ol><li>In <strong>Gmail</strong>, create a label called <strong>“ToSlack”</strong> (this will mark emails that are processed).</li><li>Open <a href="https://script.google.com/"><strong>Google Apps Script</strong></a><strong> </strong>and create a new project.</li><li>Replace the default code with the following:</li></ol><pre>const SLACK_WEBHOOK_URL = &#39;https://hooks.slack.com/services/your/webhook/url&#39;; // Replace with your Slack webhook URL<br><br>const IGNORED_SENDERS = [<br>    //Add a comma-separated list of email addresses whose emails you want to mark as read automatically.<br>];<br><br>// Function to send email details to Slack<br>function sendToSlack(subject, sender, link) {<br><br>  const payload = {<br>    sender: sender,<br>    title: subject,<br>    link: link<br>  };<br><br>    const options = {<br>        method: &#39;post&#39;,<br>        contentType: &#39;application/json&#39;,<br>        payload: JSON.stringify(payload),<br>    };<br><br>    UrlFetchApp.fetch(SLACK_WEBHOOK_URL, options);<br><br>}<br><br>// Function to process unread emails<br>function processEmails() {<br><br>    const labelName = &#39;ToSlack&#39;;<br><br>    let label = GmailApp.getUserLabelByName(labelName) || GmailApp.createLabel(labelName);<br><br>    const threads = GmailApp.search(&#39;is:unread&#39;); <br><br>    threads.forEach(thread =&gt; {<br><br>        const messages = thread.getMessages();<br><br>        let threadProcessed = false; <br>        messages.forEach(message =&gt; {<br><br>            const sender = message.getFrom();<br><br>            const subject = message.getSubject();<br><br>            const link = thread.getPermalink();<br><br>            if (IGNORED_SENDERS.some(ignored =&gt; sender.includes(ignored))) {<br><br>                message.markRead(); <br><br>            } else if (!threadProcessed) {<br><br>                sendToSlack(subject, sender, link); <br><br>                thread.addLabel(label); <br><br>                threadProcessed = true; <br><br>            }<br>        });<br>    });<br>}<br> </pre><p>4. Save the project and name it <strong>“Email to Slack Automation” </strong>(You can use any name of your choosing).</p><p><strong>Step 3: Set Up a Trigger in Google Apps Script</strong></p><p>You want this script to run automatically at regular intervals. Here’s how:</p><p>1. In Google Apps Script, click on the <strong>clock icon</strong> (Triggers). <br>2. Click <strong>“Add Trigger”</strong>. <br>3. Set the function to <strong>“processEmails”</strong>. <br>4. Choose the event type as <strong>“Time-driven”</strong> and configure it to run every 2 hours (set it to your preference)</p><p><strong>Step 4: Test Your Automation</strong></p><ol><li>Send a test email to your Gmail account from a different address.</li><li>Check if the email gets sent to <strong>Slack</strong> with the right details.</li><li>Ensure that noisy emails are marked as <strong>read</strong> but don’t trigger a Slack notification.</li></ol><h4><strong>Mid-Setup Observations and Tweaks</strong></h4><p>After setting up the automation, I noticed a few things:</p><ul><li><strong>Immediate alerts</strong> in Slack helped me respond faster to time-sensitive emails improving project turnaround because I could just click a button to read and respond to the email or set a reminder in Slack if it is not urgent.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/373/1*QoE20k-LY7vy5EKJR6EmyQ.png" /></figure><ul><li>Filtering out noisy emails reduced interruptions, keeping my workflow clean and I always achieve inbox zero without ever opening Gmail.</li><li>Adding a <strong>custom Slack channel</strong> for these alerts kept things organized without clogging up my main channels.</li></ul><p>If you need even more control, consider customizing the script to filter emails based on <strong>subject keywords</strong> or <strong>specific senders</strong>.</p><h4><strong>Final Thoughts: Achieving Inbox Zero Without Breaking a Sweat</strong></h4><p>With this <strong>Gmail + Slack setup</strong>, managing emails became a breeze. The combination of <strong>automation and real-time alerts</strong> means I no longer have to constantly check my inbox for important emails, yet never miss an important message.</p><p>This approach has been a game-changer for my productivity, and I think every private contractor can benefit from it. Once you implement this system, you’ll free up mental space and focus on what really matters: <strong>your work and clients</strong>.</p><p>So, give it a try.</p><p>If you found this guide helpful, give it a clap or two.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c5e10b171c5f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/the-inbox-zero-hack-every-private-contractor-needs-gmail-slack-c5e10b171c5f">The Inbox Zero Hack Every Private Contractor Needs: Gmail + Slack</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Manual to Automatic: How I Helped My Client Save Two Hours Daily Using a Simple Spreadsheet…]]></title>
            <link>https://medium.com/swlh/from-manual-to-automatic-how-i-helped-my-client-save-two-hours-daily-using-a-simple-spreadsheet-3c855a1a55e?source=rss-c346332236a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c855a1a55e</guid>
            <dc:creator><![CDATA[Victor Okoroafor]]></dc:creator>
            <pubDate>Sat, 06 May 2023 22:42:43 GMT</pubDate>
            <atom:updated>2023-05-06T22:44:43.910Z</atom:updated>
            <content:encoded><![CDATA[<h3>From Manual to Automatic: How I Helped My Client Save Two Hours Daily Using a Simple Spreadsheet And Appscript.</h3><h3><strong>The Problem</strong></h3><p>Recently one of my clients faced a common challenge among Sales team managers: manually counting the time slots for his salespeople on a shared calendar. This laborious process took him up to two hours counting open slots on 3 salespeople calendar every day to stay on top changes to &#39; availability everyday leaving room for errors and inefficiencies. Imaging doing this for a 30-person sales team as the business scales.</p><p>I mentioned that he needed a solution that would help him automate this process and save him time, while also allowing him to easily focus on adjusting his ad spend to fill any gaps in his salespeople’s schedules.</p><h3>The Tools:</h3><p>To solve this problem, I created a custom spreadsheet using Google Sheets. The spreadsheet took the calendar IDs of the coaches’ calendars and computed how many appointments (based on the duration he enters as well as slot interval) he can fit into them by setting the date interval and clicking a button on the sheet. The code for this sheet function, findAvailability(), used the Google Apps Script language to interact with the Google Calendar API and extract data about the events and availability of the salespeople.</p><p>The initial portion of the code obtains the start and end dates and times from cells D2 to G2 in the “Sheet1” sheet of the presently active Google Sheets document. These times determine the duration of the time interval that is being inspected for available appointments.</p><pre>  // Get start and end date and time from active sheet<br>var startDate = new Date(SpreadsheetApp.getActiveSpreadsheet().getSheetByName(&quot;Sheet1&quot;).getRange(&quot;D2&quot;).getValue());<br>var startTime = SpreadsheetApp.getActiveSpreadsheet().getSheetByName(&quot;Sheet1&quot;).getRange(&quot;E2&quot;).getValue();<br>var [startHours, startMinutes] = startTime.split(&quot;:&quot;);<br>var endDate = new Date(SpreadsheetApp.getActiveSpreadsheet().getSheetByName(&quot;Sheet1&quot;).getRange(&quot;F2&quot;).getValue());<br>var endTime = SpreadsheetApp.getActiveSpreadsheet().getSheetByName(&quot;Sheet1&quot;).getRange(&quot;G2&quot;).getValue();<br>var [endHours, endMinutes] = endTime.split(&quot;:&quot;);<br><br>// Create start and end date time objects<br>var startDateTime = new Date(startDate.getFullYear(), startDate.getMonth(), startDate.getDate(), startHours, startMinutes);<br>var endDateTime = new Date(endDate.getFullYear(), endDate.getMonth(), endDate.getDate(), endHours, endMinutes);</pre><p>The next step is to derive the “duration” and “buffer”, from buffer and duration cells in the active Google Sheet.</p><p>Duration represents how long each appointment will be in minutes and the buffer time represents the window between each appointment (also in minutes). The buffer extends the duration of the appointment to allow for some extra time before and after the scheduled time.</p><pre>  // Get duration and buffer from sheet<br>  var duration = SpreadsheetApp.getActiveSpreadsheet().getSheetByName(&quot;Sheet1&quot;).getRange(&quot;H2&quot;).getValue(); //in minutes<br>  var buffer = SpreadsheetApp.getActiveSpreadsheet().getSheetByName(&quot;Sheet1&quot;).getRange(&quot;I2&quot;).getValue(); // in minutes<br>  duration += buffer;</pre><p>The last bit retrieves loops through the rows to find available time slots for events in the specified sales coaches&#39; calendars.</p><p>Next, it gets all the events in the specified calendar that fall within the specified start and end date times. It then loops through time slots between 8am and 5pm EST (This uses the sheets time zone, and the booking interval can be set to any time of your choosing) with the specified duration, checking for any conflicts with events already on the calendar.</p><p>Finally, the number of available slots is written back to the sheet in the third column for each row.</p><pre>var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName(&quot;Sheet1&quot;);<br>  var range = sheet.getDataRange();<br>  var values = range.getValues();<br>  for (var i = 1; i &lt; values.length; i++) {<br>    var calendarId = values[i][1];<br>    var calendar = CalendarApp.getCalendarById(calendarId);<br>    var events = calendar.getEvents(startDateTime, endDateTime);<br>    var slots = [];<br>    var slotStart = startDateTime;<br>    // Set the start time to 8am EST<br>    slotStart.setHours(8);<br>    slotStart.setMinutes(0);<br>    slotStart.setSeconds(0);<br>    var slotEnd = new Date(slotStart.getTime() + duration * 60000);<br>    while (slotEnd &lt;= endDateTime) {<br>      var conflict = false;<br>      // Check if the current slot is within the working hours of 8am and 5pm EST<br>      if (slotStart.getHours() &gt;= 8 &amp;&amp; slotEnd.getHours() &lt; 17) {<br>        for (var j = 0; j &lt; events.length; j++) {<br>          var event = events[j];<br>          var eventStart = new Date(event.getStartTime());<br>          var eventEnd = new Date(event.getEndTime());<br>          if (slotStart &lt; eventEnd &amp;&amp; slotEnd &gt; eventStart) {<br>            conflict = true;<br>            break;<br>          }<br>        }<br>        if (!conflict) {<br>          slots.push([slotStart, slotEnd]);<br>        }<br>      }<br>      slotStart = new Date(slotStart.getTime() + duration * 60000);<br>      slotEnd = new Date(slotEnd.getTime() + duration * 60000);<br>    }<br>    sheet.getRange(i + 1, 3).setValue([slots.length]);<br>  }</pre><h3>The Result:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2q8677-JGga4DFKaaWiPMA.png" /></figure><p>With this new tool, my client was able to save a significant amount of time and effort by automating the process of counting time slots for his salespeople. He could easily input the required parameters and quickly generate an overview of the available time slots. This not only saved him time, but also gave him a clearer understanding of his salespeople’s schedules, allowing him to make informed decisions about where to allocate his ad spend. With this newfound visibility, he was able to effectively fill out any gaps in his salespeople’s schedules and drive more sales as a result.</p><h3>Conclusion:</h3><p>Overall, the custom spreadsheet I created for my client helped him automate a time-consuming process and make more informed decisions about his sales strategy. By leveraging the power of Google Sheets and Google Apps Script, we were able to create a tailored solution that perfectly met his needs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c855a1a55e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/from-manual-to-automatic-how-i-helped-my-client-save-two-hours-daily-using-a-simple-spreadsheet-3c855a1a55e">From Manual to Automatic: How I Helped My Client Save Two Hours Daily Using a Simple Spreadsheet…</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why We Moved Our Entire Sales Process To Salesorce.]]></title>
            <link>https://vic7ord1st.medium.com/why-we-moved-our-entire-sales-process-to-salesorce-8f5f8b2221b0?source=rss-c346332236a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f5f8b2221b0</guid>
            <category><![CDATA[saleforce-community]]></category>
            <category><![CDATA[sales-development]]></category>
            <category><![CDATA[sales-funnels]]></category>
            <category><![CDATA[saleforce]]></category>
            <dc:creator><![CDATA[Victor Okoroafor]]></dc:creator>
            <pubDate>Sun, 17 Apr 2022 15:18:54 GMT</pubDate>
            <atom:updated>2022-04-17T15:18:54.403Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why We Moved Our Entire Sales Process To Salesforce.</h3><p>A detailed breakdown of how we increased revenue by 20% in 1 month by moving our process to Salesforce.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0jMZVO2USLr4TLpxUllkxQ.png" /><figcaption>Salesforce</figcaption></figure><p>Recently, I have been working a lot with CRMs, helping sales teams build effective lead management processes that optimize sales team performance. (in simple terms, help the sales team close more deals by improving the quality of information and time it takes for them to move from lead to lead).</p><p>We were doing a switch from a previous CRM due to the fact that we had to manage leads in one place, monitor campaign performance in another, and visualize data in another system entirely. This meant that we were having to pay for multiple systems and another system to tie all of these together. Let me give you an example situation so you can see the dilemma.</p><p><strong>Case Study</strong></p><p>Picture a simple sales funnel where a business gets leads via a lead magnet and the ultimate goal is to get them to book a call with the sales team which converts them on a higher backend offer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j_7bnO_Su-k_t84Ceb-n8Q.png" /><figcaption>A simple sales funnel</figcaption></figure><p>In this scenario, we have a platform to host the optin pages, another booking solution like Calendly for the appointments, Zoom for the calls, Stripe or Authorize.net, Data studio for visualizing the data and Zapier or Make to tie it all together. There are a couple of problems with having a complex system like this. And here are a few</p><p><strong>Increased odds of data inconsistency</strong></p><p>When you have multiple systems interacting with each other (like in the above example) the chances of data falling through the cracks is increased and will result in the business decision-makers not getting an accurate view of what is going on in the business. From the above case study, if we the connector fails for any number of reasons (Failed Payments to API integration failure), there will be a lag in the data being displayed and whatever decision is made using the data becomes wrong. Even if the connector error was fixed, the date of activity becomes wrong.</p><p><strong>Too many systems to keep track of</strong></p><p>In as much as it looks like a great idea to isolate every part of the process so if one part of the process fails, it doesn’t kill the other part. If your optin page platform fails, it doesn’t stop the leads already in the funnel from booking appointments and the sales team from calling their leads. The challenge with this setup is that you have to be monitoring multiple systems for potential breakages and the time spent ensuring all the systems is in peak performance, is not spent on key business movers.</p><p><strong>Debugging Nightmare</strong></p><p>If a salesperson creates a ticket saying one of his/her leads did not get a particular email or God forbid they need to know what emails a lead has received and opened. Even if the sales team has access to all the platforms, where do they look in particular? The sales team&#39;s time is valuable and should be focused on cash collection.</p><h3><strong>Bring on the Force</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/1*XFrgDbk8bR0KwPshjM2xuQ.gif" /></figure><p>We considered all these scenarios including the cost of maintaining multiple systems and the time and effort it would take to onboard a new team member and decided to look for a system that solves all these challenges with a host of other upsides.</p><p>With Salesforce, we do not only get an ecosystem that was built around the particular challenge we wanted to solve which is turning the sales team into a cash collection machine. With Salesforce, we set up our pages with Force.com and did not have to worry about sending the leads to a new destination because leads are automatically created in the CRM and set up in a way that they are added to our sales pipeline.</p><p>For the email &amp; SMS campaigns, we set those up with marketing cloud so we can track opens and deliverability in one place.</p><p>With Scheduler, we could get rid of the external booking solution. This allows the sales team to focus on dialing leads effectively with all the information they need about the prospect right at their fingertip. We saw a 20% increase in cash collected in 1 month because the sales team had time to take more leads and more data about the leads to inform the sale.</p><p>With Saleforce reporting, we were able to present the data for different stakeholders as accurate as possible because all the data is already in Saleforce and we just needed to pull what data was required for management, sales team and media buyers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f5f8b2221b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Visualizing Important Corona Virus Metrics In Real-Time using R+Node.js]]></title>
            <link>https://vic7ord1st.medium.com/visualizing-important-corona-virus-metrics-in-real-time-using-r-node-js-2164d8fb232d?source=rss-c346332236a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/2164d8fb232d</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[visualization]]></category>
            <category><![CDATA[corona]]></category>
            <category><![CDATA[r]]></category>
            <category><![CDATA[data-analysis]]></category>
            <dc:creator><![CDATA[Victor Okoroafor]]></dc:creator>
            <pubDate>Sat, 14 Mar 2020 20:19:29 GMT</pubDate>
            <atom:updated>2023-05-05T15:13:28.543Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pbg7q0B_rLgP9MEkCl-I-A.png" /><figcaption>Screenshot of the finished visualization</figcaption></figure><p>While sitting at home frightened out of my mind by a neighbor whose conclusion of the whole Coronavirus situation is “we are all gonna die”, it occurred to me that amidst the noise and the scary journalism, there is too much information and data available about the dreaded COVID-19 virus to keep track of the spread. So, I decided to create my own interactive dashboard with the most important metrics I am concerned about that is easy to consume at a glance.</p><h4>Overview</h4><p>The dreaded Coronavirus A.K.A COVID-19 is rampaging through the globe and is considered one of the most (if not the most) contagious virus ever witnessed. It is all the media is talking about, it is all pundits and analysts are predicting. So far, there have been over 145,000 confirmed cases and over 5000 deaths as a result of the outbreak of the virus.</p><p>Now that, we are familiar with the virus. Let’s go into the data and visualization.</p><h4>Stack</h4><p>From the title of this article, I know a lot of people would question my decision to use R + Nodejs and not just R or Nodejs + D3 or Python + Plotly. The answer is<strong> the separation of concerns </strong>(kind of). R offers several impressive packages for data scraping, exploration, and visualization which could be used to achieve the same result but, personally, I consider R a tool for analysis and visualization and not a swiss-army knife for all things data.</p><p>Node.js is a JavaScript based backend framework that allows you to interact with databases, perform data extraction, transformation and feed the data through APIs for whatever purpose you want (in this case visualization using R)</p><p>I wanted to keep the data processing separate from the visualization at the same time playing to the strength of each technology used.</p><p><strong>The Data</strong></p><p>To calm my panicked mind about the spread of the virus, I needed a reliable source of information and the two I found were the <a href="https://experience.arcgis.com/experience/685d0ace521648f8a5beeeee1b9125cd">World Health Organization</a> which had a very impressive visualization (yeah, I am jealous. I would make a map visualization next to feel better) and <a href="https://www.worldometers.info/coronavirus/">Worldometer</a>. I had to filter out the information I needed from these sources to make a simple dashboard with just the right amount of information to give anyone looking at it an idea of the spread and key metrics of the virus.</p><p><strong>The Metrics</strong></p><p>The metrics that were important to me were:</p><ul><li>The currently infected patients</li><li>Patients condition (mild or critical)</li><li>Cases that had an outcome (Recovered or deaths)</li><li>Cases by location</li><li>Total deaths by date</li></ul><p>I chose these metrics over total cases and other fancy metrics like age and sex distribution, death distribution by area, and so on because these stats give anyone looking at it just the information they need at a glance (How many people have the virus, how many people are dying/surviving, where are these cases and how many are around me?). I believe the best visualizations are the ones that are easy to consume and, only provide the necessary information needed by the viewers to make the right decision at a glance.</p><p><strong>Extracting the Data</strong></p><p>The data was sourced from <a href="https://www.worldometers.info/coronavirus/">Worldometer</a> which offers a lot of information about the Coronavirus but having to go through all that data to find the information was the push I needed to create this dashboard.</p><p>Node.js has two very powerful data scraping packages in Cheerio and Puppeteer. For single-page data, Cheerio is your best bet but if you need to click buttons or wait for a page to load, Puppeteer is what you need. For this project, I used Axios and Cheerio to scrape the data. You can find the code on <a href="https://github.com/vic7ord1st/Corona_tracker_backend">GitHub</a>.</p><p>The code was written to scrape the data, process it, and return it in a JSON format that is easy to consume by the Jsonlite and httr packages in R. Using this approach of separation of concerns (kind of) reduces the build time for the Shiny app by removing unnecessary bloats from the Shiny app and just focus on visualization.</p><p>The JSON result for the cases by location from the Node API has the following structure</p><pre>{</pre><pre>&quot;country&quot;: [</pre><pre>&quot;China&quot;,</pre><pre>&quot;Italy&quot;,</pre><pre>&quot;Iran&quot;,</pre><pre>&quot;S. Korea&quot;,</pre><pre>&quot;Spain&quot;,</pre><pre>&quot;Germany&quot;,</pre><pre>&quot;France&quot;,</pre><pre>&quot;USA&quot;,</pre><pre>...</pre><pre>],</pre><pre>&quot;count&quot;: [</pre><pre>&quot;80,824&quot;,</pre><pre>&quot;17,660&quot;,</pre><pre>&quot;12,729&quot;,</pre><pre>&quot;8,086&quot;,</pre><pre>&quot;5,232&quot;,</pre><pre>&quot;3,758&quot;,</pre><pre>...</pre><pre>]</pre><pre>}</pre><p>and the response for the total deaths by date has the following structure:</p><pre>{</pre><pre>&quot;date&quot;: [</pre><pre>&quot;Mar. 13&quot;,</pre><pre>&quot;Mar. 12&quot;,</pre><pre>&quot;Mar. 11&quot;,</pre><pre>&quot;Mar. 10&quot;,</pre><pre>&quot;Mar. 9&quot;,</pre><pre>&quot;Mar. 8&quot;,</pre><pre>...</pre><pre>],</pre><pre>&quot;total_deaths&quot;: [</pre><pre>&quot;5,429&quot;,</pre><pre>&quot;4,981&quot;,</pre><pre>&quot;4,628&quot;,</pre><pre>&quot;4,296&quot;,</pre><pre>&quot;4,025&quot;,</pre><pre>&quot;3,827&quot;,</pre><pre>...</pre><pre>],</pre><pre>&quot;change_in_total_deaths&quot;: [</pre><pre>&quot;448&quot;,</pre><pre>&quot;353&quot;,</pre><pre>&quot;332&quot;,</pre><pre>&quot;271&quot;,</pre><pre>&quot;198&quot;,</pre><pre>&quot;228&quot;,</pre><pre>...</pre><pre>]</pre><pre>}</pre><p>The reason the responses were formatted this way was that it was the best way to parse JSON data to be consumed by the R packages for working with JSON data. The alternative was to export it as a CSV document but that increased the lag due to the unnecessary computation behind the scene.</p><p><strong>The Visualization</strong></p><p>For shareable visualization in R, there are a lot of options but interactive visualization which is what I was creating, Shiny is the best option.</p><p>Shiny is a package in R that allows you to create visualizations with little or no knowledge of web development. Shiny takes care of the heavy lifting and basic styling using Bootstrap but with a little effort, you can make your visualizations look better than the basic options presented to you by Shiny.</p><p>Once again, you can find the codes for the Shiny app on Github.</p><p>To visualize the data we need to consume the data from the API. This way, the server. R code has been reduced to just consuming and processing the visualization without the need to manipulate data, all that has been externalized to a more capable system.</p><p>To consume the APIs, I used the httr and jsonlite packages in R and because the data has been processed in the backend, no further manipulation needs to be done. Here is code for consuming the APIs, processing the data, and converting it to a data frame.</p><pre>totalDeaths &lt;-<br>  GET(&#39;<a href="https://vast-waters-77927.herokuapp.com/totalDeaths&#39;">https://vast-waters-77927.herokuapp.com/totalDeaths&#39;</a>) %&gt;% content(&#39;text&#39;) %&gt;% fromJSON() %&gt;%<br>  as.data.frame()<br>casesByRegion &lt;-<br>  GET(&#39;<a href="https://vast-waters-77927.herokuapp.com/casesByRegion&#39;">https://vast-waters-77927.herokuapp.com/casesByRegion&#39;</a>) %&gt;% content(&#39;text&#39;) %&gt;% fromJSON() %&gt;%<br>  as.data.frame()</pre><pre>casesWithOutcome &lt;-<br>  GET(&#39;<a href="https://vast-waters-77927.herokuapp.com/casesWithOutcome&#39;">https://vast-waters-77927.herokuapp.com/casesWithOutcome&#39;</a>) %&gt;% content(&#39;text&#39;) %&gt;% fromJSON() %&gt;%<br>  as.data.frame()</pre><pre>currentlyInfected &lt;-<br>  GET(&#39;<a href="https://vast-waters-77927.herokuapp.com/currentlyInfected&#39;">https://vast-waters-77927.herokuapp.com/currentlyInfected&#39;</a>) %&gt;% content(&#39;text&#39;) %&gt;% fromJSON() %&gt;%<br>  as.data.frame()</pre><p>To create an interactive bar chart and the line graph, I used Plotly which offers a rich repository of interactive graphs that can be modified, styled, and extended to fit whatever your visualization needs are. You can zoom in to the visualization to get very specific information or zoom out to get a general view of the information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*ZHjNz8yanCMf9n2QHUGW8w.png" /><figcaption>zooming into the data</figcaption></figure><p>With Plotly, you can also hover over the graphs to get to see details in tooltips that are not displayed on the graphs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/1*985pcsYGQz05hlV4FheoPA.png" /><figcaption>Tooltips in Plotly</figcaption></figure><p>For the styling, because I know a thing or two about CSS, I was able to add some styling to draw attention to pivotal information such as Recovered and Deaths.</p><p><strong>Conclusion</strong></p><p>You can view the entire visualization on <a href="https://crusadr.shinyapps.io/corona_tracker/">shinyapps.io</a> (pardon the lag, it comes with free hosting and Shiny apps). The idea of the visualization is to enable viewers to grab the needed information they need to know about the virus at a glance without having to wade through unimportant information.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2164d8fb232d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Spreadsheet API to Navigate Some Dialogflow Knowledgebase Limitations]]></title>
            <link>https://vic7ord1st.medium.com/using-spreadsheet-api-to-navigate-some-dialogflow-knowledgebase-limitations-1a4092036171?source=rss-c346332236a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a4092036171</guid>
            <category><![CDATA[dialogflow]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[entity-extraction]]></category>
            <category><![CDATA[fulfillment]]></category>
            <category><![CDATA[knowledge-base]]></category>
            <dc:creator><![CDATA[Victor Okoroafor]]></dc:creator>
            <pubDate>Sat, 18 Jan 2020 15:04:50 GMT</pubDate>
            <atom:updated>2020-01-18T15:04:50.450Z</atom:updated>
            <content:encoded><![CDATA[<h4>I have written this article in such a way that it is easy to follow for both technical and non-technical chatbot developers.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B4QQFhNAf1mwl3Z5crgDbQ.jpeg" /><figcaption>source: chatbots life</figcaption></figure><p>When Dialogflow launched the knowledge connector feature in 2018, Dialogflow chatbot developers were over the moon because it simplifies the process of creating FAQ bots, simple bots for small businesses and knowledge data bots. This feature allows you to add predetermined sources of knowledge such as websites, FAQs or knowledge base articles(called knowledge documents), that can be queried when certain inputs match the triggers.</p><p><strong>Now picture this:</strong></p><p>You get a client who has an online pet shop and wants an FAQ chatbot that uses AI to decipher users queries, extract the pet breed from the queries and respond with a link to the page on their store with more information about the breed (Looks easy right? 😎). Your mind goes into overdrive as you start to piece together how the knowledgebase feature will get this task done in less than an hour so you can call that day a successful day.</p><p>Then your client tells you “the bot is going to be Italian and there are over 200 breeds”. Since you know Dialogflow supports the Italian language, you shrug and still salivate over how easy the project will be using knowledgebase connectors. You seal the deal, send a quote and get paid your advance. Now it is time to go to work.</p><p>You create a new agent, set the language option to “Italian”, turn on beta features to be able to use Knowledge connectors when you are greeted with this nightmare “Currently Knowledge connectors only support English”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VyGbNfBTAuLbGuyrLKYXOQ.png" /><figcaption>knowledge connector only supports English</figcaption></figure><p>You have been poked, how will you respond?</p><p>You think of creating intents for all the breeds in the FAQ document, but it will be a nightmare to create over 100 intents with training phrases that are similar and would result in misfiring intents and several warnings from Diagflow, telling you that the intents training phrases are similar for all the defined intents. What if the client wants to extend the list to contain more breeds?</p><p>Now you are in a fix, You promised to deliver a solution that allows your client to extend the list, but you are faced with this complex huddle with the only feasible solution looking like hours of uninspiring data entry with the outcome certain to be a disaster.</p><p>Another dilemma would be a situation where you need your knowledgebase to have more than two columns. for example, you want to be able to return say product description, price, and some tags for a list of products in a store. With the knowledgebase connector, you are restricted to two columns when using spreadsheets as your knowledge document. You can also solve this dilemma by modifying the <a href="https://github.com/vic7ord1st/Breeds.git">code</a> used for this example by increasing the range of the spreadsheet (for this example, I am using a two-column spreadsheet).</p><p><strong>Requirements</strong></p><ul><li><a href="https://cloud.google.com/dialogflow/docs/entities-overview">Entities</a></li><li><a href="https://cloud.google.com/dialogflow/docs/fulfillment-overview">Fulfillment</a></li><li><a href="https://developers.google.com/sheets/api">Google spreadsheet API</a></li></ul><p><a href="https://cloud.google.com/dialogflow/docs/entities-overview">Entities</a> in Dialogflow dictates exactly how data from an end-user expression is extracted and processed in intents. But in this case, we would be using entities to extract the breed from the user input which would then be used to query the spreadsheet for that breed information.</p><p><a href="https://cloud.google.com/dialogflow/docs/fulfillment-overview">Fulfillment</a> allows us to connect Dialogflow with other services based on matched intents and entities. Each intent in Dialogflow allows you to toggle fulfillment on and off.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*NAev9Lqtv9CRZi8ODs8afw.png" /><figcaption>Fulfillment toggles in intents</figcaption></figure><p><a href="https://developers.google.com/sheets/api">Google spreadsheet API</a> is what I like to refer to as a cheap database alternative for small businesses that don’t require or can’t afford the complexities of maintaining a database and still want the ability to modify the data without having to shell a fortune to create a dashboard to manage data stored in their database.</p><p><strong>Now the solution:</strong></p><p><strong>Setting up the spreadsheet</strong></p><p>In this example, the information to be stored on the spreadsheet are the breeds and links to more information about the breeds on the client’s website.</p><p>I will use a two-column approach (one column contains the breed names and the other column contains the links) for this example but as I stated earlier, this feature can be extended to include more columns depending on your objective.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/388/1*Tw8vzjFjabZs2NVNP1cWTw.png" /><figcaption>Two-column approach</figcaption></figure><p><strong>Setting up Dialogflow</strong></p><p>Dialogflow is more than intents matching and knowledgebases. Dialogflow can also be used for entity extraction and fulfillment. These concepts will be key to solving this problem.</p><p>First, create an entity that contains all the cases or keywords you want Dialogflow to detect from a user’s query and the corresponding synonyms for those cases as shown in the image below (in this case, it is an entity that contains all the breeds in the spreadsheet). You can create entities in the Dialogflow console or use the Dialogflow client’s createEntityType method in Dialogflow client if you are building a system that allows your clients to upload more entities in the future.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0BdQBfRsp-5Wp9nchdeQfw.png" /><figcaption>An entity of dog breeds (in Italian) and their corresponding synonyms</figcaption></figure><p>Next, create an intent that will be used to catch all user inputs that contain the keywords in the entities. This catchall intent should be assigned a high priority so it the preferred option when matching intents to a query.</p><p>After creating the intent, add as many training phrases with the entities you want extracted placed in different positions in the training phrases (beginning, center, and end), this helps Dialogflow identify edge cases and expect the entities to be placed anywhere.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*Qp60_CQvnPt-K5ptJ0Z8hQ.png" /><figcaption>Dialogflow identifying defined entities</figcaption></figure><p>Toggle fulfillment at the bottom of the intent and save the intent.</p><p><strong>Now the cool part 😎</strong></p><p>If you are using the Dialogflow console, click fulfillment in the menu and toggle the inline editor. It would take a minute or two to set up the cloud function and when it is done, you are ready to go.</p><p>To allow Dialogflow to read the data on the spreadsheet, you need to grant access to the service account email associated with your Dialogflow agent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*CbrwW4xfadHE8cd3g2cj2g.png" /><figcaption>Share option on google spreadsheet</figcaption></figure><p><em>You can find the complete code for this section on </em><a href="https://github.com/vic7ord1st/Breeds.git"><em>GitHub</em></a><em>. You will need to modify it slightly to fit your spreadsheet structure and results.</em></p><p>After granting Dialogflow access to the spreadsheet, the next step will be to query the spreadsheets with the entities extracted by the catchall intent. Define a function that takes an agent as its parameter. The agent contains all the information about the request and parameters extracted by Dialogflow.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/810c13e01206f5dc038e56603091d35d/href">https://medium.com/media/810c13e01206f5dc038e56603091d35d/href</a></iframe><p>In this example, the function extracts the entities from the agent, queries the spreadsheet with the entities and returns the link associated with the entity. This can be extended to return any other information within the spreadsheet, making it work like the knowledgebase connector.</p><p>Finally, map the function to the intent, so it is triggered anytime Dialogflow matches inputs to that intent. In this example, the intent is called catchAll (See what I did there 😉) and whenever any request to Dialogflow is matched to the catchAll intent, the spreadsheet function is called (you can find the complete code <a href="https://github.com/vic7ord1st/Breeds.git">here</a>).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5d302b08f25ff27e346eb54712eed267/href">https://medium.com/media/5d302b08f25ff27e346eb54712eed267/href</a></iframe><p>Deploy the function, this should take a minute or two. When this is done, allow the agent to train based on the new information provided.</p><p>Test the setup and you should that it is fetching data from the spreadsheet anytime the catchAll intent is matched</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/1*WUzGPjGGaHvNCABMZYedjw.png" /><figcaption>test result</figcaption></figure><p>Conclusion</p><p>Working with knowledgebase in Dialogflow makes it a lot easier to build chatbots with limited capabilities. But like everything else, there are limitations to what can be done and that means you have to look for creative workarounds. The example covered in this article is a workaround the knowledgebase language limitation but can be extended to solve the two-column limitation on knowledge document.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a4092036171" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Review of Chatbots in 2019 and some trends you should be using in 2020]]></title>
            <link>https://medium.com/voice-tech-podcast/review-of-chatbots-in-2019-and-some-trends-you-should-be-using-in-2020-7930d1e7de1c?source=rss-c346332236a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/7930d1e7de1c</guid>
            <category><![CDATA[conversational-ui]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[chatbot-platforms]]></category>
            <category><![CDATA[chatbot-development]]></category>
            <category><![CDATA[bots]]></category>
            <dc:creator><![CDATA[Victor Okoroafor]]></dc:creator>
            <pubDate>Tue, 24 Dec 2019 14:56:08 GMT</pubDate>
            <atom:updated>2020-01-05T06:57:00.243Z</atom:updated>
            <content:encoded><![CDATA[<p><em>2019 was a phenomenal year for chatbots which saw businesses adopting the philosophy “If I can’t get them to download my app, why not offer the same features on their favourite social media platform”.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iL9KWUSR8-SE87aKu8H7yA.png" /><figcaption>acquire.io</figcaption></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fbingewith.com%2Farticle%2F%3A%3A_Generate_Audio&amp;dntp=1&amp;display_name=BingeWith&amp;url=https%3A%2F%2Fbingewith.com%2Farticle%2F%3A%3A_Generate_Audio&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=bingewith" width="480" height="110" frameborder="0" scrolling="no"><a href="https://medium.com/media/d6a9e202d4ee773dbc23199fcf6d186c/href">https://medium.com/media/d6a9e202d4ee773dbc23199fcf6d186c/href</a></iframe><p>Since social media has become an indispensable part of everyday life and because of the rise in the use of chatbots, people are becoming increasingly comfortable booking appointments, making purchases, buying tickets, resolving customer complaints and tracking orders right within their favourite social media platform.</p><p>Some businesses came into 2019 hoping that integrating a chatbot into their business model will allow them to automate customer care services, marketing and so on. <a href="https://chatbotslife.com/chatbots-vs-email-when-to-use-them-as-marketing-support-channels-3a9e5567dc20">Chatbot marketing was lauded as the next frontier to be conquered with open rates in the high 80%</a>, but 2019 showed us that businesses who used chatbots for a specific function got the most out of chatbots and showed how ineffective it is to have a chatbot that attempts to do it all. Proving that just like in everything in life, there is no one size fits all solution that works 100% of the time.</p><p>AI-backed chatbot at the beginning of 2019 was all the rave with the advancements in NLP, sentiment analysis and AI giants Google, Microsoft and IBM pushing out more and more groundbreaking features. It felt like the year where everything finally fits. While an AI-based chatbot can be trained over time to be able to navigate everyday language nuances, in reality, that is still a long shot which can currently only be handled by large businesses with oceans of data. The most efficient use case of AI-based chatbots for small and medium-sized businesses so far has been chatbots that handle just one task and one task only such as FAQ bots, scheduling appointments, tracking packages and so on.</p><p>Now having considered the promises going into 2019 and the lessons learnt at the end. It is only ideal that we build on experiences from 2019 to make chatbots more effective for businesses. Let’s consider some realistic trends that you should integrate into your business to take advantage of chatbots in 2020.</p><p><strong>Voice-based chatbots</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/1*IMp6cn5Md3TzoV9Z6i16gg.png" /><figcaption>chatbotmagazine.com</figcaption></figure><p>Voice-based apps have been around for some time, but we quickly realised how far we were from that perfect reality where everything is voice-based because of problems slike accents, colloquial adaptations of pronunciations and a host of many other issues. But with the increase in the use of voice assistants in carrying out routine tasks, the AI giants (Amazon, Google, Microsoft and Apple) have risen to the occasion with upgrades to their voice assistants and supporting libraries to make it easier to build chat-based apps on their platforms.</p><blockquote>Build better voice apps. Get more articles &amp; interviews from voice technology experts at <a href="https://voicetechpodcast.com/">voicetechpodcast.com</a></blockquote><p>Businesses can leverage this growth in the use of voice-based apps to bring their services closer to their customers, by focusing on building voice-based apps to serve just a single purpose like making it easy to order flowers and get them delivered by just speaking to the voice assistant and not having a voice-based chatbot that allows you order flowers, check promotions, upsell and lots more. as a small business, if you need a chatbot to carry out multiple functions, it should be rule-based and on a text platform.</p><p><strong>Chat-based App design</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*7_4p5rNOts6Ro6SJPfsv-A.png" /><figcaption>Lemonade.com</figcaption></figure><p>With people becoming accustomed to getting services rendered or delivered via chat interface. It is becoming stressful to navigate an app just to get a service rendered especially when a form is involved (I personally cringe whenever I see a form layout no matter how beautifully designed it is). But we fill forms every day when interacting with chatbots but do not consider them as forms because of their conversational nature. In 2020, you want to include a chat interface in your app so users have the option of chatting with a voice assistant that can perform all the functions of the app. This makes it easier for users to get things done via your app and builds reliance on the app to carry out that specific function. An app that utilises this feature to perfection is the <a href="https://www.lemonade.com/">lemonade app for home insurance</a></p><p><strong>Marketing Trends</strong></p><p>in 2019, it was common to see giveaways, coupon-based campaigns, upsells, runner-up promotions, Amazon review generating promotions such as rebate offers and discounted sales. In as much as these are very successful concepts, they are cliche and one dimensional. After the sale, your bot becomes redundant and any further message from it gets ignored because it considered a sales pitch. I<a href="https://medium.com/swlh/lessons-learned-from-designing-and-building-over-100-chatbots-4311a5bb2315">n an earlier article</a>, I talked about how customers want to be part of the process, here are some things you can do to ensure your chatbot continues to be useful in 2020.</p><ul><li>Genuinely ask your customers after purchase how the product is and if they need help using the product. This way you do not only get the review you want at the end because the product is used the right way, but you also have a customer who feels you really do care about them and these opens doors for future marketing.</li><li>Include a QRcode inside every package you deliver with an offer if your customers scan the codes. This allows you to connect with your customers and can be used to generate reviews and upsells.</li><li>You want to provide a medium for customers to be able to start a conversation on one platform and pick up where they left off on another platform creating a unified user experience.</li></ul><p><strong>Human Resource Trends</strong></p><p>Chatbots have already started gaining grounds in human resource management from answering commonly asked questions within organizations to time management. But in 2020 we will see a rise in the use of chatbots for:</p><ul><li>Onboarding of new members of staff</li><li>Handling more complex queries</li><li>Increase productivity by tracking project updates</li></ul><p><strong>Conclusion</strong></p><p>While these predictions are made every year, it is quite easy to see from the advancements made with AI in 2019, that 2020 will be an exciting time for chatbot usage in building engagements, generating sales, offering optimum customer experience. We are not any close to chatbots ultimately replacing humans but we are heading in that direction with these increasing advancement in AI technology. Embrace this growth and start implementing chatbots effectively in your businesses</p><h3>Something just for you</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Flinks.collect.chat%2F5d8c870c8705ce12e45fb7d0&amp;dntp=1&amp;display_name=Collect.chat&amp;url=https%3A%2F%2Flinks.collect.chat%2F5d8c870c8705ce12e45fb7d0&amp;image=https%3A%2F%2Fcollect.chat%2Fassets%2Fimages%2Flogo-green.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=collect" width="600" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/7f5cb45fd785102f7af729c560e2de3f/href">https://medium.com/media/7f5cb45fd785102f7af729c560e2de3f/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2F6b7b35%3Fas_embed%3Dtrue&amp;dntp=1&amp;display_name=Upscribe&amp;url=https%3A%2F%2Fupscri.be%2F6b7b35%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/8a76a1650cf30355bd307195d382558a/href">https://medium.com/media/8a76a1650cf30355bd307195d382558a/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7930d1e7de1c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/voice-tech-podcast/review-of-chatbots-in-2019-and-some-trends-you-should-be-using-in-2020-7930d1e7de1c">Review of Chatbots in 2019 and some trends you should be using in 2020</a> was originally published in <a href="https://medium.com/voice-tech-podcast">Voice Tech Podcast</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lessons learned from designing and building over 100 chatbots]]></title>
            <link>https://medium.com/swlh/lessons-learned-from-designing-and-building-over-100-chatbots-4311a5bb2315?source=rss-c346332236a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/4311a5bb2315</guid>
            <category><![CDATA[conversational-ui]]></category>
            <category><![CDATA[chatbots-for-business]]></category>
            <category><![CDATA[chatbot-development]]></category>
            <category><![CDATA[conversational-ai]]></category>
            <category><![CDATA[chatbots]]></category>
            <dc:creator><![CDATA[Victor Okoroafor]]></dc:creator>
            <pubDate>Thu, 21 Nov 2019 04:57:44 GMT</pubDate>
            <atom:updated>2019-12-16T07:21:38.596Z</atom:updated>
            <content:encoded><![CDATA[<h4>I have broken down these lessons so it is easy to consume for both beginners and seasoned chatbot developers.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LKZGHfWmpoz3C23Glygq2g.png" /><figcaption>Source: undraw.co</figcaption></figure><p>Navigating the world of chatbots has been one heck of a voyage. I have developed several bots for businesses which include e-commerce stores, agencies, coaches and local businesses. I have come to the realization that it is easy to get drawn into the tools of the trade required to build the chatbots and ignore the ultimate goal, which is to engage with your audience and bring them into your world.</p><p>Here are the lessons that always guide every bot I have built.</p><p><strong>Summary</strong></p><ul><li>Always follow the tenets of conversational design</li><li>Create the entire flow before you start creating the bot</li><li>Your focus shouldn’t be on what you can do with your toolbox but on what your average user expects</li><li>AI is not everything but it is a formidable ally if used in the appropriate situation</li><li>Context is everything</li></ul><p><strong>Always start with conversational UX</strong></p><p>Conversational UX is usually touted as the primary core of marketing regardless of the platform or product. With the growing heavy reliance on data to drive sales and engagement, it is evident that customers want to be part of the process. Customers want specialized services and want it built exactly to their taste. S<a href="https://www.researchgate.net/publication/256536623_Reflections_on_Emotional_Attachment_to_Brands_Brand_Romance_and_Brand_Love">tudies have shown that customers are more likely to continue patronizing a brand they feel emotionally connected to</a> and this is what you want when designing your bot.</p><p>it is crucial to map out the emotional aspect of the bot before you start geeking away and creating the bot. The last thing you want is for your bot to come off as insensitive and unhelpful, that is why you need to set the emotional tone at the design level</p><p>When designing the conversational feel of your bot you want to focus on the pillars of conversational building and <a href="https://designguidelines.withgoogle.com/conversation/conversation-design/what-is-conversation-design.html#what-is-conversation-design-what-isnt-conversation-design">build like an architect as suggested by google</a>. These pillars are:</p><ul><li>Cooperative principle</li><li>Turn-taking</li><li>Context</li></ul><p>Another important thing to consider before you start geeking away is to ensure that the bot provides the user with enough information to make a decision about their next action or request from the bot. A common mistake I have seen chatbot creators make (I used to make this mistake too) is to assume that their audience know they are supposed to click a button or respond with a particular word or collection of words. If you are building a rule-based chatbot, you need to guide your users so it is explicitly clear what the next action should be and don’t ask open-ended ambiguous questions that would end with your chatbot and your audience looking like fools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*daNpFSwfV_Xeun_d6dsT1g.jpeg" /><figcaption>Poncho weather bot is a classical example</figcaption></figure><p>When designing the conversational experience, always have in mind that <strong>context is everything</strong> and this requires a lot of planning. You will have to put yourself in the shoes of the average user of the chatbot (The law of averages work here too), consider as many entry scenarios as possible and structure your contexts around them.</p><p>It is cliche to say you should define your average user, how they communicate, what platform they prefer to hang out on, what the structure of their conversation feels like and what type of words they use (millennials are big on emojis). it is very important that you have all these figured out before you create the chatbot to avoid the bot breaking down at every complex in-context speech thrown at it.</p><p><strong>design the conversational flow before you start building out the chatbot</strong></p><p>After covering the conversational design, the next step will be drafting the entire flow from start to finish (emphasis on start to finish). At this point, it is tempting to open up your favorite chatbot building toolbox to bring the chatbot to life, but that would result in a lot of confusion especially when you are working on a team or someone has to take over from where you left off.</p><p>Building out the dialog from beginning to end makes it easy to build the bot when you start, it keeps your thought process aligned and stops your ever creative mind from venturing into weird fantasies of how the bot should work deviating from the audience centered design</p><p><strong>Remember that it is a conversation</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*OhyQQdL9XugpiHQtA27M3Q.gif" /><figcaption>source: giphy</figcaption></figure><p>In my earlier years of building out conversational interfaces and dialog flow (you see what I did there ☺), I would be more focused on getting it all out there and shoving as much content to the unsuspecting visitors. This is a therapy for a useless bot and I learned that the hard way.</p><p>Remember that the reason it is called a chatbot is that it is conversational and not a blog post crammed into messages. You want to make sure that your style of conversation is built around how your audience communicate and the tone that they expect. An entertainment bot should not be formal and banking bot should not be telling jokes.</p><p>Make sure that the copy is short and straight to the point and only lengthy when it is absolutely necessary. You also want to break lengthy messages into smaller chunks of consumable information to avoid overwhelming your audience and forcing them to endure the constant barrage of information.</p><p>conversations are mostly built around turn-taking and just like every normal human interaction, if one person is doing all the talking then the other person begins to feel excluded (and may just as well go to sleep). It is paramount to build the conversation in a way that the user feels present in the conversation. If you fully utilize the maxims of conversation building when creating your chatbot dialogue, you can then account for possible responses and create the appropriate fallback intents when needed.</p><p>In case of a linear design or rule-based design, you want to make sure you let your audience know what responses you expect from them but if you are utilizing AI-driven solutions like Dialogflow, IBM Watson or Microsoft bot framework, you can be flexible with that option and build by context.</p><p><strong>Build with the platform in mind</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6G6NrtlLm_K2owE6q-SOGg.png" /><figcaption>Source: undraw.co</figcaption></figure><p>At this point, you should have figured out the platform and if you are targeting multiple platforms, there is no “one size fits all” solution. You have to build utilizing the tools and options available for that platform.</p><p>I have seen chatbot developers use the same copy for voice-based bots and a messenger based bots. It is a convenient solution but therapy for disaster. There are features and nuances used in these platforms that your users are familiar with. You should utilize these features as they were meant to be used, this would give your bot the expected human.</p><p>Voice conversations are totally different from the way we converse via text. Text-based platforms like WhatsApp and messenger allow you to give prompts and accents are pronunciations are not an issue on text platforms but for voice-based platforms, the flood gates of potential issues open up if you have a messenger or WhatsApp conversational design integrated into a voice-based bot.</p><p><strong>It doesn’t always have to be AI-driven</strong></p><p>When it comes to deciding if you need an AI-based design or a rule-based design, there are several things you should consider.</p><ul><li><strong>Cost</strong></li></ul><p>AI-based solutions are more expensive to manage because of the need for continuous improvement and training that comes with new information, changing ways of communication and customer feedback. They require continuous monitoring because of the multiple ways customers can break the bot, so these require hands-on-deck. In the long run, it is a more effective solution as the bot becomes familiar with the way your target audience communicates. The most common use cases are consulting bots, diagnostics bots, and personal assistants.</p><p>A rule-based solution is relatively very easy to build and requires very little maintenance because the instructions are pretty much clear for your audience to follow. The most common use cases for rule-based design are FAQs, e-commerce chatbots, banking bots, and appointment bots. The actions that the bot can perform must be spelled out so that it is glaring to your users what the next action would be.</p><ul><li><strong>Technical requirement</strong></li></ul><p>These days, it is almost equally easy to build both an AI-driven chatbot and a rule-based chatbot. Platforms like Dialogflow make it easy to build any type of chatbot without writing any code but, to fully unlock the potential of AI chatbots, some technical knowledge is required to properly utilize fulfilments and integrations with other platforms.</p><p>For rule-based chatbots, I would recommend platforms like Manychat, Chatfuel, and mobile monkey. You don’t need to be technically adept to use any of these platforms, they provide a very interactive designer interface where you can drag and drop features giving you the time to focus more on the conversational design.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4311a5bb2315" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/lessons-learned-from-designing-and-building-over-100-chatbots-4311a5bb2315">Lessons learned from designing and building over 100 chatbots</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Started With D3.js]]></title>
            <link>https://vic7ord1st.medium.com/getting-started-with-d3-js-9ba354977856?source=rss-c346332236a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ba354977856</guid>
            <category><![CDATA[visualization]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[d3js]]></category>
            <dc:creator><![CDATA[Victor Okoroafor]]></dc:creator>
            <pubDate>Sat, 10 Nov 2018 16:15:26 GMT</pubDate>
            <atom:updated>2018-12-15T08:25:17.609Z</atom:updated>
            <content:encoded><![CDATA[<p>A beginners guide to the complex world of visualization for the “un-javascript-ed”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y-lwDmqMClp9kLcpD3J01A.jpeg" /></figure><p>I have been a data analyst for some time using R and Python to do my heavy lifting and visualization. While scouring youtube for some updates on the next Marvel movie, I stumbled upon <a href="https://www.youtube.com/watch?v=z0aLLAW52oA&amp;vl=en">this video</a> and was amazed by the beauty and responsiveness of the dashboard.</p><p>So this is supposed to be the first in a series of how I went from a total novice in d3.js to a d3.js Jedi.</p><p><strong>Why D3.js?</strong></p><p>A straightforward answer will be so that you can share your visualizations with anyone at any time without having to install any software or interpreters. The output is usually a webpage that can be viewed from any browser with SVG compatibility.</p><p>The fact that you can think of any crazy visualization for your data and not be limited to fixed templates or visualization formats is the main reason I decided to take this path despite having very little knowledge (close to none) of Javascript.</p><p>We can also consider the vibrant online community as an added benefit where you can always find someone to help you navigate crooked paths.</p><p><strong>Requirements to Begin DOM-manipulation with D3</strong></p><ul><li><strong>Sublime Text</strong></li></ul><p>Sublime text is a code editor that can offer code completion with the relevant packages installed making your job easy and reduces the need to memorize long code snippets. Other good alternatives will be Atom and Notepad++ but I feel very comfortable with sublime text but you can explore others to find one that works for you.</p><ul><li><strong>Node.js or Python</strong></li></ul><p>I am more comfortable with python because I have experience using it but I decided to try my hands out on Nodejs and learn a little about it along the way.</p><p>you will need either of these to set up a local server to serve your visualization. I am sure there are a lot of other options out there so feel free to explore and find one you are comfortable with.</p><p><strong>Let’s jump right in</strong></p><p>I have uploaded the code and the JSON data used for the simple visualization on <a href="https://github.com/vic7ord1st/d3project">GitHub</a> you can grab it there and play around with it and make something of your own.</p><p>Open up sublime text and navigate to the folder where you intend to store your codes ( I prefer creating work folders on my desktop because it makes it helps me stay organized but use any location you are comfortable with). in sublime text navigate to <strong>preference &gt; package control &gt; Install package</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fk6PqlEqhZ6YHNLt1N7DCA.png" /></figure><p>search for “d3js” and install “d3js v4”. Once installed it will provide auto-completion for you as you write you D3 visualization code and generate the complete snippet in some cases.</p><p>You can download the entire folder for this visualization on <a href="https://github.com/vic7ord1st/d3project/blob/master/Medium.7z">Github</a>. when you open it up, navigate to the folder in sublime text, the index.html file should look like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LYGj5f0nkNJ_kOJTUyxEwg.png" /></figure><p>For the local server fire up command prompt and cd to the directory that contains your code (in my case it will be the medium folder). To fire up a local server in the folder to serve our visualization in Nodejs use the code below in command prompt.</p><pre>http-server</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*mwMMY3tTNKVVsgE-yb8sKw.png" /></figure><p>for python, you can launch a local server in the same directory where your visualization files are (or cd into the directory) using</p><pre>python -m http.server</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/544/1*0-9t9FGhjNhTJUI3pzM78w.png" /></figure><p>when this is done you can open your browser and launch the visualization using the address provided in the server and by default, it renders the index.html file. it should display the visualization below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O4LV--O8hI0WfzPDpT6qzA.png" /><figcaption>This is my first visualization with d3js and I am proud of it, I should get it framed :)</figcaption></figure><p>The D3 code responsible for this pinkish visualization is shown below. It can be gotten from <a href="https://github.com/vic7ord1st/d3project/blob/master/Medium.7z">Github</a> and modified to fit your visualization delight.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fbb233d02ad3968cd442ca6c32890d9a/href">https://medium.com/media/fbb233d02ad3968cd442ca6c32890d9a/href</a></iframe><p>your local server should register some activities. It is not something that should make you panic if you are a novice, but seasoned programmers will be used to seeing it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*8l5UKSM14JW5i7keg7JBGA.png" /></figure><p><strong>Conclusion</strong></p><p>In this article, I have covered the basic requirements to get started on your journey to being a data visualization expert using my own experience. The codes responsible for the visualization can be seen in the “barcode.js” file, you can view and edit it in sublime text.</p><p>in the next article, I will be covering the D3 concepts that generated this particular visualization and more.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ba354977856" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>