<?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[MailBots - Medium]]></title>
        <description><![CDATA[MailBots news, updates articles and more - Medium]]></description>
        <link>https://medium.com/mailbots?source=rss----6844adf12fd2---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>MailBots - Medium</title>
            <link>https://medium.com/mailbots?source=rss----6844adf12fd2---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 05:51:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/mailbots" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[MailBots Is Turning Into FollowUpThen Skills]]></title>
            <link>https://medium.com/mailbots/mailbots-is-turning-into-followupthen-skills-d253366fa992?source=rss----6844adf12fd2---4</link>
            <guid isPermaLink="false">https://medium.com/p/d253366fa992</guid>
            <category><![CDATA[email]]></category>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[startup-lessons]]></category>
            <dc:creator><![CDATA[Reilly Sweetland]]></dc:creator>
            <pubDate>Thu, 26 Sep 2019 19:01:05 GMT</pubDate>
            <atom:updated>2019-09-26T19:01:05.832Z</atom:updated>
            <content:encoded><![CDATA[<h4>Good by for now, MailBots! 👋🤖</h4><p>After many conversations, experiments and prototypes, we decided to put MailBots on hold and repurpose our work into a powerful, extensible version of our original product, <a href="https://www.followupthen.com/">FollowUpThen</a>.</p><h3>Why?</h3><ul><li>We discovered the best MailBot ideas were either “FollowUpThen-shaped” (focused on perfect timing), or utilized only a small part of the platform — usually a part that other ESPs also provided. This new direction plays to our strengths as a time-focused platform.</li><li>MailBots will live on as an internal tool for FollowUpThen. We may re-release it some day, but we cannot say when.</li><li>We love FollowUpThen and want to give it the attention it deserves.</li><li><a href="https://firstround.com/review/what-i-learned-from-developing-branding-for-airbnb-dropbox-and-thumbtack/">Focus</a> will make or break a small company. The tensions between our beloved FUT and the MailBots developer community started to mount as we continued down this path, making it clear that we had to make a choice.</li><li>We are genuinely excited about giving people a sense of freedom by helping them to organize their future. It is a mission that we love.</li><li>FollowupThen Skills are going to be awesome!</li></ul><h3>FollowUpThen v3</h3><p>Many of you MailBots developers are <a href="https://www.followupthen.com/">FollowUpThen</a> users already. If you are not, think of it as a <strong>universal command line to your future inbox</strong>. This becomes very powerful with autocomplete.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/0*Qz-7IB_enz9if2GF" /></figure><p>It, of course, works everywhere — it’s just an email address. Based on our usage patterns, once you start using it regularly, you are likely to keep using it for a long time.</p><p>FollowUpThen v3 (yet to be released) incorporates many of the advancements from our work on MailBots, but in a streamlined and simplified way.</p><h3>Skills: More Than A Reminder</h3><p>The new FollowUpThen will allow you to receive more than just an email in your inbox. You will get everything needed to get something done right at the perfect moment to actually do it.</p><p>Skills add the equivalent of command line “flags” to the date format. They can also cause a followup to trigger based on an external event (GitHub issue created, etc). Flags are already in limited use. For example:</p><ul><li>3days-sms@fut.io sends a text message with the reminder</li><li>3days-r@fut.io cancels the reminder is a reply is received</li><li>3days-t@fut.io keeps reminding you daily until you click &quot;complete&quot;</li></ul><p>The new skills framework will allow you to add your own flags that invoke their own actions during creation, or followup. You can publish them, share them within your company or with others.</p><h3>Your Feedback</h3><p>I have thoroughly enjoyed the conversations I’ve had with many of you about email productivity, “purely email-based apps” and product development in general. All of these helped to shape this important decision for us.</p><p>If you have an idea you wanted to build with MailBots, you may still be able to build it using this the new FollowUpThen Skills API. We’re happy to chat about your idea.</p><p>If you have any questions, input or thoughts please just hit reply. These messages go straight to me and I would genuinely love to hear from you.</p><p>All the best,</p><p><em>Reilly Sweetland<br></em>Founder | FollowUpThen and MailBots (YC 2017)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d253366fa992" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mailbots/mailbots-is-turning-into-followupthen-skills-d253366fa992">MailBots Is Turning Into FollowUpThen Skills</a> was originally published in <a href="https://medium.com/mailbots">MailBots</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create An Email-Only ToDo App In Under 10 Minutes ]]></title>
            <link>https://medium.com/mailbots/create-an-email-only-todo-app-in-under-10-minutes-6259ba70b9e7?source=rss----6844adf12fd2---4</link>
            <guid isPermaLink="false">https://medium.com/p/6259ba70b9e7</guid>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[email]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Reilly Sweetland]]></dc:creator>
            <pubDate>Thu, 30 May 2019 15:36:05 GMT</pubDate>
            <atom:updated>2021-04-25T15:45:04.250Z</atom:updated>
            <content:encoded><![CDATA[<h4>Use MailBots to get things done without leaving your inbox.</h4><h3>What is MailBots?</h3><p>MailBots is a platform for building, distributing and using email-based bots that help people get more done from their inbox. We created MailBots to bridge the gap between your inbox and the various tools you use every day — CRMs, calendars, todo lists, note taking apps and more.</p><p>👉 Read more about MailBots in our <a href="https://medium.com/mailbots/introducing-mailbots-bots-for-email-41602dd145d0">introductory article</a>.</p><h3>Let’s Make a To Do List! ✅</h3><p>In addition to being fun and useful, a to-do list is the lowest common denominator for many types of MailBots. It is a perfect starting point for you new weekly <a href="https://www.npmjs.com/package/dominos">pizza ordering system</a>, mother’s day <a href="https://www.floristone.com/api/">flower delivery service</a> or <a href="https://docs.mailbots.com/docs/complete-examples#section-ticket-handling">GitHub issue email utility</a>. This concept is also at the heart of the original MailBot, <a href="https://www.followupthen.com/">FollowUpThen</a>.</p><p>If you would prefer the “firehose” tour of the MailBots platform, play this video and watch me build a todo list in about 3.5 minutes. For this article, I promised 10 minutes to give us a little more time to explore. You can also <a href="https://github.com/mailbots/example-mailbots/tree/master/todo">browse the source code</a> for a similar app in our <a href="https://github.com/mailbots/example-mailbots/">MailBot Examples repo</a>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fwylh5VI_kx8%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dwylh5VI_kx8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fwylh5VI_kx8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f34114c681545e113ad988cabed3aa9c/href">https://medium.com/media/f34114c681545e113ad988cabed3aa9c/href</a></iframe><h3>Basic Concepts</h3><p>MailBots consists of three main parts.</p><ol><li>An open source <a href="https://www.npmjs.com/package/mailbots">bot framework for email</a></li><li>Core APIs that handle email plumbing, data persistence and user accounts</li><li>A central UI for developers and users to manage their bots</li></ol><p>When the core API receives an event (ex: an email is received) it sends an HTTP POST to your bot. Your bot replies with JSON instructions telling the Core API perform different actions, for example, send an email, save data or schedule a followup.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eCOB8H8S16mff_1I9xU1iw.png" /><figcaption>How the MailBots core API works with your MailBot</figcaption></figure><h3>1. Create a MailBot Using Glitch</h3><p>Head over to the <a href="https://app.mailbots.com/developer/create">bot creation page</a> (Note: if you haven’t received your developer invitation <a href="https://rsweetland1.typeform.com/to/amsj7O">fill out our survey</a>! 👈)</p><p>Setting up a MailBot is a one-click operation. Choose your starting point and we’ll spin up a complete, editable working version of that MailBot using <a href="https://glitch.com/">Glitch</a>, a browser-based development environment for Node.js apps.</p><p>Choose the “Blank” template. You could, of course choose “ToDo Bot”, but that would defeat the purpose of this tutorial.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y25bDGa4d4W23HAzxL_drA.png" /></figure><p>After a quick connection process, you will end up in the Sandbox where you can test, inspect and experiment with your new MailBot.</p><h3>2. Meet Your Dev Env</h3><p>Once in the sandbox, click the blue EDIT IN GLITCH text.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7oNOMxi3qlhxVOWJRBsRWg.png" /></figure><p>Glitch’s editing environment that should feel familiar (even though it’s browser based). Click app.js in the left bar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-EtbpanV6GV4Ki9oLEUm2g.png" /></figure><p><em>Note: The bot framework is MIT licensed making it friendly for use in any corporate environment.</em></p><p>A hello world handler is already here to give you a basic idea of how it works.</p><p>By the way, if prefer to develop locally, it is similarly <a href="https://www.npmjs.com/package/mailbots#installing">straight forward</a>.</p><h3>3. Take It For A Spin</h3><p>Go back to the Sandbox, place your cursor in the to field of the email emulator and choose the first address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*WCf_uDIpx7DLO88IJe-Pxw.gif" /></figure><p>When you hit “send”:</p><ol><li>The MailBots core API sends a webhook to your MailBot</li><li>Your MailBot processes the incoming JSON and sends a JSON response</li><li>The MailBots core API processes your webhook response, which, in this case, sends an email.</li></ol><p>You can view the JSON request and response in the logs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JeK5WcmvSJcUbbTuZcptPg.png" /><figcaption>Quickly view request and response JSON from the logs</figcaption></figure><h3>4. The Basic Todo List</h3><p>It only takes a few lines of code to turn our Hello World handler into a functioning todo list thanks to a core principle of the MailBots platform: <strong>inbound emails create tasks.</strong></p><pre>// when someone emails hello@my-bot.eml.bot...</pre><pre>mailbot.onCommand(&quot;hello&quot;, function(bot) {</pre><pre>   // ...a task is automatically created<br>   </pre><pre>});</pre><p>We know this is an opinionated approach but we chose it deliberately. There are many options for receiving and routing plain inbound emails – SES, Mailgun, etc. MailBots exists to help people get things done, and those things, generically, we call “tasks”.</p><p>So in a way, we cheated by building part of our ToDo list into the MailBots platform, event including a UI to manage these todos. Sorry!</p><p>But we’re not done yet. As it stands, when you email hello@[your-bot].eml.bot a task is created and instantaneously marked as complete. You can find these tasks by going to the <a href="https://app.mailbots.com/tasks">MailBots tasks page</a>, selecting your MailBot from the left menu, then filtering for completed tasks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m9ZNhEQhixQK7B9IBkIMng.png" /></figure><p>Short-lived tasks have their use (for example, keeping a record of an action performed by your MailBot) but in our case, we want a classic todo list.</p><h3>5. Put the “todo” in your todo list</h3><p>Edit your handler to listen for the todo command instead of the hello.</p><pre>mailbot.onCommand(&quot;todo&quot;, function(bot) { ...</pre><p>Next, we’ll mark task as “not complete”.</p><pre>bot.set(&quot;task.completed&quot;, 0);</pre><p>This will cause these newly created tasks to appear in the incomplete tasks section of the MailBots tasks view. We will also let the user know a todo has been added.</p><pre>bot.webhook.quickReply(&quot;Todo added: &quot; + bot.get(&quot;source.subject&quot;));</pre><p>Lastly, we call bot.webhook.respond()<em> </em>to end the request and send a response back to the core API. Our handler should now look like this.</p><pre>mailbot.onCommand(&quot;todo&quot;, function(bot) {<br>  bot.set(&quot;task.completed&quot;, 0);<br>  bot.webhook.quickReply(&quot;Todo added: &quot; + bot.get(&quot;source.subject&quot;));<br>  bot.webhook.respond();<br>});</pre><p>Test this out in the sandbox: Email todo@[your-domain].eml.bot<em> </em>and inspect the webhook request and response.</p><p>You should also be able to see your recently added tasks on the <a href="https://app.mailbots.com/tasks">MailBots tasks</a> page.</p><h3>6. Create A Reminder</h3><p>MailBots excel at keeping track of tasks that require attention over an extended period of time. Let’s take advantage of this and schedule our todo item to reappear in our inbox at 8am tomorrow.</p><pre>bot.webhook.setTriggerTime(&quot;tomorrow8am&quot;);</pre><p>This reminder date is expressed in <a href="https://www.followupthen.com/how">FollowUpThen style</a> syntax and could have been anything, including a recurring format – for example every8am if we wanted an extremely persistent (and annoying) todo reminder.</p><p>Our handler now looks something like this:</p><pre>mailbot.onCommand(&quot;todo&quot;, function(bot) {<br>  bot.set(&quot;task.completed&quot;, 0);<br>  bot.webhook.setTriggerTime(&quot;tomorrow8am&quot;); // &lt;-- Reminder ⏰<br>  bot.webhook.quickReply(&quot;Todo: &quot;+ bot.get(&quot;source.subject&quot;));<br>  bot.webhook.respond();<br>});</pre><h4>Handle When The Task Becomes Due ⏰</h4><p>We use the term “trigger”, to indicate the moment a task becomes active and warrants the user’s attention. We handle this using the onTrigger handler.</p><p>To keep things simple for now, we’ll just sent the original email to the sender’s inbox when it becomes due:</p><pre>mailbot.onTrigger(&quot;todo&quot;, function(bot) {<br>  bot.webhook.quickReply(&quot;Reminder! &quot;+ bot.get(&quot;source.subject&quot;));<br>  bot.webhook.respond();<br>});</pre><p>We could have also sent an SMS at this point, or checked the status of a task in another program, or otherwise modified the task at the time it became due.</p><h3>7. Complete ToDo Items</h3><p>A todo list without a “complete” button would be entirely …incomplete.</p><p>We will add a “Complete” button to the reminder email using a core feature of the MailBots platform called <strong>Action Emails. </strong>Action Emails are basically mailto links to let you dispatch actions without leaving your inbox. It looks looks like this in the emulator (and your mail client).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Oyiv23W2Q1DdGEvt-MSmpQ.gif" /></figure><p>We’ll add add the “Completed” button to the confirmation email using the more full-featured sendEmail method.</p><p>Replace the bot.webhook.quickReply line with this:</p><pre>bot.webhook.sendEmail({<br>    to: bot.get(&quot;source.from&quot;),<br>    from: &quot;My Todo List&quot;,<br>    subject: bot.get(&quot;task.reference_email.subject&quot;),<br>    body: [<br>      {<br>        type: &quot;button&quot;,<br>        text: &quot;Complete&quot;,<br>        behavior: &quot;action&quot;,<br>        action: &quot;complete&quot;,<br>        subject: &quot;Hit Send to Complete this task&quot;,<br>        body: &quot;This is a MailBots email-action&quot;<br>      },<br>      {<br>        type: &quot;spacer&quot;<br>      }<br>    ]<br>  });</pre><p>We’ll then handle the “Complete” action with another MailBot handler:</p><pre>mailbot.onAction(&quot;complete&quot;, function(bot) {<br>  bot.webhook.completeTask();<br>  bot.webhook.quickReply(&quot;Task completed&quot;);  <br>  bot.webhook.respond();<br>});</pre><h3>7. Keep Following Up Until It’s Done</h3><p>MailBots are great for managing long-running tasks – like remembering to followup with someone in a week or a regularly paying a bill.</p><p>The sandbox makes it easy to test these long-cyle-time MailBots.</p><p>Modify the onTrigger handler to add the “Complete” button as shown above.</p><pre>mailbot.onTrigger(&quot;todo&quot;, function(bot) {</pre><pre>  // If it&#39;s already completed, do nothing<br>  if (bot.get(&quot;task.completed&quot;)) {<br>    return bot.webhook.respond();<br>  }</pre><pre>  // Send email with an action link to complete it<br>  bot.webhook.sendEmail({<br>    to: bot.get(&quot;source.from&quot;),<br>    from: &quot;My Todo List&quot;,<br>    subject: bot.get(&quot;task.reference_email.subject&quot;),<br>    body: [<br>      {<br>        type: &quot;button&quot;,<br>        text: &quot;Complete&quot;,<br>        behavior: &quot;action&quot;,<br>        action: &quot;complete&quot;,<br>        subject: &quot;Hit Send to Complete this task&quot;,<br>        body: &quot;This is a MailBots email-action&quot;<br>      },<br>      {<br>        type: &quot;spacer&quot;<br>      }<br>    ]<br>  });</pre><pre>  // Reschedule this same email to send again tomorrow<br>  bot.webhook.setTriggerTime(&quot;tomorrow8am&quot;);</pre><pre>  bot.webhook.respond();<br>});</pre><p>Back in the Sandbox, click on one of your recent tasks in the logs, then click the “trigger” link for that task, shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qy2jd_8HmEtjfujAaogb6A.png" /></figure><p>You can inspect the request and response of the trigger webhook in the logs. Any emails that would be sent are rendered below the emulator. (As of this writing, the sandbox sends an email to your actual inbox as well).</p><p>As you’ll see, when the task becomes due, it asks if we completed it. If we did, it stops following up. If we did not, it ask us to complete the task when it triggers and follows up the next day at 8am.</p><p>Try clicking the “Complete” action, then trigger the task again. It should no longer send the followup email since the task is now complete.</p><h4>Variations</h4><p>Different types of tasks require different “shapes” of reminders. A deadline-type task may require more and more frequent reminders as a date approaches. Other tasks may gracefully decay, sending fewer and fewer reminders over time. Some may require also sending a notification on another network (sms, WhatsApp, etc). With a few simple changes to the above logic, MailBots can accommodate any reminder situation.</p><h3>Conclusion</h3><p>MailBots exists to help you (and your users) get something done with email. The ToDo list pattern shown above is the foundation for a lot of interesting ideas — most of which we haven’t even considered.</p><p>Getting something done requires time, and as you can see, MailBots excel at following up at the exact right moment with exactly the right information to get something done.</p><p>If you do not yet have your developer invitation, please fill out our <a href="https://rsweetland1.typeform.com/to/amsj7O">short survey</a>. To stay up to date, add your email at <a href="http://mailbots.com/">mailbots.com</a>. And if you build something cool, make sure to <a href="/service/mailto:help+mailbots@humans.fut.io">let us know</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6259ba70b9e7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mailbots/create-an-email-only-todo-app-in-under-10-minutes-6259ba70b9e7">Create An Email-Only ToDo App In Under 10 Minutes 🏎</a> was originally published in <a href="https://medium.com/mailbots">MailBots</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Platform Update: NLP, UI Improvements and API Changes]]></title>
            <link>https://medium.com/mailbots/platform-update-nlp-ui-improvements-and-api-changes-aedb1c259006?source=rss----6844adf12fd2---4</link>
            <guid isPermaLink="false">https://medium.com/p/aedb1c259006</guid>
            <dc:creator><![CDATA[Reilly Sweetland]]></dc:creator>
            <pubDate>Fri, 08 Mar 2019 01:03:55 GMT</pubDate>
            <atom:updated>2019-03-06T20:41:13.171Z</atom:updated>
            <content:encoded><![CDATA[<p>We’ve made several improvements based on the excellent feedback we received in the past few weeks.</p><p><strong>LUIS Natural Language Processing</strong><br>We recently published our <a href="https://medium.com/mailbots/the-natural-language-mailbot-d5a12fcdad14">LUIS natural language processing skill</a>, allowing any MailBot to extract entities and derive intent from natural language in email text.</p><p><strong>Sandbox: Replay Event Webhooks<br></strong>Webhooks can now be easily replayed within the Sandbox, making the development of “event-based” MailBots far easier . This comes in handy if your MailBot triggers emails based on external events (Github issues opened, weather patterns, stock prices, etc) rather than on specific times.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/0*jgnpil2-eUvnOVLW.gif" /><figcaption>Replaying an external webhook from the Sandbox</figcaption></figure><p><strong>API Updates</strong><br>We made several updates to our UI elements based on user feedback, including some breaking changes to MailBots that were made before February 10th 2019. Please <a href="/service/mailto:help+mailbots@humans.fut.io">contact us</a> if you need help upgrading your MailBots. Read the <a href="https://docs.mailbots.com/v1.0/blog/breaking-updates-json-ui-elements-addemail-is-now-sendemail">change log</a> for full details.<br>​<br><strong>Sandbox: Better Autocomplete<br></strong>Our email emulator now autocompletes email addresses, saves new addresses and automatically appends the domain to simple email commands.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/0*x-LhoYnRK7n56EQG.gif" /><figcaption>Better autocomplete means easier testing</figcaption></figure><p><strong>More Invitations Coming Soon</strong><br>Thank you very much for everyone’s feedback. If you already filled out a survey but have not received an invitation, keep an eye out! We’ll be sending out more invitations shortly.</p><p>Want to build a MailBot? Request early access by filling out our <a href="https://rsweetland1.typeform.com/to/amsj7O">developer survey</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aedb1c259006" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mailbots/platform-update-nlp-ui-improvements-and-api-changes-aedb1c259006">Platform Update: NLP, UI Improvements and API Changes</a> was originally published in <a href="https://medium.com/mailbots">MailBots</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Natural Language MailBot]]></title>
            <link>https://medium.com/mailbots/the-natural-language-mailbot-d5a12fcdad14?source=rss----6844adf12fd2---4</link>
            <guid isPermaLink="false">https://medium.com/p/d5a12fcdad14</guid>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[email]]></category>
            <dc:creator><![CDATA[Reilly Sweetland]]></dc:creator>
            <pubDate>Wed, 06 Mar 2019 18:56:53 GMT</pubDate>
            <atom:updated>2019-03-06T18:56:52.937Z</atom:updated>
            <content:encoded><![CDATA[<h4>Announcing the LUIS MailBot NLP skill</h4><p>Does a bot have to pretend like it’s human to justify the title of “bot”? We at MailBots think the answer is no, but the real answer is probably a bit more nuanced.</p><p>A piece of technology can take on a spectrum of “human likeness”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*D_wlpLYiegs-Pk04FgQ0_w.jpeg" /></figure><p>A little human likeness is good. Perfect human likeness is awesome. But somewhere in between is a bit...odd.</p><p>Uncanny androids are creepy. Uncanny bots, on the other hand, can leave us with feelings of frustration, betrayal and embarrassment — for example, when you realize a bot deliberately tricked you into thinking it was human.</p><p>So, the uncanny valley (☝️) is a challenge we decided to forego, at least for now.</p><p>MailBots have UI elements that do not try to hide their good-natured robot character. They accepts commands (<a href="https://medium.com/mailbots/introducing-mailbots-bots-for-email-41602dd145d0#d8cc">email commands</a>) and provide buttons, as any well-intentioned robot should.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*rU1WArw-R_ss8rEVGCqgIQ.gif" /><figcaption>A MailBot with buttons</figcaption></figure><p>A MailBot that <em>only</em> works with commands, buttons and HTML, however, is not living up to its full potential. A NLP-capable MailBot could do way more. For example:</p><ul><li>Automatically filter incoming emails</li><li>Provide suggested responses to support inquiries</li><li>Perform research on entities (names, locations and companies) mentioned in emails.</li><li>Determine and log email sentiment</li></ul><h4>Introducing the LUIS MailBots Skill</h4><p>Yesterday we published our <a href="https://www.npmjs.com/package/@mailbots/luis-ai">LUIS MailBot skill</a>. It is simple to use, thanks to the MailBots platform and some heavy lifting by the folks at Microsoft.</p><blockquote>Aside: What’s a skill? A <a href="https://www.npmjs.com/package/mailbots#skills">MailBot skill</a> is a collection of functions or behaviors that can be installed and shared between multiple MailBots.</blockquote><p>Our new LUIS skill provides several handy language parsing functions, as well as middleware that can decipher every MailBot request.</p><p><strong>Example Application<br></strong>To demonstrate this new skill, we created a working Amazon shopping assistant <a href="https://github.com/mailbots/example-mailbots/tree/master/nlp-luis">MailBot example</a>. It can recognize two LUIS intents: Shopping.BuyItem and Shopping.FindItem — two of several dozen pre-built LUIS knowledge domains.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/452/1*hol94f_1uJ2LrzkhYSJVrA.gif" /><figcaption>Example MailBot demo using the Sandbox email emulator</figcaption></figure><p>The complete source of this example can be found <a href="https://github.com/mailbots/example-mailbots/blob/master/nlp-luis/app.js">here</a>.</p><h4>Setting up the LUIS MailBot Skill</h4><p>Adding natural language parsing to your MailBot takes only a minute. It is really only two steps: Training your natural language model on <a href="https://luis.ai/">luis.ai</a>, then connecting your MailBot to LUIS using this new MailBot skill.</p><p>Here are the specific steps for our <a href="https://github.com/mailbots/example-mailbots/tree/master/nlp-luis">Amazon shopping assistant example</a>.</p><p><strong>LUIS Setup</strong></p><ol><li>Go to <a href="https://www.luis.ai/">Luis.ai</a> and create an account.</li><li>Under Build &gt; Intents &gt; Add prebuilt domain intent add the Shopping.FindItem and Shopping.BuyItem intents.</li><li>Under Build &gt; Entities &gt; Add prebuilt entity add the keyPhase entity</li><li>Click “Train”, then “Publish” in the top right (you must do this with each change)</li><li>Under Manage &gt; Application Settings &gt; Keys and Endpoints. Copy your Endpoint. It should look something like:<em> </em><a href="https://.api.cognitive.microsoft.com/luis/v2.0/apps/?subscription-key=&amp;q="><em>https://&lt;id&gt;.api.cognitive.microsoft.com/luis/v2.0/apps/?subscription-key=&amp;q=</em></a></li></ol><p>Note: With a few modifications you can extract places, dates, times and locations and more, but we’ll keep things simple for now.</p><p><strong>Install and configure the LUIS MailBot skill<br></strong>To connect your MailBot with LUIS, install the @mailbots/luis-ai module.</p><pre>npm install @mailbots/luis-ai</pre><p>Then require it at the top of app.js.</p><pre>const mbLuis = require(“@mailbots/luis-ai”);</pre><p>Next, let’s tell it where to access our LUIS resource.</p><pre>const mbLuis.configure({endpoint:  &#39;endpoint_from_above&#39;})</pre><p><strong>Understand Natural Language 👩‍💻→🤖<br></strong>Now that LUIS is set up we can make use of several functions to extract meaning from natural language. For example, here we are finding most likely intent when someone emails shop@your-bot.eml.bot</p><pre>mailbot.onCommand(&#39;shop&#39;, async bot =&gt; {<br>  <em>const</em> topIntent = await mbLuis.getTopIntent(bot);   <br>  bot.webhook.respond();<br> });</pre><p><strong>Key Phrases<br></strong>LUIS can also extracts key phrases — people, places, company names, times and more. In our case, it’s what the person is looking to buy.</p><pre><em>const</em> keyPhrases = await getKeyPhrases(bot);</pre><p><strong>Using Our NLP Data<br></strong>If the user’s intent is to <em>search</em> for a product, our simple shopping assistant sends them a link to an appropriate Amazon search results page. If the user’s intent is to <em>buy</em> a product, our assistant sends them to the same page with slightly different wording.</p><pre>let searchUrl =“https://www.amazon.com/s/?field-keywords=&quot; + encodeURIComponent(searchPhrases[0]);</pre><p><strong>Alternative: NLP Middleware<br></strong>Instead of explicitly calling the NLP functions as shown above, we could have used the provided middleware. This invokes LUIS on every request.</p><pre>mailbot.app.use(mbLuis.luisMiddleware({endpoint: &#39;[your endpoint]&#39;}</pre><pre>// Every handler is now LUIS enabled<br>mailbot.onCommand(&#39;shop&#39;, bot =&gt; {<br>  console.log(bot.skills.luis) // &lt;-- NLP data available here<br>});</pre><pre>mailbot.onCommand(&#39;help&#39;, bot =&gt; {  <br>  console.log(bot.skills.luis) // &lt;-- NLP data available here, too!<br>});</pre><p><strong>Extra: Developer Settings Page</strong><br>Just for demonstration (and to ease the LUIS setup process) we exposed a developer settings page with instructions for configuring Luis.ai. This can be enabled by adding this line to app.js:</p><pre>mailbot.onSettingsViewed(mbLuis.createLuisAiSettingsPage);</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*llkFcQETB-pCdb9Hq77-xQ.png" /></figure><p>If you are sharing your MailBot with others you would not keep this setting page. You could, however, make your own settings page that asks for shopping preferences, price ranges and more.</p><p><strong>Add More LUIS Intents</strong><br>Now that your MailBot and LUIS are connected, you can enable additional pre-trained knowledge domains within LUIS, tell it to extract additional key phrases (people, locations, etc) or train LUIS on your own data set.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BFo4DFx2eg8qy51y27gxcw.png" /><figcaption>LUIS has many prebuilt knowledge domains</figcaption></figure><p><strong>Where to go from here?</strong><br>Why not use the Amazon API to insert search results directly into the email response? Or allow the user to search different e-commerce sites depending on their preferences? You could also use MailBots’ time-handling features to check a product’s price every day and send an email if it reaches a low-price threshold. The MailBots LUIS natural language processing skill take care of the plumbing so you can impart human-like powers to your shopping assistant..but not too human-like, remember? 😬🤖</p><p>View the <a href="https://github.com/mailbots/example-mailbots/blob/master/mailbots/nlp-luis/app.js">complete source code here</a> and sign up for a LUIS account <a href="https://www.luis.ai/">here</a>. Fork it, clone it and create a MailBot for free.</p><p><strong>Request an Invitation</strong><br>We are still limiting the number of developers on the platform. If you do not yet have an invitation, feel free to fill out our <a href="https://rsweetland1.typeform.com/to/amsj7O">developer survey</a>. We’re looking forward to hearing your feedback!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5a12fcdad14" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mailbots/the-natural-language-mailbot-d5a12fcdad14">The Natural Language MailBot</a> was originally published in <a href="https://medium.com/mailbots">MailBots</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing MailBots: Bots For Email]]></title>
            <link>https://medium.com/mailbots/introducing-mailbots-bots-for-email-41602dd145d0?source=rss----6844adf12fd2---4</link>
            <guid isPermaLink="false">https://medium.com/p/41602dd145d0</guid>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[email]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[Reilly Sweetland]]></dc:creator>
            <pubDate>Tue, 29 Jan 2019 11:24:42 GMT</pubDate>
            <atom:updated>2019-01-30T01:24:37.320Z</atom:updated>
            <content:encoded><![CDATA[<p><em>MailBots is a platform for creating bots on top of email — only email. We are solving the unique challenges and unlocking opportunities that email-based bots present and packaging it all into an easy to use bot-building platform. Your email-based bot / personal assistant / AI is coming soon and we can’t wait to help you create it. </em>🙌🤖🚀</p><p>We are at the beginning of an era when human and computer actions are<a href="https://ai.googleblog.com/2018/05/duplex-ai-system-for-natural-conversation.html"> almost impossible to tell apart</a>. We invite AI assistants into our homes, have them drive our cars and diagnose diseases. While concerns of idle humans amidst an AI-dominated workforce occupy the news headlines, another question is more likely to occupy our day-to-day thoughts: How can I leverage technology to make myself and my team more productive?</p><p>Email is a prime target.</p><h3>Premise: Email Is Not Broken</h3><p>Email is the lowest common denominator of digital communication — not everyone likes Twitter, Facebook or SMS. But nearly everyone, love it or hate it, has an email address.</p><p>Yes, email is an imperfect tool. But it is also the lingua franca of business communication. It is decentralized and asynchronous, and its support of rich long-form content is simply better suited for certain types of jobs. Even if you disagree with all that and have vowed never to use email again, odds are that you will still be forced to because your boss uses email…or your customers…or your old friend Jerry.</p><p>Gmail, Outlook 365 and a number of new email clients recognize this inherent gravity of email and have made efforts to integrate with other tools and platforms, but they face constraints: lock-in with proprietary email clients, limited integrations and deep technical expertise requirements to integrate / modify any new or custom systems.</p><p>With MailBots, we’re approaching email productivity from another angle: bots.</p><h3><strong>A Different Kind of Bot</strong></h3><p>Now, what about all of the other bot platforms — they support email too, right? Some do, yes, but their email integration is usually an afterthought. The best bot platforms focus on their primary use-case — Slack, Facebook Messenger, Telegram and other classic “chatbot” platforms.</p><p>Some consider bots and “chatbots” synonymous. Thankfully this is not the case. Few things would be more annoying than a “chatty” email bot that incessantly clutters your inbox. A “bot” does not necessarily imply a conversational UI, instant replies or annoying levels of chattiness.</p><p>A bot created on the MailBots platform is usually a single-purpose email recipient that helps you get something done without leaving your inbox — things like entering data into a CRM, or offering a one-click link to order flowers for someone’s birthday. A MailBot doesn’t have to be chatty or even respond when you tell it to do something. A MailBot streamlines your inbox and reduces context switching by helping you get things done in one place.</p><p>Simply put, MailBots is a bot platform optimized exclusively for email, embracing all of its annoyances, challenges — and opportunities.</p><h3>Our Platform Features</h3><p>Creating a MailBot and managing it is fun and easy. Here are a few highlights:</p><p><strong>{your-bot}.eml.bot<br></strong>When setting up your bot, you can select your own email bot sub-domain. Using our pizza ordering bot as an example, this could be something like: <em>order@pizza.eml.bot. </em>Routing based on the subdomain domain allows for something special before the @ symbol: the bot command.</p><p><strong>Email Commands<br></strong>Anything before the @ symbol is an explicit command to your bot. FollowUpThen popularized the “email command” (e.g. <em>3days@followupthen.com</em>, <em>nextWeek@followupthen.com</em>, <em>952pm@followupthen.com</em> follows up in three days, next week and 9:52 p.m. respectively), but only scratched the surface. MailBots lets bot creators accept any command before the @ symbol. For example: <em>tag.customer@my-crm.eml.bot</em>, <em>wow@insert-gif.eml.bot</em>, <em>cern@wikipedia-search.eml.bot</em>. Email commands are made vastly more awesome and near-instantaneous by your email client’s autocomplete feature.</p><p><strong>Natural Language Processing<br></strong>MailBots can integrate with natural language processing systems like Luis.ai to allow for human-like interaction and understanding. Natural language intents are mapped to commands. This allows bot creators the freedom to expose a friendly personal assistant context alongside the more explicit and efficient email-command UI (that geeks like us tend to like more).</p><p><strong>Quick-Action Buttons<br></strong>MailBots offer one-click email-based buttons that issue bot actions without requiring a verbose text response or even leaving the inbox.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*TzuBG_UDfoW8FbynlSmEuw.gif" /></figure><p><strong>Perfect Timing<br></strong>Unlike a chatbot, email is usually asynchronous. A MailBot interaction may begin with a single command then days, weeks or months later, follow up at the perfect moment with the everything needed to get something done. MailBots was created specifically for these long cycle-time interactions. It even exposes a FollowUpThen’esque parser so any MailBot can accept commands like <em>remind.tues2pm@my-bot.eml.bot </em>or <em>everyFriday@order-pizza.eml.bot.</em></p><p><strong>Tasks, Not Conversations<br></strong>Chatbots have conversations. MailBots accomplish “tasks” and may, optionally, converse in reference to a task. A MailBot “task” is like an email with to-do list features such as scheduling, editing and completion status. They can store meta information about the conversation or references to an external resource (like contact in a CRM).</p><p>In the context of a traditional chatbot, a “task” is like a chatbot conversation that you can cryogenically freeze, edit and then revive days, months or years later.</p><p>Users can search, view, edit their pending (cryogenically frozen) tasks on MailBots.com.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*421NuntPJSB45PREmrUr6g.png" /></figure><p>When designing the web UI, we specifically made a point of mirroring an email client. This not only provides a consistent user experience, but also greatly reduces the effort in building a MailBot since developers only need to think about one email-based UI</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pRPJo_8Tn-74HZM2xVHRLg.gif" /></figure><p><strong>Settings<br></strong>MailBot settings are managed on MailBots.com, providing users with a consistent experience during setup and when authorizing external connections (CRM, Calendar, etc).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RdSVtsteCwQpyomAnp-0FA.gif" /></figure><p>Bot development is the subject of a future post, but here is a preview of how the above “Confirmation Emails” setting is defined:</p><pre>settings.checkbox({<br>    name: &quot;confirmation_emails&quot;,<br>    title: &quot;Confirmation Emails&quot;,<br>    description: &quot;Receive confirmation emails with each action&quot;,<br>    defaultValue: true<br>});</pre><p>Easy.</p><p><strong>Open Source Kit<br></strong>The brains and logic of your bot are yours to host and develop in any environment you would like. The bot setup process provides a working instance of our Node.js Starter kit on <a href="https://glitch.com/">Glitch</a> within a few seconds, but the libraries are available under a permissive MIT license. The core API sends and receives JSON-based webhooks, allowing for development on any platform. This allows you to keep API keys and connections private, integrate proprietary code and use familiar development tools.</p><h3>More to come…</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/302/1*MYoWCQru-4I9jdEBp2p1pg.png" /></figure><p>MailBots has been a long time coming —about a year and half now!</p><p>We would like to thank our amazing FollowUpThen users for the inspiration behind the MailBots platform. Since founding FollowUpThen in 2010, we have seen email used not only as a to-do list but also as a CRM, project management system, shopping list, personal database, motivational tool, tutor, relationship coach and more. On more than one occasion, users have thanked us for saving their jobs. And their marriages.</p><p>We never considered how much could be done with email until connecting with so many people who genuinely love to email — yes, they are out there! — and who use it in awesomely creative ways to boost their productivity.</p><p>Thank also to the core group of developers who have given us feedback so far, and to our Y Combinator advisors, batch-mates and friends for helping to shape the direction of the company.</p><p>If you would like early access to MailBots, fill out our <a href="https://rsweetland1.typeform.com/to/amsj7O">developer survey</a>. If you would rather sign up for the occasional email update, that’s great too. Just enter your email at <a href="https://www.mailbots.com/">mailbots.com</a>.</p><p>We can’t wait to see what you create!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41602dd145d0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mailbots/introducing-mailbots-bots-for-email-41602dd145d0">Introducing MailBots: Bots For Email</a> was originally published in <a href="https://medium.com/mailbots">MailBots</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>