<?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[BotHub.Studio - Medium]]></title>
        <description><![CDATA[News, tutorials about BotHub.Studio chatbot hosting service - Medium]]></description>
        <link>https://medium.com/bothub-studio?source=rss----991d182f079c---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>BotHub.Studio - Medium</title>
            <link>https://medium.com/bothub-studio?source=rss----991d182f079c---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 09:09:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/bothub-studio" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[BotHub CLI / SDK Update]]></title>
            <link>https://medium.com/bothub-studio/bothub-cli-sdk-update-de29a16d9b29?source=rss----991d182f079c---4</link>
            <guid isPermaLink="false">https://medium.com/p/de29a16d9b29</guid>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[bothub]]></category>
            <dc:creator><![CDATA[Dongho Jeong]]></dc:creator>
            <pubDate>Tue, 27 Nov 2018 08:51:52 GMT</pubDate>
            <atom:updated>2018-11-27T08:51:51.787Z</atom:updated>
            <content:encoded><![CDATA[<p>BotHub CLI 0.1.20 /SDK 0.1.30 version released with improvements</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*HBRxe4YFm6xr9u41dFkUcA.png" /></figure><p>Let’s go over the various improvements:</p><ol><li><strong>Added Dialogflow API V2 to support NLU<br>-</strong>Dialogflow API V2 is newly added.<br>- Dialogflow API V1 will be disabled officially on 23, October 2019. <br>So if make a new project with Dialogflow, please use API V2.<br>- BotHub.Studio also will stop to service API V1 on October 2019.</li><li><strong>Added environment variables<br>-</strong>If need environment variables in your project, add in .bothubenv file.<br>- It can use like this in .bothbenv file:<br>GOOGLE_APPLICATION_CREDENTIALS=./sample.json</li><li><strong>Added Ignore file to exclude unnecessary files when deploying<br>-</strong>Whendeploy, it can exclude unneeded files like.pyc.<br>- Write file pattern of the file wants to exclude in .bothubignore file.</li><li><strong>Added Git Ignore file<br>-</strong>When working with Git, .gitignore is provided as a default template so that unnecessary files in BotHub Project are not included.</li><li><strong>Added Send photo function<br>-</strong>It<strong> </strong>can send photo by calling self.send_photo(url) method.<br>- It is only available in Facebook Messenger, Telegram. Other platforms will be supported.</li><li><strong>Added Send Facebook template function<br>-</strong><a href="https://developers.facebook.com/docs/messenger-platform/send-messages/templates">https://developers.facebook.com/docs/messenger-platform/send-messages/templates</a><br>- It can send variety Facebook template:</li></ol><pre>msg = Message(event).add_template(payload)<br>self.send_message(msg)</pre><p>Our existing users need to upgrade BotHubCLI/SDK according to your version.</p><pre>$ pip install --upgrade bothub-cli or bothub</pre><p>If you have any questions, please contact <a href="/service/mailto:bothub@bothub.studio">bothub@bothub.studio</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de29a16d9b29" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bothub-studio/bothub-cli-sdk-update-de29a16d9b29">BotHub CLI / SDK Update</a> was originally published in <a href="https://medium.com/bothub-studio">BotHub.Studio</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build a LINE Chatbot in Python]]></title>
            <link>https://medium.com/bothub-studio/build-a-line-chatbot-in-python-2d78b8452d97?source=rss----991d182f079c---4</link>
            <guid isPermaLink="false">https://medium.com/p/2d78b8452d97</guid>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[bothub]]></category>
            <category><![CDATA[line]]></category>
            <category><![CDATA[chatbots]]></category>
            <dc:creator><![CDATA[Yeonho Park]]></dc:creator>
            <pubDate>Thu, 01 Nov 2018 07:46:11 GMT</pubDate>
            <atom:updated>2018-12-27T13:43:51.355Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wR4G3pJZxxGh47FiqzR_GA.png" /></figure><h3>Create LINE Bot</h3><ol><li>Log in to <a href="https://developers.line.me/en/">LINE’s developer</a> website and click ‘Add new provider’ menu</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*OK6fuSQWumjTs55axGHrwQ.jpeg" /></figure><ol><li>Click ‘Create New Provider’</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YD5GUkUT2MH3bWGKFCLyRg.jpeg" /></figure><p>2. Enter a ‘Provider name’ and click ‘Confirm’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bGjYclMyEpJ_TlJOEydUtw.jpeg" /></figure><p>3. Click ‘Create Channel’ under Messaging API</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mn-oy9JJw-OAfm7ESr7m9g.jpeg" /></figure><p>4. Enter an ‘App name’ and ‘App description’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*iN8zDLsNWd9_wmGMzaPlqA.jpeg" /></figure><p>5. Choose a ‘Plan’ and ‘Category’ , ‘Subcategory’</p><p>6. Enter your Email address and click ‘Confirm’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*EfKhNF9P1b_MpA9M_p3HFA.jpeg" /></figure><p>7. Confirm the terms of use options and click ‘Create’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*daVyVJ5QYe0hTV2TGP3Gug.jpeg" /></figure><h3>Submit LINE credentials to Bothub</h3><h4># Gather credentials</h4><ol><li>Select a created ‘Messaing API’</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*bEde5FpTqnP1Nk_YvEZ0vA.jpeg" /></figure><p>2. Click ‘Issue’ button at the ‘Channel access token’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*VqYuz2u2mSIR1gv8b9O4EQ.jpeg" /></figure><p>3. Set value to ‘0 hours’ and click ‘Issue’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*JoS6LDFVTOzaj9AKoSIKzg.jpeg" /></figure><p>4. The below information are required for configuration of your LINE Bot.</p><ul><li>Channel ID</li><li>Channel secret</li><li>Channel access token</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*vC5Az_pvLZ15tLP4PMjcxA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/675/1*T9f0j-dTvrcDNqnZbSdc2w.jpeg" /></figure><h4># Setup Hosting for Bot and submit credentials</h4><p>First, create an account on <a href="https://bothub.studio/">BotHub.Studio</a>, <em>a chatbot hosting service for developers</em>, and install CLI tool using the command below:</p><pre>$ pip install bothub-cli</pre><p>Run configure next:</p><pre>$ bothub configure</pre><p>Create a project directory:</p><pre>$ mkdir MyBot<br>$ cd MyBot<br>$ bothub init</pre><p>A template code will be generated after init finished.</p><pre>| — bothub<br>| | — bot.py<br>| ` — __init__.py<br>| — bothub.yml<br>| — requirements.txt<br>` — tests</pre><p>Now we connect with ‘LINE’ channel:</p><p>The ‘URL’ s that is result of command will be used ‘LINE’ setting page:</p><p>1) Enter command below command at the prompt.</p><pre>$ bothub channel add line --channel-id=&lt;channel id&gt; \<br>                        --channel-secret=&lt;channel secret&gt; \<br>                       --channel-access-token=&lt;channel access token&gt;</pre><p>2) Printed URL is required for LINE setting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*fE5a4kVpz5hihtZ52J2duA.png" /></figure><h3>LINE Webhook Enabling</h3><ol><li>Change to ‘Enabled’ in ‘Use webhooks’</li><li>Enter a ‘Webhook URL’ from upper result (Do not enter twice ‘https://’)</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*G2h03YDOgj1L0KQRxlWJgA.jpeg" /></figure><h3>LINE Chatbot Test</h3><ol><li>Prepare QR code in ‘Messaging API’ -&gt; ‘Channel settings’</li><li>Select a QR code at the friend add menu and add friend.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*o1V6NzwwDumrymOVZBLetg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*dNOA18o-ukj8x54Z5Wm4Mg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W_dCyoGDDCjp0ynhMKTeXg.jpeg" /></figure><p>If you do not want to use ‘Auto-reply’ or ‘Greeting’ message, <br>please disable it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TsmbftYbBCrAX54gAHbvTg.png" /></figure><p>Should you have any questions, please feel free to contact bothub@bothub.studio anytime.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d78b8452d97" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bothub-studio/build-a-line-chatbot-in-python-2d78b8452d97">Build a LINE Chatbot in Python</a> was originally published in <a href="https://medium.com/bothub-studio">BotHub.Studio</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build a Slack Chatbot in Python]]></title>
            <link>https://medium.com/bothub-studio/build-a-slack-chatbot-in-python-eadc27dea15e?source=rss----991d182f079c---4</link>
            <guid isPermaLink="false">https://medium.com/p/eadc27dea15e</guid>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[bothub]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[slack]]></category>
            <dc:creator><![CDATA[Yeonho Park]]></dc:creator>
            <pubDate>Tue, 11 Sep 2018 10:35:11 GMT</pubDate>
            <atom:updated>2018-09-14T04:31:21.109Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*cyzkvCRTF_XgWfWORQVRDA.png" /></figure><h3>Creating a Slack Bot</h3><h4>1. Create a Slack App for your bot</h4><p>To create a new Bot, click the ‘Create New App’ button</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*2InZ_A0vwK6yNkmqYylVCw.png" /></figure><p>1) Enter an ‘App Name’ and select a ‘Development Slack Team’.</p><p>2)Click the ‘Create App’ button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*Pk7ZyjoIirq1vhVtVy0AQw.png" /></figure><h3>2. Create a Slack Bot User</h3><p>Adding a Bot User to created Slack App</p><p>1) Select ‘Bot Users’ tab.</p><p>2) Click the ‘Add a Bot User’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*sAuvjWzoZEau7ZEhHom15A.png" /></figure><p>3) Enable ‘Always Show My Bot as Online’</p><p>4) Click the ‘Add a Bot User’ to complete.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*lNdFOCc9peGUKavpgjbI9Q.png" /></figure><h3>3. Submit Slack credentials to Bothub</h3><h4># Gather credentials</h4><p>1) Select ‘Basic Information’ tab.</p><p>2) The ‘Client ID’, ‘Client Secret’ and ‘Signing Secret’ are required for configuration of your Slack Bot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*LPE4qBrecHtpi_ViHpOmfQ.png" /></figure><h4># Setup Hosting for Bot and submit credentials</h4><p>First, create an account on <a href="https://bothub.studio/">BotHub.Studio</a>, <em>a chatbot hosting service for developers</em>, and install CLI tool using the command below:</p><pre>$ pip install bothub-cli</pre><p>Run configure next:</p><pre>$ bothub configure</pre><p>Create a project directory:</p><p>A template code will be generated after init finished.</p><pre>$ mkdir MyBot<br>$ cd MyBot<br>$ bothub init</pre><p>Now we connect with ‘Slack’ channel:</p><p>The ‘URL’ s that is result of command will be used ‘Slack’ setting page:</p><p>1) Enter command below command at the prompt.</p><pre>bothub channel add slack --client-id=&lt;client id&gt; \<br>                         --client-secret=&lt;client secret&gt; \<br>                         --signing-secret=&lt;signing secret&gt;</pre><p>2) Paste your Slack credentials from the Slack ‘Basic Information’ webpage.</p><p>3) Printed URLs are required for Slack setting.</p><ul><li>Event Subscriptions URL</li><li>Interactivity URL</li><li>Redirect URL</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/913/1*6MRBUQM7nXBA6_wKKDmZeg.png" /></figure><h3>4. Slack Setup</h3><h4># OAuth setup</h4><p>1) Select the ‘OAuth &amp; Permissions’ tab.</p><p>2) Click ‘Add New Redirect URL’</p><p>3) Copy the ‘Redirect URL’ from ‘Bothub’ command output and paste to ‘Redirect URLs’</p><p>4) Click ‘Add’ and ‘Save URLs’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/1*fk1lDCRTlrI-vj8LzDdS2A.png" /></figure><h4># Event Subscriptions setup</h4><p>1) Select the ‘Event Subscriptions’ tab.</p><p>2) Click ‘Enable Events’ to On.</p><p>3) Copy the ‘Event subscriptions URL’ from ‘Bothub’ command output and paste to ‘Request URL’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*ifdY2gVC5dv97HQ6dvWSQQ.png" /></figure><p>4) Click ‘Add Bot User Event’ under the ‘Subscribe to Bot Events’</p><ul><li>message.im</li><li>message.groups</li><li>message.channels</li><li>im_created</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/1*oJSjDz5CITt-SlIiUbJoXQ.png" /></figure><p>5) Click the ‘Save Changes’</p><h4># Interactive Components setup</h4><p>1) Select the ‘Interactive Components’ tab and enable ‘Interactivity’</p><p>2) Copy the ‘Interactivity URL’ from ‘Bothub’ command output and paste to ‘Request URL’</p><p>3) Click the ‘Save Changes’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*eiL38H81j4n8YhNVLq7ssA.png" /></figure><h3>5. Add Slack Bot to a Team</h3><p>1) Select ‘Manage Distribution’ tab.</p><p>2) Click the ‘Add to Slack’ button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*bf8_s632bP7O-cZiaIVk1Q.png" /></figure><p>3) Click ‘Authorize’ button then Slack App will be installed in team.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*bf8_s632bP7O-cZiaIVk1Q.png" /></figure><h3>6. Slack Bot Test</h3><p>You can find installed Slack Bot at the your Workspace and you can communicate with Bot by inviting Bot to channel or selecting a Bot.</p><p>(If you want to install Bot at other Workspace, you should activate public distribution through ‘Share Your App with Other Workspaces’)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*8_US_Cq_7H9eiZ0VgRWT0g.png" /></figure><p>Should you have any questions, please feel free to contact bothub@bothub.studio anytime.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eadc27dea15e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bothub-studio/build-a-slack-chatbot-in-python-eadc27dea15e">Build a Slack Chatbot in Python</a> was originally published in <a href="https://medium.com/bothub-studio">BotHub.Studio</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build a KakaoTalk Chatbot in Python]]></title>
            <link>https://medium.com/bothub-studio/build-a-kakaotalk-chatbot-in-python-c3b49b58e307?source=rss----991d182f079c---4</link>
            <guid isPermaLink="false">https://medium.com/p/c3b49b58e307</guid>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[bothub]]></category>
            <category><![CDATA[deepnatural]]></category>
            <category><![CDATA[kakao]]></category>
            <dc:creator><![CDATA[Yeonho Park]]></dc:creator>
            <pubDate>Tue, 11 Sep 2018 10:33:39 GMT</pubDate>
            <atom:updated>2019-05-28T03:17:56.786Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*yJCtKgPdIk5lcEPkxBf86Q.png" /></figure><p><strong>The Kakao Plus Friend service will be shutdown by Kakao service policy.</strong></p><h3>Setup Hosting for Bot</h3><p>First, create an account on <a href="https://bothub.studio/">BotHub.Studio</a>, <em>a chatbot hosting service for developers</em>, and install CLI tool using the command below:</p><pre>$ pip install bothub-cli</pre><p>Run configure next:</p><pre>$ bothub configure</pre><p>Create a project directory:</p><p>A template code will be generated after init finished.</p><pre>$ mkdir MyBot<br>$ cd MyBot<br>$ bothub init</pre><p>Now we connect with ‘KakaoTalk’ channel:</p><pre>$ bothub channel add kakao</pre><p>The ‘URL’ that is result of command will be used ‘KakaoTalk’ setting page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*6I6ic4ANCWvJXewyrR2vUQ.png" /></figure><p>And deploy the project to server:</p><pre>$ bothub deploy</pre><h3>Creating a KakaoTalk Plus Friend Bot</h3><h4>1. Connect to <a href="https://center-pf.kakao.com/login">‘KakaoTalk Plus Friend’ </a>webpage:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DUCzboe0cpCraGCeLbBp3w.png" /></figure><h4>2. Log-in with Kakao ID/Password:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sQX9fumiIG2XhfIMalBiZA.png" /></figure><h4>3. Create ‘Plus Friend’:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*PNeoNr9VKeulkfbE9TjkTA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*17GccBQIXLBRB0spkzap9A.png" /></figure><h4>4. Change ‘KakaoTalk Plus Friend’ to public:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O160JX6JkRCmWhtZiWMw-Q.png" /></figure><h4>5. Create ‘KakaoTalk SmartChatting’ App:</h4><p>1) Select the ‘SmartChatting’ tab.</p><p>2) Click ‘API 형’ menu<br>(If you make a new one, you can not find ‘API 형&#39; button because Kakao ready to shutdown old chatbot.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q53mzIAmIOty-__UylMDqg.jpeg" /></figure><p>3) Input App Name and App Description as you want</p><p>4) Paste URL from ‘BotHub.Studio’ channel connection result to App URL</p><p>5) Enter the information of chatbot at ‘앱 설명&#39;</p><p>6) Test a webhook working to push ‘API테스트&#39; button.</p><p>7) 8) 9) Check the personal information agreement and register phone number</p><p>10) Enable ‘API형 사용&#39;</p><p>11) Click the save button ‘API형 저장하기&#39;</p><p>6. ‘KakaoTalk SmartChatting’ App Test</p><p>Let’s try to test with ‘KakaoTalk SmartChatting’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hiPVLbDoBCn91WoiusjhAA.png" /></figure><p>You can find a app by searching registered ‘App Name’ at the ‘Chatting’ tab and communicate with Bot.</p><p>Should you have any questions, please feel free to contact bothub@bothub.studio anytime.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c3b49b58e307" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bothub-studio/build-a-kakaotalk-chatbot-in-python-c3b49b58e307">Build a KakaoTalk Chatbot in Python</a> was originally published in <a href="https://medium.com/bothub-studio">BotHub.Studio</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build a Bitcoin Price bot]]></title>
            <link>https://medium.com/bothub-studio/build-a-bitcoin-price-bot-4ace18839369?source=rss----991d182f079c---4</link>
            <guid isPermaLink="false">https://medium.com/p/4ace18839369</guid>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[messenger-bots]]></category>
            <dc:creator><![CDATA[Minkang Heo]]></dc:creator>
            <pubDate>Wed, 13 Sep 2017 00:59:11 GMT</pubDate>
            <atom:updated>2017-09-13T00:59:11.380Z</atom:updated>
            <content:encoded><![CDATA[<p>Build a Bitcoin Price bot</p><p>The cryptocurrency market is exploding. Bitcoin, Ethereum, and many other alternative coins have attracted a lot of hype as their value skyrocketed in recent years.</p><p>Market trade 24 hours a day, seven days a week and there are many cryptocurrency trading platforms.</p><p>This tutorial will show you how to build a simple chatbot to get current cryptocurrency price using trading platform APIs. Let’s get started.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yjYqdl5ffaTiwyaqIWkijA.jpeg" /><figcaption>Source: pixabya</figcaption></figure><ol><li>Requirements</li></ol><ul><li>Sign up <a href="https://bothub.studio/?utm_source=medium&amp;utm_medium=display&amp;utm_campaign=bitfinex">BotHub.Studio</a> account</li><li>Install SDK and CLI tool of BotHub.Studio</li><li>Create FB Messenger Bot</li></ul><p>If you’re new to develop chatbot using <a href="https://bothub.studio/?utm_source=medium&amp;utm_medium=display&amp;utm_campaign=bitfinex">Bothub.Studio</a>, we suggest you take a look at our following tutorial first.</p><p><a href="https://medium.com/bothub-studio/build-a-facebook-chatbot-in-python-3b6c7a671c6c">Build a Facebook Chatbot in Python</a></p><p>2. Implement API</p><p>We’re going to use Bitfinex API to check the current status of Bitcoin, Ethereum.</p><p>You can use Bitfinex’s Public APIs for checking the current status of the market without authentication. If you want to build a chatbot that can place exchange orders, you’ll need Bitfinex’s User APIs after signing up.</p><p>This tutorial only covers getting up to date cryptocurrency price index, so we’ll use only Bitfinex’s public APIs.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/527ad2ba3a274a1cea368c5a7e103e2f/href">https://medium.com/media/527ad2ba3a274a1cea368c5a7e103e2f/href</a></iframe><p>3. Create Chatbot</p><p>Let’s get the current price information for Bitcoin(BTC), Ethereum(ETH), Ripple(XRP). Given that there are only three options to choose, providing menu would be good enough then the conversational user interface.</p><p>FB Messenger provides a feature named ‘Quick Reply’ which appears prominently at any time while the menu is hidden.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*-AGAox5n0eTRKOrFghZ2ig.png" /><figcaption>Source: Facebook Developers</figcaption></figure><p>We’ll use this feature to help users could choose the currency easily without typing it.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/29bbbbc4dafb131507b9dce231f602e2/href">https://medium.com/media/29bbbbc4dafb131507b9dce231f602e2/href</a></iframe><p>Here’s what FB Messenger looks like following this tutorial.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*fi_DXhsVS4pkxfvEwQiIHg.png" /></figure><p>Do you want to build your own chatbot using Bitfinex’s APIs beyond just checking the current price? Get started now with BotHub.Studio.</p><p>4. Reference</p><ul><li><a href="https://docs.bitfinex.com/v1/reference#rest-public-ticker">BITFINEX API</a></li><li><a href="https://bothub.studio/docs?utm_source=medium&amp;utm_medium=display&amp;utm_campaign=bitfinex">BotHub API Reference</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ace18839369" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bothub-studio/build-a-bitcoin-price-bot-4ace18839369">Build a Bitcoin Price bot</a> was originally published in <a href="https://medium.com/bothub-studio">BotHub.Studio</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Make a chatbot — Manage AWS Servers]]></title>
            <link>https://medium.com/bothub-studio/make-a-chatbot-manage-aws-servers-860a6cea7d55?source=rss----991d182f079c---4</link>
            <guid isPermaLink="false">https://medium.com/p/860a6cea7d55</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[bothub]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[tutorial]]></category>
            <dc:creator><![CDATA[Jeongsoo Park]]></dc:creator>
            <pubDate>Sun, 10 Sep 2017 08:17:58 GMT</pubDate>
            <atom:updated>2017-09-10T08:17:58.142Z</atom:updated>
            <content:encoded><![CDATA[<h4>Start a simple ChatOps for AWS OpsWorks with Telegram Chatbot</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-lDXKn5ZatdahCOIqMuRGw.png" /><figcaption><a href="https://aws.amazon.com/opsworks">AWS OpsWorks</a></figcaption></figure><p><a href="https://bothub.studio/?utm_source=medium&amp;utm_medium=display&amp;utm_campaign=opsworks">BotHub.Studio</a> uses OpsWorks which is an AWS flavored Chef for server management. We can add or remove an instance for layers, deploy new codes of Git repository to servers.</p><p>When we adopted OpsWorks first, we use it through AWS web dashboard, but it was too cumbersome to log in, navigate along with lots of clicks. So we made a simple CLI script for frequent tasks such like add or remove an instance. But it also has a downside when moving across laptop and desktop, or a colleague wants to access. So we made a chatbot that helps such tasks.</p><h3>Requirements</h3><p>Let me see what the chatbot should let users do:</p><ul><li>Store access credentials to request API call to OpsWorks</li><li>Choose a stack to manage</li><li>Get layer list</li><li>Inform instance status in a layer</li><li>Execute a deployment command</li></ul><p>Although more features can be added, I’ll narrow and focus to features above in this article.</p><h3>Implementation</h3><p>I’m going to use Telegram in this article. Please read an article below to know how to create a new Telegram chatbot, install an SDK and CLI tool of BotHub.Studio.</p><p><a href="https://medium.com/bothub-studio/start-chatops-with-telegram-chatbot-2ba85762bc0b">Start ChatOps with Telegram Chatbot</a></p><p>Slack can be another option if your company already uses it. BotHub.Studio will support Slack soon.</p><h4>Credentials</h4><p>First of all, our chatbot needs an access credential enables API request to OpsWorks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*ivZqH_gDeGOfIHlu1g3j7Q.png" /><figcaption>On-boarding and get credentials</figcaption></figure><p>Credentials consist of access token and secret access token. BotHub.Studio SDK have a useful feature helps construct an intent made of several entities.</p><p>Add an intents entry to bothub.yml, which had made when you created a project.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f9d2e1053673451d6447aa3144957d8a/href">https://medium.com/media/f9d2e1053673451d6447aa3144957d8a/href</a></iframe><p>You can add several intent entires under intents entry. An intent key in this file will be used as an argument name in bot.py code. We added an intent with a name credentials. Each intent has a slots, on_complete entry. (and on_complete can be omitted, and set_&lt;intent_name&gt; will be used for its name.) slots is a list of slots which consists of a slot ID and a question to ask.</p><p>Now when a user enters a /intent credentials command, chatbot asks a question of each slot step by step and keep its answers. on_complete functions will be executed when got all slot answers. Slot IDs defined at bothub.yml are function arguments name.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6323ccad2435d806b5553a66db4e0f6b/href">https://medium.com/media/6323ccad2435d806b5553a66db4e0f6b/href</a></iframe><p>A user enters credentials and stores it in user storage with a key credentials.</p><p>When a user talks to our chatbot first time, it explains about itself, ask credentials to the user.</p><p>Telegram gives chatbot /start message when a conversation begins. So I implemented on_start methodto handle it. on_help method explains about commands supported.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/648a15d090061f81fae467bcb7536e4f/href">https://medium.com/media/648a15d090061f81fae467bcb7536e4f/href</a></iframe><h4>Get a Stack list and choose a Stack</h4><p>Now, let’s get OpsWorks stack list an account has. Select one stack among them, then it will be used to get layer list, to deploy new codes to instances.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/1*sduJtjF7P0-WCK2q5ZKZyQ.png" /><figcaption>Choose a stack</figcaption></figure><p>We will use boto3 library to access OpsWorks. Add boto3 to requirements.txt file which is created in root directory when creating a new project.</p><pre>bothub<br>boto3</pre><p>I added two methods to manage stack and one utility method like below.</p><p>get_boto_client method creates and returns boto3 client object using credentials we input before.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/00cae1d289164f4d4f809aa5bc9dc2f6/href">https://medium.com/media/00cae1d289164f4d4f809aa5bc9dc2f6/href</a></iframe><p>/stack command returns a stack list the account has. Get stack list using boto3, put the result into a Message object and send to a messaging channel.</p><p>Show each stack as a button to response with ease, run stack select command (/use_stack) when clicked.</p><p>/use_stack command stores a selected stack ID to user storage and tells about commands user can use.</p><h4>Get a list and inspect a Layer</h4><p>Now, let’s show a layer list for a stack and instance list, status for each layer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/1*uTUgr8_kFO5rGUpDV4B7jQ.png" /><figcaption>Layer list and instance status</figcaption></figure><p>The repeated pattern continues:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e3ef9b1c2494a5dce789d09854dc8ffc/href">https://medium.com/media/e3ef9b1c2494a5dce789d09854dc8ffc/href</a></iframe><p>/layers command shows layer list, layer name as a button and send /layer &lt;layer_id&gt; when clicking the button. /layer command prints an instance list and status of each instance of the layer.</p><h4>Deployment</h4><p>Now we will send a deployment command to a stack. We cover only deploy and update_custom_cookbooks commands here among Opsworks commands.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/1*4QPL3X1uyr0CVC9bdpob3w.png" /><figcaption>Execute a deployment</figcaption></figure><p>As same with before, when a button clicked, the user send a command to the chatbot, chatbot sends a request to OpsWorks using boto3 and show the result with text and buttons.</p><p>When a user clicks Deploy button, chatbot shows apps of the stack and the user chooses an app, then chatbot shows deployment command list, the user chooses a command, chatbot starts a deployment.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/60aa489e563c7cb1699dd40a91bc83b4/href">https://medium.com/media/60aa489e563c7cb1699dd40a91bc83b4/href</a></iframe><p>I used a small trick to use an abbreviation for command argument in on_deploy_app() method to reduce a payload. Telegram limits payload of InlineKeyboardButton to 64bytes maximum.</p><p>You can find a complete code at <a href="https://github.com/toracle/opsworksbot/tree/tutorial">GitHub repository</a>.</p><h3>Conclusion</h3><p>Chatbot in the aspect of ChatOps is similar to a CLI tool based on terminal but different because you can access it from anywhere you can use a messenger.</p><p>We explored a simple usage here, but you can add more useful features for server management like to monitor server status, add an instance, change values for auto-scaling. You can also bind it to AWS CloudWatch to get notified when a situation occurs.</p><p>Register to <a href="https://bothub.studio/?utm_source=medium&amp;utm_medium=display&amp;utm_campaign=opsworks">BotHub.Studio</a> and make your chatbot for free now.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=860a6cea7d55" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bothub-studio/make-a-chatbot-manage-aws-servers-860a6cea7d55">Make a chatbot — Manage AWS Servers</a> was originally published in <a href="https://medium.com/bothub-studio">BotHub.Studio</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build a Facebook Chatbot in Python]]></title>
            <link>https://medium.com/bothub-studio/build-a-facebook-chatbot-in-python-3b6c7a671c6c?source=rss----991d182f079c---4</link>
            <guid isPermaLink="false">https://medium.com/p/3b6c7a671c6c</guid>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[facebook]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[bothub]]></category>
            <category><![CDATA[chatbots]]></category>
            <dc:creator><![CDATA[Jeongsoo Park]]></dc:creator>
            <pubDate>Tue, 15 Aug 2017 08:02:19 GMT</pubDate>
            <atom:updated>2017-08-22T12:17:03.609Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/634/0*0vh2Y4gDAhPvHbKq." /></figure><p>Nowadays there are many articles like ‘<em>build a chatbot without any code</em>’. But somebody still feels comfortable with codes. I’ll tell you here about to build a Facebook Messenger chatbot rapidly with <a href="https://bothub.studio/?utm_source=medium&amp;utm_medium=display&amp;utm_campaign=python-facebook">BotHub.Studio</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*DpNgS0MjivDqQq_ONCiEjg.png" /></figure><h3>Creating a Facebook Messenger Bot</h3><p><em>(You need to have a Facebook page to link a Facebook Messenger chatbot .)</em></p><p>Let’s create an app. Move to <a href="https://developers.facebook.com/">Facebook developer site</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*4RGBpW-060MtNEiJPOE-FQ.png" /></figure><p>Create a new app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*5GctJ9WVTGShrszjH2Anrg.png" /></figure><p>Enter a bot name and contact email.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*2uuzTnEOA2y29fvTKUE03Q.png" /></figure><p>Now you can see a dashboard like below. You can find an <em>App ID</em> and <em>App Secret Code</em> here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*DQqu4mwWqfx4KvUII2Pc7w.png" /></figure><p>Add a product to the app. Click Set Up button in Messenger section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*d4jtEHbHyMNPJGwN5L_Acg.png" /></figure><p>Link it to your Facebook page. Then you can find a <em>Page Access Token</em> there.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*NnNL2hXspkLLEyxQ5exwxg.png" /></figure><p>Note three entries below to deploy your chatbot to hosting service later.</p><ol><li><em>App ID</em></li><li><em>App Secret Code</em></li><li><em>Page Access Token</em></li></ol><h3>Setup Hosting for Bot</h3><p>First, create an account on <a href="https://bothub.studio/?utm_source=medium&amp;utm_medium=display&amp;utm_campaign=python-facebook">BotHub.Studio</a>, <em>a chatbot hosting service for developers</em>, and install CLI tool using the command below:</p><pre>$ pip install bothub-cli</pre><p>Run configure next:</p><pre>$ bothub configure</pre><p>Create a project directory:</p><pre>$ mkdir MyBot<br>$ cd MyBot<br>$ bothub init</pre><p>A template code will be generated after init finished:</p><pre>|-- bothub<br>|   |-- bot.py<br>|   `-- __init__.py<br>|-- bothub.yml<br>|-- requirements.txt<br>`-- tests</pre><p>Primary template code, specifically bot.py contains an <em>echo bot</em> code which mimics a user message.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/929cbfc61979f1bf400fb9d41456194b/href">https://medium.com/media/929cbfc61979f1bf400fb9d41456194b/href</a></iframe><p>Now we use the facebook credentials you note:</p><pre>$ bothub channel add facebook --page-access-token=&lt;token&gt; \<br>                              --app-secret=&lt;secret&gt; \<br>                              --app-id=&lt;id&gt;</pre><p>And deploy the project to server:</p><pre>$ bothub deploy</pre><p>Send a message to your chatbot and see it works well. Search your Facebook page name on Facebook Messenger, then you can talk to your chatbot.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b6c7a671c6c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bothub-studio/build-a-facebook-chatbot-in-python-3b6c7a671c6c">Build a Facebook Chatbot in Python</a> was originally published in <a href="https://medium.com/bothub-studio">BotHub.Studio</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Start ChatOps with Telegram Chatbot]]></title>
            <link>https://medium.com/bothub-studio/start-chatops-with-telegram-chatbot-2ba85762bc0b?source=rss----991d182f079c---4</link>
            <guid isPermaLink="false">https://medium.com/p/2ba85762bc0b</guid>
            <category><![CDATA[digitalocean]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[telegram]]></category>
            <category><![CDATA[chatbots]]></category>
            <dc:creator><![CDATA[Jeongsoo Park]]></dc:creator>
            <pubDate>Wed, 02 Aug 2017 12:40:21 GMT</pubDate>
            <atom:updated>2017-08-22T13:49:14.138Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*xiMSSVwFXqo4pZzb1UfEUQ.png" /></figure><p>I’m going to build a ChatOps which manages DigitalOcean Droplets using DigitalOcean API. We’ll utilize a property feature of BotHub.Studio and Telegram keyboard. Extend it yourself to fit your own needs.</p><p>We will use python as a language and Telegram as a messenger platform and use a BotHub.Studio for host and run the code.</p><p>If you have no experience to build any chatbot before, I recommend reading <a href="https://medium.com/bothub-studio/build-a-telegram-chatbot-with-python-2dafd6c033bd"><em>Build a Telegram Chatbot with Python</em></a> first.</p><p><a href="https://medium.com/bothub-studio/build-a-telegram-chatbot-with-python-2dafd6c033bd">Build a Telegram Chatbot in Python</a></p><h3>Preparation</h3><h4>Digital Ocean</h4><p>We need to generate an access token of Digital Ocean account. Login to DigitalOcean, go to API menu and click <em>Generate New Token</em>. Keep the access token to use later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zo9gbFwb-EqVC8X4URJH7Q.png" /></figure><h4>Telegram</h4><p>Find @BotFather in telegram search box. Or you can meet him with <a href="https://t.me/BotFather">https://t.me/BotFather</a> link.</p><p>Create a new bot by telling him /newbot command. Keep the access token he gave you to use later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/494/1*WlrqqT-XK9-u3GUQeDE8_w.png" /></figure><h4>BotHub.Studio</h4><p>Create an account on BotHub.Studio which is a chatbot hosting service, and install CLI tool using the command below:</p><pre>$ pip install bothub-cli</pre><p>Run configure to connect to the service:</p><pre>$ bothub configure</pre><p>Create a project directory:</p><pre>$ mkdir DigitalOceanBot<br>$ cd DigitalOceanBot<br>$ bothub init</pre><p>A template code will be generated after init finished:</p><pre>|-- bothub<br>|   |-- bot.py<br>|   `-- __init__.py<br>|-- bothub.yml<br>|-- requirements.txt<br>`-- tests</pre><p>Connect a Telegram channel to the project:</p><pre>$ bothub channel add telegram --api-key=&lt;api-key&gt;</pre><p>The template project is an echo bot so you can check it works without any modification. Test whether your chatbot works by deploying it:</p><pre>$ bothub deploy</pre><h3>Make it works with DigitalOcean</h3><p>Create a bothub/doapi.py in the project directory and write a class below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/984220c0a1c54918d4e31d7ff92d375a/href">https://medium.com/media/984220c0a1c54918d4e31d7ff92d375a/href</a></iframe><p>You can create, get a list, delete a droplet with DigitalOcean API. For convenience, I limited options to name, region, image, and size will only be 512mb.</p><h3>Connect to Chatbot</h3><h4>Define Image, Region</h4><p>Store some information for droplet creation to property.</p><pre>$ bothub property set image [&quot;14-04-x64&quot;,&quot;16-04-2-x64&quot;,&quot;16-10-x64&quot;,&quot;17-04-x64&quot;]<br>$ bothub property set region [&quot;nyc1&quot;,&quot;nyc3&quot;,&quot;sfo1&quot;,&quot;sfo2&quot;,&quot;sgp1&quot;]</pre><h4>Register DigitalOcean access token</h4><p>Telegram chatbot conversation starts with /start message. We’ll ask to input access token when we get the message. Open bothub/bot.py and write Bot.handle_message method.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3f633e81c60b2708cddf103a86a92d75/href">https://medium.com/media/3f633e81c60b2708cddf103a86a92d75/href</a></iframe><p>‘Create Droplet’ and ‘List all Droplets’ menu will show on Telegram keyboard when the access token is confirmed.</p><h4>Creating Droplet</h4><p>Now we’ll create a droplet. (I omitted some part of the previous code for clear understanding. Attach below code to it.)</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2aff7cb991afbeb7e0e6211e288eb613/href">https://medium.com/media/2aff7cb991afbeb7e0e6211e288eb613/href</a></iframe><h4>Retrieve Droplet List / Delete a Droplet</h4><p>Add below to get Droplet list.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0ea3948f3678417778fb0dfa4c96f376/href">https://medium.com/media/0ea3948f3678417778fb0dfa4c96f376/href</a></iframe><p>You can get the complete code on <a href="https://github.com/MKtalk/DigitalOceanBot">Github repository</a>. And you can find a working chatbot with the code above on Telegram with username @Digital_Ocean_Bot, or <a href="https://t.me/Digital_Ocean_Bot">https://t.me/Digital_Ocean_Bot</a>.</p><h4>References</h4><ul><li><a href="https://developers.digitalocean.com/documentation/v2/">DigitalOcean API</a></li><li><a href="https://bothub.studio/docs?utm_source=medium&amp;utm_medium=display&amp;utm_campaign=telegram-digitalocean">BotHub API Reference</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ba85762bc0b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bothub-studio/start-chatops-with-telegram-chatbot-2ba85762bc0b">Start ChatOps with Telegram Chatbot</a> was originally published in <a href="https://medium.com/bothub-studio">BotHub.Studio</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build a Telegram Chatbot in Python]]></title>
            <link>https://medium.com/bothub-studio/build-a-telegram-chatbot-with-python-2dafd6c033bd?source=rss----991d182f079c---4</link>
            <guid isPermaLink="false">https://medium.com/p/2dafd6c033bd</guid>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[bothub]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[telegram]]></category>
            <dc:creator><![CDATA[Jeongsoo Park]]></dc:creator>
            <pubDate>Wed, 02 Aug 2017 03:28:03 GMT</pubDate>
            <atom:updated>2017-08-22T12:10:18.579Z</atom:updated>
            <content:encoded><![CDATA[<p>Nowadays there are many articles like ‘<em>build a chatbot without any code</em>’. But somebody still feels comfortable with codes. I’ll tell you here about to build a chatbot rapidly with <a href="https://bothub.studio/?utm_source=medium&amp;utm_medium=display&amp;utm_campaign=python-telegram">BotHub.Studio</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*DpNgS0MjivDqQq_ONCiEjg.png" /></figure><h3>Creating a Telegram Bot</h3><p>Search @BotFather in telegram search box. Or use <a href="https://t.me/BotFather">https://t.me/BotFather</a> directly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4xnNQlxFlF24xwGSZByZMA.png" /><figcaption>I’m the BotFather</figcaption></figure><p>Create a new bot by telling him /newbot command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/494/1*WlrqqT-XK9-u3GUQeDE8_w.png" /></figure><p>username should not be duplicated. Give it a creative and unique name. Keep the access token BotFather gave you to use later.</p><h3>Connect to Chatbot</h3><p>First, create an account on <a href="https://bothub.studio/?utm_source=medium&amp;utm_medium=display&amp;utm_campaign=python-telegram">BotHub.Studio</a> which is a chatbot hosting service, and install CLI tool using the command below:</p><pre>$ pip install bothub-cli</pre><p>Run configure next:</p><pre>$ bothub configure</pre><p>Create a project directory:</p><pre>$ mkdir MyBot<br>$ cd MyBot<br>$ bothub init</pre><p>A template code will be generated after init finished:</p><pre>|-- bothub<br>|   |-- bot.py<br>|   `-- __init__.py<br>|-- bothub.yml<br>|-- requirements.txt<br>`-- tests</pre><p>Primary template code, specifically bot.py contains an <em>echo bot</em> code which mimics a user message.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/929cbfc61979f1bf400fb9d41456194b/href">https://medium.com/media/929cbfc61979f1bf400fb9d41456194b/href</a></iframe><p>Now we use the telegram access token BotFather gave:</p><pre>$ bothub channel add telegram — api-key=&lt;api-key&gt;</pre><p>And deploy the project to server:</p><pre>$ bothub deploy</pre><p>Send a message to your chatbot and see it works well.</p><p>You can find your chatbot by searching @username in telegram search box or html link to https://t.me/&lt;username&gt;.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2dafd6c033bd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bothub-studio/build-a-telegram-chatbot-with-python-2dafd6c033bd">Build a Telegram Chatbot in Python</a> was originally published in <a href="https://medium.com/bothub-studio">BotHub.Studio</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>