<?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 iNeuron Intelligence on Medium]]></title>
        <description><![CDATA[Stories by iNeuron Intelligence on Medium]]></description>
        <link>https://medium.com/@ineuronintellignece?source=rss-fc2606079dd4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*oCE06h-8533cs8zTZAC2Wg.jpeg</url>
            <title>Stories by iNeuron Intelligence on Medium</title>
            <link>https://medium.com/@ineuronintellignece?source=rss-fc2606079dd4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 08:35:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ineuronintellignece/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[Challenges Faced In Data Science Sector]]></title>
            <link>https://medium.com/@ineuronintellignece/challenges-faced-in-data-science-sector-12cb73032395?source=rss-fc2606079dd4------2</link>
            <guid isPermaLink="false">https://medium.com/p/12cb73032395</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[iNeuron Intelligence]]></dc:creator>
            <pubDate>Wed, 25 Dec 2019 07:16:09 GMT</pubDate>
            <atom:updated>2019-12-25T07:16:09.856Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*Q61Ga7ChqsbiHmqpEv82oA.jpeg" /></figure><p>Hi &amp; Merry Christmas to all “Data Science Enthusiast” who are eagerly on the way to develop new skill or already working out in their professional journey.</p><p>Whatever road you are following, each &amp; everyone one of us face challenges time to time.</p><p>So let’s discuss what are the challenges faced by students, professional &amp; Data Science Startup to work with.</p><p>1. Challenges faced by students for starting a career in Data Science</p><p>• Lack of awareness about the topic.</p><p>• The first and foremost challenge for the students is to know: where to start?</p><p>• Choosing a language between R and Python.</p><p>• Support for Machine Learning topics in the college curriculum.</p><p>• Support for lab work and projects for Machine learning topics.</p><p>• Lack of useful and relevant study material.</p><p>• Lack of opportunities in big companies for internships</p><p>• Hefty prices for Machine Learning courses</p><p>• Understanding real-life use cases for machine learning</p><p>2. Challenges faced by working professionals for making a transition to Data Science</p><p>• Though the field is new, companies expect a lot of experience from the candidates.</p><p>• Hefty prices for Machine Learning courses</p><p>• Even the courses available for working professionals are not up to the industry standards</p><p>• Lack of Industry-level project experience</p><p>• Lack of learning on job opportunities</p><p>• Lack of good trainers</p><p>• Impactful short term courses are not available for working professionals</p><p>• Preparation of industry-relevant resume</p><p>3. Challenges faced by entrepreneurs for Data Science Ventures</p><p>• Shortage of skilled people to hire</p><p>• Lack of clarity of vision from clients and investors</p><p>• Support from authorities and government</p><p>• Understanding the changing market trends</p><p>• Making customers invest in AI innovation for the coming years.</p><p>• There is a saying: if you are not doing AI, what are you doing? This statement itself is sufficient to emphasize the impact of AI in the future.</p><p>• A lot of automation in manufacturing, healthcare, transport, logistics, education, disaster management, and customer service.</p><p>• Businesses are moving from digital to intelligent businesses</p><p>• Autonomous decision making</p><p>• Replacement of routine jobs with AI applications</p><p>• Contribution towards a sustainable growth infrastructure</p><p>• Replicating the way the humans think is going to open a lot of doors.</p><p>Thanks &amp; Keep Learning!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12cb73032395" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Chatbot using Google Dialogflow & Deployment From Scratch !!]]></title>
            <link>https://medium.com/@ineuronintellignece/building-chatbot-using-google-dialogflow-deployment-from-scratch-248b3242773?source=rss-fc2606079dd4------2</link>
            <guid isPermaLink="false">https://medium.com/p/248b3242773</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[iNeuron Intelligence]]></dc:creator>
            <pubDate>Sat, 21 Dec 2019 22:20:20 GMT</pubDate>
            <atom:updated>2019-12-21T22:21:18.885Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*Qjvcs2irVjQHjGASs0FXvg.jpeg" /></figure><h3>Building Chatbot using Google Dialogflow &amp; Deployment From Scratch !!</h3><ol><li>Chatbot Concept</li></ol><p>What are chatbots? A Chatbot is a software or an agent or a service which simulates human conversation in natural language through messaging applications, websites, mobile phones, or telephone. They can be programmed to respond to simple keywords or prompts to complex discussions. A Chatbot has two different tasks at the core: analyze the request (identifying the intent of the user) and providing the response.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*jLxPvb9SMm6jz4K6phxCKA.png" /></figure><p>Chatbots are of two types: one functions on a set of rules, and the other more advanced one uses artificial intelligence. 1. Chatbots that function on rules: It is easy to build and can get basics tasks done with limitations to specific commands. This bot performance would depend on programming skills. 2. Chatbots that function on machine learning: It understands languages and not just commands, it provides relevant responses from the previous experience and training. It communicates through speech or text, relying on AI technologies like machine learning and NLP.</p><p>1.2 Use Cases</p><ol><li>Following are some of the chatbot applications, out of the infinite possibilities: 1. A chatbot for ordering food that allows customers to order from their office or home. 2. A chatbot that answers customer service questions 3. A chatbot that allows the customer to book a flight and receive relevant information. 4. A chatbot that helps a customer to purchase in eCommerce. 5. A chatbot that asks questions to the customer for a marketing campaign. 6. A health bot that provides services for booking a Doctor consultation and getting remedies for different symptoms. 7. A chatbot that books movie tickets and also provided the reviews.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/745/1*Ds6PPnzgq3QgvPFfheQNiw.png" /></figure><ol><li>4 Models for a Chatbot</li></ol><p>When creating a chatbot, the goal is to automate the process altogether and to reduce human intervention. The first step involves getting all the existing interactions between customers and customer service representatives and use it to teach the machine which words/phrases are sensitive to the business. Then the next step is to identify the kind of chatbot we would like to implement.</p><p>There mainly are two models:</p><ol><li>Retrieval-based model- These models are much easy to build and provide more predictable responses. They make use of context in the conversation for selecting the best answer from a predefined list of messages that they got trained. It includes all the previous discussions and the saved variables.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/925/1*aRrhPqGKud7Fs7H9XgoPQg.png" /></figure><p>2. Generative based model: A generative model chatbot doesn’t use any predefined repository. This kind of chatbot model is more advanced because it learns from scrape using “Deep Learning.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/849/1*q4a_fQEuqW67Z_AS9grR_A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*5OzOj8e3LXpGlbWRjut8NQ.png" /></figure><p>Message processing begins with understanding what the user’s intentions are.</p><ol><li>An intent classification module identifies the intent of the user messages. Typically, it is a selection of one out of many predefined intents, though more sophisticated bots can identify multiple intents from one communication.</li></ol><p>2. An entity recognition module extracts structured bits of information from the message. The weather bot, we can obtain the location and date to determine the weather.</p><p>3. The candidate response generator performs all the domain-specific calculations to process the user request. It uses different algorithms, initiates a call to external APIs, or connect to the human representative to help with responses. The result is a list of response candidates.</p><p>4. The response selector checks all the response candidate and selects a response which should work better for the user.</p><p>1.6 Chatbot Frameworks</p><ol><li>Pandorabots — A Free &amp; Open-source website to develop and deploy chatbots. Pandorabots is an open-source framework used for chatbot development with many AI rich features.</li><li>Microsoft Bot Framework — Microsoft Bot Framework is an excellent platform that helps you develop, connect, publish, and manage chatbots. The chatbots built on this framework come with agile learning and are interactive and smart to deliver the best user experience.</li><li>Botpress- Botpress is an enterprise-grade solution to develop, deploy, manage, and scale the chatbots. Though it is intuitive and straightforward, it is as flexible as a bot</li><li>ChatterBot –It’s a free Cloud-based AI Chatbot Platform to Build Bots. Node.js drives chatterbot. It is a Python library that acts as a conversational dialog engine and uses machine learning. Moreover, it is language-independent, and this feature enables the usage of any language of choice to train the chatbot.</li></ol><p>5. Dialogflow (Google-owned) — It is an End-to-end, Build-once Deploy-everywhere Development Suite. As Google’s machine learning algorithm powers Dialogflow, we can build voice or text-based conversational interfaces for apps and chatbots. Also, we can connect to users on Mobile apps, Alexa, Messenger, Google Assistant, websites, etc. using Dialogflow.</p><p>6. RASA Stack — It is a machine learning-based open-source chatbot development framework. The two significant integrants of the RASA Stack framework are Rasa Core and Rasa NLU.</p><p>7. Wit.ai — it’s a free Text or Voice-based Bot Building Tool by Facebook. With Wit.ai, we can develop a voice interface for smartphone apps, enable automation in wearables, etc. and it is not limited only to the development of bots.</p><p>8. Botkit — Botkit is one of the leading bot developer tools. Botkit.ai helps to build a bot with the help of a visual conversation builder and allows you to add plugins based on our needs. It works on a natural language processing engine from LUIS.ai plus includes open-source libraries.</p><p>2 Google Dialog Flow</p><p>2.1 Introduction</p><p>Google Dialogflow is a Google-owned developer of human-computer interaction technologies based on natural language conversations. It gives users a new option to interact with the product by building voice apps and chatbots powered by AI.</p><p>2.2 Why choose Google Dialogflow</p><ul><li>Delivers natural and productive conversations: It has built-in natural-language processing features and teaches artificial intelligence (AI) to the chatbot, thereby enabling it to process conversation naturally.</li><li>Understands what users are saying: Machine learning makes Dialogflow is intelligent enough to predict the hidden intention expressed in the input language. A Dialogflow chatbot map’s the user query with the database available with its backend server.</li><li>Works with many platforms Chatbot developed using Dialogflow supports many platforms, and thus Google Chatbot development, businesses can target a wider audience with the least effort. Support for various devices Dialogflow helps with creating a device-antagonistic chatbot. Thus, it engages with users on wearables, phones, cars, speakers, and other smart devices. It helps to connect the businesses with their prospects or customers anywhere, anytime.</li><li>Helps chatbots to speak 14+ languages Dialogflow supports many languages like Brazilian Portuguese, Chinese, English, Dutch, French, German, Italian, Japanese, Korean, Portuguese, Russian, Spanish, Ukrainian.</li><li>Performance tracking with an analytics tool Similar to mobile app analytics, we can track the performance of the chatbots. The integrated analytics tool can read usage patterns, latency issues, and high- and lowperforming intents</li></ul><p>2.3 How do Chatbots work?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/1*0oN5Sr1TkHdCGVwQZ2jR3w.png" /></figure><p>Steps:</p><p>1. The user sends a text or voice message from a device or an App</p><p>2. The App or the Device transfers the data to Dialogflow</p><p>3. The message is categorized and matched to a corresponding intent</p><p>4. We define actions for each intent in fulfillment (Webhook).</p><p>5. When Dialogflow finds a specific intent, the webhook will use external APIs to find a response from external databases.</p><p>6. The external databases send back the required information to the webhook.</p><p>7. Webhook sends a formatted response to the intent.</p><p>8. Intent generates actionable data according to different channels.</p><p>9. Data go to output Apps or Devices attached</p><p>10. The user would get a text/image/voice as a response.</p><p>2.4 Build your first chatbot</p><p>2.4.1 Signup for Dialogflow account</p><p>Prerequisite: A Google account is required for connecting to Google Dialogflow.</p><ol><li>Create our Dialogflow account by using the link (https://dialogflow.com/). Click on Sign for Free and proceed with account creation.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1015/1*k9GtTYkAKFtrQfA-x4GHpg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*6VnE4urfuALFHhsZ8L6Yhg.png" /></figure><p>3. Select your google account, and it will direct to the Google Dialogflow home page. Click on Go to console in the upper right corner to navigate to the home page of Google Dialogflow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*pcTzOyYWWphc7mLF0eK3jg.png" /></figure><p>2.4.2 Creating an Agent</p><p>An agent is a virtual agent or bot that handles the conversation with end-users. We can design or build a Dialogflow agent to handle the different types of communications required by the system. These can be included in any app, product, or service and transform natural user requests into actionable data</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*oluwmvnFoM8RsRxALXwTAg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vH1YdBXFJiMu3XiCzEMy-w.png" /></figure><p>3. The Agent gets created and gets listed below the Dialogflow icon. If there are multiple agents, use the dropdown down button to select the Agent for editing or adding new data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*UwuyNKyJ_YmDh0705sghlg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CbCfGxg77mj1Y48AkCfOjg.png" /></figure><p>2.4.3 Creating an Intent</p><p>Intents are mappings between a user’s queries and actions fulfilled by our software.</p><ol><li>Click on the plus icon as specified in the below image to create a new intent, which allows you to map what our user says to what our agent responds. Provide a name as Weather and click on the SAVE button.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1ZkjJycMQdsJLqzjHtac6A.png" /></figure><p>2. Click on ADD TRAINING PHRASE and then add Training phrases. Training phrases are examples of what users can say to match a particular intent. Adding numerous phrases with different variations and parameters will improve the accuracy of intent matching.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*givXdkFqrgv5uA40T6kG8w.png" /></figure><p>3. Highlight the dates in each phrase and right-click to select the system entity like @sys.date to capture a day. Similarly, select the system entity @sys.geocity for the city. This step involves identifying the purpose of the user conversation and saving the data to improve communications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IPC8vSCBKckGFydfaF0Sug.png" /></figure><p>4. Click on ADD RESPONSE to provide an appropriate reponse to user queries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*13MAXvlLseF585FgXgi-Zw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1013/1*EK3XwJ92ww4xsvPYsQcveg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1003/1*taWIGHFjRhZ1zFYtCxv6vg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bEYsOIo2ZohUVn9ly0OkIA.png" /></figure><p>2.5 Understanding the building blocks of Dialogflow</p><p>In the last section, we have created a simple Weather Agent(bot) utilizing some of the features of Dialogflow. In this section, we would be giving a brief of all the features of Dialogflow, which would help to understand the next segments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*pR23LHktF0WpRvV-qyjwJA.png" /></figure><p>2.5.1 Agent:</p><p>An agent is a virtual agent or bot that handles the conversation with end-users. It incorporates Natural Language Processing to understand what the user meant and to figure out what “action” has to be carried out. Agents succeed in conversations with the user through intent, entities, contexts, and other building blocks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*qJ98cx-Q-YeCIQwWp4GJCg.png" /></figure><p>2.5.2 Intent</p><p>Intents determine the action to be taken by the code. It is a mapping of what the user says and what our software should do with the user utterance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1015/1*xgNsbi3SSbHT4AAYZEaBUw.png" /></figure><p>Two types of intent: Default intent: Dialogflow provides two default intents, namely default Welcome Intent (for greetings) and Default Fallback Intent (Default fall through intent when no other intents match). Custom intent: Dialogflow provides options to create customized Intents based on business requirements.</p><p>a. Intent Name: Create a new intent with the name Online consultation and save it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/1*W_ulVzCIOmTabJojKkTCmA.png" /></figure><p>b. Training phrase: The phrases you can expect from the user that will trigger the intent. Examples of what the user says to match a particular intent. Adding numerous phrases with different variations and parameters will improve the accuracy of intent matching.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/351/1*EV4nYXdJ6vQxndaerjalww.png" /></figure><p>c. Action and Parameters:</p><p>The inputs we need from the user to act on the user request. e.g., consultation. Examples are dates, times, names, places, and more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*qDRMYIIb5kcXEIhTaT8Xxw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/839/1*BH53YxJ7G4N_Y6l3Jnjd_A.png" /></figure><p>2.5.3 Entities</p><p>Entities identify and extract useful data from user’s inputs. While intents help to understand the motivation behind a particular user input, entities pick out specific pieces of information that the users mention.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PiGzrQAa735doJw9cVJETg.png" /></figure><p>Two types of entities; System entities: In-built entities provided by Google Dialogflow.</p><p>Customer entities: The developer creates customized entities. Here, we have created an Entity “Consultation,” provided the synonyms, and saved it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/925/1*ENb7M7jukjfEks4haTtagA.png" /></figure><p>2.5.4 Fulfilment:</p><p>Fulfillment helps to use the information extracted by Dialogflow’s natural language processing to generate responses dynamically or to trigger actions in the back-end. a. Configure fulfillment: i. Enable fulfillment by sliding Enable webhook call for this intent to the intents, which involve some logic building or to trigger actions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*xXIzfCI9M-CxfUktrrX6BA.png" /></figure><p>ii. To enable the inline editor, Click on Fulfillment in the left menu. Click the switch for Inline Editor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*GCicLZZ3eRSQnQ8exA8W-g.png" /></figure><p>iii. To deploy our fulfillment, click Deploy under the code editor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/919/1*tbmwMeAqiNfNkCrlf79uvQ.png" /></figure><p>iv. To export our code: Once you’re ready to move our code out of the Fulfillment page, you can use the Download button to get a ‘.ZIP’ file of it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*o_F10mrnIeqk5TWqrUXXOw.png" /></figure><p>2.5.5 Integrations</p><p>Dialogflow integrates with many platforms like Slack, Google Assistant, and Facebook Messenger. These integrations provide platform-specific features for building productive responses.</p><p>Note -This feature discussed in detail in the subsequent sections.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1013/1*-kZtXvskbOlxevWOiSWlug.png" /></figure><p>2.5.6 Training:</p><p>Dialogflow’s natural language processing built on machine learning. We can add training data that the agent learns from and uses to improve its performance. Dialogflow’s training feature provides an interface for incorporating both external and internal customer interaction logs into an agent’s training phrases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ty7g0BJNBsnPOspUhBAxEQ.png" /></figure><p>2.5.6 History</p><p>Dialogflow History section displays a simplified version of conversations the agent has engaged. The records provide an overview of how users interact with the agent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*kyeK6J7b-WxZw1uX91z0JQ.png" /></figure><p>2.5.7 Analytics</p><p>The Analytics screen of Dialogflow gives understanding into how well the agent is performing so that we can work on to improve further the user experience you’re providing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*YUmBb7zhemgvl3BTbBc2uw.png" /></figure><p>2.5.8 Pre-built Agents:</p><p>Pre-built Agents are the agents provided by google Dialogflow which can be imported as agents and utilized based on the requirement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k5kCrKWndGlzvjsIrd5JVA.png" /></figure><p>3. Dialogflow: Linear and Non-linear</p><p>We can create Dialogflow to retain the flow of conversations. Dialogs can be linear or nonlinear.</p><p>Linear Dialogs</p><p>Linear Dialogs can span single or multiple intents. The primary reason for Linear Dialogs is to capture information from the user to complete actions. Context permits information sharing to simulate a more natural conversation</p><p>Non-Linear Dialogs</p><p>Non-linear dialogs help to branch to corresponding intents based on user responses.</p><p>3.1 Linear Dialogflow When the flow dialogs between the user and Agent is linear, then it is called Linear Dialogflow. Information from the user replies is collected, and the next intent gets invoked. Linear Dialogflow is developed using a single intent or multiple intents.</p><p>3.1.1 Linear Dialogflow using Single intent: We can collect the information from the user in a single intent and capture that information in parameters in a linear form, using the options in the “Action and Parameters” section while creating an intent. We are discussing the same via an example below. Let us consider the flow below where the Agent is requesting for user details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*xbOJLYa5F7BUV-h-0WFtZw.png" /></figure><p>Steps to create Linear Dialogflow with a single intent:</p><ol><li>Login to Google Dialogflow and connect to the Healthcare Agent created in the previous section. 2. Create an intent with the name User Details as we would be collecting the Details from the user</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*Rwz21-1ugy0saXRAOn09Kw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*28zspd6xZ75AUgdQdGNUlA.png" /></figure><p>4. Capture the disease in a parameter. So, we would create a custom entity. Save the intent and Click on Entity to create an object with the name Disease. Provide the data as below and click on save.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*iESpb3blTF163OAxb1cKVg.png" /></figure><p>5. Go to the intent User Details. Highlight cold, a small window will be displaying a list of all available entities (system and custom), select the object “Disease.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*GRFA-LXCSFAgNwaxL9ZNCA.png" /></figure><p>6. Selecting the entity would associate the parameter with the import information in the training data. Please follow step 5 for the highlighted data in the Training phrases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*RRboXv00o3iZNk4_Rdl9vQ.png" /></figure><p>7. Go to Action and Parameters. Disease parameter is listed, we can add other parameters like Name, Age, Email, Phone-number to collect information from the user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/519/1*qkM7CC9Ypbp_JXMYQl72ww.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*HBl6ADSInEel8wFvkmbeWQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*sOkWFQEd6z6Qyj9Ci8V8hA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/881/1*9eCxJjkAquOleycKIk50Sg.png" /></figure><p>e. Under the prompts section, click on Define prompts to provide the Bot response to collect the user name. A pop-up window would be displayed requesting to provide the prompts. Add a prompt Please give the name as shown below. Click Close.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*eVAI4P0dfQeroKzeq6Yqeg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*Tmsb9nzGYtB5wFZwh15c9Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*G3rZHnGfyH8DpIcQNzMmyw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*eXT7Km8raWy7cK3hvPgmxw.png" /></figure><p>3.1.2 Linear Dialogflow using multiple intents:</p><p>Here, the linear dialogs flow to numerous intents. The main objective of the linear dialog is to elicit the pieces of information from the user required to fulfill the user intents from multiple intents. We can use follow-up intent to make the data flow to different intents, and any intent can utilize the data from the previous intents. Here we would be utilizing two concepts to be precise follow-up intent and contexts.</p><p>Contexts Contexts signify the current state of a user’s request and allow the agent to carry information from one intent to another. We can use combinations of input and output contexts to control the conversational path the user takes through our dialog.</p><p>a. Output Contexts: When applied to an intent, an output context tells Dialogflow to activate a context if it’s not already active or to carry the information(parameters) from the current intent to the follow-up intent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*6C7RSpb6fgXx1XxATsEdrA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*VHiNFJnI02vVHm-pX-SnJQ.png" /></figure><p>Follow-up Intent</p><p>You can use follow-up intents to set contexts for pairs of intents automatically. When we create a follow-up intent, an output context is automatically added to the parent intent, and an input context of the same name is added to the follow-up intent.</p><p>Let us consider the following flow where the Agent is requesting for user details</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*MowXzg8GLEqdJF06QiDHEA.png" /></figure><p>Steps to create linear Dialogflow with multiple intents using Context and Follow-up intents:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*ZRxwMGhLJ7iQ-w6Cvbw50Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/1*dNKj0qQlPbaLMoNfCJrtCw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*aTrJiJybq2Rq6onc2zNQ1Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/995/1*RToTpuQaPaK_gMwgQDtzdw.png" /></figure><p>e. Click SAVE to save the current intent. Click on Intents to view the list of all available intents and select the Disease Intensity intent and click Add Follow-up intent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mbX3yoQX6WS7U0CoaIGYXw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/1*gXinxpXlOOJjt2EuW_c-Fw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ICxx5ss1l3Baq9gW4x1XHg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cut8-wZMAdMntm2kcftUZA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FlZUv-GK9C04sDX2blrydA.png" /></figure><p>j. Create output Context to forward the current entities in the next intent. Type Diseaseintensity-follow-up, and it gets added with a default life span of 5. We can increase or decrease the life span based on our requirements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pxiOBQ1tGw3p1zot98QHDg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e90ZDGjIrzPZL_CnbUYW7w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8YrIv6zr8cdM1xGz9o84LA.png" /></figure><p>m. Go to the Disease intensity — duration and create a follow-up intent as Disease intensity -rash. Add the output contexts, as shown below. Click Save.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2BEBgYNJKr1Wz_6iRY_eFA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uSDWFV-H-Ia95Qod0XNMsg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SNgRzrw5GZwykuj4M_74Pg.png" /></figure><p>p. Go to the response section of intent and add the following data</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SwtuEEpEtNZts_7e19HKtA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H3RqELG6yS2U0u7VVbR72A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LVfbFh8v6WIi4WpEbHhTng.png" /></figure><p>s. Add the training phrase</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*sDYwDgOsh46kzJ6Y8HVptg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*ntfxxjJ4Tth0WexpHhqJNw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*jAaBE1BrhYuyzDMO7x-pqg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*sksWD5xDn-JYMw2feqCltg.png" /></figure><p>3.2 Non- Linear Dialogflow:</p><p>It requires more than one intent. Non-linear dialogs branch to the next intent based on responses from the previous intent given by the user. The branch is based on the input context, and the input context of next should be the same as the output context of the current intent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*ng6CwZ9ojV9gHOh3CcqYzA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*hKXht727vKMhP_ERTPX_Ow.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*5J_ssxLvaW86132VMZ3wTA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*Z4de5Z0t6SzXCrDPeIRPxQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*3M3YrKECQW2DQIW_Op_RRw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/546/1*7umjOgEbz1aerRY29metsw.png" /></figure><p>4. Integrations</p><p>Integrations:</p><p>Go to integrations tab on the left-hand side an enable the integrations</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PNd0MIzhE0k0g9NRhEj4vw.png" /></figure><p>4.1 Dialogflow Web Demo:</p><p>The Web demo allows us to publicly share our agent through a generated page or by embedding it in our current portal/website.</p><p>Setting Up a Web Demo</p><p>To create a web demo for our current agent, click on the Integrations option in the left menu of Dialogflow and then click the switch on the Web Demo tile.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*Bu3cHTYOthvZ3ACzblB6bQ.png" /></figure><p>After Web Demo is enabled, a window will be displayed with the following info:</p><ul><li>A URL to the generated webpage where our agent is hosted</li><li>A link to icon and description settings, which affects our agent on the generated webpage</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xedw9DJ03sjemGw6ri8i0w.png" /></figure><p>4.2 Telegram:</p><p>To set up the Telegram integration for our agent, you’ll need a Telegram account.</p><p>Creating a Bot in Telegram</p><ol><li>Log-in to Telegram using the link <a href="https://telegram.me/botfather">https://telegram.me/botfather</a></li></ol><p>2. Click the Start button in the web interface or type /start in Telegram</p><p>3. Type /newbot and provide a name</p><p>4. Provide a username for the bot, ending in “bot” (e.g., garthsweatherbot) Copy the generated access token</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*czbQ6_D2vcD2WX_H8dG4JQ.png" /></figure><p>Setting Up Dialogflow</p><p>5. In Dialogflow, go to Integrations available in the left-hand menu</p><p>6. Click on the Telegram tile to enable the Telegram integrations.</p><p>7. Paste the Telegram Access Token into the related field. Click the Start button</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*KMJjWoebSR50V8u9SWSZpw.png" /></figure><p>5.1 Fulfilment and External API integrations:</p><p>Fulfillment:</p><p>If an intent requires some actions by the system or a dynamic response, we should enable fulfillment. When a fulfillment enabled intent is matched, Dialogflow sends a request to our webhook service with information about the matched intent. Our system can perform any required actions and respond to Dialogflow with information on how to proceed. The below diagram shows the processing flow for fulfillment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Kgxflcy7bvqr1j1a3BgEg.png" /></figure><p>5.1 External API call — Clinics list based on specialty</p><p>In this section, we are extracting the Clinic list based on the specialty from an external API. We would display the contact number and name of the clinic based on the specialty.</p><p>5.1.1 Generating the API key</p><ol><li>Register to generate the API key using the link <a href="https://developer.betterdoctor.com/">https://developer.betterdoctor.com/</a></li></ol><p>5.1.2 Create Agent and Intent</p><p>1. Create an Agent and Intent with the following details:</p><p>a. Create an Agent DoctorsClinic_Speciality</p><p>b. Create an intent Doctors_Speciality</p><p>c. Add Training phrases</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FHgye9CSQYCs9YbZkoYLQg.png" /></figure><p>5.1.3 Fulfilment code:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o8IV1nZ8lt5VOehFGndYlg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b2cYa6-44u5YDc8gLEH5Aw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*7JpIdyz7wHxY-9d_VBSkNQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*euAgNp9Jfg8Qi9IOWZ_K_g.png" /></figure><p>5.2 Email integration In this section, we would send an email with appointment details created in section 5.1 to the user.</p><p>5.2.1 Intent Creation</p><p>We would create a follow-up intent to Make Appointment, called Send Email with the following details: a. Intent Name: Send Email Note: Input Contexts automatically added to the newly created so that we can use the date and time captured in intent Make Appointment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*FnFg5KqnrE-LIxnjhCXwLQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*mosPjkEz0nCXpcqOf1bgHA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/1*iv69PwdHNu9GGzePAHsfTw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/1*iv69PwdHNu9GGzePAHsfTw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*xr8-04aQTbGywYClxb0ZDA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*9cGa0H5sHceFEdQ-tYELGQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*OSflQ4MJad2MaPtsW-cQXQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*axYikhKwFAXiLEPdO8NW0w.png" /></figure><p>3. In the index.js tab and insert the email and pdf function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*I70u8rE2b1t4GPD1U04_Rg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*XVzTvuztp2NU4PlAHUIb2g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*xg2xhaSN0WBwPJS8ZP2nTA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*dOc_UNZkpjhPYE-b17JBMA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*9O25L8anpA1N-9VUc8EUyw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*fe9nLwRk0xl67z1QioMSVA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*i5JBmQIvThvbywu5rsrp8g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/931/1*OocK5MnIggQ32uVNkUetMQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*KxwPc-sweFdWN8x2tPUQmw.png" /></figure><p>i. Select Deploy</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W8kUUcWGi3KnrZyUt4opYQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MDL_mDiWojbFB6vZH9bWoA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8jDHudAvMONvBvEatTU3RA.png" /></figure><p>Happy Learning</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=248b3242773" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>