<?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 Lawe Sosah on Medium]]></title>
        <description><![CDATA[Stories by Lawe Sosah on Medium]]></description>
        <link>https://medium.com/@sosahlawe?source=rss-18635d93133c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*BI2EoBzB6fdSlyS_</url>
            <title>Stories by Lawe Sosah on Medium</title>
            <link>https://medium.com/@sosahlawe?source=rss-18635d93133c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 21:48:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sosahlawe/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[How to Set Up an AI Phone Answering Service for Your Small Business in 2026]]></title>
            <link>https://medium.com/@sosahlawe/how-to-set-up-an-ai-phone-answering-service-for-your-small-business-in-2026-557123aafec5?source=rss-18635d93133c------2</link>
            <guid isPermaLink="false">https://medium.com/p/557123aafec5</guid>
            <category><![CDATA[business-automation]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[leads]]></category>
            <category><![CDATA[appointment-scheduling]]></category>
            <dc:creator><![CDATA[Lawe Sosah]]></dc:creator>
            <pubDate>Sat, 16 May 2026 19:50:37 GMT</pubDate>
            <atom:updated>2026-05-16T19:50:37.237Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Stop losing customers to voicemail. Here’s exactly how to get an AI receptionist answering every call — with Google Calendar booking and WhatsApp confirmations — in under 5 minutes.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VfGQsodoANqFxTBY4SaDTA.jpeg" /></figure><p>Every small business owner knows the feeling.</p><p>You’re in the middle of something important — serving a customer, finishing a job, sitting in a meeting — and your phone rings. You can’t answer. It goes to voicemail.</p><p>The caller hangs up without leaving a message.</p><p>They call the next business on Google.</p><p>You never knew they called.</p><p>This happens dozens of times a week for most small businesses. The average service business misses 30–40% of inbound calls. If your average job or appointment is worth $150 and you miss just 5 calls a day, that’s $750 in lost revenue — every single day — that you never see and never count.</p><p>The good news? In 2026, there’s a simple, affordable fix. And it takes less than 5 minutes to set up.</p><h3>What Is an AI Phone Answering Service?</h3><p>An AI phone answering service — also called an AI receptionist or virtual receptionist — is software that answers your inbound calls automatically, just like a human receptionist would, but without the salary, sick days, or 9-to-5 limitations.</p><p>Unlike traditional voicemail or basic auto-attendants, a modern AI answering service:</p><ul><li>Answers calls in under 2 seconds, 24 hours a day, 7 days a week</li><li>Holds natural conversations — callers don’t feel like they’re talking to a robot</li><li>Books appointments directly into your Google Calendar in real time</li><li>Captures lead details — name, phone number, and reason for calling — automatically</li><li>Sends SMS and WhatsApp confirmations to callers after booking</li><li>Answers business questions about your services, pricing, and hours accurately</li><li>Forwards calls to you or your team whenever needed</li></ul><p>The technology has improved dramatically. By 2026, leading AI voice providers are operationally competitive with mid-tier human answering services on routine call types — at a fraction of the cost. Most callers can’t tell they’re speaking to an AI unless you tell them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NRhAM8QAUpjrkTvSvmbzkA.png" /><figcaption><strong>The ChuiVoice dashboard — set up your AI receptionist in under 5 minutes.</strong></figcaption></figure><p><strong>How Much Does an AI Answering Service Cost?</strong></p><p>This is the question every small business owner asks first — and the answer is dramatically cheaper than you might expect.</p><p>Human answering services average $179 to $500 per month for typical small business call volume. AI answering services range from $49 to $200 per month — with cost per call coming in at $0.30 to $1.20 compared to $3.50 to $8 for human services.</p><p>Here’s how <strong>ChuiVoice</strong> is priced:</p><p><strong>Starter</strong> — $49/month — 200 minutes — 1 agent</p><p><strong>Growth</strong> — $99/month — 500 minutes — 3 agents</p><p><strong>Pro</strong> — $199/month — 1,500 minutes — 10 agents</p><p><strong>All features — Google Calendar sync, WhatsApp confirmations, SMS, lead capture, call transcripts — are included on every plan. No hidden fees, no feature gating.</strong></p><p>Start a free 7-day trial at chuivoice.com.</p><h3>Who Needs an AI Phone Answering Service?</h3><p>An AI answering service is a perfect fit for any <strong>service-based business</strong> where:</p><ul><li>Your team is often unavailable to answer calls because they’re serving customers</li><li>Missed calls mean missed bookings and lost revenue</li><li>You receive calls outside business hours that currently go unanswered</li><li>You want 24/7 phone coverage without hiring additional staff</li></ul><p>The businesses that benefit most include:</p><ul><li><strong>Dental clinics</strong> — where the team is with patients during procedures</li><li><strong>Law firms</strong> — where attorneys are in consultations or court</li><li><strong>Salons and spas</strong> — where stylists have their hands full with clients</li><li><strong>Plumbers and electricians</strong> — who are on job sites and can’t pick up</li><li><strong>Real estate agents</strong> — who are out showing properties all day</li><li><strong>Physiotherapy and wellness clinics</strong> — where practitioners are in sessions</li><li><strong>Veterinary clinics</strong> — where staff are in appointments throughout the day</li><li><strong>Accountants and financial advisors</strong> — who are in client meetings</li><li><strong>Home service contractors</strong> — roofers, HVAC, landscapers, cleaners</li></ul><p>If your business takes appointments or handles service requests by phone — an AI virtual receptionist will pay for itself within the first week.</p><h3>AI Receptionist vs Human Receptionist — Which Is Better?</h3><p><strong>Cost</strong> AI Receptionist: $49–$199/month Human Receptionist: $3,000–$4,000/month</p><p><strong>Availability</strong> AI Receptionist: 24/7/365 Human Receptionist: Business hours only</p><p><strong>Answer time</strong> AI Receptionist: Under 2 seconds Human Receptionist: Variable</p><p><strong>Missed calls</strong> AI Receptionist: Zero Human Receptionist: Common during busy periods</p><p><strong>Consistency</strong> AI Receptionist: Perfect every time Human Receptionist: Varies by person</p><p><strong>Setup time</strong> AI Receptionist: 5 minutes Human Receptionist: Weeks of hiring and training</p><p><strong>Complex situations</strong> AI Receptionist: Limited Human Receptionist: Handles anything. For routine calls — booking appointments, answering FAQs, capturing lead details — an AI receptionist outperforms a human on every metric except complex emotional situations. For most small service businesses, 90%+ of calls are routine. That’s where an AI answering service pays off immediately.</p><h3>What You Need Before You Start</h3><p>Before setting up your AI phone answering service, have these ready:</p><ol><li><strong>Dedicated business phone number</strong> — connect your existing phone number</li><li><strong>Your Google Calendar</strong> — for automatic appointment booking</li><li><strong>A list of your services and pricing</strong> — so the AI answers questions accurately</li><li><strong>Your business hours</strong> — so the AI knows when you’re open and closed</li><li><strong>Your most common FAQs</strong> — parking, insurance, payment methods, turnaround times</li></ol><p>No technical knowledge required. If you can set up an email account, you can set up ChuiVoice.</p><h3>Step-by-Step: How to Set Up an AI Answering Service in 5 Minutes</h3><p>We’ll use <strong>ChuiVoice</strong> for this tutorial — an AI receptionist built specifically for small service businesses. It answers calls in under 2 seconds, books appointments into Google Calendar, and sends WhatsApp confirmations automatically.</p><p>Start your free 7-day trial at chuivoice.com</p><h4>Step 1 — Create Your Account and name the Business(60 seconds)</h4><ol><li>Go to <strong>chuivoice.com</strong></li><li>Click <strong>Start Free Trial</strong></li><li>Enter your email and create a password</li><li>Verify your email</li><li>You’re in</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0qdsughPpPJmBI1NfYD7IA.png" /></figure><h4>Step 2 — Create Your AI Agent (2 minutes)</h4><p>Your AI agent is the virtual receptionist that handles your calls. Set up four things:</p><p><strong>Agent name</strong> Choose a name that fits your brand. Popular choices: Aria, Nova, Max, Alex, Jordan. This is what callers hear when the AI introduces itself.</p><p><em>“Thank you for calling [Business Name], this is Aria. How can I help you today?”</em></p><p><strong>Custom greeting</strong> Write exactly what you want the AI to say when it picks up. Keep it under 20 words — callers don’t want a long introduction.</p><p><strong>Business instructions</strong> This is the most important part. Be specific:</p><ul><li>What services do you offer?</li><li>What are your prices?</li><li>What are your business hours?</li><li>How should the AI handle appointment requests?</li><li>What should it do if it can’t answer something?</li></ul><p>The more detail you provide, the better your AI performs. Think of it like training a new employee on their first day.</p><p><strong>Voice selection</strong> Choose from several natural-sounding voices. Match the voice tone to your business — warm and conversational for a salon, clear and professional for a law firm or dental clinic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*Tqiv4NvlO45osP9bXkNaeA.png" /><figcaption>Name your agent, write your greeting, and pick a voice that matches your brand.</figcaption></figure><h3><strong>Step 3 Start Free Trial</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*ePe2oqr6qgqlCdzb9V_lgg.png" /></figure><h4>Step 3 — Upload Your Knowledge Base (1 minute)</h4><p>Your knowledge base is what your AI uses to answer caller questions accurately. Upload:</p><ul><li><strong>Text</strong> — paste your FAQs, service list, pricing, and policies directly</li><li><strong>PDF</strong> — upload your brochure, menu, or service guide</li><li><strong>URL</strong> — paste your website URL and ChuiVoice pulls the content automatically</li></ul><p>Start with your 10 most common questions. Add more over time as you see what callers ask about.</p><p>[IMAGE: Screenshot of the knowledge base upload screen showing text, PDF, and URL options. Caption: “Step 3 — Upload your FAQs and services so your AI always knows what to say.”]</p><h4>Step 4 — Connect Your Phone Number (30 seconds)</h4><p><strong>Option A(recommended) — Get a new dedicated number</strong> ChuiVoice provisions a new US phone number for your business instantly. Useful if you want a dedicated line for a specific location or service.</p><p><strong>Option B— Use your existing number</strong> Set up call forwarding from your current business number to ChuiVoice. Takes about 2 minutes with your phone carrier. Callers dial your same number — the AI just picks up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GJXxf7zUQMsdzFPR49ufqw.png" /><figcaption>Step 4 — Connect your existing number or provision a new one in seconds.</figcaption></figure><h4>Step 5 — Connect Google Calendar (1 minute)</h4><p>This enables <strong>automatic appointment booking</strong> — the feature that saves the most time for busy service businesses.</p><ol><li>Go to <strong>Integrations</strong> in your dashboard</li><li>Select <strong>Google Calendar</strong></li><li>Authorize with your Google account</li><li>Choose which calendar to use</li></ol><p>Once connected, your AI checks real-time availability during calls and books appointments instantly — no double bookings, no manual entry, no back-and-forth.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GZVUPmRafrO5YPmTsz8KWw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OKPAeSfDZEIaQl6aWQcpzA.png" /><figcaption>Step 5 — Connect Google Calendar and watch appointments book themselves in real time.</figcaption></figure><h4>Step 6 — Enable WhatsApp and SMS Confirmations (30 seconds)</h4><p>This is ChuiVoice’s most powerful differentiator — <strong>two-way WhatsApp confirmations</strong> that most AI answering services don’t offer.</p><p>After every booking:</p><p><strong>SMS confirmation</strong> — the caller immediately receives a text with their appointment details, date, time, and location.</p><p><strong>WhatsApp confirmation</strong> — the caller receives a WhatsApp message with the same details. They can reply to confirm, reschedule, or ask a follow-up question. Those replies come directly to your team — creating a live two-way communication channel without any extra work on your end.</p><p>Enabling both takes 30 seconds in your dashboard settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KLsLy_FwiKVKpToV44Uc_Q.jpeg" /><figcaption>Step 6 — Customers automatically receive a WhatsApp confirmation the moment their appointment is booked.</figcaption></figure><h4>Step 7 — Go Live (5 seconds)</h4><p>Toggle your AI agent <strong>on</strong>.</p><p>That’s it. From this moment, every inbound call is answered by your AI receptionist — in under 2 seconds, around the clock.</p><p>Need your team to take over? Toggle it off from your phone or laptop. Calls forward instantly to your existing number. You’re always in control.</p><h3>What Your Dashboard Shows After Going Live</h3><p>Once your AI agent is running, your ChuiVoice dashboard gives you full visibility into every call:</p><p><strong>Call transcripts</strong> — every conversation fully transcribed. Review exactly what callers asked and how the AI responded.</p><p><strong>AI-generated summaries</strong> — each call automatically summarized. Key details: who called, what they needed, what was scheduled.</p><p><strong>Lead log</strong> — every caller’s name, number, and reason for calling captured automatically. Searchable, exportable as CSV.</p><p><strong>Booking log</strong> — every appointment booked by the AI appears in your Google Calendar instantly with full caller details attached.</p><p><strong>Email notifications</strong> — get an email for every call, lead, and booking. Stay in the loop from anywhere.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eyjMZgFkZbmdo8gYz4f7rg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wpYGMuT-fHRFj3eZY_chmQ.png" /><figcaption>Your dashboard after a busy day — every call logged, every lead captured, every booking recorded automatically.</figcaption></figure><h3>The ROI of an AI Phone Answering Service</h3><p>Let’s run the numbers for a typical service business:</p><p><strong>Before ChuiVoice:</strong></p><ul><li>Missed calls per day: 5–10</li><li>Calls answered after hours: 0</li><li>Average appointment value: $150</li><li>Estimated monthly lost revenue: $22,500–$45,000</li></ul><p><strong>After ChuiVoice:</strong></p><ul><li>Missed calls per day: 0</li><li>Calls answered after hours: All of them</li><li>ChuiVoice monthly cost: $49</li><li>Revenue recovered from capturing just 2 extra bookings: $300</li></ul><p>Even if ChuiVoice only recovers 2 extra bookings per month — it pays for itself 6x over.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*JBUA5Oo0-KcdpgG7yQ5KnA.png" /></figure><h3>Frequently Asked Questions</h3><p><strong>Will callers know they’re talking to an AI?</strong> Modern AI voices in 2026 are highly natural and conversational — many callers don’t realize they’re speaking to an AI. You can configure your agent to be transparent or to introduce itself by name only. Many businesses find that transparency builds trust rather than reducing it.</p><p><strong>What if the AI can’t answer a question?</strong> Configure your agent to take a message and tell the caller someone will follow up. You’ll receive the full transcript, lead details, and the specific question they asked so you can call back with the right answer.</p><p><strong>Does it work with my existing phone number?</strong> Yes — ChuiVoice works with any existing phone number via call forwarding. Callers dial the same number they always have.</p><p><strong>What happens during busy periods with multiple simultaneous calls?</strong> ChuiVoice handles multiple simultaneous calls — no busy signals, no callers waiting on hold. Every caller is answered immediately.</p><p><strong>Can I turn it off if I want my team to answer?</strong> Yes — toggle your agent off anytime. Calls instantly forward to your existing number. Toggle back on just as easily.</p><p><strong>What happens when I run out of call minutes?</strong> On Growth and Pro plans, overage billing activates automatically. On the Starter plan, you receive a notification to upgrade before minutes run out.</p><p><strong>Can I have separate agents for multiple locations?</strong> Yes — Growth supports 3 agents and 3 numbers. Pro supports 10 agents and 10 numbers. All managed from one dashboard.</p><p><strong>Is setup really only 5 minutes?</strong> Yes — most businesses are live in under 5 minutes. The longest part is writing your business instructions. Everything else is connecting accounts and toggling on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*K8qEgl1j2Dq6MSEUgWYRbg.png" /><figcaption>Simple pricing — all features included on every plan. No hidden fees.</figcaption></figure><h3>How ChuiVoice Compares to Other AI Answering Services</h3><p><strong>WhatsApp confirmations</strong> — most competitors offer SMS only. ChuiVoice is one of the very few AI answering services that sends two-way WhatsApp booking confirmations, allowing clients to reply, reschedule, and ask questions directly.</p><p><strong>All features on every plan</strong> — many competitors gate core features behind higher tiers. ChuiVoice includes everything on every plan — you only upgrade for more minutes and agents, never for features.</p><p><strong>Price</strong> — at $49/month for the Starter plan, ChuiVoice is significantly cheaper than Smith.ai ($140+/month) and My AI Front Desk ($65+/month) while offering comparable or better core features.</p><p><strong>5-minute setup</strong> — no complex configuration, no IT support needed. Most businesses are live faster than it takes to make a coffee.</p><h3>Get Started Today</h3><p>Setting up your AI phone answering service takes less time than making a cup of coffee.</p><p><strong>Start your free 7-day trial at chuivoice.com</strong> 5-minute setup, and I’ll personally walk you through it.</p><p>Prefer to see it live first? <strong>Book a free 15-minute demo at calendar.app.google/gj6LUNVG3Fy7D5T56</strong> and I’ll show you exactly how it sounds answering calls for your specific type of business.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9gmvRyom93g0EynNwW3WjQ.png" /><figcaption>Start your free 7-day trial at chuivoice.com — cancel anytime.</figcaption></figure><p><em>ChuiVoice is an AI receptionist for small service businesses. It answers every call in under 2 seconds, books appointments into Google Calendar, sends WhatsApp and SMS confirmations, and captures every lead — 24 hours a day, 7 days a week. Start your free trial at chuivoice.com.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=557123aafec5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI: The Sidekick Every Software Developer Needs (And How to Leverage It for Maximum Efficiency)]]></title>
            <link>https://medium.com/@sosahlawe/ai-the-sidekick-every-software-developer-needs-and-how-to-leverage-it-for-maximum-efficiency-a15fbb70158d?source=rss-18635d93133c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a15fbb70158d</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[science]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Lawe Sosah]]></dc:creator>
            <pubDate>Thu, 04 May 2023 07:34:08 GMT</pubDate>
            <atom:updated>2024-01-20T06:16:37.632Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5PHJpk40gzKNiMtOdVSVZg.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/photo/a-robot-holding-a-cup-8439093/">Pavel Danilyuk</a> on Pexels</figcaption></figure><p>Are you a software developer worried about AI taking your job? Fear not, my fellow code warriors! AI can be more like a sidekick than a supervillain. You can even use AI tools to make your job easier and sneak in a nap or two (discretely of course).</p><p>I am sure we’ve all had those moments where we wish we had a clone to do the boring and repetitive tasks for us. Well, AI is kind of like that clone. It can help us automate tasks like testing and debugging, leaving us more time to focus on more enjoyable tasks like adding interesting features to our apps</p><p>But wait, there’s more! AI can even help improve our code. With machine learning, we can analyze code patterns and identify potential bugs before they even happen.</p><p>And the best part? With AI doing some of the heavy lifting, we can take a break and indulge in our guilty pleasures guilt-free. Need to catch up on the latest season of your favorite show? No problem set up some AI scripts and let it do the work while you binge-watch.</p><p>So don’t worry about AI taking over your job. Embrace it as your trusty sidekick!</p><h3>Here are 10 new AI tools that can supercharge your work as a developer.</h3><h3>1: <a href="http://tabnine.com/">Tabnine</a></h3><p>Tabnine is an AI-powered code completion tool that can help developers write code more efficiently. It uses machine learning algorithms to analyze the context of the code being written and suggests likely completions. The tool can be easily integrated with popular code editors and IDEs and can learn from the developer’s coding style over time. By using Tabnine, developers can increase their productivity by writing code more quickly and accurately.</p><h3><a href="http://mintlify.com/">2: Mintlify</a></h3><p>Mintlify is a cloud-based tool that assists website owners in improving the performance, security, and user experience of their websites. It includes a number of features to help website owners maintain their websites, such as website monitoring, security scanning, and image optimization. One of the best aspects of Mintlify is that it is simple to use, so even if you aren’t a tech expert, you can use it to improve your website. It’s also scalable, so it can manage websites of any size, from small blogs to major e-commerce sites. Website owners can increase their website’s performance and user experience by using Mintlify instead of investing in costly infrastructure.</p><p>With AI on your team, you can focus on the fun stuff and enjoy some well-deserved breaks. So go ahead, grab a snack, take a nap, or even plan a vacation (once the pandemic is over, of course). AI’s got your back!</p><h3>3: <a href="http://github.com/features/copilot">GitHub Copilot</a></h3><p>GitHub Copilot is an AI-powered tool that assists developers in writing code more effectively. This is accomplished by assessing the context of the code being written and recommending suitable code snippets or even complete functions. Developers can utilize GitHub Copilot to accelerate the coding process, eliminate code errors, and even learn new programming languages or techniques. GitHub Copilot allows developers to focus on the creative aspects of coding rather than spending time on laborious and repetitive chores by delivering intelligent suggestions that are contextually appropriate. Furthermore, GitHub Copilot can help developers level the playing field by closing the knowledge gap between experienced and novice coders.</p><h3>4: <a href="https://www.deepcode.ai/">Deepcode.ai</a></h3><p>DeepCode AI is an AI-powered tool that can assist developers in writing more error-free code. It detects potential errors, inefficiencies, vulnerabilities, and performance issues by analyzing code patterns. DeepCode AI uses machine learning algorithms to learn from past failures and provide real-time solutions to challenges. This implies that developers may detect possible problems before they occur, saving time and effort in the long run. The solution integrates seamlessly with common code editors and IDEs, allowing developers to receive real-time feedback while writing code. DeepCode AI enables developers to enhance their productivity by producing higher-quality code more efficiently, allowing them to focus on more enjoyable tasks such as introducing new features and improving the user experience.</p><h3>Conclusion</h3><p>If you’re a software developer concerned about AI taking your job, don’t be! AI is more of a helper than a villain. You can make your job easier, automate tiresome processes, and even catch some extra Z’s with AI tools like Tabnine, Mintlify, and GitHub Copilot. AI can examine code patterns, predict expected completions, and even detect potential problems before they occur. Developers may employ AI to focus on the enjoyable stuff, like introducing unique features and hiding clues for users to find. So, embrace AI as your trusted sidekick and take some well-deserved breaks. With AI on your side, you can unwind and indulge in your guilty pleasures, but guilt-free.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a15fbb70158d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Create a Sarcastic Chatbot using the OpenAI API Part 1(Introduction)]]></title>
            <link>https://medium.com/@sosahlawe/how-to-create-a-sarcastic-chatbot-using-the-openai-api-part-1-introduction-4f39c3aee01e?source=rss-18635d93133c------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f39c3aee01e</guid>
            <category><![CDATA[tailwind-css]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[openai]]></category>
            <dc:creator><![CDATA[Lawe Sosah]]></dc:creator>
            <pubDate>Mon, 01 May 2023 13:01:51 GMT</pubDate>
            <atom:updated>2023-05-01T13:01:51.776Z</atom:updated>
            <content:encoded><![CDATA[<p>Chatbots have undergone significant advancements, moving beyond their traditional role in customer support. With the introduction of artificial intelligence and machine learning, chatbots have become increasingly intelligent, interactive, and engaging. The incorporation of sarcasm into chatbot development is a recent trend, providing virtual assistants with an added layer of personality and humor. In this piece, we will explore how to create a sarcastic chatbot utilizing the OpenAI API.</p><p>Step 1: Selecting a Chatbot Platform</p><p>A variety of chatbot platforms, both free and paid, exist in the market to create your chatbot. Popular platforms include Dialogflow, IBM Watson, Microsoft Bot Framework, and Amazon Lex. However, in this article, we will utilize the OpenAI API.</p><p>Step 2: Establishing an OpenAI Account</p><p>To use the OpenAI API, you must create an account on their website. After signing up, you will receive access to the API key necessary to connect to the API and commence building your chatbot.</p><p>Step 3: Choosing a Chatbot Persona</p><p>Prior to beginning chatbot creation, one must decide on the personality they want their chatbot to embody. In the case of a sarcastic chatbot, the character must be quick-witted, humorous, and a bit snarky. The chatbot’s persona can be based on a fictional character, a celebrity, or can even be an original creation.</p><p>Step 4: Training the Chatbot via OpenAI GPT-3</p><p>The OpenAI API allows access to the GPT-3 language model, among the most advanced models available today. GPT-3 is capable of producing text that is nearly identical to human writing. To train your chatbot, you will need to supply it with a dataset of sarcastic responses that it can use to generate its own responses.</p><p>Step 5: Connecting the Chatbot to a Messaging Platform</p><p>Once you have trained your chatbot, the next step is connecting it to a messaging platform so that people can engage with it. Messaging platforms such as Facebook Messenger, WhatsApp, Slack, or even your own website can be utilized.</p><p>Step 6: Testing and Refining</p><p>After connecting your chatbot to a messaging platform, it is necessary to test it to ensure that it functions as anticipated. You can use tools such as Botpress, Botmock, or Botium to test your chatbot’s responses and refine them based on the feedback you receive.</p><p>Conclusion</p><p>Developing a sarcastic chatbot can be an enjoyable and engaging project. The OpenAI API enables the creation of a chatbot that is not only intelligent but also humorous and witty. By following the outlined steps, you can create your own sarcastic chatbot that will entertain and engage your audience.</p><p>In part 2 of this series, we will actually build out the sarcastic AI chatbot using ReactJS and TailwindCSS.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f39c3aee01e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build a Real-time Flight Tracker with NextJS, TailwindCSS, and React-map-gl: A Step-by-Step…]]></title>
            <link>https://medium.com/@sosahlawe/build-a-real-time-flight-tracker-with-nextjs-tailwindcss-and-react-map-gl-a-step-by-step-d480d053052c?source=rss-18635d93133c------2</link>
            <guid isPermaLink="false">https://medium.com/p/d480d053052c</guid>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[aviation]]></category>
            <category><![CDATA[tailwind-css]]></category>
            <category><![CDATA[api-development]]></category>
            <dc:creator><![CDATA[Lawe Sosah]]></dc:creator>
            <pubDate>Tue, 11 Apr 2023 08:37:52 GMT</pubDate>
            <atom:updated>2023-04-11T08:37:52.532Z</atom:updated>
            <content:encoded><![CDATA[<h3>Build a Real-time Flight Tracker with NextJS, TailwindCSS, and React-map-gl: A Step-by-Step Tutorial(Part 1)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e61N0-QV7B3fSuttG66nmA.png" /></figure><p>Are you ready to explore the skies and track real-time flights like a pro? In this tutorial, we’ll build a flight tracker using NextJS, TailwindCSS, and react-map-gl, and learn how to work efficiently with APIs and render items on a map. So buckle up and let’s take off! If you’re like me, then you likely can’t help but look up to the sky each time an airplane is flying above. Technically, you could just use an existing app such as Flightradar24, but what where’s the fun in that?</p><h3>What we are building</h3><p>In this tutorial, we will use NextJS, TailwindCSS, and react-map-gl for our flight tracker, which I’ll call NovemberRomeo. We will also learn how to efficiently work with APIs, and how to render items on a map. We’ll be using the <a href="https://openskynetwork.github.io/opensky-api/rest.html">OpenSky Network API</a> for this. We will also implement some basic animations using framer-motion in an a simple pre-loader component.</p><p>NextJS is my go to for projects such as this, because of its lightweight nature and powerful features. It is a powerful React framework that offers features such as server-side rendering and automatic code splitting out of the box. TailwindCSS is a popular CSS framework that provides a utility-first approach to styling, making it easier to create responsive designs quickly. react-map-gl is a React component for Mapbox GL JS, a powerful mapping platform that provides features such as real-time data visualization, geocoding, and routing. These are the steps to get up and running with TailwindCSS.</p><p>Step 1: Set up a NextJS project</p><p>To get started, we will create a new NextJS project. Next.js is a popular open-source React framework used for building server-side rendered (SSR) and statically generated web applications. Open up your terminal and enter the following command</p><pre>npx create-next-app realtime-flight-tracker</pre><p>This should now create a new NextJS project in a folder called realtime-flight-tracker. Next, navigate into the project directory by entering the following command:</p><pre>cd realtime-flight-tracker</pre><p>Step 2: Install TailwindCSS by running the commands below. You also need to install postcss and autoprefixer. Postcss is a required tool to process the CSS files and apply any necessary transformations, such as applying future CSS syntax or removing unused CSS rules. Autoprefixer, which is a plugin for postcss, is used to automatically add vendor prefixes to CSS properties, based on the latest data on browser support.</p><pre>npm install -D tailwindcss postcss autoprefixer<br>npx tailwindcss init -p</pre><p>This should now create a tailwind.config.js file. Open the file and replace the content array with the following code:</p><pre> content: [<br>    &#39;./pages/**/*.{js,ts,jsx,tsx}&#39;,<br>    &#39;./components/**/*.{js,ts,jsx,tsx}&#39;,<br>  ],</pre><p>This code sets the path to all the template files in your project.</p><p>Finally, we can open up our globals.css file, in order to actually enable TailwindCSS in our project. Add the following code at the top:</p><pre>@tailwind base;<br>@tailwind components;<br>@tailwind utilities;</pre><p>Now run the following command to get our server spinning up:</p><pre>npm run dev</pre><p>Et voila! You should now have a NextJS app running. We can now start building out the project. Open the index.js file and delete all the default code apart from the main parent div.</p><p>Building the Header component</p><p>Our first component, is the Header. To start off, create a components folder at the root of the project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/210/1*tPKcSF8_exMyY9b-TW3gAg.png" /></figure><p>Create a new folder called Header.js, and import it into your index.js file.</p><p>Before we go further, we can install react-icons, which is my preferred package of choice for icons.</p><pre>npm install react-icons</pre><p>We can now add the following code to our Header.js file:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fcae6ef79bcaea3d07dc659f735e1ee7/href">https://medium.com/media/fcae6ef79bcaea3d07dc659f735e1ee7/href</a></iframe><p>This should now give us a simple Header. We will add the search functionality and other features later on.</p><h3>Implementing Mapbox and displaying the map</h3><p>If you’re still reading, congratulations(and thanks). We have now reached the key steps in this guide. We can start by installing Mapbox using react-map-gl.<a href="https://www.npmjs.com/package/react-map-gl"> react-map-gl</a>, is a library containing react components for Mapbox.</p><h3>Before we can use react-map-gl to display a map, we need to set up a Mapbox account and obtain an access token.</h3><ol><li>Go to the <a href="https://www.mapbox.com/">Mapbox website</a> and sign up for a free account.</li><li>Once you have created an account, navigate to the <a href="https://account.mapbox.com/access-tokens/">Access Tokens page</a> and click on the “Create a token” button. Give your token a name and select the “Default Secret” scope.</li><li>Copy your access token to the clipboard.</li><li>Next, we need to install the react-map-gl package. Enter the following command in your terminal:</li></ol><pre>npm install react-map-gl mapbox-gl</pre><p>5. Let’s now create a new component that renders a ReactMapGL component. Create a new file called in your components called Map.js components/Map.js Before we add anything to this file, create a .env.local file in the root of the project. This file will hold all the sensitive information such as security keys and access tokens.</p><p>Next, create a NEXT_PUBLIC_MAPBOX_TOKEN and paste in the access token from your Mapbox dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/617/1*hmvqymPgOabOpboFG03baA.png" /><figcaption>Mapbox dashboard containing the access tokens</figcaption></figure><p>Note that with NextJS, the token does not work unless you add NEXT_PUBLIC to it(took me a while to figure this out).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*ymb9uvsj6_eRI0vSQ1L5mg.png" /></figure><p>With our access tokens now in our project, add the following code to the Map.js file:</p><pre>import { useState, useEffect, useContext } from &quot;react&quot;;<br>import ReactMapGL, {<br>  Marker,<br>  Source,<br>  Layer,<br>} from &quot;react-map-gl&quot;;<br>const NewMap = () =&gt; {<br>  const [viewport, setViewport] = useState({<br>    width: &quot;100vw&quot;,<br>    height: &quot;100vh&quot;,<br>    latitude: -34.3239,<br>    longitude: 137.7587,<br>    zoom: 8,<br>  });<br><br>const [flights, setFlights] = useState([]);<br><br>return(<br> &lt;ReactMapGL<br>      {...viewport}<br>      className=&quot;w-[100%] h-[100%] z-0 absolute &quot;<br>      initialViewState={viewport}<br>      onMove={(evt) =&gt; {<br>        setViewport(evt.viewState);<br>      }}<br>      mapStyle={process.env.NEXT_PUBLIC_MAPBOX_STYLE}<br>      mapboxAccessToken={process.env.NEXT_PUBLIC_MAPBOX_TOKEN}<br>      width=&quot;100%&quot;<br>      height=&quot;100%&quot;<br>      interactiveZoom={true} // Enables zoom with scroll<br>      dragPan={true} // Enables panning<br>      // The spread operator gets everything to that point<br>    &gt;<br><br>    &lt;/ReactMapGL&gt;<br>)<br>}</pre><p>With this done, we can now create the function to actually fetch the data from <a href="https://openskynetwork.github.io/opensky-api/rest.html">OpenSky Network</a>. The endpoint that we will be using is the GET /states/all. This endpoint returns a state array that contains most of the information that we need for this. The information that we need from here includes the callsign of the aircraft, it’s longitude and latitude, and its unique ICAO number, which we will use as an ID.</p><p>With this in mind we can now create the following two functions in our Map.js file.</p><p>We first need to set a radius for the data to be fetched based on the current viewport. This is to limit the number of API requests being made to OpenSky Network. In this way, we can stay within the limit of allowed API requests. I have set the radius to 500 nautical miles within the current viewport, but you can set it to whatever you like. We will add the airports and airport info in part 2 of this series</p><pre> // Getting flight data array<br><br>  const fetchData = async () =&gt; {<br>    const longitude = viewport?.longitude;<br>    const latitude = viewport?.latitude;<br>    const radius = 500; // radius in nautical miles<br>    const url = `https://opensky-network.org/api/states/all?lamin=${<br>      latitude - radius / 60<br>    }&amp;lomin=${longitude - radius / 60}&amp;lamax=${latitude + radius / 60}&amp;lomax=${<br>      longitude + radius / 60<br>    }&amp;time=0`;<br><br>    setFlightUrl(url);<br>    try {<br>      const response = await fetch(url);<br>      const data = await response.json();<br><br>      setFlights(data.states);<br>      console.log(<br>        &quot;Fetch function ran succesfully for coords&quot;,<br>        longitude,<br>        latitude,<br>        &quot;and fetch url&quot;,<br>        url<br>      );<br>    } catch (error) {<br>      console.error(&quot;error&quot;, error.message);<br>    }<br>  };<br><br></pre><p>The problem with this, is that an API request is made every time the viewport changes, which defeats the purpose of the radius function. To fix this, we can use a built-in Javascript method called setTimeout() to only fetch the data when the user has stopped moving for a specific period of time, 3 seconds in this case. Add the following function to your Map.js file.</p><pre>const [mapMoving, setMapMoving] = useState(false);<br><br>useEffect(() =&gt; {<br>    if (!mapMoving) {<br>      const delayDebounceFn = setTimeout(() =&gt; {<br>        fetchData();<br>        fetchAirports();<br>      }, 3000);<br>      return () =&gt; clearTimeout(delayDebounceFn);<br>    }<br>  }, [mapMoving]);</pre><p>We now need to actually render the different aircraft on the map. We can do this by mapping the flights array that we created earlier:</p><pre> <br>&lt;ReactMapGL<br>      {...viewport}<br>      className=&quot;w-[100%] h-[100%] z-0 absolute &quot;<br>      initialViewState={viewport}<br>      onMove={(evt) =&gt; {<br>        setViewport(evt.viewState);<br>      }}<br>      mapStyle={process.env.NEXT_PUBLIC_MAPBOX_STYLE}<br>      mapboxAccessToken={process.env.NEXT_PUBLIC_MAPBOX_TOKEN}<br>      width=&quot;100%&quot;<br>      height=&quot;100%&quot;<br>      interactiveZoom={true} // Enables zoom with scroll<br>      dragPan={true} // Enables panning<br>      // The spread operator gets everything to that point<br>    &gt;<br>{flights?.map((flight) =&gt; (<br>        &lt;div key={`flight-no${flight[0]}`} className=&quot;relative&quot;&gt;<br>          &lt;Marker longitude={flight[5]} latitude={flight[6]}&gt;<br>            &lt;IoMdAirplane<br>              onClick={() =&gt; {<br>                setFlightData(flight);<br>                setSelectedFlight(flight);<br>                setClicked(true);<br>              }}<br>              style={{ rotate: `${flight[10]}deg` }}<br>              className={<br>                selectedFlight[0] === flight[0]<br>                  ? &quot;text-red-600 text-[32px] cursor-pointer&quot;<br>                  : &quot;text-yellow-600 text-[32px] cursor-pointer&quot;<br>              }<br>            /&gt;<br>          &lt;/Marker&gt;<br>        &lt;/div&gt;<br>      ))}<br>&lt;/ReactMapGl&gt;<br></pre><p>The code above also changes the color of the selected aircraft based on whether it has been clicked on or not.</p><h3>Adding a trajectory line and changing the viewport as the map is navigated</h3><p>With this done, we now need to make a minor change in our ReactMapGl component to change the viewport and mapMoving state, as the map moves. We also need to add a line to show the exact trajectory of the aircraft that has been clicked on. The updated component should look like this:</p><pre><br>const [selectedFlight, setSelectedFlight] = useState([]);<br>const [flightTrack, setFlightTrack] = useState(null)<br><br>const lineString = {<br>    type: &quot;LineString&quot;,<br>    coordinates: flightTrack?.path?.map((point) =&gt; [point[2], point[1]]),<br>  };<br><br><br>useEffect(() =&gt; {<br>    if (selectedFlight) {<br>      getFlightTrackData(selectedFlight[0]).then((data) =&gt;<br>        setFlightTrack(data)<br>      );<br>    }<br>  }, [selectedFlight]);<br><br>//The above usEffect listens for when a flight is clicked, and fetches the trajectory<br>// data for the selected flight<br>return(<br>&lt;ReactMapGL<br>      {...viewport}<br>      className=&quot;w-[100%] h-[100%] z-0 absolute &quot;<br>      initialViewState={viewport}<br>      onMove={(evt) =&gt; {<br>        setViewport(evt.viewState);<br>      }}<br>      mapStyle={process.env.NEXT_PUBLIC_MAPBOX_STYLE}<br>      mapboxAccessToken={process.env.NEXT_PUBLIC_MAPBOX_TOKEN}<br>      width=&quot;100%&quot;<br>      height=&quot;100%&quot;<br>      interactiveZoom={true} // Enables zoom with scroll<br>      dragPan={true} // Enables panning<br>      // The spread operator gets everything to that point<br>    &gt;<br> {flights?.map((flight) =&gt; (<br>        &lt;div key={`flight-no${flight[0]}`} className=&quot;relative&quot;&gt;<br>          &lt;Marker longitude={flight[5]} latitude={flight[6]}&gt;<br>            &lt;IoMdAirplane<br>              onClick={() =&gt; {<br>                setFlightData(flight);<br>                setSelectedFlight(flight);<br>                setClicked(true);<br>              }}<br>              style={{ rotate: `${flight[10]}deg` }}<br>              className={<br>                selectedFlight[0] === flight[0]<br>                  ? &quot;text-red-600 text-[32px] cursor-pointer&quot;<br>                  : &quot;text-yellow-600 text-[32px] cursor-pointer&quot;<br>              }<br>            /&gt;<br>          &lt;/Marker&gt;<br><br>          {/* New marker start */}<br><br>          {selectedFlight &amp;&amp; (<br>            &lt;Source<br>              type=&quot;geojson&quot;<br>              data={{<br>                type: &quot;Feature&quot;,<br>                geometry: {<br>                  type: &quot;LineString&quot;,<br>                  coordinates: lineString.coordinates,<br>                },<br>              }}<br>            &gt;<br>              &lt;Layer<br>                className=&quot;z-40&quot;<br>                id=&quot;flightTrack&quot;<br>                type=&quot;line&quot;<br>                paint={{<br>                  &quot;line-color&quot;: &quot;#FFFF00&quot;,<br>                  &quot;line-width&quot;: 3,<br>                }}<br>              /&gt;<br>            &lt;/Source&gt;<br>          )}<br>        &lt;/div&gt;<br>      ))}<br>&lt;/ReactMapGl&gt;<br>)</pre><p>The useEffect that fetches the trajectory line, listens for when a flight has been selected, and sets the flightTrack to an array containing the coordinates/waypoints that are necessary to constructing the line. This should now look like the screenshot below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*Cv5YHhS5D8Z4v7IchslApA.png" /><figcaption>Trajectory line and different styling for a selected Aircraft</figcaption></figure><h3>Adding a Card over the map to show the data from Selected Flights.</h3><p>We now need to create a basic card over the map to show the flight info of the selected flight. Create a new component called InfoCard.js in your components folder, and import it into your index.js.</p><p>Before we do this, I will now introduce you to another useful react concept, which is React context API.</p><p>React Context API is a way to share data across the component tree without having to pass props down manually at every level. It provides a way to pass data through the component tree without having to use props, which can be useful in complex applications with many layers of components.</p><p>In your components folder, create another folder and call it context. Inside that folder, create a new file called FlightContext.js. In this file, add the following:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a5fd572bc6bb772e70785596aeada1b9/href">https://medium.com/media/a5fd572bc6bb772e70785596aeada1b9/href</a></iframe><p>Lastly, open up _app.txs(or app.js), and add your FlightProvider to make the context global.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d8e64a45352b7836c5b04d9329ef49c3/href">https://medium.com/media/d8e64a45352b7836c5b04d9329ef49c3/href</a></iframe><p>This now makes the arrival airport, departure airport and selected flight states fully global. They can now be accessed from anywhere in our app. We will add more to this file later on. Before we go further, let’s update our Map.js file to use the state variables from contextAPI.</p><p>Change the selectedFlight, and clicked state variables to use useContext instead of useState like this:</p><pre>  const [selectedFlight, setSelectedFlight] = useContext(SelectedContext);<br>  const [clicked, setClicked] = useContext(ClickedContext);</pre><p>In our InfoCard.js file, add the following code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6cbf7583df78a551d66bfe291661b0c9/href">https://medium.com/media/6cbf7583df78a551d66bfe291661b0c9/href</a></iframe><p>In the above code, the specific information for each flight is fetched when the airplane icon in Map.js is clicked. The data is fetched from the /flights/aircraft endpoint, which gets the specific information from the context we defined.</p><p>Your app should now look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MDjDFTjcw33rWbTViZLH4w.png" /></figure><p>If you’re still reading this, thanks for following along in the basic setup to get the app up and running. We will build out more awesome features in part 2 which will include the following:</p><ol><li>Dynamic images for the InfoCard using the Pexels API</li><li>Airport data including departures and arrivals</li><li>Full search functionality</li></ol><h3>Conclusion</h3><p>Creating a flight tracker web application can be a challenging but rewarding project. With the right tools and technologies, such as the ones we used, it is possible to build a user-friendly and efficient flight tracking application. The next installment in this series will include the features mentioned above in order to make a valuable tool for frequent flyers, travel enthusiasts, and aviation professionals alike.</p><p>Feel free to drop a comment if you have any questions. See you in part 2.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d480d053052c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>