<?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 Priyam Chhabra on Medium]]></title>
        <description><![CDATA[Stories by Priyam Chhabra on Medium]]></description>
        <link>https://medium.com/@priyamchhabra?source=rss-bc41e884b77b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*CeNRNlc2p2M9f2AH.</url>
            <title>Stories by Priyam Chhabra on Medium</title>
            <link>https://medium.com/@priyamchhabra?source=rss-bc41e884b77b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 14:59:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@priyamchhabra/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[Markdown Editor]]></title>
            <link>https://medium.com/@priyamchhabra/markdown-editor-f3b5da652752?source=rss-bc41e884b77b------2</link>
            <guid isPermaLink="false">https://medium.com/p/f3b5da652752</guid>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[material-ui]]></category>
            <category><![CDATA[bundler]]></category>
            <category><![CDATA[ui-design]]></category>
            <dc:creator><![CDATA[Priyam Chhabra]]></dc:creator>
            <pubDate>Tue, 17 Jan 2023 10:30:46 GMT</pubDate>
            <atom:updated>2023-01-17T10:32:52.195Z</atom:updated>
            <content:encoded><![CDATA[<p>I wanted to practice my React skills so I created a markdown editor which supports some basic markdown functionalities. User can save and view markdown documents later. The documents are currently stored in local storage.</p><p><em>Here is a short Demo</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F789990829%3Fh%3Dfe819e32e6%26app_id%3D122963&amp;dntp=1&amp;display_name=Vimeo&amp;url=https%3A%2F%2Fvimeo.com%2F789990829&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F1589324492-57c2654978f42f40a97890c9eb18f60444ea00e3ba7d6d4560a014bee4926a84-d_1280&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=vimeo" width="1920" height="1020" frameborder="0" scrolling="no"><a href="https://medium.com/media/ecdc741cca07e98e6e20ae30225740b7/href">https://medium.com/media/ecdc741cca07e98e6e20ae30225740b7/href</a></iframe><p><strong>Tech Stack and Libraries Used</strong></p><ol><li>React Js</li><li>Parcel</li><li>Material UI</li><li>HTML5</li><li>CSS3</li><li>Moments Js</li><li>Netlify</li></ol><p><strong>Website Link</strong></p><p><a href="https://smart-markdown-editor-application.netlify.app/">https://smart-markdown-editor-application.netlify.app/</a></p><p><strong>Github Repo</strong></p><p><a href="https://github.com/Priyam1464/Markdown-Editor">GitHub - Priyam1464/Markdown-Editor</a></p><p><em>Thank you for reading .Cheers….</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f3b5da652752" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Telegram bot for Job Postings]]></title>
            <link>https://medium.com/@priyamchhabra/telegram-bot-for-job-postings-9e1eed2a8a46?source=rss-bc41e884b77b------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e1eed2a8a46</guid>
            <category><![CDATA[telegram]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[expressjs]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[node-js-development]]></category>
            <dc:creator><![CDATA[Priyam Chhabra]]></dc:creator>
            <pubDate>Tue, 17 Jan 2023 09:32:24 GMT</pubDate>
            <atom:updated>2023-01-17T09:37:57.088Z</atom:updated>
            <content:encoded><![CDATA[<p>I wanted to dive into the process of creating Telegram bots and automating various user flow use cases so I created a bot that helps people to register as recruiters and candidates</p><p>The recruiters would post the jobs and candidates would add their skills and their employment status and then can see the job openings</p><p><em>Here are some demo videos</em></p><p><strong>Recruiter Flow</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F789959531%3Fh%3D2433ef951c%26app_id%3D122963&amp;dntp=1&amp;display_name=Vimeo&amp;url=https%3A%2F%2Fvimeo.com%2F789959531&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F1589253192-7bce87b3202c565b08968177ad88c191e4e476fe5ab57dcd248979de053d63a5-d_200x150&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=vimeo" width="216" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/9a0635661b7c187fa3a043ae2ced106c/href">https://medium.com/media/9a0635661b7c187fa3a043ae2ced106c/href</a></iframe><p><strong>Candidate Flow</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F789958455%3Fh%3Dbd51a6449c%26app_id%3D122963&amp;dntp=1&amp;display_name=Vimeo&amp;url=https%3A%2F%2Fvimeo.com%2F789958455&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F1589250747-8a118a914b70392345c21320ee3981cd9039486fc5d1684ff98d0493ebfb39f8-d_200x150&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=vimeo" width="220" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c8eb1c25e508a2da2659a42a7fed97dd/href">https://medium.com/media/c8eb1c25e508a2da2659a42a7fed97dd/href</a></iframe><p><strong>Tech Stack and Tools Used</strong></p><ol><li>Telegram API for sending messages and displaying Telegram UI controls to user like keyboards,options etc</li><li>Node JS Express API’S</li><li>Azure Cosmos Mongo DB -For storing user’s data</li><li>Azure App Service-For hosting the API’s</li><li>Docker for deploying the application and containerization</li></ol><p><strong>Description</strong></p><p>There are two express API’s for this project</p><ol><li>Telegram Client-This API consists of webhooks which can listen to the telegram messages sent by user and based on the response it sends a reply.This api interacts with another API (ChatBot API) which handles the interaction with Mongo Db Database.The users responses are stored in this database. Telegram client decides the reply to be sent based on a config logic.The config logic stores all the steps of the chatbot flow .The below is an example of that.</li></ol><pre>const chatbotConfig = {<br>  start: {<br>    text: &quot;Are you a recruiter or candidate?&quot;,<br>    replyType: &quot;inlineKeyboard&quot;,<br>    options: [<br>      {<br>        id: &quot;recruiter&quot;,<br>        text: &quot;Recruiter&quot;,<br>        callback_data: &quot;Recruiter&quot;,<br>      },<br>      {<br>        id: &quot;candidate&quot;,<br>        text: &quot;Candidate&quot;,<br>        callback_data: &quot;Candidate&quot;,<br>      },<br>    ],<br>    next: [<br>      {<br>        id: &quot;recruiter&quot;,<br>        text: &quot;Recruiter&quot;,<br>        callback_data: &quot;Recruiter&quot;,<br>      },<br>      {<br>        id: &quot;candidate&quot;,<br>        text: &quot;Candidate&quot;,<br>        callback_data: &quot;Candidate&quot;,<br>      },<br>    ],<br>  },<br>  recruiter: {<br>    text: &quot;Enter your name&quot;,<br>    replyType: &quot;text&quot;,<br>    next: &quot;recruiterCompany&quot;,<br>    api: {<br>      endpointType: &quot;recruiter&quot;,<br>      bodyParam: &quot;name&quot;,<br>      reqType: &quot;post&quot;,<br>      endpoint: &quot;/&quot;,<br>    },<br>  },<br>  recruiterCompany: {<br>    text: &quot;Enter your company&quot;,<br>    replyType: &quot;text&quot;,<br>    next: &quot;recruiterEmail&quot;,<br>    api: {<br>      endpointType: &quot;recruiter&quot;,<br>      bodyParam: &quot;companyName&quot;,<br>      reqType: &quot;patch&quot;,<br>      endpoint: &quot;/&quot;,<br>    },<br>  },<br>  recruiterEmail: {<br>    text: &quot;Enter your company email&quot;,<br>    replyType: &quot;keyboard&quot;,<br>    options: [<br>      {<br>        text: &quot;Add Job Opening&quot;,<br>        id: &quot;addOpening&quot;,<br>      },<br>      {<br>        text: &quot;Your Openings&quot;,<br>        id: &quot;yourOpenings&quot;,<br>      },<br>    ],<br>    api: {<br>      endpointType: &quot;recruiter&quot;,<br>      bodyParam: &quot;companyEmail&quot;,<br>      reqType: &quot;patch&quot;,<br>      endpoint: &quot;/&quot;,<br>    },<br>    next: [<br>      {<br>        text: &quot;Add Job Opening&quot;,<br>        id: &quot;addOpening&quot;,<br>      },<br>      {<br>        text: &quot;Your Openings&quot;,<br>        id: &quot;yourOpenings&quot;,<br>      },<br>    ],<br>  },<br>  editProfile: {<br>    text: &quot;Edit your Profile&quot;,<br>    replyType: &quot;text&quot;,<br>    next: &quot;editName&quot;,<br>  },<br>  editName: {<br>    text: &quot;Enter your name&quot;,<br>    replyType: &quot;text&quot;,<br>    next: &quot;editCompany&quot;,<br>    api: {<br>      endpointType: &quot;recruiter&quot;,<br>      bodyParam: &quot;name&quot;,<br>      reqType: &quot;patch&quot;,<br>      endpoint: &quot;/&quot;,<br>    },<br>  },<br>  editCompany: {<br>    text: &quot;Edit your company name&quot;,<br>    replyType: &quot;text&quot;,<br>    options: [<br>      {<br>        text: &quot;Add Job Opening&quot;,<br>        id: &quot;addOpening&quot;,<br>      },<br>      {<br>        text: &quot;Your Openings&quot;,<br>        id: &quot;yourOpenings&quot;,<br>      },<br>      {<br>        text: &quot;Potential Candidates&quot;,<br>        id: &quot;potentialCandidates&quot;,<br>      },<br>      {<br>        text: &quot;Edit Profile&quot;,<br>        id: &quot;editProfile&quot;,<br>      },<br>    ],<br>    api: {<br>      endpointType: &quot;recruiter&quot;,<br>      bodyParam: &quot;companyName&quot;,<br>      reqType: &quot;patch&quot;,<br>      endpoint: &quot;/&quot;,<br>    },<br>    next: [<br>      {<br>        text: &quot;Add Job Opening&quot;,<br>        id: &quot;addOpening&quot;,<br>      },<br>      {<br>        text: &quot;Your Openings&quot;,<br>        id: &quot;yourOpenings&quot;,<br>      },<br>      {<br>        text: &quot;Potential Candidates&quot;,<br>        id: &quot;potentialCandidates&quot;,<br>      },<br>      {<br>        text: &quot;Edit Profile&quot;,<br>        id: &quot;editProfile&quot;,<br>      },<br>    ],<br>  },<br>  addOpening: {<br>    text: &quot;Add Job Opening description with skills and experience required&quot;,<br>    replyType: &quot;keyboard&quot;,<br>    options: [<br>      {<br>        text: &quot;Add Job Opening&quot;,<br>        id: &quot;addOpening&quot;,<br>      },<br>      {<br>        text: &quot;Your Openings&quot;,<br>        id: &quot;yourOpenings&quot;,<br>      },<br>    ],<br>    api: {<br>      endpointType: &quot;recruiter&quot;,<br>      reqType: &quot;patch&quot;,<br>      endpoint: &quot;/openings&quot;,<br>      bodyParam: { key: &quot;description&quot; },<br>    },<br>    next: [<br>      {<br>        text: &quot;Add Job Opening&quot;,<br>        id: &quot;addOpening&quot;,<br>      },<br>      {<br>        text: &quot;Your Openings&quot;,<br>        id: &quot;yourOpenings&quot;,<br>      },<br>    ],<br>  },<br>  yourOpenings: {<br>    text: &quot;Your Openings&quot;,<br>    api: {<br>      endpointType: &quot;recruiter&quot;,<br>      reqType: &quot;get&quot;,<br>      endpoint: &quot;/openings/&quot;,<br>    },<br>  },<br>  potentialCandidates: {<br>    text: &quot;Potential Candidates&quot;,<br>    api: {<br>      endpointType: &quot;recruiter&quot;,<br>      reqType: &quot;get&quot;,<br>    },<br>  },<br>  candidate: {<br>    text: &quot;Enter your name&quot;,<br>    replyType: &quot;text&quot;,<br>    next: &quot;candidateExp&quot;,<br>    api: {<br>      endpointType: &quot;candidate&quot;,<br>      bodyParam: &quot;name&quot;,<br>      reqType: &quot;post&quot;,<br>      endpoint: &quot;/&quot;,<br>    },<br>  },<br>  candidateExp: {<br>    text: &quot;Enter your years of experience&quot;,<br>    replyType: &quot;text&quot;,<br>    next: &quot;candidateStatus&quot;,<br>    api: {<br>      endpointType: &quot;candidate&quot;,<br>      bodyParam: &quot;experience&quot;,<br>      reqType: &quot;patch&quot;,<br>      endpoint: &quot;/&quot;,<br>    },<br>  },<br>  candidateStatus: {<br>    text: &quot;Are you employed or not employed currently ?&quot;,<br>    replyType: &quot;inlineKeyboard&quot;,<br>    options: [<br>      {<br>        id: &quot;employed&quot;,<br>        text: &quot;Currently Employed&quot;,<br>        callback_data: &quot;Currently Employed&quot;,<br>      },<br>      {<br>        id: &quot;notEmployed&quot;,<br>        text: &quot;Not Employed&quot;,<br>        callback_data: &quot;Not Employed&quot;,<br>      },<br>    ],<br>    next: [<br>      {<br>        id: &quot;employed&quot;,<br>        text: &quot;Currently Employed&quot;,<br>        callback_data: &quot;Currently Employed&quot;,<br>      },<br>      {<br>        id: &quot;notEmployed&quot;,<br>        text: &quot;Not Employed&quot;,<br>        callback_data: &quot;Not Employed&quot;,<br>      },<br>    ],<br>    api: {<br>      endpointType: &quot;candidate&quot;,<br>      bodyParam: &quot;status&quot;,<br>      reqType: &quot;patch&quot;,<br>      endpoint: &quot;/&quot;,<br>    },<br>  },<br>  employed: {<br>    text: &quot;Enter your current company&quot;,<br>    replyType: &quot;text&quot;,<br>    next: &quot;skills&quot;,<br>    api: {<br>      endpointType: &quot;candidate&quot;,<br>      bodyParam: &quot;companyName&quot;,<br>      reqType: &quot;patch&quot;,<br>      endpoint: &quot;/&quot;,<br>    },<br>  },<br>  notEmployed: {<br>    next: &quot;skills&quot;,<br>  },<br>  skills: {<br>    text: &quot;Enter your skills comma separated&quot;,<br>    replyType: &quot;keyboard&quot;,<br>    api: {<br>      endpointType: &quot;candidate&quot;,<br>      bodyParam: &quot;skills&quot;,<br>      reqType: &quot;patch&quot;,<br>      endpoint: &quot;/&quot;,<br>    },<br>    next: [<br>      {<br>        text: &quot;All Job Opening&quot;,<br>        id: &quot;candidateOpenings&quot;,<br>      },<br>    ],<br>    options: [<br>      {<br>        text: &quot;All Job Opening&quot;,<br>        id: &quot;candidateOpenings&quot;,<br>      },<br>    ],<br>  },<br>  candidateOpenings: {<br>    text: &quot;All Openings&quot;,<br>    api: {<br>      endpointType: &quot;candidate&quot;,<br>      reqType: &quot;get&quot;,<br>      endpoint: &quot;/openings/&quot;,<br>    },<br>  },<br>  relevantOpenings: {<br>    text: &quot;Relevant Openings&quot;,<br>    api: {<br>      endpointType: &quot;candidate&quot;,<br>      reqType: &quot;get&quot;,<br>      endpoint: &quot;/openings/&quot;,<br>    },<br>  },<br>};<br><br>module.exports = {<br>  chatbotConfig,<br>};</pre><p>For eg when the user enters “<em>/start”</em> the client API checks the config and based on that it sends the reply text which in this case is <em>“Are you a recruiter or candidate?”. </em>The reply type inline keyboard means that the API has to send the reply in the form of two options from which users can choose (Recruiters/candidates).The next means the next possible steps from this point onwards.So if user select <em>“recruiter”</em>the current step becomes <em>“recruiter”</em> and the API then sends the appropriate reply based on the config.This config serves as a template and can have n steps and each step would follow same standard</p><p>2. ChatBot API- The telegram client API interacts with this API to store and get the user’s responses from MongoDb database. It has various REST endpoints for both recruiters and candidates.The MongoDb database is hosted on Azure Cosmos for MongoDB and has two collections one for Recruiters and one for Candidates</p><p>If you want to check the source code these are the repos</p><ul><li><a href="https://github.com/Priyam1464/chatbot">GitHub - Priyam1464/chatbot</a></li><li><a href="https://github.com/Priyam1464/chatbot-api">GitHub - Priyam1464/chatbot-api</a></li></ul><p>Cheers……..</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e1eed2a8a46" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>