<?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 Rajesh J Nair on Medium]]></title>
        <description><![CDATA[Stories by Rajesh J Nair on Medium]]></description>
        <link>https://medium.com/@rajeshjnair?source=rss-ae625984bbcb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3lQXNY8QMqLZMQYgGm_pqQ.jpeg</url>
            <title>Stories by Rajesh J Nair on Medium</title>
            <link>https://medium.com/@rajeshjnair?source=rss-ae625984bbcb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 05:57:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rajeshjnair/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[Apple Support Chat Bot]]></title>
            <link>https://rajeshjnair.medium.com/apple-support-chat-bot-bddb34b9c686?source=rss-ae625984bbcb------2</link>
            <guid isPermaLink="false">https://medium.com/p/bddb34b9c686</guid>
            <category><![CDATA[facebook-messenger]]></category>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[messenger-bots]]></category>
            <dc:creator><![CDATA[Rajesh J Nair]]></dc:creator>
            <pubDate>Mon, 16 Oct 2017 13:29:27 GMT</pubDate>
            <atom:updated>2017-10-16T14:00:23.103Z</atom:updated>
            <content:encoded><![CDATA[<p>We Have built a FAQ support bot of Apple iPhone For a Test Case. It was an amazing journey of development in few days. The Data Is Trained From <a href="https://www.apple.com/shop/questions/iphone">https://www.apple.com/shop/questions/iphone</a>. Basically, from this people ask questions and other people or someone from apple support will respond to it.It has a very small numbers of questions (2390 Question).So I am not saying this a perfect AI bot but its a sample use case.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*45wdPJSYS-zPys-uo9bP0Q.png" /></figure><blockquote><strong>Try the bot here:- </strong><a href="https://m.me/1428395700543647"><strong>https://m.me/1428395700543647</strong></a></blockquote><p>Technology Used</p><p>Server Side:- Python , PHP</p><p>BackEnd:- Mongo , MySql</p><p>API:- <a href="https://cloud.google.com/natural-language/">Cloud Natural Language API</a> and MS Cognitive Services</p><p>Please Share Your Thoughts.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2F304382-2%3Fas_embed%3Dtrue&amp;url=https%3A%2F%2Fupscri.be%2F304382-2%2F&amp;image=https%3A%2F%2Fupscri.be%2Fmedia%2Fform.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/e24c9308044f3b572dc913edd448b8e2/href">https://medium.com/media/e24c9308044f3b572dc913edd448b8e2/href</a></iframe><p>*All data and image is copyright to apple.This is only used as a research purpose.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bddb34b9c686" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Facebook Workplace Desktop Chat And Workplace Chatbots]]></title>
            <link>https://medium.com/botelements/facebook-workplace-desktop-chat-and-workplace-chatbots-493cf7bbd448?source=rss-ae625984bbcb------2</link>
            <guid isPermaLink="false">https://medium.com/p/493cf7bbd448</guid>
            <category><![CDATA[facebook-messenger]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[workplace-chatbots]]></category>
            <category><![CDATA[facebook-workplace]]></category>
            <category><![CDATA[messenger-bots]]></category>
            <dc:creator><![CDATA[Rajesh J Nair]]></dc:creator>
            <pubDate>Sun, 15 Oct 2017 09:24:31 GMT</pubDate>
            <atom:updated>2018-05-14T17:33:05.241Z</atom:updated>
            <content:encoded><![CDATA[<p>Facebook launched Workplace Desktop Chat Application for Mac and PC to compete Slack. It’s going to a great change the people are going to use facebook workplace over slack because of the enhanced capabilities of chatbots in the workplace. We all Love SlackBots but Facebook have an enhanced features and capabilities in create chatbot in the workplace.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*VdAqsfdnVbsGYY1DpdutKQ.jpeg" /></figure><p>A Sample Chat Bot Create by <a href="https://www.cbtech.ae/">Chatbot technologies</a> in workplace.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_bhCq01GqlADbsgejO4ThQ.jpeg" /></figure><p>Facebook Workplace supports Inbuilt integrations like Google drive, Dropbox etc and Custom Integrations. We Can Create Chatbots using Custom Integrations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*mqq-f4Gk7adDsIyIyV_OGQ.png" /><figcaption>Inbuilt Integrations in Facebook Workplace</figcaption></figure><p>Please signup with us to know more about the Workplace Chatbots.We are creating some tutorial how to build a workplace chatbots. Once its ready we will email you 😎 .</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fa721f7%3Fas_embed%3Dtrue&amp;url=https%3A%2F%2Fupscri.be%2Fa721f7%2F&amp;image=https%3A%2F%2Fupscri.be%2Fmedia%2Fform.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/02026fcf8f6d32e51368e677537515eb/href">https://medium.com/media/02026fcf8f6d32e51368e677537515eb/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=493cf7bbd448" width="1" height="1" alt=""><hr><p><a href="https://medium.com/botelements/facebook-workplace-desktop-chat-and-workplace-chatbots-493cf7bbd448">Facebook Workplace Desktop Chat And Workplace Chatbots</a> was originally published in <a href="https://medium.com/botelements">Bot Elements</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Slack Bot To Handle PHP Errors Real Time]]></title>
            <link>https://rajeshjnair.medium.com/slack-bot-to-handle-php-errors-real-time-d25b3b401b93?source=rss-ae625984bbcb------2</link>
            <guid isPermaLink="false">https://medium.com/p/d25b3b401b93</guid>
            <category><![CDATA[php]]></category>
            <category><![CDATA[slackbot]]></category>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[slack]]></category>
            <dc:creator><![CDATA[Rajesh J Nair]]></dc:creator>
            <pubDate>Sun, 06 Aug 2017 13:24:44 GMT</pubDate>
            <atom:updated>2021-01-18T13:07:42.331Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9wiDkp050s_JfBVbpvMweQ.png" /></figure><p>As a full-stack developer, I was facing a big problem to keep eye on all errors happening in the PHP codes. Always I need to look into the error log file in the server to find out what is issue happened. If that is a Big Project I can’t figure out where and what is the issue always. It always eats my lot of time to 1. Find the bug 2. Where the bug took place. When It takes place. After brainstorming, I figure out why I can’t detect the error and send it to slack in real-time. So I started researching it and found a good solution. And here is the Step By Step Procedure to Do that.</p><p>You Can Hire Toptal Developers for Developing Slack Apps</p><p><a href="https://www.toptal.com/slack">https://www.toptal.com/slack</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GPdRt9SpUOnrBjytdQXQrg.png" /></figure><h3>Step 1</h3><p>Create a Slack channel Example Name “#server-error-production”</p><h3>Step 2</h3><blockquote>Go to <a href="https://api.slack.com/apps">https://api.slack.com/apps</a> and Click On Create New App</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*59Wyu7-NenMRKuWecauOOw.png" /></figure><blockquote>Put Your App Name and select the team.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*g-pzcviKMEG_3tVl_WeeVg.png" /></figure><blockquote>After Create You will Get Of Basic Information. Click On Incoming Webhooks</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ao7cy1wRn5edTwXEB1D9Xw.png" /></figure><blockquote>Activate Incoming Webhooks Click on “Off” Toggler Button</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*uo3gDwHP1AVburQ_jqJ3iw.png" /></figure><blockquote>Click On “Add New Webhook To Team”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*bg-0b2qrv-5EF_fNIO946A.png" /></figure><blockquote>This will open a window to authorize to post the channel, Select the channel “server-error-production” and Click on Authorize.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*WkdRVxv2ThPsZqw684sNFA.png" /></figure><p>Click On Copy and Save this url for future Use.</p><h3>Step 3</h3><blockquote>Create error_handler_slack.php on the server. Eg: /home/example_project/public_html/error_handler_slack.php</blockquote><pre>&lt;?php<br>$error_reporting = &#39;On&#39;; // On or Off<br>if($error_reporting == &#39;On&#39;)<br>{<br>set_error_handler(&#39;common_error_handler&#39;);<br>register_shutdown_function(&quot;shutdown_error_handler&quot;);<br>}<br>function shutdown_error_handler() //will be called when php script ends.<br>{<br> $lasterror = error_get_last();<br> if(isset($lasterror))<br> {<br> $message = &#39;{&quot;text&quot;: &quot;Error (&#39;.$lasterror[&#39;type&#39;].&#39;) | PHP Stopped | Message (&#39;.$lasterror[&#39;message&#39;].&#39;) | File (&#39;.$lasterror[&#39;file&#39;].&#39;)&quot;}&#39;;<br> $ch = curl_init(&quot;[YOUR-SLACK-CHANNEL-HOOK-URL]&quot;);<br>    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, &#39;POST&#39;);<br>    curl_setopt($ch, CURLOPT_POSTFIELDS, $message);<br>    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);<br>    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);<br>    $result = curl_exec($ch);<br>    curl_close($ch);<br> }<br>}<br>function common_error_handler($number, $message, $file, $line, $vars)<br> {</pre><pre>$message = &#39;{&quot;text&quot;: &quot;An error (&#39;.$number.&#39;) occurred on line &#39;.$line.&#39; and in the file: &#39;.$file.&#39;.&quot;}&#39;;<br>    // echo $message;<br> $ch = curl_init(&quot;[YOUR-SLACK-CHANNEL-HOOK-URL]&quot;);<br>    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, &#39;POST&#39;);<br>    curl_setopt($ch, CURLOPT_POSTFIELDS, $message);<br>    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);<br>    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);<br>    $result = curl_exec($ch);<br>    curl_close($ch);<br>    <br>    //return $result;<br> <br>    // Make sure that you decide how to respond to errors (on the user&#39;s side)<br>    // Either echo an error message, or kill the entire project. Up to you...<br>    // The code below ensures that we only &quot;die&quot; if the error was more than<br>    // just a NOTICE. <br>    if ( ($number !== E_NOTICE) &amp;&amp; ($number &lt; 2048) ) {<br>        die(&quot;There was an error. Please try again later.&quot;);<br>    }<br>}<br>?&gt;</pre><p>In the above File You Need to replace [YOUR-SLACK-CHANNEL-HOOK-URL] with you URL that is copied from the <strong>step 2</strong>.</p><p>Step 4.</p><p>Include this error_handler_slack.php on the PHP script you need to track.</p><p>Whenever your PHP script fails you will get a live notification to your slack Instantly.</p><p>If you a lazy coder and you need to include this to all php script automatically.</p><p>Find auto_prepend_file in php.ini and paste the path of the script</p><pre>auto_prepend_file /home/example_project/public_html/error_handler_slack.php</pre><p>OR Add the below code in .htaccess</p><pre>php_value auto_prepend_file /home/example_project/public_html/error_handler_slack.php</pre><p>If any question reach me @ <a href="https://m.me/rajeshjnair">https://m.me/rajeshjnair</a></p><p>You Can Hire Toptal Developers for Developing Slack Apps</p><p><a href="https://www.toptal.com/slack">https://www.toptal.com/slack</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d25b3b401b93" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Messenger Webview Elements (Version 2)]]></title>
            <link>https://medium.com/botelements/messenger-webview-elements-317f49125024?source=rss-ae625984bbcb------2</link>
            <guid isPermaLink="false">https://medium.com/p/317f49125024</guid>
            <category><![CDATA[facebook-messenger]]></category>
            <category><![CDATA[messenger-bots]]></category>
            <category><![CDATA[messenger]]></category>
            <category><![CDATA[bots]]></category>
            <dc:creator><![CDATA[Rajesh J Nair]]></dc:creator>
            <pubDate>Sun, 30 Jul 2017 23:30:35 GMT</pubDate>
            <atom:updated>2019-11-08T13:52:32.662Z</atom:updated>
            <content:encoded><![CDATA[<p>Most of the chatbot developer lacked Html/Css elements in a web view thats suites to the messenger app and desktop version. Here am introducing an HTML/CSS re-usable template class for every chatbot developers needs. This package contains most of the elements that you need for developing chatbots with the web view that exactly suits for Facebook messenger bot. Using this package the user doesn’t feel this is a web view or an iframe that out of the Facebook.</p><blockquote>Sample Demo In Messenger.com</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q5VhYmnvVbyN7P6G3Vy_1g.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_awI8K2gEOspubLb5HUaZA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*niGywQDOf7kLEPntSAELJQ.jpeg" /></figure><blockquote>Sample Demo In Messenger Mobile App</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/1*09tvuiOwHPLINm2SSV2r0Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/1*C-epS_NiKjgrybpN_UvNCA.png" /></figure><blockquote>Showcase of All Elements</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*ZJHQj4BGPvikB0V1wkngpA.png" /></figure><p>As <a href="https://medium.com/@rajeshjnair/webviews-start-supporting-in-messenger-com-and-facebook-chat-tabs-dc5a40e6165b">Webviews Start Supporting In Messenger.com and Facebook Chat tabs</a>, So this will be a big time saver.</p><h4>Purchase @ <a href="https://www.paypal.me/oglespark/49">https://www.paypal.me/oglespark/49</a></h4><p>Files will be sent to the purchase email Or Ping me on <a href="https://m.me/rajeshjnair">https://m.me/rajeshjnair</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=317f49125024" width="1" height="1" alt=""><hr><p><a href="https://medium.com/botelements/messenger-webview-elements-317f49125024">Messenger Webview Elements (Version 2)</a> was originally published in <a href="https://medium.com/botelements">Bot Elements</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Webviews Start Supporting In Messenger.com and Facebook Chat tabs]]></title>
            <link>https://medium.com/botelements/webviews-start-supporting-in-messenger-com-and-facebook-chat-tabs-dc5a40e6165b?source=rss-ae625984bbcb------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc5a40e6165b</guid>
            <category><![CDATA[facebook-messenger]]></category>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[messenger-bots]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Rajesh J Nair]]></dc:creator>
            <pubDate>Sun, 30 Jul 2017 14:29:25 GMT</pubDate>
            <atom:updated>2018-05-14T17:15:02.939Z</atom:updated>
            <content:encoded><![CDATA[<p>In Early Version Of Messenger bot, Webviews was only available on the messenger app in mobile devices.Web views were not supported by Messenger web and Facebook chat tabs. It was opening in a new tab in the browser. In Latest Release Messenger Platform v2.1 FB introduce the desktop support for Messenger Extensions SDK. This Feature allows to Messenger bot developers to open the iframes inside the Facebook desktop platforms.</p><h4>In Messenger</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SbNC6uvUl__b85hJuQbsnA.png" /></figure><h4>In Facebook.com</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xmh1zIQyadvPoZxwpn0KDQ.png" /></figure><h4>In Mobile Devices</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*c-4HkL4xQFFZ_tjY-8OzRQ.png" /></figure><p>Try <a href="https://www.facebook.com/swell.bot/">https://m.me/swell.bot</a></p><p>For Developers:</p><h4>Allow loading of your pages in iframe on Messenger and Facebook domains</h4><p>We use iframe to present your pages on Messenger web and Facebook chat tabs. You have to set up proper X-Frame-Options HTTP response header to allow your pages within an iframe.</p><pre>X-Frame-Options: ALLOW-FROM https://www.messenger.com/</pre><pre>X-Frame-Options: ALLOW-FROM https://www.facebook.com/</pre><p><a href="https://developers.facebook.com/docs/messenger-platform/webview/extensions">Check Full Document Here</a></p><h4>Limitations</h4><p>The following settings or features are not supported on Messenger web clients. They still function properly on Messenger mobile clients.</p><p>webview_height_ratio<br>webview_share_button<br>Navigation back buttons<br>Dialog title<br>Closing the webview via URL redirect<br>getUserID()<br>Payments</p><p>For designers i have made a html/css package which give you access to elements thats exactly looks like messenger elements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q5VhYmnvVbyN7P6G3Vy_1g.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_awI8K2gEOspubLb5HUaZA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*niGywQDOf7kLEPntSAELJQ.jpeg" /></figure><p><a href="https://medium.com/@rajeshjnair/messenger-webview-elements-317f49125024">Read the full article here</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc5a40e6165b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/botelements/webviews-start-supporting-in-messenger-com-and-facebook-chat-tabs-dc5a40e6165b">Webviews Start Supporting In Messenger.com and Facebook Chat tabs</a> was originally published in <a href="https://medium.com/botelements">Bot Elements</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>