<?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 SkipFlag on Medium]]></title>
        <description><![CDATA[Stories by SkipFlag on Medium]]></description>
        <link>https://medium.com/@SkipFlag?source=rss-33edafa10f3d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*NER3x_jv_vVXBf085hBZwA.png</url>
            <title>Stories by SkipFlag on Medium</title>
            <link>https://medium.com/@SkipFlag?source=rss-33edafa10f3d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 13:05:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@SkipFlag/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[Foodbot: AI for lunch]]></title>
            <link>https://medium.com/@SkipFlag/foodbot-ai-for-lunch-1122b2916ca4?source=rss-33edafa10f3d------2</link>
            <guid isPermaLink="false">https://medium.com/p/1122b2916ca4</guid>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[slack]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[SkipFlag]]></dc:creator>
            <pubDate>Fri, 10 Apr 2015 16:50:05 GMT</pubDate>
            <atom:updated>2016-10-16T07:26:23.241Z</atom:updated>
            <content:encoded><![CDATA[<h3>[Hack] Foodbot: AI for lunch</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/0*t_T3bTH1N8nEp4TM.png" /></figure><p>Sick of being a meal planner for your startup? The inconvenience of collecting everyone’s choices. The inevitable indecision. The later consternation in figuring out who ordered what. Well, I was too. So, I thought: can we automate lunch? [1]</p><p>At <a href="http://skipflag.com/">SkipFlag</a>, we use <a href="http://slack.com/">Slack</a> for communication and coordination. We’re also pretty religious about <a href="http://sprig.com/">Sprig</a>, a food delivery startup that provides healthy, tasty meals to the office. I just had to connect the two.</p><p>And that’s how <em>Foodbot</em> was born.</p><p>The system works via a scatter/gather. First, Foodbot direct messages each team member on Slack presenting today’s Sprig menu and getting their selection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/0*LOxqz7EPDrPlrVVQ.png" /><figcaption><em>Foodbot direct messages the menu for the day and collects responses</em></figcaption></figure><p>Unfortunately, Sprig doesn’t have a public API, so I set up a proxy and reverse-engineered the internal APIs its mobile app was using (see <a href="http://timrogers.uk/2014/07/12/discovering-private-apis-with-charles-app/">this</a> post for an example of how to do this). I then wrote a little bot in Python using Slack’s <a href="https://api.slack.com/rtm">real time messaging API</a>.</p><p>The bot fires up every day around lunchtime. Each person gets up to 20 minutes to enter their selection with the bot sending progressively more reminders until the timeout. Those working from home that day or with other plans can opt out with a “no” reply.</p><p>Foodbot collates responses, outputs the results to a channel, and automatically places the order with Sprig. It also stores the menu and selections for later analytics, which should make for some fun.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/0*sykj2IJY21dvhzuO.png" /><figcaption><em>Foodbot gathers responses and submits the order</em></figcaption></figure><p>I’m happy to say that Foodbot has been successfully handling lunch at SkipFlag for the past month. Best of all, now I don’t mess up the order anymore. Huzzah!</p><p>[1] We’re too small for those “food delivery for teams” startups as they have a minimum of 15 people.</p><p><em>Originally published at </em><a href="http://blog.skipflag.com/post/115410165746/foodbot-ai-for-lunch"><em>blog.skipflag.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1122b2916ca4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>