<?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 Sorin Alupoaie on Medium]]></title>
        <description><![CDATA[Stories by Sorin Alupoaie on Medium]]></description>
        <link>https://medium.com/@asorin?source=rss-669d1391d3c9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*EBuOSTa04D0wIy5MOHhpGQ.png</url>
            <title>Stories by Sorin Alupoaie on Medium</title>
            <link>https://medium.com/@asorin?source=rss-669d1391d3c9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 03:33:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@asorin/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[Embracing AI: A Senior Developer’s Advantage]]></title>
            <link>https://medium.com/@asorin/embracing-ai-a-senior-developers-advantage-000c06ccbfcb?source=rss-669d1391d3c9------2</link>
            <guid isPermaLink="false">https://medium.com/p/000c06ccbfcb</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Sorin Alupoaie]]></dc:creator>
            <pubDate>Thu, 09 Oct 2025 12:20:16 GMT</pubDate>
            <atom:updated>2025-10-09T12:20:16.199Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jzagsgRB_V5ZNhQt6ajA0Q.jpeg" /><figcaption>My best pair programming buddy</figcaption></figure><p>If you’re a senior developer and you’re still avoiding AI because “it writes bad code,” you’re holding yourself back.</p><p>A few days ago, I was talking with a friend who leads an engineering team. He told me some of their senior developers refuse to use AI tools because <em>“the code it writes is bad, not maintainable, and messy.”</em></p><p>I’ve heard this a lot lately, and I think it’s a mistake.</p><p>At <a href="https://www.swifteq.com/">Swifteq</a>, we build Zendesk apps that help customer support teams do more with less. We use AI every day, not just for coding, but for testing, transforming, and improving how we build software. And the more we use it, the clearer it becomes: <strong>AI works best when used by senior developers who know what they’re doing.</strong></p><p>AI isn’t here to replace developers. It’s here to make us faster, sharper, and far more productive.</p><h3>Why AI Works Best for Senior Developers</h3><p>Here’s the truth: AI coding tools work best <strong>when you already know what you’re doing.</strong></p><p>If you’re a senior developer, you already understand architecture, tradeoffs, naming conventions, and how to debug tricky logic. That foundation lets you <strong>guide</strong> the AI, not be guided by it.</p><p>AI tools like GitHub Copilot, Cursor, or ChatGPT aren’t magical on their own. They need direction. When you can describe what you want precisely, they produce incredibly useful results.</p><p>That’s why AI actually <em>levels up</em> senior developers, while juniors struggle to get meaningful output. A junior might accept whatever the AI suggests. A senior knows when to reject it, when to fix it, and how to prompt for better code.</p><p>AI becomes your <strong>pair programmer</strong>. It sits quietly beside you, ready to help, and never complains.</p><h3>The Myth of “Bad AI Code”</h3><p>Yes, AI can write bad code. Anyone who’s used Copilot or ChatGPT knows that.</p><p>But here’s the thing: <em>bad AI code supervised by a good developer quickly becomes good code.</em></p><p>You still need to review, test, and guide the AI. But you get to skip the repetitive work, the boilerplate, the tedious refactors, the endless documentation lookups.</p><p>AI doesn’t replace craftsmanship. It accelerates it.</p><p>You can still keep your standards for readability and structure. The difference is, you now have an assistant who can draft 80% of the work before you’ve even had your second coffee.</p><h3>Real Examples of AI in Daily Dev Work</h3><p>At <a href="https://swifteq.com/">Swifteq</a>, AI has become a daily part of how we build and ship products faster.</p><p>Here are a few examples of how AI tools can supercharge your workflow as a senior developer:</p><h3>1. Code Transformations and Upgrades</h3><p>Migrating from MongoDB 5 to 6? Upgrading your React app?</p><p>Instead of spending hours digging through changelogs and documentation, AI can generate a working draft of the upgrade in minutes.</p><p>You still review and adjust, but it saves enormous time in research and boilerplate.</p><p>I’ve used Cursor to migrate prototypes built in Lovable into fully functional Zendesk apps, complete with framework adjustments, in just a few minutes. The AI handled the repetitive structure, and I handled the corrections.</p><h3>2. Writing and Testing Faster</h3><p>When I need to validate a function or confirm logic, I can ask AI to generate quick tests.</p><p>Define the inputs, outputs, and expected behavior, and it writes the tests for you.</p><p>It’s not always perfect, but it helps you spot logic errors in minutes instead of hours.</p><p>This is especially powerful for <strong>ad hoc tests</strong>. You can test ideas instantly, without setting up a full testing suite from scratch.</p><h3>3. Pair Programming Without the Friction</h3><p>Working with an AI Copilot feels like working with a junior developer who’s always eager to help.</p><p>They make mistakes, sure. But they’re always positive, always fast, and never defensive.</p><p>They’ll happily rewrite, test, or debug code until it works.</p><p>The best part? They’re always available.</p><h3>Productivity Over Perfection</h3><p>Many developers resist AI because they’re focused on perfect code.</p><p>But here’s the reality: <strong>most people don’t care how beautiful your code is</strong>, they care how fast you ship features that work.</p><p>AI helps you move faster while maintaining reasonable quality. If you can deliver faster, test faster, and iterate faster, that’s a far bigger advantage than obsessing over perfect syntax.</p><p>Perfection slows you down. Progress compounds.</p><h3>The New Competitive Edge for Developers</h3><p>The more you embrace AI tools, the more <strong>irreplaceable</strong> you become.</p><p>You’re no longer just a coder, you’re a <strong>multiplier</strong>. You combine human expertise with AI acceleration. You can handle larger projects, adapt faster to new frameworks, and focus on higher-level architecture and problem-solving.</p><p>Meanwhile, developers who reject AI are stuck doing everything the old way, slower, more manual, and less scalable.</p><p>If you’re a senior developer today, the question isn’t <em>whether</em> you should use AI.</p><p>It’s <em>how fast</em> you can learn to use it effectively.</p><h3>Getting Started</h3><p>If you’re new to AI coding tools, start simple:</p><ul><li>Experiment with <strong>ChatGPT</strong> for brainstorming and refactoring</li><li>Move to <strong>GitHub Copilot</strong> or <strong>Cursor</strong> for real-time coding assistance</li><li>Practice giving clear, detailed prompts</li><li>Treat AI as a teammate, not a code generator</li></ul><p>The more you experiment, the more natural it becomes.</p><h3>Final Thoughts</h3><p>AI doesn’t eliminate developers. It makes the best ones <strong>ten times more productive.</strong></p><p>It doesn’t understand full context or customer needs. But it’s always positive, always ready, and always improving with your feedback.</p><p>At <a href="https://swifteq.com/">Swifteq</a>, we see this every day as we build automation and AI-powered tools for Zendesk. The combination of human skill and AI acceleration helps us move faster, innovate more, and deliver value to support teams at scale.</p><p>So stop resisting it.</p><p>Start pairing with it.</p><p>And see how much faster, better, and more enjoyable your work becomes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=000c06ccbfcb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Navigating Platform Risk as a Zendesk Developer]]></title>
            <link>https://medium.com/@asorin/navigating-platform-risk-as-a-zendesk-developer-37d5e573e31b?source=rss-669d1391d3c9------2</link>
            <guid isPermaLink="false">https://medium.com/p/37d5e573e31b</guid>
            <category><![CDATA[startup-lessons]]></category>
            <category><![CDATA[zendesk]]></category>
            <category><![CDATA[enterpreneurship]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Sorin Alupoaie]]></dc:creator>
            <pubDate>Wed, 17 Sep 2025 12:55:00 GMT</pubDate>
            <atom:updated>2025-09-17T12:55:00.401Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*etyseofSNPernhKPm3r-WA.jpeg" /></figure><p>When you build a business on top of someone else’s platform, you inherit its strengths and its risks. As the founder of <a href="https://www.swifteq.com/">Swifteq</a>, a company building apps for Zendesk, I’ve learned this first-hand.</p><p>We’ve published more than 14 apps on the <a href="https://www.zendesk.com/marketplace/apps/?query=swifteq">Zendesk Marketplace</a>. These apps help support teams do more with less: automate repetitive tasks, manage and localize help centers, and improve efficiency. Over the years, we’ve grown to more than €500,000 in annual revenue with a lean, profitable team.</p><p>But alongside this success, one concern has always been in the back of my mind: <strong>platform risk</strong>.</p><h3>The Fear of Being Replaced</h3><p>Every Zendesk tech partner I’ve spoken with shares the same quiet worry:</p><blockquote>What if Zendesk launches a new feature that makes my app obsolete overnight?</blockquote><p>It’s a valid fear. Our apps extend Zendesk’s core functionality. That means when Zendesk ships new features, there’s always a chance they overlap with what we’ve built.</p><p>And yes, it has happened.</p><p>Zendesk recently launched native translation for help center articles, a direct overlap with our app <a href="https://swifteq.com/zendesk-help-center-translate"><strong>Help Center Translate</strong></a>. For a moment, I braced myself for the worst. Would our revenue collapse? Would customers churn immediately?</p><p>Surprisingly, the answer was no. Two months after the release, revenue is still growing. Customers stayed. Growth may have slowed slightly, but the ecosystem proved large enough for both Zendesk and partners to coexist.</p><p>The lesson: competition from the platform doesn’t always kill you. But the anxiety never fully goes away.</p><h3>Strategies to Manage Platform Risk</h3><p>Over time, I’ve found a few practical ways to live with this reality.</p><h3>1. Diversify Your Apps</h3><p>Relying on one app is risky. If Zendesk (or any platform) releases a feature that replaces it, your entire business could vanish. With multiple apps, the risk spreads out. If one app loses traction, others can sustain the business.</p><h3>2. Expand Across Platforms</h3><p>Even better, diversify beyond one platform. Many apps built for Zendesk can also provide value in ecosystems like Intercom, Freshdesk, or Salesforce.</p><p>We recently ported <strong>Help Center Translate</strong> to Intercom. It wasn’t easy - their APIs differ significantly, which forced us to re-architect parts of our solution. And while Intercom’s marketplace isn’t as mature as Zendesk’s, expanding there reduces dependency on a single platform.</p><p>It’s a tradeoff: going wide reduces focus and depth, while going deep creates more customer value but increases dependency. Each team has to choose its balance.</p><h3>3. Don’t Avoid Overlaps at All Costs</h3><p>For a while, I avoided building features close to Zendesk’s “core.” For example, I stuck to edge-case AI features like auto-generating alt text for help center images. While useful for accessibility and SEO compliance, demand was small.</p><p>I realized I was limiting myself. From now on, if a feature solves a <strong>real, strong customer problem</strong>, I’ll build it, even if Zendesk might overlap. Overlap often signals demand. If multiple teams are building similar solutions, customers probably need it.</p><h3>Why Building on Zendesk is Still Worth It</h3><p>Yes, platform risk is real. But so are the advantages.</p><p><strong>1. Built-in Distribution</strong></p><p>The Zendesk Marketplace gives your app immediate exposure to thousands of potential users. You don’t start from zero with cold outreach — customers are already searching for solutions.</p><p><strong>2. Ecosystem and Partnerships</strong></p><p>Beyond distribution, you gain access to Zendesk’s ecosystem: employees, consultants, partners. Collaboration opportunities, cross-promotion, and shared problem-solving all accelerate growth.</p><p><strong>3. Faster Validation</strong></p><p>Publishing an app on the marketplace is a great way to test demand quickly. If your app solves a real Zendesk customer problem, you’ll know fast.</p><h3>Living with the Tradeoffs</h3><p>At Swifteq, we’ve grown steadily on the Zendesk Marketplace for more than four years. The business is lean, profitable, and serving support teams worldwide.</p><p>But we’ve also accepted the tradeoffs:</p><ul><li><strong>Depth vs. breadth</strong>: Focus deeply on one platform or spread risk across many?</li><li><strong>Risk vs. reward</strong>: Accept that Zendesk could overlap tomorrow, but enjoy the built-in distribution today.</li></ul><p>In the end, building on Zendesk has been a bet worth making. The key is to embrace platform risk, diversify where possible, and keep building features that solve real customer problems — even if the platform might one day compete with you.</p><p><strong>Takeaway for fellow developers:</strong> If you’re building apps on a platform, don’t let fear of overlap hold you back. Platform risk is real, but so is the opportunity. Diversify, listen to your customers, and build boldly.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37d5e573e31b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting to 20k MRR with Swifteq]]></title>
            <link>https://medium.com/@asorin/getting-to-20k-mrr-with-swifteq-234ad1eefa72?source=rss-669d1391d3c9------2</link>
            <guid isPermaLink="false">https://medium.com/p/234ad1eefa72</guid>
            <category><![CDATA[indiedev]]></category>
            <category><![CDATA[startup-lessons]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <dc:creator><![CDATA[Sorin Alupoaie]]></dc:creator>
            <pubDate>Wed, 19 Jun 2024 12:46:35 GMT</pubDate>
            <atom:updated>2024-06-19T15:28:03.750Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="startup concept image" src="https://cdn-images-1.medium.com/max/1024/1*eDljFpuI3e_7Qigj3vxv9g.jpeg" /><figcaption><a href="https://www.freepik.com/free-vector/startup-team-receive-mentoring-training-accelerate-growth-laptop-startup-accelerator-seed-accelerator-startup-mentoring-concept_11668638.htm#fromView=search&amp;page=1&amp;position=15&amp;uuid=2ca9b7e1-d30c-48bb-9242-ec9e5c000864">Image by vectorjuice on Freepik</a></figcaption></figure><p>This month, I hit an important milestone — over €20,000 in monthly recurring revenue (MRR) and over 300 customers with <a href="https://www.swifteq.com/">Swifteq</a>. We create Zendesk apps that help customer support teams work smarter, not harder. That’s over 120% growth in the last year!</p><p>Swifteq is completely bootstrapped (no outside investors), solely founded and profitable, which is a great feeling. The journey’s had its ups and downs, but overall it’s been exciting and rewarding.</p><p>I love the independence of running my own company. No investors or co-founders means I get to focus on what matters most: my customers. Sure, there’s more responsibility, but the freedom that comes with it is totally worth it.</p><p>Looking back, here’s what I think I’ve done well, where I could improve, and what I’m planning for the future:</p><h3>What I’ve Done Well</h3><ul><li><strong>Built useful tools:</strong> I’ve focused on creating apps that make a real difference in my customers’ day-to-day work. All my recent apps have paying customers, and some are driving a lot of our recent growth.</li><li><strong>Automated routine tasks:</strong> I’ve freed up my time by automating parts of the trial and customer lifecycle processes that used to take up too much of my day.</li><li><strong>Created excellent documentation:</strong> With the help of a fantastic writer, we’ve built a great help center and kept it up to date based on customer questions. This is an ongoing process, but it’s paying off.</li><li><strong>Written helpful blog posts:</strong> With the help of a great industry-focused content marketing agency, we’ve shared practical tips and insights for customer support teams using Zendesk on <a href="https://www.swifteq.com/blog">Swifteq’s blog</a>.</li><li><strong>Started taking marketing seriously:</strong> I’m still new to this, but I’ve made good progress recently.</li></ul><h3>Where I Can Do Better</h3><ul><li><strong>Underpriced most apps:</strong> I initially set prices too low and was slow to correct them. This hindered my ability to reach profitability sooner and reinvest in the business. Lesson learned: Low prices might work for mass consumer or close to consumer markets, but not so much for niche B2B products.</li><li><strong>Ignored marketing and sales:</strong> Being an engineer, I love building products. But I neglected marketing, even missing a major website indexing issue that hurt my SEO efforts for months.</li><li><strong>Took on too much development work:</strong> Instead of hiring developers, I tried to handle too much of the technical work myself. This took away time I could have spent on growing the business.</li></ul><h3>Future Plans</h3><ul><li><strong>Build more of what customers need:</strong> This means new features for existing apps, as well as brand new apps. I have two new Zendesk apps planned for release next month.</li><li><strong>Optimize prices:</strong> I’ll adjust pricing to reflect the value my apps deliver, while ensuring healthy profit margins to fuel growth.</li><li><strong>Focus on larger customers:</strong> Many of my apps, like <a href="https://www.swifteq.com/zendesk-help-center-manager">Help Center Manager</a> and <a href="https://www.swifteq.com/zendesk-help-center-analytics">Analytics</a>, are most valuable for mid-market and enterprise customers.</li><li><strong>Invest in marketing and sales:</strong> I’ll dedicate more time and resources to marketing, especially SEO, to attract more customers.</li><li><strong>Reach out to potential partners:</strong> I’ll explore partnerships within the Zendesk ecosystem to find ways to grow together.</li></ul><p>Building great products for my customers is still my priority, but I’ve learned that it takes more than that. You need to build a business around your products, and that means marketing, sales, support, and everything else.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=234ad1eefa72" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Swifteq’s 2023 Journey: From Milestones to Independence and Beyond]]></title>
            <link>https://medium.com/@asorin/swifteqs-2023-journey-from-milestones-to-independence-and-beyond-c4faf938db71?source=rss-669d1391d3c9------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4faf938db71</guid>
            <category><![CDATA[enterpreneurship]]></category>
            <category><![CDATA[saas]]></category>
            <dc:creator><![CDATA[Sorin Alupoaie]]></dc:creator>
            <pubDate>Thu, 04 Jan 2024 16:12:48 GMT</pubDate>
            <atom:updated>2024-01-04T16:12:48.539Z</atom:updated>
            <content:encoded><![CDATA[<p>In December 2023, I reached a milestone with Swifteq, my suite of Zendesk productivity apps for customer support teams — €150k in Annual Recurring Revenue (ARR) and a customer base of 230. But more importantly, this year marked the achievement of something far greater than these figures: my independence.</p><p>I’ve managed to reach a point of profitability where I can pay myself a decent salary. This means I’m no longer dependent on other jobs, savings, or the need for investors or a board of directors. I now have the freedom to direct my business as I see fit. I can build the products and features I want, experiment with new ideas, and spend time in ways that I believe will most benefit my customers. My only obligation is to my customers, serving them through the products I create.</p><p>There have been other significant wins this year. I built and launched five new apps, three of which are powered by GenAI: Auto-Remove Attachments, Macro Export, Help Center Translate, Zendesk ChatGPT integration, and Translate Conversations. This brings the total number of Swifteq apps on the Zendesk Marketplace to eleven. I’ve also started diversifying the revenue to minimize dependency on a single app or feature, maintained a regular newsletter with helpful content, and gave my first talk at a conference.</p><p>However, it’s not all been about wins. This year also brought its share of challenges. Churn increased in the second half of the year, growth plateaued for one of our major apps recently, and adoption for some of the new apps has been slower than expected. Additionally, customer support inquiries began to consume a significant portion of my time, impacting my ability to focus on product work. I also didn’t manage to post updates and learnings here on LinkedIn as often as I wanted.</p><p>Talking about these challenges is as crucial as celebrating wins. It’s through acknowledging these losses that I gain clarity and understand how and what to improve.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4faf938db71" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Small Yet Mighty: The Unsung Power of Profitability in SaaS]]></title>
            <link>https://medium.com/@asorin/small-yet-mighty-8f524518a586?source=rss-669d1391d3c9------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f524518a586</guid>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <dc:creator><![CDATA[Sorin Alupoaie]]></dc:creator>
            <pubDate>Thu, 04 Jan 2024 16:04:14 GMT</pubDate>
            <atom:updated>2024-01-04T16:05:37.428Z</atom:updated>
            <content:encoded><![CDATA[<p>In my journey through the business world, I’ve seen two distinct paths unfold in the realm of Software as a Service (SaaS). One is the well-trodden path of chasing large venture capital investments. This road, filled with the allure of rapid growth and big numbers, has been the dream for many. Yet, there’s another path, less glamorous but equally important — staying small and focusing on profitability.</p><p>Venture capital funding, with its billions of dollars flowing into the tech sector, can seem like the golden ticket. In 2020, VC funding in tech reached a whopping $300 billion globally. It’s a path that promises fast growth and big returns. However, this route is not without its pitfalls. The pressure to scale quickly can lead to unsustainable practices. Interestingly, about 75% of VC-backed startups fail, often due to scaling too soon.</p><p>On the flip side, there’s the approach of staying small and profitable. This path encourages a more sustainable and customer-focused approach. It’s about sound financial management and really understanding what your customers need. Statistics show that small businesses focusing on profitability have a better survival rate, with half of them lasting more than five years.</p><p>Consider Basecamp, a project management tool, as a prime example. They chose to stay small and self-funded, and have been profitable since 2004. With millions of users and a lean team, they’ve shown that you don’t need VC funding to be successful.</p><p>This approach not only leads to longer-lasting businesses but also to higher customer satisfaction. Small businesses that prioritize profit over growth have a 30% higher chance of survival in the long term. They also tend to have closer customer relationships, leading to higher satisfaction rates.</p><p>In conclusion, while the lure of VC funding is strong, the path of staying small and profitable has its unique advantages. It offers sustainability, better customer connections, and a more resilient business model. This approach, often less celebrated, is a wise choice for many SaaS companies aiming for long-term success.</p><p><strong>Sources</strong>:</p><ol><li>Statista: “Global VC Funding 2020”</li><li>Harvard Business Review: “75% of VC-Backed Startups Fail”</li><li>Small Business Trends: “Survival Rate of Small Businesses”</li><li>Jason Fried, CEO of Basecamp</li><li>Journal of Small Business Management: “Longevity of Profit-Focused Businesses”</li><li>Forbes: “Customer Satisfaction in Small Businesses”</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f524518a586" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Humble Journey to €100k ARR with Swifteq]]></title>
            <link>https://medium.com/@asorin/my-humble-journey-to-100k-arr-with-swifteq-e920a173c6a0?source=rss-669d1391d3c9------2</link>
            <guid isPermaLink="false">https://medium.com/p/e920a173c6a0</guid>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[solopreneurship]]></category>
            <category><![CDATA[startupş]]></category>
            <dc:creator><![CDATA[Sorin Alupoaie]]></dc:creator>
            <pubDate>Thu, 01 Jun 2023 11:32:25 GMT</pubDate>
            <atom:updated>2023-06-01T11:32:25.121Z</atom:updated>
            <content:encoded><![CDATA[<p>This week I reached €100k Annual Recurring Revenue (ARR) with <a href="https://www.linkedin.com/feed/#">Swifteq</a> — my suite of <a href="https://www.linkedin.com/feed/#">Zendesk</a> apps.</p><p>This is a whopping growth of over 75% in recurring revenue since the year began.</p><p>In theory, I could now take a year-long vacation and still draw a decent salary! 😊</p><p>Reflecting on the journey, here’s a glimpse of what I’ve been up to:</p><p>✅ Marketing</p><p>For me, marketing isn’t about self-promotion or being the loudest voice in the room. Perhaps it’s because I’m more comfortable listening and building than being “visible” and “loud”.</p><p>My strategy? Serve the community — my target audience — by providing free, useful tools, and inspiring blog content. My aim is to offer something they can genuinely benefit from.</p><p>Many thanks to <a href="https://www.linkedin.com/feed/#">Larry Barker</a>, <a href="https://www.linkedin.com/feed/#">Supported Content</a>, and their exceptional team of writers: <a href="https://www.linkedin.com/feed/#">Nouran Smogluk</a>, <a href="https://www.linkedin.com/feed/#">Jenny Dempsey</a>, <a href="https://www.linkedin.com/feed/#">Catherine Heath</a>, <a href="https://www.linkedin.com/feed/#">Craig Stoss</a>, <a href="https://www.linkedin.com/feed/#">Anne-Marie Hofmann</a>. You’ve made the blog content super top-notch. Your work reflects the perfect blend of in-depth domain knowledge and outstanding writing skills. There is no AI (and there will never be one) that writes better and more useful content than you do.</p><p>In terms of content ideas, I strive to find topics that resonate with my audience. The <a href="https://www.linkedin.com/feed/#">Support Driven</a> slack community has been a fantastic source of inspiration for this. Their questions and discussions often signal the problems that need solutions.</p><p>✅ Product</p><p>One of the toughest aspects of product building is prioritizing features. Numerous frameworks exist for this, like the RICE framework, Weighted Scoring, The Kano Model, ICE Scoring, Opportunity Scoring etc.</p><p>I use none.</p><p>I am trying to balance customer feedback and requirements with features they haven’t requested, but I believe would be useful to them.</p><p>I rely mostly on intuition, and so far, this “system” has served me well.</p><p>I’ve also dedicated significant time to consolidate the backend, enhancing stability and performance. As active customers exceeded 170, the limitations of the initial architecture and technical decisions became apparent.</p><p>✅ Sales</p><p>I am not doing any direct sales. Should I? 🤔</p><p>✅ Support</p><p>Support was quite the challenge initially, as answering queries from customers and prospects consumed a great deal of my time. But, building a help center for the most popular apps made a world of difference. A big shout-out to <a href="https://www.linkedin.com/feed/#">Jann DiPaolo</a> for crafting excellent documentation — it’s made my life so much easier!</p><p>That’s all for now. Stay tuned for more updates on our progress here.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e920a173c6a0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I got my first 120 paying customers for my SaaS apps]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@asorin/how-i-got-my-first-120-paying-customers-for-my-saas-apps-4e5f37e8e748?source=rss-669d1391d3c9------2"><img src="https://cdn-images-1.medium.com/max/1310/1*WektpAn8_hASdjovpEkMAw.png" width="1310"></a></p><p class="medium-feed-snippet">Today I reached &#x20AC;5k MRR and 120 paying customers using my Zendesk apps. Including some notable names such as Freenow, Zapier and Hotjar.</p><p class="medium-feed-link"><a href="https://medium.com/@asorin/how-i-got-my-first-120-paying-customers-for-my-saas-apps-4e5f37e8e748?source=rss-669d1391d3c9------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@asorin/how-i-got-my-first-120-paying-customers-for-my-saas-apps-4e5f37e8e748?source=rss-669d1391d3c9------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e5f37e8e748</guid>
            <category><![CDATA[customer-service]]></category>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[zendesk]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <dc:creator><![CDATA[Sorin Alupoaie]]></dc:creator>
            <pubDate>Tue, 17 Jan 2023 12:07:21 GMT</pubDate>
            <atom:updated>2023-01-17T12:07:21.497Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How to deflect customer support tickets with Zendesk and Dialogflow AI]]></title>
            <link>https://blog.chatbotslife.com/how-to-deflect-customer-support-tickets-with-zendesk-and-dialogflow-ai-df3275435cf9?source=rss-669d1391d3c9------2</link>
            <guid isPermaLink="false">https://medium.com/p/df3275435cf9</guid>
            <category><![CDATA[dialogflow]]></category>
            <category><![CDATA[zendesk]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[bots]]></category>
            <dc:creator><![CDATA[Sorin Alupoaie]]></dc:creator>
            <pubDate>Wed, 08 Jul 2020 13:49:24 GMT</pubDate>
            <atom:updated>2020-07-08T13:49:24.527Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*EPlBW58nvHwURTnbl3-MWA.jpeg" /></figure><p>Self-service is undoubtedly an essential part of the customer journey with clear benefits for both the business and its customers. The main component of any self-service strategy is a well structured help center, where customers can find answers to some of their questions without having to get in touch with a customer support agent.</p><p>One of the problems of having a help center is that customers often can’t find or (won’t look for) the answer they need, so they go ahead and contact support anyway. Existing solutions that match and suggest knowledge base articles developed by AI vendors active in the customer service space come with a high and variable runtime cost as most vendors would charge per ticket “deflected”.</p><p>In this article I will show you <strong>how to build a web contact form on Zendesk that uses state-of-the-art AI to suggest relevant articles based on the customer question</strong>. The form adds an extra layer of deflection to be used when the customer either doesn’t find what they need or goes straight to the “Get help” button.</p><p>Building your own solution for deflection comes with many benefits:</p><ul><li>minimum running costs, at a fraction of existing customer service AI vendors (web app hosting + Dialogflow API <a href="https://cloud.google.com/dialogflow/pricing">pricing</a> at 0.2 cents/ticket!)</li><li>state of the art AI technology provided by Google</li><li>custom build for your own needs, you control your customers experience</li></ul><p>The only caveat is that you will need some initial <a href="https://www.swifteq.com/">software development</a> resources to implement the contact form and integrate it with Dialogflow. The steps and instructions presented below will help you minimize this cost.</p><h3>Trending Bot Articles:</h3><blockquote><a href="https://chatbotslife.com/top-5-music-bots-for-discord-and-telegram-eefaa1fe6957">1. Top 5 Music Bots for Discord and Telegram</a></blockquote><blockquote><a href="https://chatbotslife.com/guide-how-to-create-a-damn-cool-multi-language-chatbot-with-manychat-dcbe3f85542e">2. GUIDE: How to Create a (damn cool) Multi-Language Chatbot with Manychat</a></blockquote><blockquote><a href="https://chatbotslife.com/a-powerful-chatbot-cms-solution-for-conversational-chatbots-optimal-access-ddbed6597b7b">3. A Powerful Chatbot CMS Solution for Conversational Chatbots</a></blockquote><blockquote><a href="https://chatbotslife.com/platforms-nlp-systems-and-courses-for-voice-bots-and-chatbots-c4a23a62af6f">4. Platforms, NLP Systems, and Courses for Voice Bots and Chatbots</a></blockquote><p>This tutorial is based on the Zendesk platform but with minor modifications can be used with any other helpdesk that offers a programmatic way (API) of creating a new ticket on behalf of the customer. Examples include but are not limited to: Freshdesk, Salesforce, Intercom or Helpscout.</p><p>The complete code is available <a href="https://github.com/swifteq/ai-suggest-articles">here</a>.</p><h3>What are you building</h3><p>Starting from the custom ticket form illustrated in this <a href="https://develop.zendesk.com/hc/en-us/articles/360001068627-Building-a-custom-ticket-form-with-the-Zendesk-API">article</a>, you will add a deflection layer before the user can submit a new ticket. I recommend you go through the steps from the article to understand the basics of creating a new ticket using Zendesk’s <a href="http://developer.zendesk.com/documentation/rest_api/requests.html">Requests API</a>.</p><p>The new contact form should perform the following tasks:</p><ul><li>Ask the user for the description of the problem</li><li>Send the description to Dialogflow to get the most relevant articles from your knowledge base</li><li>Display the most relevant articles (if any) and invite the user to contact support if he couldn’t find an answer</li><li>If user chooses to contact support, show the create ticket form where the user can submit a new ticket</li></ul><h3>Before you begin</h3><p>You should have the following to get started:</p><ul><li><a href="https://www.zendesk.com/support/">Zendesk Support</a> account (any plan)</li><li><a href="https://cloud.google.com/">Google cloud</a> account with <a href="https://dialogflow.com/">Dialogflow</a> API enabled (see instructions <a href="https://cloud.google.com/dialogflow/docs/quick/setup">here</a>)</li><li><a href="https://www.python.org/downloads/">Python 3</a> and packages: <a href="https://flask.palletsprojects.com/en/1.1.x/">flask</a>, <a href="https://requests.readthedocs.io/en/master/">requests</a>, <a href="https://cloud.google.com/dialogflow/docs/quick/setup#lib">dialogflow</a></li></ul><p>You also need basic Python skills and API knowledge (i.e. how to call a REST API from Python).</p><p>Tasks covered in this tutorial</p><ul><li>build and train a virtual agent in Dialogflow</li><li>create the question form (user submits his question)</li><li>create the articles page (user sees the most relevant articles to his question)</li><li>create the <a href="https://develop.zendesk.com/hc/en-us/articles/360001068627-Building-a-custom-ticket-form-with-the-Zendesk-API">custom contact form</a> (user submits a new ticket)</li><li>build the Dialogflow integration</li></ul><h3>Build and train a virtual agent in Dialogflow</h3><p>If many of your customers’ questions can be answered by help center articles you are already in a good place with self-service. Now you need to help the customer help himself. So, when a customer is reaching out with a question, you have to quickly find the help center article that answers that question and send it to him. This can be done manually by agents or automatically using AI.</p><p>Let’s start by creating a new agent in the <a href="https://dialogflow.cloud.google.com/">Dialogflow console</a>. Think of it as a new (virtual) member of your team, that can be trained to understand certain customer questions and suggest relevant articles. In the console, select “Create new agent” from the left drop-down menu, give it a name (let’s say “Faq_bot”) and leave all the other fields the same (detailed <a href="https://cloud.google.com/dialogflow/docs/agents-manage">instructions</a> about creating a new agent). This will also create a new project with Google Cloud Platform where the new agent will be allocated to. Go to the settings page and note down the Project ID (instructions <a href="https://cloud.google.com/dialogflow/docs/agents-settings">here</a>) — you will need this later.</p><p>In order to be able to authenticate the Dialogflow API calls, you need to create and download the API credentials. Follow <a href="https://cloud.google.com/dialogflow/docs/quick/setup#auth">these instructions</a> to generate the service account key file (.json). Make sure the new credentials are for the same Google Project noted down in the previous step. Keep the file at hand, you will need it later.</p><p>In this tutorial, you will train the new agent to answer two types of questions that e-commerce merchants are frequently getting: “Where do you ship?” and “Cancel my order”. You need to create one <strong>intent</strong> for each question type. An intent categorizes a customer’s intention so that when the customer enters a description of the question, Dialogflow matches the description to the best intent in your agent (more about intents <a href="https://cloud.google.com/dialogflow/docs/intents-overview">here</a> and instructions how to create one <a href="https://cloud.google.com/dialogflow/docs/intents-manage">here</a>).</p><p>Let’s create the first intent and call it “where_do_you_ship”. Now you need to add training phrases or different ways customers can ask the “Where do you ship” question. These are few examples:</p><ul><li><em>I would like to ask if you ship your products to Morocco?</em></li><li><em>Can you deliver to the republic of Ireland</em></li><li><em>Do you trade in Australia?</em></li><li><em>Can I order from Italy?</em></li><li><em>Would you post to France?</em></li></ul><p>As you can see, there are many different ways of saying the same thing — a notable feature of human language which makes it difficult for machines to understand. Add as many examples as you can here, and make sure it covers a wide range of expressions. The more training data and the more diverse it is, the better — see this guide on <a href="https://www.swifteq.com/post/ai-automation-customer-support">AI for customer support</a>. You will come back to this step many times in the future when you’ll notice that certain customer expressions are not understood by the Dialogflow agent.</p><p>After teaching the virtual agent how to understand this question, let’s define the response: what the API will return when this intent is matched. You will be calling the agent from a custom web app, so you want the agent to return a format that an app can understand, like a json response. To do this, go to the “Responses” section, remove the default text response, click on “Add responses” and select “Custom Payload”. Add the following json content there pointing to a kb article that includes the answer to the intent question:</p><pre>{<br>  &quot;title&quot;: &quot;Where do you ship?&quot;,<br>  &quot;url&quot;: &quot;<a href="https://example.zendesk.com/hc/en-us/articles/Where-do-you-ship-to">https://example.zendesk.com/hc/en-us/articles/Where-do-you-ship-to</a>&quot;<br>}</pre><p>Save and add a second intent named “cancel_my_order” with the following training phrases:</p><ul><li><em>Cancel my order</em></li><li><em>I have just placed an order that I would like to stop please</em></li><li><em>I don’t want the two books I’ve just ordered anymore</em></li><li><em>Can I cancel the order please</em></li><li><em>I want to cancel my order right now</em></li></ul><p>Add another json response for this intent following the same instructions as above:</p><pre>{<br>  &quot;title&quot;: &quot;How do I cancel my order?&quot;,<br>  &quot;url&quot;: &quot;<a href="https://example.zendesk.com/hc/en-us/articles/I-want-to-cancel-my-order">https://example.zendesk.com/hc/en-us/articles/I-want-to-cancel-my-order</a>&quot;<br>}</pre><p>Save again and wait for the agent training to finish. Now you’re ready to test the new agent by entering a few expressions in the right hand side panel and check the results. Phrase the question a bit differently than in the training examples, let’s say: “<em>Cancel all my orders</em>”.</p><h3>Create the question form</h3><p>The new contact form will be developed in <a href="https://flask.palletsprojects.com/en/1.1.x/">Flask</a>, a lightweight Python library for writing web applications. Create a new folder for this project with the following structure:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/172/0*1TJs8arek-cn77DQ" /></figure><p>Next, add all the UI style details into this file:</p><p><em>static/css/form_styles.css</em></p><pre>#ticket_form { font-family: Verdana, Helvetica, sans-serif; font-size: 10pt;<br>    color: dimgray; width: 320px; border: 1px solid lightgray; padding: 0 8px; }<br>.title { font-family: Arial, Helvetica, sans-serif; font-weight: bold; padding: 12px 0 0; }<br>form ul { list-style-type: none; padding-left: 0; }<br>form li { margin: 0 0 6px 0; }<br>textarea { vertical-align: top; border-color: lightgray; }<br>.field { width: 100%; }<br>.register { font-size: 8pt; color: gray; padding: 8px 0; }<br>.feedback { font-size: 8pt; padding: 8px 0 0; }<br>.text-normal { font-size: 10pt; }<br>.margin-top { margin-top: 8px; }<br>.margin-top-lg { margin-top: 24px; }<br>.margin-left { margin-left: 8px; }<br>.margin-bottom { margin-bottom: 8px; }</pre><p>The first step in the user interface is to invite the customer to enter a description of the question or problem he has. Let’s create the <em>templates/ask_question.html</em> file that displays this form:</p><p><em>templates/ask_question.html</em></p><pre>&lt;link rel=&quot;stylesheet&quot; href=&quot;/static/css/form_styles.css&quot;&gt;<br>&lt;div id=&quot;ticket_form&quot;&gt;<br>  &lt;div class=&quot;title&quot;&gt;How can we help?&lt;/div&gt;<br>  &lt;form action=&quot;ask_question&quot; method=&quot;post&quot;&gt;<br>    &lt;ul&gt;<br>        &lt;li&gt;<br>          &lt;textarea placeholder=&quot;ask a question or describe the problem you need help with&quot;<br>                    name=&quot;description&quot; rows=&quot;6&quot; class=&quot;field&quot; required&gt;&lt;/textarea&gt;<br>        &lt;/li&gt;<br>        &lt;li&gt;&lt;input type=&quot;submit&quot; value=&quot;Find answers&quot;&gt;&lt;/li&gt;<br>    &lt;/ul&gt;<br>  &lt;/form&gt;<br>&lt;/div&gt;</pre><p>The file <em>app.py</em> will run your main Flask application and includes the following code:</p><p><em>app.py</em></p><pre>from flask import Flask, render_template, request</pre><pre>app = Flask(__name__)</pre><pre><a href="http://twitter.com/app">@app</a>.route(&#39;/ask_question&#39;,methods = [&#39;POST&#39;, &#39;GET&#39;])<br>def ask_question():<br>    if request.method == &#39;POST&#39;:<br>        # Get the issue description from the form data<br>        description = request.form.get(&#39;description&#39;)<br>        # do something with the description ...</pre><pre>return render_template(&#39;ask_question.html&#39;)</pre><pre>if __name__ == &#39;__main__&#39;:<br>    app.run()</pre><p>In this file you will also define the first Flask route, which is a way to tell Python to assign an URL to a function. Here, all requests to the ‘/ask_question’ URL will be handled by the ask_question() function which renders and returns the <em>ask_question.html</em> file created above.</p><p>Let’s run the first version of the app. From the main project folder execute the following command:</p><pre>python app.py</pre><p>then open this link in your browser: <a href="http://localhost:5000/ask_question">http://localhost:5000/ask_question</a>.</p><p>You should see this page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/345/0*NqYCFEtjAKUzaI9p" /></figure><p>Congratulations, you completed the first task! When the user enters his issue description and clicks on “Find answers”, the browser sends a new POST request to the server using the same URL (<em>/ask_question</em>). At the moment it doesn’t do anything with it, but you will change that in the following section.</p><h3>Create the articles page</h3><p>After the user submits his question, you need to find the relevant articles that might answer it and display them in the next page.</p><p>Create the new articles page <em>templates/articles.html </em>and add this code:</p><p><em>templates/articles.html</em></p><pre>&lt;link rel=&quot;stylesheet&quot; href=&quot;/static/css/form_styles.css&quot;&gt;<br>&lt;div id=&quot;ticket_form&quot;&gt;<br>    &lt;div class=&quot;title&quot;&gt;Query: {{ description }}&lt;/div&gt;<br>    &lt;form action=&quot;contact_form&quot; method=&quot;post&quot;&gt;<br>        &lt;input type=&quot;hidden&quot; name=&quot;description&quot; value=&quot;{{ description }}&quot;/&gt;<br>        &lt;div class=&quot;text-normal margin-top&quot;&gt;<br>            {% if articles  %}<br>                &lt;p&gt;We found some articles that might help:&lt;/p&gt;<br>                &lt;ul &gt;<br>                    {% for article in articles %}<br>                        &lt;li class=&quot;text-normal margin-left&quot;&gt;<br>                            &lt;a href=&quot;{{article[&#39;url&#39;]}}&quot; target=&quot;_blank&quot;&gt;<br>                                {{article[&#39;title&#39;]}}<br>                            &lt;/a&gt;<br>                        &lt;/li&gt;<br>                    {% endfor %}<br>                &lt;/ul&gt;<br>            {% else %}<br>                &lt;p&gt;<br>                    We couldn&#39;t find any articles for your query.<br>                    Please get in touch if you need help.<br>                &lt;/p&gt;<br>            {% endif %}<br>        &lt;/div&gt;<br>        &lt;div class=&quot;margin-top-lg margin-left&quot;&gt;<br>            &lt;input type=&quot;button&quot; onclick=&quot;location.href=&#39;/ask_question&#39;;&quot; value=&quot;Go back&quot;&gt;<br>            &lt;input class=&quot;margin-left&quot; type=&quot;submit&quot; value=&quot;Contact support&quot;&gt;<br>        &lt;/div&gt;<br>    &lt;/form&gt;<br>&lt;/div&gt;</pre><p>This file is using the <a href="https://palletsprojects.com/p/jinja/">Jinja</a> template format (included with Flask) to display the content dynamically. There are two situations to cover: when relevant articles are found, display them, otherwise let the user know that no articles are matching his description. In both cases, invite the user to either create a new ticket or go back and enter a new question.</p><p>To display the articles page you need to handle the case when a POST is sent to <em>/ask_question</em> in the function /ask_question() of app.py:</p><p><em>app.py</em></p><pre>from flask import Flask, render_template, request<br>from dialogflow import get_suggestions</pre><pre>app = Flask(__name__)</pre><pre><a href="http://twitter.com/app">@app</a>.route(&#39;/ask_question&#39;,methods = [&#39;POST&#39;, &#39;GET&#39;])<br>def ask_question():<br>    if request.method == &#39;POST&#39;:<br>        # Get the issue description from the form data<br>        description = request.form.get(&#39;description&#39;)<br>        # ask dialogflow for suggestions<br>        articles = get_suggestions(description)<br>        # render the articles page<br>        return render_template(&#39;articles.html&#39;, articles=articles, description=description)</pre><pre>return render_template(&#39;ask_question.html&#39;)</pre><pre># ... before __main__</pre><p>After getting the issue description, the next step is to access the Dialogflow API and ask for suggestions. You’ll do this in a separate function called get_suggestions(). Let’s define the function in a new file <em>dialogflow.py</em> located in the main project folder. For now the function only returns a dummy json response as the complete Dialogflow integration will be done later on:</p><p><em>dialogflow.py</em></p><pre>def get_suggestions(text):<br>    return [{<br>        &quot;url&quot;: &quot;<a href="http://www.example.com/">http://www.example.com</a>&quot;,<br>        &quot;title&quot;: &quot;Suggestion example&quot;,<br>        &quot;confidence&quot;: 0.9<br>    }]</pre><p>Let’s test the app now. Stop and start the web server again, then go to <a href="http://localhost:5000/ask_question">http://localhost:5000/ask_question</a>. Enter a question (for example “Do you ship to Canada?”) and click find answers. You should see a page like the one below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/346/0*qD3KBxuIcNg1XQhK" /></figure><p>Well done! You’re half-way through now to have a fully functional contact form that uses AI to deflect tickets.</p><h3>Create the ticket form</h3><p>If the user can’t find his answer in the suggested articles, he needs to have the option to contact the customer support team. For this he will enter his email address, the ticket subject and the description.</p><p>Let’s do the form in this new html template file:</p><p><em>templates/articles.html</em></p><pre>&lt;link rel=&quot;stylesheet&quot; href=&quot;/static/css/form_styles.css&quot;&gt;<br>&lt;div id=&quot;ticket_form&quot;&gt;<br>  &lt;div class=&quot;title&quot;&gt;Submit a ticket&lt;/div&gt;<br>  {% if feedback %}<br>    &lt;div class=&quot;feedback&quot;&gt;{{feedback}}&lt;/div&gt;<br>  {% endif %}<br>  &lt;form action=&quot;create_ticket&quot; method=&quot;post&quot;&gt;<br>    &lt;ul&gt;<br>      &lt;li&gt;<br>        &lt;input type=&quot;email&quot; <br>               placeholder=&quot;your email address&quot; <br>               name=&quot;email&quot; class=&quot;field&quot; required&gt;<br>      &lt;/li&gt;<br>      &lt;li class=&quot;margin-top&quot;&gt;<br>        &lt;input type=&quot;text&quot; placeholder=&quot;subject&quot;<br>                                    name=&quot;subject&quot; class=&quot;field&quot; required&gt;<br>      &lt;/li&gt;<br>      &lt;li&gt;<br>        &lt;textarea placeholder=&quot;ask a question or describe the problem you need help with&quot;<br>         name=&quot;description&quot; rows=&quot;6&quot; class=&quot;field&quot; required&gt;{{ description }}&lt;/textarea&gt;<br>      &lt;/li&gt;<br>      &lt;li&gt;<br>        &lt;input type=&quot;submit&quot; value=&quot;Submit&quot;&gt;<br>      &lt;/li&gt;<br>      &lt;/ul&gt;<br>    &lt;/form&gt;<br>&lt;/div&gt;</pre><p>Then add a new endpoint in the <em>app.py</em> file:</p><p><em>app.py</em></p><pre># ... after ask_question()</pre><pre><a href="http://twitter.com/app">@app</a>.route(&#39;/contact_form&#39;,methods = [&#39;POST&#39;, &#39;GET&#39;])<br>def contact_form():<br>    description = &quot;&quot;<br>    # if POST is called, fill in the description automatically<br>    if request.method == &#39;POST&#39;:<br>        description = request.form.get(&#39;description&#39;)<br>    return render_template(&#39;ticket_form.html&#39;, description=description)</pre><pre># ... before __main__</pre><p>Let’s reduce the customer effort as much as possible, so when the user clicks on “Contact support” in the articles page, the ticket description will be automatically filled in on his behalf from the initial question he entered before.</p><p>Once the customer submits the new ticket form, the app needs to use Zendesk’s API to create a ticket on his behalf. Let’s add a new route for this in the <em>app.py</em> file. Here you are calling the <a href="https://developer.zendesk.com/rest_api/docs/support/requests">requests</a> endpoint as instructed in <a href="https://develop.zendesk.com/hc/en-us/articles/360001068627-Building-a-custom-ticket-form-with-the-Zendesk-API#choose">this article</a>. You also need to add your Zendesk subdomain and API token, which is used to <a href="https://developer.zendesk.com/rest_api/docs/core/requests">authenticate</a> the API calls to your Zendesk account.</p><p><em>app.py</em></p><pre>import json # add new imports<br>import requests<br>from flask import Flask, render_template, request<br>from dialogflow import get_suggestions</pre><pre>app = Flask(__name__)</pre><pre># add your Zendesk API token and subdomain here<br>ZENDESK_SUBDOMAIN = &#39;your zendesk subdomain&#39;<br>ZENDESK_API_TOKEN = &#39;your api token&#39;</pre><pre># ... after contact_form()</pre><pre><a href="http://twitter.com/app">@app</a>.route(&#39;/create_ticket&#39;,methods = [&#39;POST&#39;])<br>def create_ticket():<br>    success, feedback = True, None<br>    # Get the form data<br>    subject = request.form.get(&#39;subject&#39;)<br>    description = request.form.get(&#39;description&#39;)<br>    email = request.form.get(&#39;email&#39;)<br>    # define the request body<br>    data = {&#39;request&#39;: {&#39;subject&#39;: subject, &#39;comment&#39;: {&#39;body&#39;: description}}}<br>    ticket = json.dumps(data)<br>    # Make the API request to create a new ticket<br>    user = email + &#39;/token&#39;<br>    headers = {&#39;content-type&#39;: &#39;application/json&#39;}<br>    api_url = &#39;<a href="https://&/#39;">https://&#39;</a> + ZENDESK_SUBDOMAIN + &#39;.zendesk.com/api/v2/requests.json&#39;<br>    r = requests.post(<br>        api_url,<br>        data=ticket,<br>        auth=(user, ZENDESK_API_TOKEN),<br>        headers=headers<br>    )<br>    if r.status_code != 201:<br>        success = False<br>        if r.status_code == 401 or 422:<br>            feedback = &#39;Could not authenticate you. Check your email address or register.&#39;<br>        else:<br>            feedback = &#39;Problem with the request. Status &#39; + str(r.status_code)<br>    # the feedback template will let the user now about the outcome of this action<br>    return render_template(&#39;feedback.html&#39;, success=success, feedback=feedback)</pre><pre># ... before __main__</pre><p>Finally, you need to let the user know about the outcome of his action, if a ticket was created successfully or not. Let’s do this in a new template html file:</p><p><em>templates/feedback.html</em></p><pre>&lt;link rel=&quot;stylesheet&quot; href=&quot;/static/css/form_styles.css&quot;&gt;<br>&lt;div id=&quot;ticket_form&quot;&gt;<br>    {% if success %}<br>        &lt;div class=&quot;title&quot;&gt;Thank you!&lt;/div&gt;<br>        &lt;div class=&quot;text-normal margin-top&quot;&gt;<br>            Your ticket was created. We will be in touch soon.<br>        &lt;/div&gt;<br>    {% else %}<br>        &lt;div class=&quot;text-normal&quot;&gt;{{ feedback}}&lt;/div&gt;<br>    {% endif %}<br>    &lt;div class=&quot;margin-top margin-bottom&quot;&gt;<br>        &lt;input type=&quot;button&quot; onclick=&quot;location.href=&#39;/ask_question&#39;;&quot; <br>               value=&quot;Start again&quot;&gt;<br>    &lt;/div&gt;<br>&lt;/div&gt;</pre><p>Save everything and start again the web app on the command line ( python app.py ). Go to <a href="http://localhost:5000/ask_question">http://localhost:5000/ask_question</a>, enter a question (i.e. Do you ship to Canada?), click “Find answers”, then select to contact support. You should see this page, with the description field already filled in:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/345/0*7JHt7aHSajlFCCRK" /></figure><p>Add an email address and subject, then click Submit. You should see this feedback page and a new ticket will be created in your helpdesk.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/345/0*enb4GpcOKek3ysO7" /></figure><p>You did great! You are almost done.</p><h3>Integrate Dialogflow</h3><p>In this final step you will complete the articles suggestions page implemented earlier on by calling the Dialogflow API and get the relevant articles suggestions given the customer description of the problem. You will need the project ID and the credentials file generated in the first step (build the virtual agent).</p><p>Change the <em>dialogflow.py</em> file created earlier on and implement the get_suggestions() function that calls the API:</p><p><em>dialogflow.py</em></p><pre>import os<br>import random<br>import dialogflow_v2 as dialogflow</pre><pre># path to the Google API credentials file<br>os.environ[&quot;GOOGLE_APPLICATION_CREDENTIALS&quot;]=&quot;google cloud credentials file&quot;</pre><pre># Google project ID from the agent settings page<br>PROJECT_ID = &quot;google project id&quot;<br># the language your agent is trained on<br>LANGUAGE_CODE = &quot;en-US&quot;</pre><pre>session_client = dialogflow.SessionsClient()</pre><pre>def get_suggestions(text, session_id=None):<br>    # if no session, create a random session id (default behaviour)<br>    if session_id is None:<br>        session_id = str(random.randint(0, 10000))</pre><pre># get the dialogflow session<br>    session = session_client.session_path(PROJECT_ID, session_id)<br>    # create a new input using the text description<br>    text_input = dialogflow.types.TextInput(text=text, language_code=LANGUAGE_CODE)<br>    query_input = dialogflow.types.QueryInput(text=text_input)<br>    # call the Dialogflow API to ask for suggested articles given text in input<br>    response = session_client.detect_intent(session=session, query_input=query_input)<br>    result = response.query_result<br>    # if the matching intent is fallback, no suggested articles were found<br>    if result.intent.is_fallback or len(result.fulfillment_messages) == 0:<br>        return None<br>    # return the list of suggested articles as a list of dict<br>    articles = []<br>    for msg in result.fulfillment_messages:<br>        fields = msg.payload.fields<br>        articles.append({&quot;url&quot;: fields[&quot;url&quot;].string_value,<br>                         &quot;title&quot;: fields[&quot;title&quot;].string_value,<br>                         &quot;confidence&quot;: result.intent_detection_confidence})</pre><pre>return articles if len(articles)&gt;0 else None</pre><p>The function takes a string as an input and goes through the following steps:</p><ul><li>Create a new Dialogflow session. A session is used to track the conversation with a user over multiple dialog turns. In this example you don’t need to track turns, therefore you will create a new session for each API call (session_id=None)</li><li>Call the API to detect the intent for the given input.</li><li>If the <a href="https://cloud.google.com/dialogflow/docs/intents-default#fallback">Fallback</a> intent is returned, the agent didn’t recognized the customer description of the problem, so return None</li><li>If at least one non-fallback intent is returned, add all fulfillment messages to the list to be returned. Here messages are the json objects you have added in the first step of this tutorial as an intent response.</li></ul><p>Each article also includes the confidence value, representing a number between 0 and 1 indicating how confident the AI is in making this suggestion (the higher the better). You can use this value with a threshold to increase the accuracy of suggestions and only return those with high confidence levels.</p><p>Let’s see the results now. Start again the web app on the command line ( python app.py ). Go to <a href="http://localhost:5000/ask_question">http://localhost:5000/ask_question</a>, enter the question “Do you ship to Canada?” and click “Find answers”. You should see the page below including a reference to the article answering this question.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/345/0*BKpTY8lSBASFEk5F" /></figure><p>Congratulations! You’ve just built your first ticket deflection contact form using AI!</p><h3>Considerations</h3><p>In this tutorial you’ve learned how to create a smart contact form that is using AI to suggest relevant articles to customers based on their issue description. All this comes in a few lines of code and at (almost) no cost.</p><p>As you have seen, it is easy to get started with a simple AI solution for customer support that deflects tickets. The part that requires most work is in building a complex model that understands and answers many customer questions. As explained in <a href="https://www.swifteq.com/post/ai-automation-customer-support">this article</a>, having the right training data (the customer phrases labeled for each question) is crucial to the success of any AI project. Same is having good explanatory articles that addresses those questions.</p><p>There are several ways to expand the contact form above, some of which I’m highlighting below:</p><ul><li>Customize the look and feel of your form to suit your brand and design style guide</li><li>Add a threshold to the confidence level returned by the Dialogflow API with each response, to improve accuracy</li><li>For certain questions, on the articles page show the answer directly on the page rather than inviting the user to click on a link</li><li>If you’re getting a large number of email tickets in addition to contact form tickets, you can use a similar approach to automatically send article suggestions when a new email from a customer is received in your helpdesk. You can achieve this through Zendesk’s <a href="https://support.zendesk.com/hc/en-us/articles/203660866-Workflow-recipe-Notifying-External-Email-Addresses">targets and triggers</a> (trigger the Dialogflow API call for each new ticket received on the email channel).</li><li>For inquiries that require some level of troubleshooting, create a more complex conversation flow that guides the user step by step in resolving his issue.</li></ul><p>I am certain there are many more other ways to extend the functionality presented in this tutorial.</p><p>I’d love to hear your own ideas! What else you think would benefit your customers and your support team?</p><p>You can download the complete code from <a href="https://github.com/swifteq/ai-suggest-articles">here</a>.</p><p><a href="https://www.swifteq.com/">Swifteq</a> is a software development company providing tailored software solutions for customer support teams. Feel free to <a href="https://www.swifteq.com/">get in touch</a> if you need our help.</p><h3>Don’t forget to give us your 👏 !</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/0*ZxaGcKC3UQEydQIX" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2F3e59ef%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2F3e59ef&amp;image=http%3A%2F%2Fapi.screenshotlayer.com%2Fapi%2Fcapture%3Faccess_key%3Dfe59908dad3baab69ffab249a2224b03%26viewport%3D1024x612%26width%3D1000%26url%3Dhttps%253A%252F%252Fupscri.be%252F3e59ef%253Fscreenshot&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/7078d8ad19192c4c53d3bf199468e4ab/href">https://medium.com/media/7078d8ad19192c4c53d3bf199468e4ab/href</a></iframe><figure><a href="https://chatbotslife.com/bot-communities-mastermind-group-d2dae9876709#.53x0py6ou"><img alt="" src="https://cdn-images-1.medium.com/max/255/1*6XUspT9JOSq0w0Fi35HIaA.png" /></a></figure><figure><a href="https://m.me/ChatbotsLife"><img alt="" src="https://cdn-images-1.medium.com/max/255/1*c1LDMH5vbnIz9rmAka8Hwg.png" /></a></figure><figure><a href="https://chatbotslife.com/chatbot-development-hire-top-ai-chatbot-developers-c8b45ef7f207"><img alt="" src="https://cdn-images-1.medium.com/max/255/1*D0Jf3dI6ZThtqcfwDYY7mg.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df3275435cf9" width="1" height="1" alt=""><hr><p><a href="https://blog.chatbotslife.com/how-to-deflect-customer-support-tickets-with-zendesk-and-dialogflow-ai-df3275435cf9">How to deflect customer support tickets with Zendesk and Dialogflow AI</a> was originally published in <a href="https://blog.chatbotslife.com/">Chatbots Life</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A step by step guide to build a chatbot with Zendesk Chat and IBM Watson Assistant]]></title>
            <link>https://blog.chatbotslife.com/a-step-by-step-guide-to-build-a-chatbot-with-zendesk-chat-and-ibm-watson-assistant-325e0531d929?source=rss-669d1391d3c9------2</link>
            <guid isPermaLink="false">https://medium.com/p/325e0531d929</guid>
            <category><![CDATA[chatbot-design]]></category>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[zendesk]]></category>
            <category><![CDATA[chatbots]]></category>
            <dc:creator><![CDATA[Sorin Alupoaie]]></dc:creator>
            <pubDate>Thu, 04 Oct 2018 11:12:08 GMT</pubDate>
            <atom:updated>2018-11-02T15:12:09.497Z</atom:updated>
            <content:encoded><![CDATA[<p>In customer support, <a href="https://chatbotslife.com/">chatbots</a> represent an opportunity to automate simple and repetitive tasks while allowing the support team to focus on resolving more complex customer problems. Zendesk’s recent <a href="https://chat.zendesk.com/hc/en-us/articles/360001786387">announcement</a> on the release of Chat Conversations API represent a significant addition to the self-service offering for businesses using Zendesk Chat to support their customers. If you were using Zendesk Chat for support, you have probably waited for this release for a long time.</p><p>While the new API comes integrated with a small number of chatbot providers, developing the integration yourself will give you the flexibility o choose from a much larger selection of chatbot vendors and APIs, without being locked in with one vendor.</p><blockquote>developing the integration yourself will give you flexibility</blockquote><p>In this tutorial I will describe in a few simple steps how one can develop such an integration with one popular chatbot service, IBM Watson Assistant. However, alternative services such as Google’s Dialogflow or Microsoft’s Azure Bot Service, could be easily used instead.</p><h3>Top 3 Most Popular Bot Design Articles:</h3><blockquote><a href="https://chatbotslife.com/one-metric-one-platform-and-one-vertical-4b763e2eb442">1. One metric, one platform and one vertical</a></blockquote><blockquote><a href="https://chatbotslife.com/designing-chatbot-conversations-7fd94b2a78d8">2. Designing Chatbot Conversations</a></blockquote><blockquote><a href="https://chatbotslife.com/distributing-a-slack-app-d5b4cf9ee317">3. Distributing a slack app</a></blockquote><blockquote><a href="https://chatbotslife.com/ai-nlp-workshop-fa39e2eac049">4. AI &amp; NLP Workshop</a></blockquote><h4>Getting started</h4><p>First here is what you need to get started:</p><ul><li>Zendesk chat account (Premium or Enterprise)</li><li>Sign up with IBM Bluemix or alternative chatbot service</li><li>Python3 and packages: requests, websocket-client, watson-developer-cloud</li></ul><p>Your chatbot app is configured into your Zendesk Chat account as an additional Agent user. Like any agent, it would need to authenticate before being able to take on and respond to incoming chats from customers. You can either create an additional user for your chatbot or use your own account. The latter is for testing only. Obviously, you don’t want your customers to believe they are chatting to a real person, so make sure you name and introduce the new agent/chatbot accordingly.</p><p>Once you have a user, the next step is to configure how the chatbot app will authenticate. Zendesk Chat supports several authentication methods, all based on the OAuth authorization flow. Given that the chatbot is a server-side app, the most appropriate methods are either Password grant or Client credentials grant. Please follow the instructions at this <a href="https://developer.zendesk.com/rest_api/docs/chat/auth">page</a> to setup the OAuth configuration for the chatbot user and implement the flow. What you get in the end is an access token (think of it as a super password) to be used in the next steps.</p><p>You’ll also need to sign up and setup your chatbot service of choice. For this tutorial we are using IBM Watson Assistant, but alternatively you can select other chatbot services such as Azure Bot Service from Microsoft or Dialogflow from Google. What I liked about Watson Assistant was that it comes pre-installed with a sample customer service bot that makes it easy to get started. Sign up <a href="https://www.ibm.com/watson/ai-assistant/#developers">here</a> for a free account and follow <a href="https://console.bluemix.net/docs/services/conversation/getting-started.html">these instructions</a> to configure your workspace. Select the customer service sample workspace to use a predefined chatbot example that can handle simple FAQ type queries such as serving stores opening hours or location.</p><h4>How a chatbot app works in Zendesk Chat</h4><p>If you think of your chatbot as an app that simulates how a real agent is using the chat platform to handle customer queries, the app flow would look like this:</p><ul><li>app is initializing and authenticates itself to the chatbot service</li><li>app authenticates to the livechat platform and starts a session by making itself available</li><li>app is waiting for new messages from visitors</li><li>when a message is received, send it to the chatbot service (Watson Assistant in this example)</li><li>receive response from the chatbot service and send it to the visitor</li></ul><blockquote>think of your chatbot as an app that simulates how a real agent is using the chat platform to handle customer queries</blockquote><p>It is as simple as that! The steps described above are well suited for FAQ types of dialogues but can be enriched to support chatbots with more complex dialog flows where context needs to be maintained for each visitor. We decided to keep this complexity outside the scope of the current tutorial.</p><h4>Initialization and authentication</h4><p>So let’s start by initializing the app and authenticating the chatbot user. The authentication part is done through HTTP requests, while for the actual conversations we’ll be using a WebSocket connection. As explained <a href="https://develop.zendesk.com/hc/en-us/articles/360001331787">here</a>, the Conversations API is based on the GraphQL data query language which gives the developer more flexibility in terms of defining precisely the data an application needs.</p><pre>import requests</pre><pre>import json</pre><pre>import websocket</pre><pre># define the GrapQL mutation query for authenticating an agent</pre><pre>authenticate_query = &quot;&quot;&quot;</pre><pre>mutation {</pre><pre>  startAgentSession(access_token: &quot;your_chatbo_user_access_token&quot;) {</pre><pre>    websocket_url</pre><pre>    session_id</pre><pre>    client_id</pre><pre>  }</pre><pre>}</pre><pre>&quot;&quot;&quot;</pre><pre># call the REST endpoint to authenticate the agent</pre><pre>r = requests.post(&quot;https://chat-api.zopim.com/graphql/request&quot;,</pre><pre>                  params=pFarams, json={&quot;query&quot;:authenticate_query})</pre><pre>if r.status_code == 200:</pre><pre>  jret = r.json()</pre><pre>  # includes the authenticated websocket session details</pre><pre>  session = jret[&quot;data&quot;][&quot;startAgentSession&quot;]</pre><pre>  print (session[&quot;websocket_url&quot;])</pre><pre>else:</pre><pre>  print (str(r.status_code), &quot;, &quot;, r.content)</pre><p>Running the snippet above will get you the authenticated WebSocket address that will be used next to implement the dialogue with the user. But in the meantime, let’s also initialize the Watson Assistant session:</p><pre>watson_conversation = {</pre><pre>  &quot;url&quot;: &quot;https://gateway.watsonplatform.net/assistant/api&quot;,</pre><pre>  &quot;username&quot;: &quot;&lt;your user name&gt;&quot;,</pre><pre>  &quot;password&quot;: &quot;&lt;your password&gt;&quot;</pre><pre>}</pre><pre>from watson_developer_cloud import AssistantV1</pre><pre>assistant = AssistantV1(username=watson_conversation[&quot;username&quot;],</pre><pre>                        password=watson_conversation[&quot;password&quot;],</pre><pre>                        version=&#39;2018-02-16&#39;)</pre><h4>Setting up the chat session</h4><p>Now that we have the WebSocket address, let’s setup a websocket session and subscribe to incoming chat messages, while setting the status of the authenticated chatbot agent to “online” in order to be able to receive the chats.</p><pre># define the message subscription query</pre><pre>MESSAGE_SUBSCRIPTION = 123</pre><pre>messageSubscriptionQuery = {</pre><pre>  &quot;payload&quot;: {</pre><pre>    &quot;query&quot;: &quot;&quot;&quot;subscription {</pre><pre>      message {</pre><pre>        node {</pre><pre>          id</pre><pre>          content</pre><pre>          channel {</pre><pre>            id</pre><pre>          }</pre><pre>          from {</pre><pre>            __typename</pre><pre>            display_name</pre><pre>          }</pre><pre>        }</pre><pre>      }</pre><pre>    }</pre><pre>    &quot;&quot;&quot;</pre><pre>  },</pre><pre>  &quot;type&quot;: &#39;request&#39;,</pre><pre>  &quot;id&quot;: MESSAGE_SUBSCRIPTION</pre><pre>}</pre><pre># define the update agent status query</pre><pre>UPDATE_AGENT_STATUS  = 124</pre><pre>updateAgentStatusQuery = {</pre><pre>  &quot;payload&quot;: {</pre><pre>    &quot;query&quot;: &quot;&quot;&quot;mutation {</pre><pre>      updateAgentStatus(status: ONLINE) {</pre><pre>        node {</pre><pre>          id</pre><pre>        }</pre><pre>      }</pre><pre>    } </pre><pre>    &quot;&quot;&quot;</pre><pre>  },</pre><pre>  &quot;type&quot;: &#39;request&#39;,</pre><pre>  &quot;id&quot;: UPDATE_AGENT_STATUS</pre><pre>}</pre><pre># initialize the websocket session</pre><pre>ws = websocket.WebSocket()</pre><pre>ws.connect(session[&quot;websocket_url&quot;])</pre><pre># subscribe to receive messages</pre><pre>ws.send(json.dumps(messageSubscriptionQuery))</pre><pre>response = ws.recv()</pre><pre>print(response)</pre><pre>rJson = json.loads(response)</pre><pre># we will need the subscription id in the next step</pre><pre>subscription_id = rJson[&quot;payload&quot;][&quot;data&quot;][&quot;subscription_id&quot;]</pre><pre># set the chatbot agent status to &#39;online&quot;</pre><pre>ws.send(json.dumps(updateAgentStatusQuery))</pre><pre>response = ws.recv()</pre><pre>print (response)</pre><h4>Sending and receiving messages</h4><p>Now it’s time to start receiving chat messages:</p><pre>while True:</pre><pre># receive websocket messages</pre><pre>message = ws.recv()</pre><pre>data = json.loads(message)</pre><pre># make sure we listen to chat messages from the our subscription</pre><pre>if &quot;sig&quot; in data and data[&quot;sig&quot;] == &#39;DATA&#39; and \ <br>            data[&quot;subscription_id&quot;] == subscription_id and \<br>            &quot;payload&quot; in data and &quot;data&quot; in data[&quot;payload&quot;]:</pre><pre># the chat message structure will include the message string but <br># also sender details</pre><pre>  chatMessage = data[&quot;payload&quot;][&quot;data&quot;][&quot;message&quot;][&quot;node&quot;]</pre><pre>  sender = chatMessage[&quot;from&quot;]</pre><pre>  # make sure the message is from a visitor</pre><pre>  if sender[&quot;__typename&quot;] == &quot;Visitor&quot;:</pre><pre>    # we have to do something with the message, let&#39;s print it for now</pre><pre>    print(&quot;Received from %s: &#39;%s&#39;&quot; % (chatMessage[&quot;content&quot;], <br>                                   sender[&quot;display_name&quot;]))</pre><p>For each new chat message from a visitor we need to decide what the response should be and possibly what other action the message might trigger on behalf of the user. For example if the visitor is requesting a password reset, we might also call the appropriate service in the back-end for resetting a password.</p><h4>Connect to the chatbot service</h4><p>In order to get the right answer to the visitor message we will call the chatbot service API (Watson Assistant in this example) and send the response from the service back to the visitor.</p><p>For the sake of simplicity, we’re using a continuous loop of reading and responding from/to a websocket. While it makes the workflow easier to understand, it becomes a challenge when you want to handle multiple messages from multiple visitors in the same time. There are few ways to handle this complexity in Python, probably one of the most popular is using an asynchronous library such as <a href="https://docs.python.org/3/library/asyncio.html">asyncio</a>. This is beyond the scope of this tutorial, but you can check out this useful guide <a href="https://medium.freecodecamp.org/a-guide-to-asynchronous-programming-in-python-with-asyncio-232e2afa44f6">here</a>.</p><pre>while True:</pre><pre># receive websocket messages</pre><pre>message = ws.recv()</pre><pre>data = json.loads(message)</pre><pre># make sure we listen to chat messages from the our subscription</pre><pre>if &quot;sig&quot; in data and data[&quot;sig&quot;] == &#39;DATA&#39; and \<br>            data[&quot;subscription_id&quot;] == subscription_id and \<br>            &quot;payload&quot; in data and &quot;data&quot; in data[&quot;payload&quot;]:</pre><pre>  # the chat message structure will include the message string but <br>  # also sender details</pre><pre>  chatMessage = data[&quot;payload&quot;][&quot;data&quot;][&quot;message&quot;][&quot;node&quot;]</pre><pre>  sender = chatMessage[&quot;from&quot;]</pre><pre>  # make sure the message is from a visitor</pre><pre>  if sender[&quot;__typename&quot;] == &quot;Visitor&quot;:</pre><pre>    # we have to do something with the message, let&#39;s print it for now</pre><pre>    print(&quot;Received from %s: &#39;%s&#39;&quot; % (chatMessage[&quot;content&quot;], <br>                                      sender[&quot;display_name&quot;]))</pre><pre>    # call Watson Assistent to get the approapriate response to user&#39;s message</pre><pre>    response = assistant.message(workspace_id=&quot;&lt;workspace_id&gt;&quot;,<br>                         input={&quot;text&quot;: chatMessage[&quot;content&quot;]})</pre><pre>    chatbot_msg = &quot;\n&quot;.join(response[&quot;output&quot;][&quot;text&quot;])</pre><pre>    print(&quot;Response from chatbot: &#39;%s&#39;&quot; % (chatbot_msg))</pre><pre>    # send the response back to the visitor</pre><pre>    ws.send(json.dumps(sendMessageQuery(chatMessage[&quot;channel&quot;][&quot;id&quot;], chatbot_msg)))</pre><p>That’s it, now you have your first Zendesk Chat chatbot! Summarizing the steps, you start by authenticating the app to the livechat platform (as any agent would do), initialize/authenticate the chatbot service (Watson Assistant) and wait to receive new messages from visitors. When a new message is received, forward it to the chatbot service, get the appropriate response back and send it to the visitor.</p><p>This is a relatively simple workflow implementing a simple use case, although much more can be done to expand it with additional capabilities such as handover to agent or handling more complex dialog flows where context needs to be maintained for each visitor. More about this in the next tutorial!</p><h4>Conclusion</h4><p>As you can see, if you are using Zendesk Chat to support your customers, building a simple native chatbot is relatively easy using the Conversations API that was released recently. You also have the option to choose from the large variety of chatbot service providers.</p><p>However the challenges of building a chatbot goes beyond the actual implementation and integration between services. It starts with asking yourself what problems and questions my customers regularly have?</p><p>Which of these problems or questions can I streamline and automate so it becomes easier for my customers to resolve the problem or answer the question using a chatbot than getting in contact with one of your support reps.</p><blockquote>building a chatbot starts with asking yourself what problems and questions my customers regularly have</blockquote><p>You need to start by <a href="https://www.cxmoments.com/">understanding your customers problems</a> then work your way through the customer and user experience to deliver effective solutions to your customers.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2F3e59ef%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2F3e59ef&amp;image=http%3A%2F%2Fapi.screenshotlayer.com%2Fapi%2Fcapture%3Faccess_key%3Dfe59908dad3baab69ffab249a2224b03%26viewport%3D1024x612%26width%3D1000%26url%3Dhttps%253A%252F%252Fupscri.be%252F3e59ef%253Fscreenshot&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/7078d8ad19192c4c53d3bf199468e4ab/href">https://medium.com/media/7078d8ad19192c4c53d3bf199468e4ab/href</a></iframe><figure><a href="https://chatbotslife.com/bot-communities-mastermind-group-d2dae9876709#.53x0py6ou"><img alt="" src="https://cdn-images-1.medium.com/max/255/1*6XUspT9JOSq0w0Fi35HIaA.png" /></a></figure><figure><a href="https://m.me/ChatbotsLife"><img alt="" src="https://cdn-images-1.medium.com/max/255/1*c1LDMH5vbnIz9rmAka8Hwg.png" /></a></figure><figure><a href="https://chatbotslife.com/chatbot-development-hire-top-ai-chatbot-developers-c8b45ef7f207"><img alt="" src="https://cdn-images-1.medium.com/max/255/1*D0Jf3dI6ZThtqcfwDYY7mg.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=325e0531d929" width="1" height="1" alt=""><hr><p><a href="https://blog.chatbotslife.com/a-step-by-step-guide-to-build-a-chatbot-with-zendesk-chat-and-ibm-watson-assistant-325e0531d929">A step by step guide to build a chatbot with Zendesk Chat and IBM Watson Assistant</a> was originally published in <a href="https://blog.chatbotslife.com/">Chatbots Life</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Voice of the customer — the treasure hidden in customer support tickets]]></title>
            <link>https://medium.com/@asorin/voice-of-the-customer-the-treasure-hidden-in-customer-support-tickets-4312dedec601?source=rss-669d1391d3c9------2</link>
            <guid isPermaLink="false">https://medium.com/p/4312dedec601</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[customer-success]]></category>
            <category><![CDATA[customer-experience]]></category>
            <category><![CDATA[customer-service]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Sorin Alupoaie]]></dc:creator>
            <pubDate>Tue, 16 Jan 2018 22:00:52 GMT</pubDate>
            <atom:updated>2018-01-18T11:13:24.763Z</atom:updated>
            <content:encoded><![CDATA[<p>There is a stage in the life-cycle of any successful business when the contribution to growth is shifting gradually from marketing and sales functions towards customer service and customer success. With customers being more informed and having more options than ever, keeping a customer from churning to competitors becomes increasingly important. In these companies, <a href="https://thinkgrowth.org/customer-success-the-third-growth-engine-of-business-8c8e0e2c78b8">customer success is emerging as a third engine of growth</a> that ensures customers are happy and successfully getting value of your products or services.</p><p>At this stage the customer base is growing and so is the <a href="https://hbr.org/2017/09/scaling-customer-service-as-your-startup-grows">demand for support</a>: more customers, more problems to solve. Your offering becomes more complex, whether you are an eCommerce store or a SaaS house. The support activity is ramping up, the team is getting bigger. The number of contacts from customers is outgrowing the support@ Inbox while collaboration between team members becomes increasingly important in having quick problem resolution. Now it is time to <a href="http://uk.pcmag.com/freshdesk/70537/feature/5-tips-pick-the-right-help-desk-software-for-your-small-or-m">invest in a modern help desk solution</a>, if you haven’t done it already. Emails turn into tickets or cases, same for chat, phone calls and social conversations.</p><p>With the number of tickets growing exponentially, it becomes increasingly important for support leaders to look back at their teams work and understand where the time was spent. You get to a point where you need to know what’s driving the support activity, what is the ticket about in each case and what are the trends each week.</p><p>Having this information helps a support manager make informed decisions in the following areas:</p><ul><li>Weekly and monthly reporting to be discussed with other senior stakeholders: decide on priorities in terms of bug fixing, new features, process issues etc.</li><li>Develop the support knowledge base with articles and FAQs that cover the most frequent questions from customers</li><li>Allocate the right resources for training or coaching: know the areas where you staff is lacking expertise</li><li>Manage and <a href="https://support.zendesk.com/hc/en-us/articles/203662096-Using-tags">customize the support workflow</a>: automatically send tickets on certain subjects to specific teams or people (i.e. “billing” queries go to the “billing team”)</li></ul><p>S<strong>upport tickets are an important source of customer feedback</strong> that is often overlooked by product teams. As a customer service leader, you become an advocate of the <strong>voice of the customer</strong>. Sharing feedback reports regularly within the company can get the product and engineering teams to be more empathetic towards customers and hopefully more proactive. Do you want to convince the product team that the feature X is a problem? Tell them that 40% of customer complaints are in relation to feature X. The <a href="https://blog.intercom.com/putting-customer-support-at-the-product-table/">support team gets a seat at the product table</a>.</p><p>This is how a <strong>customer-centric culture</strong> is being developed.</p><p>Knowing the case reasons will also help you take proactive steps in supporting your customers and start <strong>developing a self-service strategy</strong>. First you find out which customer questions are most frequent and which of these are good candidates for knowledge base articles. After writing and publishing the articles, you can track if the number of tickets related to the subjects just covered are being reduced. If same questions keep coming perhaps it is time to review the articles again.</p><p>In addition to the regular performance and productivity metrics most growing companies would have introduced <a href="https://www.kayako.com/blog/customer-experience-metrics/">customer experience metrics</a> in the support workflow, such as Customer Satisfaction for example. It allows them to measure and track the experience of their customers after an interaction with the customer service team. These metrics help managers understand where and how to improve the support activity to quicker and better solve clients’ problems. Customer Satisfaction can then be mapped to products or features, contact reasons, and/or team members, enabling you to quickly spot <strong>gaps in customer experience</strong>. It can be a product feature causing the most dissatisfaction among customers or a staff member lacking expertise in certain areas (as uncovered by the contact reasons). In the later case, <strong>targeted training or coaching</strong> can be quickly allocated to up-skill the agent.</p><p>So where do you start about understanding what is determining customers to contact you? How do you know what are the tickets about? To achieve this, most teams are adopting a <a href="https://www.helpspot.com/blog/a-guide-to-support-ticket-categorization">ticket categorization strategy</a> such as requiring support staff to manually fill in categories as <strong>custom fields</strong> and/or <strong>tags </strong>for each new ticket. Tags and custom fields are available in all modern help-desk software. Alternative naming includes: <strong>case reasons</strong>, <strong>reasons to call</strong>, <strong>wrap-up codes</strong>. Tickets can be organized by issue type, product or feature, department, customer segments and more.</p><p>It is recommended to start with a small number of categories and then increase gradually. If the number of options to choose from is too large the team will have difficulty finding and selecting the right ones when a new ticket comes. The name of the tags should be self-explanatory and unambiguous, without overlap between their meanings. Also, aim to cover most of the major product features or service areas that are part of the company’s offering.</p><p>Make sure to spend enough time defining the taxonomy of issues that can be reasons to contact or reasons to call. As you coach the team to get up to speed and fill these in for each ticket, once it becomes a habit (hopefully) it will be much harder to change later. Using the <a href="https://www.helpspot.com/blog/a-guide-to-support-ticket-categorization">wrong categorization will have negative consequences</a> on your customer service workflow, from inaccurate reporting to inappropriate routing of tickets.</p><p>Despite the obvious advantages, there are few drawbacks in requiring staff to manually assign tags or fill in custom fields to tickets. If the process of tagging is left uncontrolled, with each agent filling his own tags, the number of tags becomes very large, making impossible to do any analysis and reporting. To avoid <strong>tag bloating</strong>, managers need to review the process regularly, prune some tags, consolidate others, and keep coaching the team on using them correctly. This takes time.</p><p>Having a tagging strategy in place helps if you know what you are looking for. Often there are questions that you haven’t thought of when doing the taxonomy and are not captured by the current list of tags. The only solution here is manually going through the tickets, reading them one by one and come up with additional tags. Especially in a dynamic product building environment, maintaining and updating a predefined list of contact reasons becomes a cumbersome task. Each new software release is introducing <strong>new problems and topics that were not captured by the already obsolete set of tags</strong>. Changing it requires communication and coaching of the support team members, adding overhead to an already extremely busy organization.</p><p>Fortunately, there is a <a href="https://www.cxmoments.com/">new approach</a> emerging as an alternative to manual tags. Using Artificial Intelligence and Natural Language Processing, customer service leaders can discover <strong>topics </strong>in <strong>support tickets</strong>, uncovering customer issues and contact reasons many times better than using manual tagging. In many modern help desk solutions, it is possible to <strong>tag tickets programmatically</strong>, through API calls. Therefore, after using Text Analytics to uncover themes and trends in the content of the tickets, these themes can be fed back into the help desk automatically as tags and/or custom fields. This enables more complex support workflows based on triggers or automations.</p><p>The new approach of <strong>topic detection</strong> and <strong>auto-tagging</strong> is more accurate and more consistent than manually selecting values for custom fields. It is also fully flexible, can be changed and updated in line with business changes, including retrospectively. Finally, it frees up time for the support team allowing them to focus on solving the customer issues.</p><p>Here at Cx MOMENTS we think about it all the time, so if you have any questions please don’t hesitate to <a href="https://www.cxmoments.com/helpdesk-analytics">let us know</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4312dedec601" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>