<?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 silakironji on Medium]]></title>
        <description><![CDATA[Stories by silakironji on Medium]]></description>
        <link>https://medium.com/@silakironji?source=rss-11acc21c3914------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*bN20t-JETIhxTivB245onQ.png</url>
            <title>Stories by silakironji on Medium</title>
            <link>https://medium.com/@silakironji?source=rss-11acc21c3914------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 10:25:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@silakironji/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[Choosing Between Personal WhatsApp, WhatsApp Business, and WhatsApp Business API]]></title>
            <link>https://medium.com/@silakironji/choosing-between-personal-whatsapp-whatsapp-business-and-whatsapp-business-api-145fb531053d?source=rss-11acc21c3914------2</link>
            <guid isPermaLink="false">https://medium.com/p/145fb531053d</guid>
            <category><![CDATA[whatsapp]]></category>
            <category><![CDATA[whatsapp-business-api]]></category>
            <dc:creator><![CDATA[silakironji]]></dc:creator>
            <pubDate>Sun, 13 Apr 2025 11:03:27 GMT</pubDate>
            <atom:updated>2025-04-13T11:18:56.820Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hkcjn2n0p1xB26lYsWql1w.png" /></figure><p>When people think of WhatsApp, they often default to their personal app — the one we use to send memes to friends, wish someone a happy birthday, or maybe ignore an incoming family group chat. But the game changes when you’re running a business. Suddenly, it’s not just about chatting; it’s about customer engagement, customer experience, and automation. So, how do you choose the right version of WhatsApp to build your business?</p><p>Let’s break it down.👇</p><p><strong>Personal WhatsApp: The Foundation of Connection</strong></p><p>This is the app we all know. It’s simple. It’s familiar. It’s like a direct line to anyone with a phone number, anywhere in the world.</p><p>But personal WhatsApp is exactly that — <strong>personal</strong>. It’s not built for business. Sure, you can have a conversation with a customer here and there, but when your customer base scales, you’ll be drowning in messages faster than you can open them and hit send. Personal WhatsApp isn’t designed for professional use, nor should it be.</p><p>If you’re a small business owner starting out, you may be tempted to use Personal WhatsApp to chat with customers. However, as you grow, it becomes clear that you’ll need more tools to organize and scale communication.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/0*3PwGWzDTCUbkWJ6L" /><figcaption>Casual, friendly chat</figcaption></figure><p><strong>WhatsApp Business: The First Step Toward Professionalism</strong></p><p>Moving to WhatsApp Business is an upgrade. Still simple, but with a bit more power. You get some basic business tools — quick replies, labels to organize chats, and a business profile to appear more official. You can also set away messages and broadcast lists.</p><p>It’s better than the personal version, no doubt. If you are a boutique shop, a service provider who wants to provide personalized customer service, it’s solid. You’ll save time, respond faster, and manage conversations a bit more easily.</p><p>But here’s the catch: it’s manual. It’s still you (or your team) responding to every message, managing every interaction and limited broadcast. There’s no automation, no integration with other systems. At some point, you’ll hit a ceiling, and when that happens, it’s time for the real deal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/0*Y4qZbrxXgi4AwUdF" /><figcaption>WhatsApp Business</figcaption></figure><p><strong>WhatsApp Business API: Built for growth</strong></p><p>Now, if you’re looking to scale up and integrate WhatsApp into your entire customer service and sales process, <strong>WhatsApp Business API</strong> is the game-changer.</p><p>Unlike the WhatsApp Business app, which is meant for small businesses, the API is designed for <strong>medium to large enterprises</strong> that need to handle a high volume of customer interactions.</p><p>When you implement WhatsApp Business API, you’re playing at a level where you can automate repetitive tasks, like sending order confirmations, tracking updates, or FAQs. But the beauty of the API is that it still allows you to bring in the human touch when needed. High-value conversations? Complex inquiries? Those can still be routed to your team.</p><p>And here’s the kicker — it integrates with your CRM, your ERP, or whatever system you’re running to manage your business. It’s the power tool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mmoh-6-o3mjK_eEeQinkoQ.png" /><figcaption>Intelli</figcaption></figure><h3>Which One is Right for Your Business?</h3><ul><li><strong>Just getting started</strong> and need a casual platform to chat with clients? Go for Personal WhatsApp</li><li><strong>Running a small or medium business</strong> and need more structure and personalized customer support? WhatsApp Business is a solid choice.</li><li><strong>Handling high volumes </strong>of customer queries and want a full-service experience? The <strong>WhatsApp Business API</strong>, with the help of <a href="https://www.intelliconcierge.com/"><strong>Intelli</strong></a>, is the way to go.</li></ul><p>Choosing the right WhatsApp tool is all about your business’s size, goals, and customer service needs. As your business grows, so too should your approach to customer engagement, and Intelli will help you with that journey!</p><p><strong>Ready to Supercharge Your WhatsApp Customer Support?</strong></p><p>If you’re looking to streamline your customer support and enhance your business processes, consider upgrading to Intelli we help growing businesses to easily leverage WhatsApp Business API to scale efficiently while keeping customers happy. 🎯</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=145fb531053d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting started with AI-First Customer Support]]></title>
            <link>https://medium.com/@silakironji/getting-started-with-ai-first-customer-support-07ae1595a05c?source=rss-11acc21c3914------2</link>
            <guid isPermaLink="false">https://medium.com/p/07ae1595a05c</guid>
            <dc:creator><![CDATA[silakironji]]></dc:creator>
            <pubDate>Mon, 24 Feb 2025 08:42:24 GMT</pubDate>
            <atom:updated>2025-02-24T08:42:24.384Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G2cxK3raT-rpSvBvg37Nfg.png" /></figure><p>AI support agents have well and truly landed.</p><p>Forget about all the ‘AI’ chatbots you have used previously.</p><p><a href="https://www.intelliconcierge.com/">These AI agents</a> are a new breed, taking advantage of all the latest developments in generative AI, popularised by <a href="https://chat.openai.com/">ChatGPT</a>, to talk to customers just like a human agent would.</p><p>But, instead of training your human agent over weeks or months, you can train them pretty much instantly, on all your company documentation.</p><p>Forget spending hours creating chat flows and frustrating customers.</p><p>This time, it really is different.</p><p>In this guide, I’ll show you how to go from an AI novice to someone capable of making a decision for their company about which AI vendor will best fit their business’s customer support needs.</p><h3>Who is this guide for?</h3><p>If you’re reading this guide you are probably either:</p><ul><li>A Customer Support Leader (Head or Director of) OR</li><li>Leading a support transformation project in your organization OR</li><li>An enthusiastic AI early adopter, Operations Manager or Product Manager trying to help your Customer Support team out</li></ul><p>Maybe you have been told by your CEO that “we need to be using AI!” or maybe you are just an enterprising individual, either way, I’ll take you through the common questions and pitfalls to help you on your way to choosing your first AI agent.</p><p>AI agents can work across pretty much any industry, from Financial services, Hospitality, Education, Entertainment to SaaS products, it’s just about finding the right one for you.</p><h3>What does it mean to be ‘AI-first’ with Customer Support?</h3><p>Being ‘AI-first’ is about empowering your customers to self-serve with AI, getting them better answers to their questions, faster so they can unlock the value of your product or services.</p><p>It means their first contact when they have a question will be your AI agent, trained on all your product’s knowledge, available to them 24/7 and responding in seconds.</p><h3>What does it not mean?</h3><p>Being ‘AI-first’ doesn’t mean that you will no longer be speaking to your customers.</p><p>Nor does it mean that you are ‘cost-cutting’ or providing a worse experience for your customers.</p><p>AI has come on leaps and bounds in the last few years, but it still isn’t at the point where you can ‘set it and forget it’.</p><p>You’ll still need people to provide support to your customers.</p><p>But hopefully, the support they will provide will be for the more complex issues and for the higher-value customers.</p><p>Plus, as an added bonus, it’ll mean they spend less time responding to the monotonous, tier 1 queries that could likely be solved by taking a look at your knowledge articles.</p><h3>‘AI-first’ Support won’t work for us…</h3><p>We’re still in the very early stages with true AI support agents, and so, understandably there are a few common objections that tend to arise (either from you or your boss), let’s talk through them:</p><ol><li>“We’ll do it later when AI is more advanced and reliable”</li></ol><p>Like with most things in life, the sooner you start doing the faster you learn and the better you can make the experience for your customers.</p><p>Improvements in AI won’t fix most of the things that will cause poor AI agent performance, like gaps in your knowledge base or how your customers will familiarise themselves with the AI agent.</p><p>There are lots of ways you can start passively using AI agents right now to assist your human agents, while you get things up to the standards you would be comfortable with deploying them.</p><p>2.“AI makes things up”/”AI can’t be trusted”</p><p>While stories of AI ‘hallucinations’ like <a href="https://www.forbes.com/sites/mollybohannon/2023/06/08/lawyer-used-chatgpt-in-court-and-cited-fake-cases-a-judge-is-considering-sanctions/">lawyers presenting made-up cases</a> in court populate the headlines, the reality, especially for AI support agents is very different.</p><p>These stories come from general-purpose AI chatbots that are required to answer just about any question.</p><p>Your AI support agent will likely be trained on a very specific, finite set of information you provide to it, meaning it will only answer questions using that information, nothing else.</p><p>Most AI agents will have some form of guardrails to prevent them from ‘hallucinating’, referring to competitors’ products or answering outside of their knowledge base (if they don’t you should probably look elsewhere…).</p><p>Incorrect responses generally result as a consequence of unclear documentation provided to the AI, the AI agent is in effect a ‘mirror’ being held up to your knowledge base, so if its answers are wrong there is a good chance a person reading them would also have misunderstood.</p><p>3. “Our customers won’t like it”/”Our customers will leave us”</p><p>A portion of people hate change, even when it benefits them.</p><p>They are also often the ‘loud minority’ of customers rather than the ‘silent majority’.</p><p>This shouldn’t prevent you from doing what is in the interest of your entire customer base.</p><p>People don’t hate AI agents (chatbots) they hate bad AI chatbots.</p><p>They are experiencing the hangover of 10–15 years of poorly executed, non-generative AI agents, so who can blame them?</p><p>But not utilizing AI isn’t the answer, like most things you have to introduce it to them carefully and build up trust in it over time.</p><p>The longer you wait, the longer it’ll take.</p><p>4. “We don’t have the time to set it up”</p><p>Gone are the days of painstakingly mapping out customer queries and converting them into chatflows.</p><p>Now to set up an AI agent it is often as easy adding a URL, connecting a knowledge base and a few minutes later, asking it a few questions.</p><p>It really can be that simple to get up and running.</p><p>Over time you can improve the set-up, refine the training knowledge, increase the deflection rate, but you’ll get 70–80% of the way there in less than a day.</p><p>5. “It doesn’t feel very personal”</p><p>People use products to solve their problems.</p><p>People don’t sign up for products or services to make friends with the people who run them.</p><p>This doesn’t mean an AI agent should be impolite, or that the customer shouldn’t feel listened to and be empathised with.</p><p>But it does mean people will be happy with any agent who can answer their questions, fast, and allow them to get on with their day or job.</p><p>AI agents are now much better at sounding empathetic, and reacting to customers’ frustrations.</p><p>And the time saved will allow you to focus on other ways to add that ‘personal touch’ to their customer experience.</p><p>6.“It’ll be expensive”</p><p>There are AI agent pricing models suited to most businesses nowadays:</p><ul><li>Pay per successful resolution or deflection</li><li>Pay per question, pay per conversation or</li><li>Pay per agent</li></ul><p>to name just a few.</p><p>The upfront ‘cost’ of setup is also negligible (see 4).</p><p>Add to this that costs will likely continue to fall, and AI competence will continue to improve, making the return on investment today the worst you will likely ever experience</p><h3>What are the benefits of AI support agents?</h3><p>An AI agent can have multiple benefits to your business, even if you are only just starting out.</p><p>Not convinced? How about these for starters:</p><ol><li>Handle more queries, faster</li><li>24/7 availability</li><li>Reduced costs</li><li>Consistent and accurate responses</li><li>Improved customer satisfaction and experience</li><li>Freeing up human agents for more complex issues</li></ol><h3>Are they better or worse at anything in particular?</h3><p>There are some things AI agents are very good for, others it is ok at and a few things you probably should still be doing yourself:</p><p>Good</p><ul><li>You have detailed documentation that your AI agent can be trained on</li><li>Your queries can often be answered using your documentation without needing to access a customer’s account or other databases</li><li>You have a very high volume of queries</li></ul><p>Not so good</p><ul><li>You have a unique, account-specific or trouble-shooting type questions that take a person multiple steps to resolve.</li><li>Your customers expect a high-touch, personal service as part of your offering</li><li>You have very specific, defined and deterministic actions you need a customer to perform each time they use the live chat or you need to collect specific data</li></ul><p>There are of course ways (and products) that each of these ‘Not so good’ examples can be resolved, they are just not usually offered ‘out of the box’ with most AI agent products.</p><p>Also, it is worth bearing in mind that any question, instantly answered, that doesn’t require a human, is good for both the customer and for your businesses as it saves them time and you money.</p><p>Even if your AI resolution or deflection rate is low double digits, it can still have a positive impact on your business.</p><h3>Where is AI-first support headed?</h3><p>In the grand scheme of AI customer support, we are probably only on Day 2 or 3 in terms of progress.</p><p>We are stepping away from drag-and-drop chat flow builders and have moved on to using cutting-edge generative AI.</p><p>But there is still a long way to go.</p><p>It won’t be long before we will be able to use AI agents to:</p><ul><li>Easily and seamlessly integrate any data source to give our AI agents complete knowledge of our business and customers to answer their questions.</li><li>Have our AI agents work alongside customers to identify and even fix their issues live on their screens, maybe even before they ask.</li><li>Allow our AI agents to autonomously perform actions within our platforms to solve issues and perform account actions (refunds, upgrades and more).</li></ul><p>Excited?</p><p>Now, let’s get you started on your journey to AI support.</p><h3>Step 1: Assess Your Current Setup</h3><p>Before implementing AI-driven customer support, it’s important to understand your existing system. Evaluate:</p><ul><li>Current Customer Queries: What are the most common questions your support team handles? (Could they have been answered using a documentation you could practically write?)</li><li>Channels: Where does the majority of your support volume come from? (email, WhatsApp, Forms, combination?)</li><li>Knowledge source: Where is your business knowledge? (and is it ready?)</li><li>Existing Support Tools: What software and ticketing systems are in place? (what do they currently offer?)</li></ul><p>A thorough assessment will help you identify where AI can add the most value.</p><h3>Step 2: Planning for Success</h3><p>To ensure a smooth transition to AI-first customer support, plan ahead:</p><ul><li>Define Objectives: Are you aiming to reduce response times, improve customer satisfaction, or lower costs?</li><li>Select Training Data: AI agents perform best when trained on accurate, up-to-date knowledge bases, FAQs, and support documentation.</li><li>Establish AI-Human Collaboration: AI should handle routine inquiries, while human agents focus on complex issues. Define a clear escalation process.</li><li>Monitor Key Metrics: Set benchmarks for AI performance, including resolution rates, customer satisfaction scores, and deflection rates (cases resolved without human intervention).</li></ul><h3>Step 3: Selecting an AI Agent Provider</h3><p>Choosing the right AI vendor is crucial. Consider these factors:</p><ul><li>Ease of Integration: Does the AI work seamlessly with your existing CRM, ticketing system, and messaging platforms (WhatsApp, web chat, email, etc.)?</li><li>Customization &amp; Control: Can you train and fine-tune the AI to align with your brand voice and customer needs?</li><li>Accuracy &amp; Guardrails: Does the AI provide accurate responses and avoid “hallucinations” (made-up answers)?</li><li>Cost &amp; Pricing Model: AI providers may charge per resolution, conversation, or agent — find a model that fits your budget.</li><li>Analytics &amp; Insights: Does the platform offer insights into customer interactions and AI performance?</li></ul><h3>Step 4: Testing AI Agent Providers</h3><p>Before fully committing, pilot-test AI solutions:</p><ul><li>Start Small: Implement AI support on a limited scale (e.g., FAQs or non-critical queries).</li><li>Monitor Interactions: Track AI responses for accuracy and effectiveness. Collect customer feedback.</li><li>Fine-Tune &amp; Iterate: Adjust AI training data, add missing knowledge, and refine responses based on real-world interactions.</li><li>Scale Gradually: Once confident in performance, expand AI to handle a larger share of customer queries.</li></ul><h3>Making a decision</h3><p>Once you have completed your testing , you are probably as educated as you can be about your AI agent decision.</p><p>Choose the agent that scores the best combined with the team or company you feel most confident working with. You’ll want to work closely with your vendor to improve your agent’s performance over time.</p><p>I hope this guide has been useful for you and I hope you’ll consider <a href="https://www.intelliconcierge.com/">Intelli</a> as part of your selection process.</p><p>👋</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=07ae1595a05c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Are Chatbots Churning Out Your Customers?]]></title>
            <link>https://medium.com/@silakironji/are-chatbots-churning-out-your-customers-1f963266368b?source=rss-11acc21c3914------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f963266368b</guid>
            <category><![CDATA[customer-experience]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[silakironji]]></dc:creator>
            <pubDate>Tue, 03 Sep 2024 20:23:56 GMT</pubDate>
            <atom:updated>2024-09-03T20:23:56.956Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OsPWysJif7ufho_vSE8a4w.png" /><figcaption>don’t let chatbots drive away your customers</figcaption></figure><p>In the last discussion, we explored <a href="https://medium.com/@silakironji/why-havent-chatbot-automations-reached-their-full-potential-4b5537b6f452">Why chatbot automations haven’t reached their full potential</a>.</p><p>But there’s something bugging me I need to share: the very tools meant to enhance customer service might actually be driving customers away.</p><p>Why might chatbots be causing customer churn?</p><p>Recent data paints a concerning picture. According to <a href="https://www.forbes.com/sites/chriswestfall/2022/12/07/chatbots-and-automations-increase-customer-service-frustrations-for-consumers-at-the-holidays/">Forbes</a>, “78% of consumers have interacted with a chatbot in the past 12 months — but 80% said using chatbots increased their frustration level.” This statistic highlights a significant disconnect between the widespread adoption of chatbots and their ability to satisfy customer needs.</p><p>To illustrate why this frustration occurs, let’s consider a common scenario:</p><p>Imagine you’re shopping for a new pair of shoes on a popular online retailer’s website. You’re browsing through different styles, comparing prices, and reading reviews. Suddenly, a chatbot window pops up:</p><p>Chatbot: “Welcome! I’m here to help. What’s your name and email address?”</p><p>You ignore it, trying to focus on the product details. The chatbot persists:</p><p>Chatbot: “Don’t miss out on our exclusive offers! Enter your phone number for instant discounts!”</p><p>Annoyed, you close the chat. But it reappears every few minutes, interrupting your shopping experience. You decide to ask a question about shoe sizes:</p><p>You: “Do these shoes run large or small?”</p><p>Chatbot: “Great question! Have you signed up for our newsletter? It’s the best way to stay updated on our latest products!”</p><p>Frustrated by the lack of a helpful answer, you try one more time:</p><p>You: “I’m between sizes. Should I size up or down for this brand?”</p><p>Chatbot: “Here’s a discount code for 10% off: SHOES10”</p><p>You try the code at checkout, but it doesn’t work. At this point, you’re so irritated that you abandon your cart and decide to shop elsewhere.</p><p>This kind of interaction highlights a key problem with many chatbots: they prioritize collecting data over helping users. It’s as if they’re more interested in ticking a box than actually solving a problem. Instead of making customers feel supported and understood, these chatbots make them feel like they’re just another name on a list. This lack of personalization and genuine engagement not only frustrates customers but actively drives them away.</p><p>Another issue is accuracy. Imagine a customer asking for a discount code and receiving a made-up one from the chatbot, only to find out later that the code doesn’t exist. The customer feels misled and annoyed, which erodes trust. Instead of resolving issues, the chatbot ends up creating more problems, and customers start to feel like they’re better off handling things on their own or finding another business that values their time and trust.</p><p>The problem isn’t just limited to aggressive data collection or accuracy; it’s also about understanding the complexity of customer needs. When chatbots are limited to scripted responses and can’t handle complex queries, customers are left feeling stuck and unsupported. They start to see the chatbot not as a helpful tool, but as a barrier preventing them from getting real answers. In these cases, without the option to speak to a human, frustration mounts, and customers are more likely to churn.</p><p>How to Turn the Tide</p><p>The real change isn’t about using fancier chatbots; it’s about creating a better customer experience. At <a href="https://www.intelliconcierge.com/">Intelli</a>, we believe in blending AI with a human touch. This means designing chatbots that don’t just follow scripts but actually understand and respond to customer needs. Instead of bombarding customers with requests, chatbots should use real-time information and learn from past interactions to provide accurate, helpful answers.</p><p>The key is finding the right balance. Don’t rely solely on automation. Make it easy for customers to even reach a human when the chatbot falls short. No one likes talking to a wall — they want to know their concerns matter. By letting chatbots handle the routine tasks, we give human agents the space to tackle more complex issues. This ensures every customer feels heard and supported.</p><p>Ultimately, it’s not about replacing human support with bots — it’s about enhancing it. Chatbots should make service faster and more efficient, while still keeping that personal touch that makes customers feel valued. This approach not only helps retain customers but also strengthens relationships and builds trust.</p><p>Want your customers to experience this firsthand? Try our <a href="https://www.intelliconcierge.com/auth/sign-up">7-day free trial</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f963266368b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Haven’t Chatbot Automations Reached Their Full Potential?]]></title>
            <link>https://medium.com/@silakironji/why-havent-chatbot-automations-reached-their-full-potential-4b5537b6f452?source=rss-11acc21c3914------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b5537b6f452</guid>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[silakironji]]></dc:creator>
            <pubDate>Fri, 23 Aug 2024 13:48:45 GMT</pubDate>
            <atom:updated>2024-12-01T18:27:53.487Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pVpMA72y73ymzTlHmFDqNQ.png" /><figcaption>Human and robot hands reaching out to touch</figcaption></figure><p>Today, we’re diving into a question that many have been asking: Why haven’t chatbot automations evolved to where we want them to be?</p><p>Despite years of development, the reality is that many automated systems fall short of expectations.</p><h3>The Hidden Costs of Ineffective Automation</h3><p>Every time a support ticket gets escalated to a higher department due to inadequate initial responses, it costs companies not just money but valuable department time. Imagine having to answer the same question over and over again. If you’ve already answered it multiple times, why should you spend four more hours dealing with it? These repetitive tasks drain both time and resources. Personally, I can’t count how much money I’ve burned on customer support issues that could have been resolved by a well-designed automation system.</p><h3>The Limitations of Rule-Based Automation</h3><p>For years, we’ve relied on rule-based automation to handle customer queries. While these systems can manage basic tasks, they fall short when faced with the nuances of real human interactions. Customers often churn because they encounter rigid, impersonal automated responses that fail to address their concerns effectively. With LLMs, there’s hope to do better, but we’re not quite there yet. So, what’s holding us back?</p><h3>AI’s Current Shortcomings</h3><p>One major issue is that AI assistants sometimes generates responses that are inaccurate or irrelevant, like offering non-existent coupon codes to customers. The typical solution is to train an LLM on your company’s documentation. However, this approach overlooks a critical element: the <strong>“tribal knowledge”</strong> held by your employees. This knowledge, which is rarely documented, is crucial for accurate and effective customer support.</p><h3>The Problem with Documentation</h3><p>No company in history has managed to keep its internal documentation fully up to date. Even when you strive to document every process, the moment it’s written down, it starts becoming outdated. This is why even onboarding new employees takes months — they’re missing out on the undocumented, experience-based knowledge that existing staff hold.</p><h3>Unlocking the True Potential of AI with Past Conversations</h3><p>We realized that relying solely on formal documentation is insufficient. The real gold mine lies in past customer conversations. Everything that isn’t documented has likely been said in a conversation at some point. By training AI assistants on these past interactions, alongside formal knowledge bases, we can extract the valuable, real-world insights needed to improve customer service.</p><h3>The Human Element is Irreplaceable</h3><p>Now, you might think that this advancement means we can eliminate the need for human support agents. However, that couldn’t be further from the truth. Removing humans from the loop entirely is a mistake. It’s not about replacing humans with AI but about augmenting them. Integrating humans into the process creates a more robust and reliable system. Studies have shown that in chess, a human plus a machine outperforms either one on its own. This concept, known as “centaurism,” is applicable to customer support as well. The optimal solution is a blend of AI automation, enriched by past conversations, and human oversight.</p><h3>Intelli’s Vision: Multichannel Customer Support Assistants</h3><p>At <a href="https://www.intelliconcierge.com/">Intelli</a>, we’re building multichannel customer support assistants designed to streamline customer interactions across platforms like WhatsApp, Facebook, Web, and Email.</p><p>Our goal is simple: to ensure that no support agent has to answer the same question twice.</p><p>By fetching real-time information and integrating past interactions, we aim to enhance customer satisfaction and operational efficiency by up to 70%.</p><p>Want to experience it firsthand ? Try our <a href="https://www.intelliconcierge.com/auth/sign-up"><strong>7-day free trial</strong></a>.</p><p>The key to advancing chatbot automation lies in leveraging not just AI and rule-based systems, but also the invaluable knowledge stored in past conversations, while keeping humans in the loop. This comprehensive approach is how we can finally meet the high expectations set for chatbot automation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b5537b6f452" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Part 3: Setting Up the DJI Mobile SDK with Android Studio]]></title>
            <link>https://medium.com/@silakironji/part-3-setting-up-the-dji-mobile-sdk-with-android-studio-926f25eb0878?source=rss-11acc21c3914------2</link>
            <guid isPermaLink="false">https://medium.com/p/926f25eb0878</guid>
            <dc:creator><![CDATA[silakironji]]></dc:creator>
            <pubDate>Fri, 29 Mar 2024 15:02:55 GMT</pubDate>
            <atom:updated>2024-03-29T15:02:55.265Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fuVArHmi5O__ekCv8ckm9w.jpeg" /></figure><p>Welcome back to the beginner’s guide on programming drones (DJI)</p><p>In the previous parts[<a href="https://medium.com/@silakironji/how-to-program-a-drone-dji-cb00680da876">1</a>],[<a href="https://medium.com/@silakironji/exploring-the-dji-mobile-sdk-framework-a-beginners-guide-part-2-cea82886ef11">2</a>], we covered the benefits of programming drones, the importance of the DJI Developer SDKs, and explored the structure of the DJI Mobile SDK. Now, it’s time to get our hands dirty and set up the development environment to start building 🔨 our first DJI drone application.</p><p>In this part, we’ll walk through the process of configuring the DJI Mobile SDK with Android Studio, a popular Integrated Development Environment (IDE) for building Android applications.</p><p><strong>Prerequisites</strong></p><p>Before we begin, ensure that you have the following prerequisites installed on your system:</p><p>1. <strong>Android Studio</strong>: Download and install the latest version of Android Studio from the official website: <a href="https://developer.android.com/studio">https://developer.android.com/studio</a></p><p><strong>2. Register as a DJI Developer</strong>: If you haven’t already, sign up for a DJI Developer account <a href="https://developer.dji.com/">here</a>. From the DJI developer account we will be able to register our application and get our app key</p><h3>Generate an App Key</h3><p>Every application needs a unique App Key to initialize the SDK.</p><p>To create an App Key for an application:</p><p>Go to the DJI developer <a href="https://developer.dji.com/user">Developer Center</a></p><ul><li>Select the “Apps” tab on the left.</li><li>Select the “Create App” button on the right.</li><li>Enter the name, platform, package identifier, category and description of the application.</li><li>For Android, the package identifier is the Package Name.</li><li>An application activation email will be sent to complete App Key generation.</li><li>The App Key will appear in the developer center, and can be copied and pasted into the application.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qZ-GSG1RolIH0cTE" /></figure><p><strong>Setting Up the DJI Mobile SDK</strong></p><p>1. Open Android Studio: Launch Android Studio on your system.</p><ul><li>Open Android Studio and on the start-up screen select File -&gt; New Project</li><li>In the New Project screen:</li><li>Set the device to “Phone and Tablet”.</li><li>Set the template to “Empty Activity” and then press “Next”.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*X5Nz934pJlqTjPKQ" /></figure><p>On the next screen:</p><ul><li>Set the Application name to your desired app name. In this example we will use “sample”.</li><li>The Package name is conventionally set to something like “com.companyName.applicationName”. We will use “com.hotspotaerial.support”.</li><li>Set Language to Kotlin</li><li>Set Minimum SDK to API 21: Android 5 (Lollipop)</li><li>Click Finish to create the project.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yPcJnyALJ9bmuTa6" /></figure><h3>Configure the Gradle Script</h3><p>Double click on “build.gradle(Module: app)” in the project navigator to open it. Then add the following code to it:</p><pre>plugins {<br>    id &#39;com.android.application&#39;<br>    id &#39;kotlin-android&#39;<br>}<br><br>android {<br>    compileSdkVersion 31<br>    buildToolsVersion &quot;30.0.3&quot;<br><br>    defaultConfig {<br>        applicationId &#39;com.hotspotaerial.sample&#39;<br>        minSdkVersion 21<br>        targetSdkVersion 30<br>        versionCode 1<br>        multiDexEnabled true<br>        versionName &quot;1.0&quot;<br>        ndk {<br>            // On x86 devices that run Android API 23 or above, if the application is targeted with API 23 or<br>            // above, FFmpeg lib might lead to runtime crashes or warnings.<br>            abiFilters &#39;armeabi-v7a&#39;, &#39;x86&#39;, &#39;arm64-v8a&#39;<br>        }<br><br>        testInstrumentationRunner &quot;androidx.test.runner.AndroidJUnitRunner&quot;<br>    }<br><br>    buildTypes {<br>        release {<br>            minifyEnabled false<br>            proguardFiles getDefaultProguardFile(&#39;proguard-android.txt&#39;), &#39;proguard-rules.pro&#39;<br>        }<br>        debug {<br>            shrinkResources false<br>            minifyEnabled false<br>            proguardFiles getDefaultProguardFile(&#39;proguard-android.txt&#39;), &#39;proguard-rules.pro&#39;<br>        }<br>    }<br>    compileOptions {<br>        sourceCompatibility JavaVersion.VERSION_1_8<br>        targetCompatibility JavaVersion.VERSION_1_8<br>    }<br>    kotlinOptions {<br>        jvmTarget = &#39;1.8&#39;<br>    }<br>    dexOptions {<br>        javaMaxHeapSize &quot;4g&quot;<br>    }<br><br>    packagingOptions {<br>        doNotStrip &quot;*/*/libdjivideo.so&quot;<br>        doNotStrip &quot;*/*/libSDKRelativeJNI.so&quot;<br>        doNotStrip &quot;*/*/libFlyForbid.so&quot;<br>        doNotStrip &quot;*/*/libduml_vision_bokeh.so&quot;<br>        doNotStrip &quot;*/*/libyuv2.so&quot;<br>        doNotStrip &quot;*/*/libGroudStation.so&quot;<br>        doNotStrip &quot;*/*/libFRCorkscrew.so&quot;<br>        doNotStrip &quot;*/*/libUpgradeVerify.so&quot;<br>        doNotStrip &quot;*/*/libFR.so&quot;<br>        doNotStrip &quot;*/*/libDJIFlySafeCore.so&quot;<br>        doNotStrip &quot;*/*/libdjifs_jni.so&quot;<br>        doNotStrip &quot;*/*/libsfjni.so&quot;<br>        doNotStrip &quot;*/*/libDJICommonJNI.so&quot;<br>        doNotStrip &quot;*/*/libDJICSDKCommon.so&quot;<br>        doNotStrip &quot;*/*/libDJIUpgradeCore.so&quot;<br>        doNotStrip &quot;*/*/libDJIUpgradeJNI.so&quot;<br>        exclude &#39;META-INF/rxjava.properties&#39;<br>    }<br>}<br><br>dependencies {<br><br>    implementation(&#39;com.dji:dji-sdk:4.16&#39;)<br>    compileOnly(&#39;com.dji:dji-sdk-provided:4.16&#39;)<br><br>    implementation &#39;androidx.multidex:multidex:2.0.1&#39;<br>    implementation &#39;com.squareup:otto:1.3.8&#39;<br>    implementation &#39;com.google.android.material:material:1.5.0&#39;<br><br>    implementation &#39;androidx.appcompat:appcompat:1.4.1&#39;<br>    implementation &#39;androidx.core:core-ktx:1.7.0&#39;<br>    implementation &#39;androidx.constraintlayout:constraintlayout:2.1.3&#39;<br>    implementation &#39;androidx.recyclerview:recyclerview:1.2.1&#39;<br>    implementation &#39;androidx.lifecycle:lifecycle-extensions:2.2.0&#39;<br>    implementation &#39;androidx.annotation:annotation:1.3.0&#39;<br>    implementation &#39;com.jakewharton:butterknife:10.2.3&#39;<br>    annotationProcessor &#39;com.jakewharton:butterknife-compiler:10.2.3&#39;<br>    implementation &quot;androidx.core:core-ktx:1.7.0&quot;<br>    implementation &#39;androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.0&#39;<br>    implementation &#39;org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0-native-mt&#39;<br>    implementation &#39;org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.0-native-mt&#39;<br><br><br>}<br><br>// Please uncomment the following code if you use your own sdk version.<br>//apply from : &quot;https://terra-1-g.djicdn.com/71a7d383e71a4fb8887a310eb746b47f/msdk/Android-CommonConfig/config_sample_all.gradle&quot;<br><br></pre><p>Add the following line to the bottom of your gradle.properties file. This Android plugin automatically migrates existing third-party libraries to use AndroidX by rewriting their binaries.</p><pre>android.enableJetifier=true</pre><p>Next right click on the <em>app/src/main/res/xml</em> folder and choose <em>New -&gt; XML Resource File</em> and create the <em>accessory_filter.xml</em> file with the following contents</p><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>&lt;resources&gt;<br>    &lt;usb-accessory model=&quot;T600&quot; manufacturer=&quot;DJI&quot;/&gt;<br>    &lt;usb-accessory model=&quot;AG410&quot; manufacturer=&quot;DJI&quot;/&gt;<br>    &lt;usb-accessory model=&quot;com.dji.logiclink&quot; manufacturer=&quot;DJI&quot;/&gt;<br>    &lt;usb-accessory model=&quot;WM160&quot; manufacturer=&quot;DJI&quot;/&gt;<br>&lt;/resources&gt;</pre><p>Then, finally make sure in your <em>settings.gradle</em> you only have</p><pre>rootProject.name = &quot;sample&quot;<br>include &#39;:app&#39;</pre><p>In the code above, we implement the following features:</p><ol><li>Add the packagingOptions to prevent any unexpected crash of the application.</li><li>Add the compileOnly and implementation dependencies to import the latest DJI Android UX SDK and SDK Maven dependency.</li></ol><p>Once you finished the steps above, click the <em>“Sync Now”</em> option that pops up. Alternatively, select <em>File -&gt; Sync Project with Gradle</em> Files and wait for Gradle project sync to finish.</p><h3>Double Check Maven Dependency</h3><p><em>Select File-&gt;Project Structure</em> in the Android Studio menu to open the <em>“Project Structure</em>” window. Then select the <em>“app”</em> module and click the Dependencies tab. You should see the latest DJI Android UX SDK compile and sdk provided dependencies are already imported.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7ataegG48MzHqdOI" /></figure><p><strong>Application Registration</strong></p><p>Now let’s register our application with the App Key you apply from DJI Developer Website. Implementing Application class</p><p>Right click on the <em>‘com.hotspotaerial.sample’’</em> module in the project navigator and select <em>“New -&gt; Kotlin Class/File” </em>to create a new file, enter <em>“MApplication” </em>as the Name and then double click Class. Then replace the code with the following:</p><pre>package com.hotspotaerial.sample<br><br>import android.app.Application<br>import android.content.Context<br>import com.secneo.sdk.Helper<br><br>class MApplication: Application() {<br><br>    override fun attachBaseContext(base: Context?) {<br>        super.attachBaseContext(base)<br>        Helper.install(this)<br>    }<br>}</pre><p>Here, we override the <em>attachBaseContext() </em>method to add the <em>Helper.install(MApplication.this);</em> line of code.</p><p>Note: Since some of SDK classes now need to be loaded before using, the loading process is done by <em>Helper.install().</em> Developer needs to invoke this method before using any SDK functionality. Failing to do so will result in unexpected crashes.</p><h3>Working on the MainActivity</h3><p>Once we finished the steps above, let’s open the <em>“MainActivity.kt”</em> file, and replace the code with the following:. Here we explain the important part of it:</p><pre>package com.hotspotaerial.sample<br><br>import android.Manifest<br>import android.content.Intent<br>import android.content.pm.PackageManager<br>import android.os.Build<br>import androidx.appcompat.app.AppCompatActivity<br>import android.os.Bundle<br>import android.os.Handler<br>import android.os.Looper<br>import android.util.Log<br>import android.widget.Toast<br>import androidx.core.app.ActivityCompat<br>import androidx.core.content.ContextCompat<br>import dji.common.error.DJIError<br>import dji.common.error.DJISDKError<br>import dji.sdk.base.BaseComponent<br>import dji.sdk.base.BaseProduct<br>import dji.sdk.sdkmanager.DJISDKInitEvent<br>import dji.sdk.sdkmanager.DJISDKManager<br>import java.util.concurrent.atomic.AtomicBoolean<br><br>class MainActivity : AppCompatActivity() {<br><br>    /**<br>     * The following class variables can be called without having to create an instance of the MainActivity class<br>     */<br>    companion object {<br>        private val TAG = &quot;MainActivity&quot;<br>        private const val FLAG_CONNECTION_CHANGE = &quot;dji_sdk_connection_change&quot;<br>        private lateinit var mProduct: BaseProduct<br>        private lateinit var mHandler: Handler //this allows you to send and process Message and Runnable objects associated with a thread&#39;s MessageQueue<br><br>        //array of permission strings defined in the AndroidManifest, which the app requires and may need to request the user for permission to use.<br>        private val REQUIRED_PERMISSION_LIST: Array&lt;String&gt; = arrayOf(<br>            Manifest.permission.VIBRATE,<br>            Manifest.permission.INTERNET,<br>            Manifest.permission.ACCESS_WIFI_STATE,<br>            Manifest.permission.WAKE_LOCK,<br>            Manifest.permission.ACCESS_COARSE_LOCATION,<br>            Manifest.permission.ACCESS_NETWORK_STATE,<br>            Manifest.permission.ACCESS_FINE_LOCATION,<br>            Manifest.permission.CHANGE_WIFI_STATE,<br>            Manifest.permission.WRITE_EXTERNAL_STORAGE,<br>            Manifest.permission.BLUETOOTH,<br>            Manifest.permission.BLUETOOTH_ADMIN,<br>            Manifest.permission.READ_EXTERNAL_STORAGE,<br>            Manifest.permission.READ_PHONE_STATE,<br>        )<br>        private const val REQUEST_PERMISSION_CODE = 125 //integer constant used when requesting app permissions<br>    }<br><br>    /**<br>     * Class Variables<br>     */<br>    private val missingPermission = ArrayList&lt;String&gt;()<br>    private val isRegistrationInProgress = AtomicBoolean(false) //This boolean can be accessed and updated by multiple threads<br><br>    /**<br>     * Creating the Activity<br>     */<br>    override fun onCreate(savedInstanceState: Bundle?) {<br>        super.onCreate(savedInstanceState)<br><br>        Log.d(TAG, &quot;MainActivity created&quot;)<br><br>        //If the Android version running on the user&#39;s device is at least Android 6 (Marshmallow) or API level 23, check and request permissions.<br>        //Android versions below 6 automatically grants access to these permissions, which can be dangerous.<br>        if(Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.M){<br>            checkAndRequestPermissions()<br>        }<br><br>        setContentView(R.layout.activity_main) //inflates the activity_main layout as the activity&#39;s view<br><br>        mHandler = Handler(Looper.getMainLooper()) //initiates a Handler that uses the app&#39;s main looper (runs on the UI thread)<br>    }<br><br>    /**<br>     * Checking and Requesting Permissions<br>     */<br>    private fun checkAndRequestPermissions(){<br>        //For each permission in the REQUIRED_PERMISSION_LIST, if the device has not already granted this permission, add it to the missingPermission list<br>        for(eachPermission in REQUIRED_PERMISSION_LIST){<br>            if(ContextCompat.checkSelfPermission(this, eachPermission) != PackageManager.PERMISSION_GRANTED){<br>                missingPermission.add(eachPermission)<br>                Log.d(TAG, &quot;missing permission: $eachPermission&quot;)<br>            }<br>        }<br>        if(missingPermission.isEmpty()){ //if there are no missing permissions, start SDK registration<br>            startSDKRegistration()<br>        }else if(Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.M){ //if there are missing permissions, request the user to grant the permissions<br>            showToast(&quot;Need to grant the permission&quot;)<br>            //Making the permission request. The result is handled in onRequestPermissionsResult()<br>            ActivityCompat.requestPermissions(this,<br>                missingPermission.toArray(arrayOfNulls&lt;String&gt;(missingPermission.size)),<br>                REQUEST_PERMISSION_CODE)<br>        }<br>    }<br><br>    /**<br>     * SDK Registration<br>     */<br>    private fun startSDKRegistration(){<br>        if(isRegistrationInProgress.compareAndSet(false, true)) { //if isRegistrationInProgress is false, set to true<br>            showToast(&quot;Registering, please wait...&quot;)<br><br>            //Getting an instance of the DJISDKManager and using it to register the app (requires API key in AndroidManifest)<br>            DJISDKManager.getInstance().registerApp(applicationContext, object: DJISDKManager.SDKManagerCallback {<br><br>                //checking registration<br>                override fun onRegister(error: DJIError?) {<br>                    error?.let{<br>                        //If registration is successful, start a connection to the DJI product.<br>                        if(error == DJISDKError.REGISTRATION_SUCCESS){<br>                            showToast(&quot;Register Success&quot;)<br>                            DJISDKManager.getInstance().startConnectionToProduct()<br>                        //If registration is unsuccessful, prompt user and log the registration error<br>                        }else{<br>                            showToast(&quot;Register sdk fails, please check the bundle id and network connection!&quot;)<br>                        }<br>                        Log.v(TAG, error.description)<br>                    }<br><br>                }<br><br>                //called when the remote controller disconnects from the user&#39;s mobile device<br>                override fun onProductDisconnect() {<br>                    Log.d(TAG, &quot;onProductDisconnect&quot;)<br>                    showToast(&quot;Remote Controller Disconnected&quot;)<br>                    notifyStatusChange()<br>                }<br><br>                //called the remote controller connects to the user&#39;s mobile device<br>                override fun onProductConnect(product: BaseProduct?) {<br>                    Log.d(TAG, &quot;onProductConnect newProduct: $product&quot;)<br>                    showToast(&quot;Remote Controller Connected&quot;)<br>                    notifyStatusChange()<br>                }<br><br>                //called when the DJI aircraft changes<br>                override fun onProductChanged(p0: BaseProduct?) {<br>                    if (p0.toString() == &quot;None&quot;){<br>                        showToast(&quot;aircraft disconnected&quot;)<br>                    }<br>                    else{<br>                        showToast(&quot;aircraft: $p0 connected&quot;)<br>                    }<br><br>                }<br>                <br>                //Called when a component object changes. This method is not called if the component is already disconnected<br>                override fun onComponentChange(<br>                    componentKey: BaseProduct.ComponentKey?,<br>                    oldComponent: BaseComponent?,<br>                    newComponent: BaseComponent?<br>                ) {<br>                    //Listen to connectivity changes in the new component<br>                    newComponent?.let{ it -&gt;<br>                        it.setComponentListener {<br>                            Log.d(TAG, &quot;onComponentConnectivityChanged: $it&quot;)<br>                            notifyStatusChange()<br>                        }<br>                    }<br><br>                    //Alert the user which component has changed, and mention what new component replaced the old component (can be null)<br>                    showToast(&quot;onComponentChange key: $componentKey, oldComponent: $oldComponent, newComponent: $newComponent&quot;)<br>                    Log.d(TAG, &quot;onComponentChange key: $componentKey, oldComponent: $oldComponent, newComponent: $newComponent&quot;)<br><br>                }<br><br>                //called when loading SDK resources<br>                override fun onInitProcess(p0: DJISDKInitEvent?, p1: Int) {<br>                    //TODO<br>                }<br><br>                //Called when Fly Safe database download progress is updated<br>                override fun onDatabaseDownloadProgress(p0: Long, p1: Long) {<br>                    //TODO<br>                }<br><br>            })<br>        }<br><br>    }<br><br>    /**<br>     * Function used to notify the app of status changes<br>     */<br>    private fun notifyStatusChange(){<br>        mHandler.removeCallbacks(updateRunnable) //removes any pending posts of updateRunnable from the message queue<br>        mHandler.postDelayed(updateRunnable, 500) //adds a new updateRunnable to the message queue, which is executed 0.5 seconds after<br>    }<br><br>    /**<br>     * Runnable object (executable command) that sends a broadcast with a specific intent.<br>     */<br>    private val updateRunnable: Runnable = Runnable {<br>        val intent = Intent(FLAG_CONNECTION_CHANGE) //This intent lets the broadcast receiver (itself) know that a connection change has occurred.<br>        sendBroadcast(intent)<br>    }<br><br>    /**<br>     * Function displays a toast using provided string parameter<br>     */<br>    private fun showToast(text: String){<br>        val handler = Handler(Looper.getMainLooper())<br>        handler.post{<br>            Toast.makeText(applicationContext, text, Toast.LENGTH_LONG).show()<br>        }<br>    }<br><br>    /**<br>     * Asynchronous function handles the results of ActivityCompat.requestPermissions()<br>     */<br>    override fun onRequestPermissionsResult(<br>        requestCode: Int,<br>        permissions: Array&lt;out String&gt;,<br>        grantResults: IntArray<br>    ) {<br>        super.onRequestPermissionsResult(requestCode,<br>            permissions,<br>            grantResults)<br>        //For every permission in the missingPermissions list, if the permission is granted, remove it from the list<br>        if(requestCode == REQUEST_PERMISSION_CODE){<br>            grantResults.size<br>            val index = grantResults.size-1<br>            for(i in index downTo 0){<br>                if(grantResults[i] == PackageManager.PERMISSION_GRANTED){<br>                    missingPermission.remove(permissions[i])<br>                }<br>            }<br>        }<br>        //if there are no missing permissions, start SDK registration<br>        if(missingPermission.isEmpty()){<br>            startSDKRegistration()<br>        }else{<br>            showToast(&quot;Missing Permissions!!&quot;)<br>        }<br>    }<br><br><br>}</pre><p>Here, we implement several features:</p><ol><li>In the onCreate() method, we request several permissions at runtime to ensure the SDK works well when the compile and target SDK version is higher than 22(Like Android Marshmallow 6.0 device and API 23). Then, we invoke the registerApp() method of DJISDKManager to register the application.</li><li>Extend the SDKManagerCallback class and implement its two interface methods. You can use the onRegister() method to check the Application registration status and show text message to inform users. When the product is connected or disconnected, the onProductConnect() and onProductDisconnect() methods will be invoked. Moreover, we use the onComponentChange() method to check the component changes and invoke the notifyStatusChange() method to notify the changes.</li></ol><p>Note that we can use the DJI Android SDK class variables inside the <em>onCreate()</em> method of the <em>MainActivity</em> class after the <em>MApplication</em> class is created, which finished loading the SDK classes by invoking the <em>Helper.install(</em>).</p><h3>Modifying AndroidManifest file</h3><p>Once you finished the steps above, let’s open the “<em>AndroidManifest.xml</em>” file and add the following elements on top of the application element:</p><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>&lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;<br>    xmlns:tools=&quot;http://schemas.android.com/tools&quot;<br>    package=&quot;com.hotspotaeril.sample&quot;&gt;<br>    &lt;!-- Permissions and features --&gt;<br>    &lt;uses-permission android:name=&quot;android.permission.BLUETOOTH&quot; /&gt;<br>    &lt;uses-permission android:name=&quot;android.permission.BLUETOOTH_ADMIN&quot; /&gt;<br>    &lt;uses-permission android:name=&quot;android.permission.VIBRATE&quot; /&gt;<br>    &lt;uses-permission android:name=&quot;android.permission.INTERNET&quot; /&gt;<br>    &lt;uses-permission android:name=&quot;android.permission.ACCESS_WIFI_STATE&quot; /&gt;<br>    &lt;uses-permission android:name=&quot;android.permission.WAKE_LOCK&quot; /&gt;<br>    &lt;uses-permission android:name=&quot;android.permission.ACCESS_COARSE_LOCATION&quot; /&gt;<br>    &lt;uses-permission android:name=&quot;android.permission.ACCESS_NETWORK_STATE&quot; /&gt;<br>    &lt;uses-permission android:name=&quot;android.permission.ACCESS_FINE_LOCATION&quot; /&gt;<br>    &lt;uses-permission android:name=&quot;android.permission.CHANGE_WIFI_STATE&quot; /&gt;<br>    &lt;uses-permission android:name=&quot;android.permission.MOUNT_UNMOUNT_FILESYSTEMS&quot;<br>        tools:ignore=&quot;ProtectedPermissions&quot; /&gt;<br>    &lt;uses-permission android:name=&quot;android.permission.WRITE_EXTERNAL_STORAGE&quot;<br>        tools:ignore=&quot;ScopedStorage&quot; /&gt;<br>    &lt;uses-permission android:name=&quot;android.permission.READ_EXTERNAL_STORAGE&quot; /&gt;<br>    &lt;uses-permission android:name=&quot;android.permission.SYSTEM_ALERT_WINDOW&quot; /&gt;<br>    &lt;uses-permission android:name=&quot;android.permission.READ_PHONE_STATE&quot; /&gt;<br><br>    &lt;uses-feature android:name=&quot;android.hardware.camera&quot; /&gt;<br>    &lt;uses-feature android:name=&quot;android.hardware.camera.autofocus&quot; /&gt;<br><br>    &lt;uses-feature<br>        android:name=&quot;android.hardware.usb.host&quot;<br>        android:required=&quot;false&quot; /&gt;<br>    &lt;uses-feature android:name=&quot;android.hardware.usb.accessory&quot; android:required=&quot;true&quot; /&gt;<br><br>    &lt;application<br>        android:name=&quot;.MApplication&quot;<br>        android:allowBackup=&quot;true&quot;<br>        android:icon=&quot;@mipmap/ic_launcher&quot;<br>        android:label=&quot;@string/app_name&quot;<br>        android:roundIcon=&quot;@mipmap/ic_launcher_round&quot;<br>        android:supportsRtl=&quot;true&quot;<br>        android:theme=&quot;@style/Theme.KotlinImportAndActivateSDKInAndroidStudio&quot;<br>        tools:ignore=&quot;AllowBackup&quot;&gt;<br><br>        &lt;!-- DJI SDK --&gt;<br>        &lt;uses-library android:name=&quot;com.android.future.usb.accessory&quot; /&gt;<br>        &lt;uses-library android:name=&quot;org.apache.http.legacy&quot; android:required=&quot;false&quot; /&gt;<br>        &lt;meta-data<br>            android:name=&quot;com.dji.sdk.API_KEY&quot;<br>            android:value=&quot;140d1f5a977452d2a9e388ed&quot; /&gt;<br><br>        &lt;!-- DJI SDK --&gt;<br><br>        &lt;activity android:name=&quot;.MainActivity&quot;<br>                android:screenOrientation=&quot;fullSensor&quot;<br>                android:configChanges=&quot;orientation&quot;<br>            android:exported=&quot;true&quot;&gt;<br>            &lt;intent-filter&gt;<br>                &lt;action android:name=&quot;android.intent.action.MAIN&quot; /&gt;<br><br>                &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot; /&gt;<br>            &lt;/intent-filter&gt;<br><br>            &lt;intent-filter&gt;<br>                &lt;action android:name=&quot;android.hardware.usb.action.USB_ACCESSORY_ATTACHED&quot; /&gt;<br>            &lt;/intent-filter&gt;<br>            &lt;meta-data<br>                android:name=&quot;android.hardware.usb.action.USB_ACCESSORY_ATTACHED&quot;<br>                android:resource=&quot;@xml/accessory_filter&quot; /&gt;<br><br>        &lt;/activity&gt;<br>    &lt;/application&gt;<br><br>&lt;/manifest&gt;</pre><p>Here, we request permissions that the application must be granted in order for it to register DJI SDK correctly. Also, we declare the camera and USB hardware which are used by the application. We need to add the <em>android:name=“MApplication”</em> at the beginning of the application element. We also need to add the USB elements as childs of element on top of the <em>“MainActivity”</em> activity element as shown. It’s not totally necessary right now as this app will run without a drone but in future apps it will prompt us to start the app when the controller is connected to the USB.</p><p>In the code above, you can substitute your App Key of the application for “<em>Please enter your App Key here.</em>” in the value attribute under the <em>android:name=“com.dji.sdk.API_KEY”</em> attribute. For the “<em>accessory_filter.xml</em>” file, right click on “<em>res</em>”, select “<em>New-&gt;Directory</em>”, and name it xml. Then, you can copy the “<em>accessory_filter.xml</em>” from this repository into this newly created folder.</p><p>Note it is suggested that you create a variable in your <em>local.properties </em>for your <em>DJI API Key</em> and place the variable name in the manifest. This ensures that your API key will not be tracked by version control systems. To do this copy <em>DJI_API_KEY=your_dji_key into local.properties.</em> Then, copy the following into your <em>build.gradle(:app)</em> above the android section:</p><pre>Properties properties = new Properties()<br>properties.load(project.rootProject.file(&#39;local.properties&#39;).newDataInputStream())<br>def djiKey = properties.getProperty(&#39;DJI_API_KEY&#39;)</pre><p>Next, copy <em>manifestPlaceholders</em> =<em> [DJI_API_KEY: djiKey] </em>into the <em>build.gradle(:app)</em> in the <em>defaultConfig</em> section. Finally, you can access your <em>local.properties</em> variable in your Android Manifest as such:</p><pre>&lt;meta-data<br>    android:name=&quot;com.dji.sdk.API_KEY&quot;<br>    android:value=&quot;${DJI_API_KEY}&quot; /&gt;</pre><p>As this application is only checking for registration and not interacting directly with a product, no product needs to be connected to the application for this to run. Therefore, the application can either be run on a mobile device (with or without a DJI product connected) or in the Android simulator. The application will need internet connectivity to perform registration successfully.</p><p>If the App Key was generated correctly and the Android simulator or mobile device has internet connectivity, then the following should be seen:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RvO7dbxMPA5jjiLqOvpu6Q.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=926f25eb0878" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exploring DJI Mobile SDK Framework: A Beginner’s Guide (Part 2)]]></title>
            <link>https://medium.com/@silakironji/exploring-the-dji-mobile-sdk-framework-a-beginners-guide-part-2-cea82886ef11?source=rss-11acc21c3914------2</link>
            <guid isPermaLink="false">https://medium.com/p/cea82886ef11</guid>
            <dc:creator><![CDATA[silakironji]]></dc:creator>
            <pubDate>Sun, 17 Mar 2024 00:25:20 GMT</pubDate>
            <atom:updated>2024-03-17T00:41:56.951Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome back<strong> </strong>to the beginner’s guide on <strong>How to Program a drone(DJI) Part 2</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aVsJquwYS7DbeqV01aisrg.jpeg" /></figure><p>In <a href="https://medium.com/@silakironji/how-to-program-a-drone-dji-cb00680da876">Part 1</a>, we got to appreciate the benefits and concepts of programming DJI drones and highlighted the importance of DJI’s Developer SDKs. Now, let’s take a closer look at the DJI Mobile SDK structure.</p><p><strong>Understanding the DJI Mobile SDK</strong></p><p>DJI Mobile SDK is a powerful tool for developing <strong>mobile applications </strong>that interact with <strong>DJI drones</strong>.</p><p>The SDK (Software Development Kit) simplifies the application development process by taking care of <strong>lower-level </strong>functionality such as<strong> flight stabilization</strong>, <strong>battery management</strong>, <strong>signal transmission</strong>, and communication. This way, you do not require a background in robotics or embedded systems and can instead focus on the application the DJI product is being integrated into.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*WuwJ-RQVQok3HWdS" /><figcaption>The following diagram illustrates how the DJI Mobile SDK fits into a mobile application</figcaption></figure><p>Think of the DJI Mobile SDK as a toolbox filled with everything you need to build your own unique experience of a DJI drone.</p><p><strong>Supported Platforms and Products</strong></p><p>The DJI Mobile SDK works with iOS (9.0+) and Android (Android 5.0 +) devices. Developers use <a href="https://developer.android.com/studio?gad_source=1&amp;gclid=Cj0KCQjwhtWvBhD9ARIsAOP0Goj8Rh_aHq164R9FVyqOJl3dX6AibCkpMYIqbOX1BWs3DrM3eNpH_tsaAgGYEALw_wcB&amp;gclsrc=aw.ds">Android Studio</a> for Android apps and <a href="https://developer.apple.com/xcode/">Xcode</a> for iOS apps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/150/1*d7u8lx1eXrAj2OymWc_7Jg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/150/1*jrs_O4AUNatOQ-eQtN8xyQ.png" /><figcaption>Android Studio and Xcode</figcaption></figure><p><strong>Versions</strong></p><p>We have two main supported versions of DJI MSDK;<a href="https://developer.dji.com/mobile-sdk-v4/downloads/"> Version 4</a> and <a href="https://developer.dji.com/mobile-sdk/downloads/">Version 5</a>.</p><p>The V4 supports<strong> Android 5.0 +</strong> and <strong>iOS 9.0+</strong> platforms and the following DJI products;<br><strong>Spark Series</strong>, <strong>Mavic series</strong>, <strong>Phantom Series</strong>, <strong>Inspire</strong> and <strong>Matrice serie</strong>s</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xeLN1EqCWOin5vDjWM65Mw.png" /><figcaption>DJI MSDK V4 supported platforms</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bg-G56-YDCClZwTLRyPoPg.png" /><figcaption>DJI MSDK V4 Supported products</figcaption></figure><p>The V5 only <strong>DJI Smart controller Android 5.0</strong> and external android device connected with the DJI smart controllers<strong> Android 5.0 +</strong>. The supported products areI products;<br><strong>Matrice 300RTK</strong>,<strong>Matrice 350 RTK,Matrice 30 series</strong>, <strong>DJI Mavic 3 enterprise series</strong>, <strong>DJI Mavic 3M</strong>, <strong>DJI Mini 3 and mini 3 pro</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l0VZqwzL1p5JPggJY4tI2g.png" /><figcaption>DJI MSDK V5 supported platforms</figcaption></figure><p>MSDK V5 Supported products</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hg7DElPdJalXuxINZLcYpQ.png" /><figcaption>DJI MSDK V5 Supported products</figcaption></figure><p><strong>Key components of DJIMSK framework</strong></p><p>Understanding the framework’s <strong>components</strong> and how they interact is crucial.</p><p>The main components of the DJI Mobile SDK framework include:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*Lqxfmmt7BNfZNGxTFIyiPA.png" /><figcaption>A mobile application accesses the DJI Mobile SDK through several main classes illustrated above</figcaption></figure><p><strong>SDKManager:</strong> This is like the control center of the DJI Mobile SDK toolkit. It handles the initialization and deinitialization of the SDK, as well as the registration of the SDK with DJI hardware products. Think of it as the starting point for integrating the SDK into your application.</p><p><strong>KeyTools / KeyManager:</strong> These components are essential for configuring and accessing various parameters and functionalities of the DJI hardware products. KeyTools is used to create keys, while KeyManager is used to interact with or monitor these keys. For example, you can use keys to control the gimbal rotation or trigger the camera to take photos and videos.</p><p><strong>MediaDataCenter:</strong> This component is responsible for handling application data, including stream data and multimedia files. It provides access to the original stream data and manages multimedia files captured by the drone’s camera. You can use MediaDataCenter to retrieve and manage media content captured during flight.</p><p><strong>WaypointMissionManager:</strong> If you want to automate the flight of your drone based on predefined waypoints, this is the component you’ll use. The WaypointMissionManager allows you to create and execute waypoint missions, guiding the drone along a predefined path while performing specified actions at each waypoint.</p><p><strong>VirtualStickManager:</strong> This component enables virtual stick control of the drone, allowing you to control its flight in real-time by sending action commands. It’s like piloting the drone using virtual joysticks on your mobile device, providing a hands-on approach to controlling the drone’s movements.</p><p><strong>FlightLogManager: </strong>This allow you to keep track of your drone’s flight history and performance. The FlightLogManager allows you to access and manage flight logs stored on your mobile device. You can retrieve valuable data about past flights, including flight paths, altitude, and battery usage.</p><p><strong>DeviceHealthManager:</strong> This component provides real-time monitoring of the health status of your drone. It helps you stay informed about the condition of the device, including battery status, temperature, and other vital parameters, ensuring a safe and smooth flying experience.</p><p>Remember we are programming a drone to capture <strong>specific types of data</strong> and <strong>automate tasks</strong>.</p><p>Smart missions can easily achieve automated flight. Among the missions, the waypoint mission (<strong>WaypointMission</strong>) defined based on waypoints and waypoint actions can make the drone fly automatically along the defined waypoints and waypoint actions, and use the <strong>WaypointMissionManager</strong> to control the execution process of the waypoint mission.</p><p>As we wrap up, you should now have a better understanding of DJI MSDK <strong>purpose</strong>, <strong>supported platforms</strong>, and <strong>key components</strong>. In the next part of this series (Part 3), we’ll dive into a hands-on process of setting up the DJI Mobile SDK with Android Studio.</p><p>You’ll learn how to configure your development environment and create a sample application registered by DJI.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cea82886ef11" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Program a drone( DJI)]]></title>
            <link>https://medium.com/@silakironji/how-to-program-a-drone-dji-cb00680da876?source=rss-11acc21c3914------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb00680da876</guid>
            <dc:creator><![CDATA[silakironji]]></dc:creator>
            <pubDate>Tue, 05 Mar 2024 23:54:54 GMT</pubDate>
            <atom:updated>2024-03-06T10:12:09.084Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tcQYQx115vY86YfABnY1SQ.jpeg" /></figure><p>If you’re a complete beginner, you might be surprised to learn that DJI drones, one of the most popular consumer drone brands, can be programmed to perform various tasks beyond their standard capabilities. In this series, we’ll explore how and why programming DJI drones can unlock new possibilities and why they’re an excellent choice for beginners like you.</p><p><strong>Why DJI drones?</strong></p><p>DJI is a well-established and respected drone manufacturer known for producing high-quality and reliable products. Their drones cater to a wide range of users, from hobbyists to professionals, and offer a variety of features and capabilities. One of the key reasons for choosing DJI drones is their support for development and customization, which allows adapting the drone’s functionalities to specific needs and applications.</p><p><strong>Why Program a Drone?</strong></p><p>Programming a drone unlocks possibilities allowing you to capture specific types of data, or automate tasks to suit your needs. Whether you’re a hobbyist, a professional photographer, a filmmaker, a scientist, or an engineer, programming a DJI drone can enable you to accomplish tasks that were previously impossible.</p><p><strong>Getting started with programming DJI drones</strong></p><p>To start programming DJI drones, you’ll need to become familiar with <strong>DJI Developer SDKs</strong>.</p><p>The DJI Developer SDK (Software Development Kit) is a set of software tools, libraries, provided by DJI to enable third-party developers to create custom applications for DJI drones</p><p>The SDK allows access to DJI’s core functionalities, such as <strong>flight control</strong>, <strong>camera operations</strong>, and <strong>real-time data transmission</strong>.</p><p>The main components of the DJI SDK are:</p><p><strong>Mobile SDK:</strong></p><p>The Mobile SDK is designed for mobile app development on iOS and Android platforms.</p><p>It provides access to features such as flight control, camera control, telemetry data, live video streaming, and intelligent flight modes.</p><p>Developers can create custom applications for controlling and interacting with DJI drones using mobile devices.</p><p><strong>Onboard SDK:</strong></p><p>The Onboard SDK targets embedded systems and onboard computer platforms.</p><p>It allows developers to create applications that run directly on DJI drones or companion computers connected to the drones.</p><p>With the Onboard SDK, developers can access low-level flight control, sensor data, and perform custom algorithms directly on the drone’s hardware.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*X4TRqHH385SpqitMsP4pAQ.jpeg" /><figcaption>NVIDIA Jetson TX2 on a M210</figcaption></figure><p><strong>Payload SDK:</strong></p><p>The Payload SDK enables developers to create applications that interact with DJI payload devices, such as cameras, sensors, and other accessories.</p><p>It provides access to camera control, data transmission, and other functionalities specific to the connected payload.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V9oFMm1dQuCJraZXFIQ1Wg.png" /><figcaption>DJI M200series</figcaption></figure><p><strong>UX SDK:</strong></p><p>The UX SDK focuses on enhancing the user experience of DJI drone applications.</p><p>It provides tools for customizing the user interface, integrating maps, and adding telemetry data overlays to improve the usability and functionality of drone apps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lFNcav5okQLf55vimUgGZQ.png" /></figure><p><strong>Windows SDK:</strong></p><p>The Windows SDK is specifically tailored for application development on the Windows platform.</p><p>It enables developers to create Windows-based applications that interact with DJI drones .</p><p>With the Windows SDK, developers can access features similar to those provided by the Mobile SDK, including flight control, camera control, telemetry data, and more.</p><p><strong>Cloud API:</strong></p><p>The Cloud API (Application Programming Interface) provides access to cloud-based services and functionalities offered by DJI.</p><p>It enables integration with DJI’s cloud-based services, such as DJI <a href="https://fh.dji.com/">FlightHub</a>, for managing drone fleets, mission planning, and data analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JXNhIuM_qU0OzOGOupgQMA.png" /><figcaption>DJI Pilot 2 App</figcaption></figure><p>Before diving deeper, we’ll need to create a DJI Developer account. This account gives you access to DJI’s developer resources, SDKs, documentation and app keys.</p><p>Sign up for a DJI developer account at<a href="https://developer.dji.com/"> https://developer.dji.com/</a>. This will give you access to DJI’s SDK, documentation, and developer forum.</p><p>In the next part of this series, we’ll dive deeper into exploring the structure of DJI Mobile SDK framework</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb00680da876" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>