<?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[Kudi Engineering - Medium]]></title>
        <description><![CDATA[Making financial services accessible and affordable for all Africans. Get started at: https://kudi.co - Medium]]></description>
        <link>https://medium.com/kudi-engineering?source=rss----d2b985b8cef2---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Kudi Engineering - Medium</title>
            <link>https://medium.com/kudi-engineering?source=rss----d2b985b8cef2---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 08:43:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/kudi-engineering" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[An Overview: Building Folly — A Slackbot that processes data requests in plain language]]></title>
            <link>https://medium.com/kudi-engineering/an-overview-building-folly-a-slackbot-that-processes-data-requests-in-plain-language-8584de1eb121?source=rss----d2b985b8cef2---4</link>
            <guid isPermaLink="false">https://medium.com/p/8584de1eb121</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[slackbot]]></category>
            <category><![CDATA[kudi]]></category>
            <category><![CDATA[bots]]></category>
            <dc:creator><![CDATA[Philip Obosi]]></dc:creator>
            <pubDate>Tue, 17 Sep 2019 14:38:15 GMT</pubDate>
            <atom:updated>2019-09-26T00:17:53.725Z</atom:updated>
            <content:encoded><![CDATA[<h3>An Overview: Building Folly — A Slackbot that processes data requests in plain language</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/745/1*MZ6-nfBYELjK9RocuOStHw.png" /></figure><h3>Introduction</h3><p>With a focus on delivering value to our customers most efficiently and affordably, the internal tooling team at Kudi continues to build tools that foster the effective distribution of data across the company. Working on the internal tools team at Kudi has been an enjoyable experience of innovating around problems faced by the company. We ensure that we align with the company’s goal of delivering affordable financial services primarily to the unbanked.</p><p>This article focuses on breaking down the engineering behind the design and implementation of a new tool. This tool has helped to automate some of our data requests in recent times. With some further enhancement, it will be able to do a lot more soon.</p><p>Introducing <strong>Folly</strong>, a Slackbot that helps process data requests in plain texts at Kudi. Here’s a sneak preview:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*t9Fqr3j7Vgy3U4bs.png" /></figure><p><strong><em>Folly </em></strong><em>is named after </em>Fola Animashaun,<em> a prolific Data Engineer/Analyst at Kudi. Before the development of this tool, Fola always attended to all data requests within the organization.</em></p><p><strong>Why was Folly designed?</strong></p><h3>The Problem</h3><p>Financial organizations thrive on the ability to generate, collect, distribute, and analyze data. The best Fintech companies stand out for their ability to do so quickly, reliably, and affordably. The problem with data distribution at Kudi was that there was a <strong>single point of failure</strong>. This meant that for all data requests, there was only one person responsible for attending to these needs. Mostly manual, this tended to be risky. In many cases, needs were resolved <strong>reactively</strong> rather than <strong>proactively. Consequently, the response time was </strong>sluggish and <strong>stressful</strong> for Fola, who had to carry out never-ending routine tasks.</p><p><strong>The big question?</strong></p><p>How can data flow across the organization quickly, in a proactive and automated fashion?</p><h3>Design Thinking</h3><p>To design a solution that works, we had to do an atomic breakdown of the <strong>perceived </strong>problem. At the lowest levels, the problems were <strong>accessibility</strong>, the <strong>repetitive nature</strong> and <strong>mechanical resolution</strong> of requests.</p><ul><li><strong>Inaccessibility of data for exploration: </strong>Teams that needed data didn’t have them readily available for exploration. Thus, it was difficult to notice trends or abnormalities within data collections. This also means that data was made available on demand which was not scalable for an organization that has grown to process over <a href="https://medium.com/instagram.com/p/B2UIXwjBHYw/"><strong>1 Billion Naira in daily transaction value</strong></a><strong>.</strong></li><li><strong>Repetition begets automation: </strong>Most data requests were repetitive. This meant that they could be anticipated and resolved ahead of time across the organization. This would have an immeasurable impact on productivity for most teams, saving 3–4hours of daily data hunting.</li><li><strong>A single point of failure: </strong>Having one person directly receive, manage, and process these requests was not scalable. Productivity became difficult to track, resulting in excessive load on one individual. In the absence of the individual, the processes would slow down tremendously or halt until further notice.</li></ul><p>The nature of the problem quickly points in the direction of a bot. A bot that is accessible, that runs tasks automatically (as fittingly named) and could process streams of requests efficiently and concurrently.</p><p><strong>Oops! A bot isn’t human. How would it understand my request?</strong></p><p>A serious concern, indeed! However, a significant advancement in machine learning over the years is <strong>Natural Language Processing(NLP)</strong>, which describes a way to convey intent and context in natural language and have machines understand them enough to respond appropriately. So, it’d be okay if the bot could somehow understand the intent in a statement like <strong>“What is the transaction breakdown by states for the last two weeks?”</strong></p><p>Aha! This just got exciting.</p><h3>The Solution</h3><p><strong>For accessibility</strong>, we made it a <strong>Slackbot </strong>as the company’s primary communication channel is Slack, and a significant portion of work already takes place there. Additionally, its conversational interface could easily be adapted for this purpose, instead of building one from scratch.</p><p>To make the bot easy to use, we made use of NLP via Google’s Dialogueflow to parse requests for intent and context. This helped us extract specific triggers that describe the required data.</p><p>Next, we needed to translate the extracted intent into the right SQL queries needed to pull data from our data warehouse hosted on Google’s BigQuery. To achieve this, we built a universal query constructor that could accept the following parameters:</p><ul><li>Dataset- This was used to represent what dataset the user is interested in. This could be transactions, terminals, agents, etc.</li><li>Status- This indicates the status of the selected entity e.g., successful, pending or refunded transactions</li><li>Geo-City- This specifies the location which the user is interested in.</li><li>Date- This specifies the date e.g., “two days ago.”</li><li>Date Period- This specifies a date range, e.g., “in the last two weeks.”</li><li>Group- This specifies an aggregation parameter, e.g., “number of transactions by state.”</li><li>Format- The format in which the data should be returned. This could be in plain text, a CSV file or a chart(coming soon).</li></ul><p>Based off these parameters, Folly could construct the SQL for the required data, run it against our data warehouse and return the data in the specified format.</p><p>Pretty cool, right?</p><h3>The story so far:</h3><p>Since its creation and launch, Folly has processed over 1000+ requests and is continuously being improved to achieve a seamless flow of data across the organization. We look forward to a time when all data requests will be automated and easily fulfilled with Fola having to handle only requests with very custom requirements.</p><h3>What you should expect</h3><p>In the coming weeks, we would be working on improving the bot in the following ways:</p><ul><li>Finding transaction, agent and terminal-specific data</li><li>Getting results in specified visual format e.g., charts and graphs.</li></ul><p>In the articles to follow, we will go into a more technical breakdown of the development stack used and do a step-by-step examination of the procedures involved.</p><p><strong>See you there! ☺️</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8584de1eb121" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kudi-engineering/an-overview-building-folly-a-slackbot-that-processes-data-requests-in-plain-language-8584de1eb121">An Overview: Building Folly — A Slackbot that processes data requests in plain language</a> was originally published in <a href="https://medium.com/kudi-engineering">Kudi Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>