<?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 Chitteshwari S on Medium]]></title>
        <description><![CDATA[Stories by Chitteshwari S on Medium]]></description>
        <link>https://medium.com/@chitteshwarisatish?source=rss-25bf1423546b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ElXfL7v0Sl-FpNDq</url>
            <title>Stories by Chitteshwari S on Medium</title>
            <link>https://medium.com/@chitteshwarisatish?source=rss-25bf1423546b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 05:54:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chitteshwarisatish/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[Build A Bot — Using Dialogflow CX]]></title>
            <link>https://medium.com/@chitteshwarisatish/build-a-bot-using-dialogflow-cx-7ae739519ae0?source=rss-25bf1423546b------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ae739519ae0</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[contact-center]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[chatbots]]></category>
            <dc:creator><![CDATA[Chitteshwari S]]></dc:creator>
            <pubDate>Sat, 04 Feb 2023 15:05:39 GMT</pubDate>
            <atom:updated>2023-02-05T06:09:12.029Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Build A Bot — Using Dialogflow CX</strong></h3><p><em>by Chitteshwari Satish and Shruti Ohri</em></p><p>Contact Centres are an integral part of any industry, as they strike a balance between representing your brand and maintaining customer care. Living in a world of growing digital needs and expectations, almost every customer expects your brand to have an easily accessible support service which can be used via digital speech and text channels.</p><h4><strong>WHAT IS CONTACT CENTER AI (CCAI)?</strong></h4><p>As the volume of customer calls increases, it’s becoming even more important to make the most of human agents’ time to lower costs and improve customer experiences. <a href="https://cloud.google.com/solutions/contact-center">CCAI</a>, offered by Google Cloud Platform (GCP) enables us to do just that: it frees human agents to concentrate on more complex calls by providing them with real-time information to better handle those calls.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PegBNli_htGMw4LV" /></figure><p>Some important features of CCAI are mentioned as follows:</p><p>1. <strong>Single source of intelligence</strong>: Contact Center AI provides a consistent, high-quality conversational experience across all channels and platforms, both human and virtual.</p><p>2. <strong>Ability to go off-script</strong>: Contact Center AI lets callers carry out discussions varying from the main conversation, while still focusing on the main objective of the call. With CCAI, virtual agents can answer complex questions and complete complicated tasks, in spite of working through unexpected stops and starts, unusual word choices, or implied meanings.</p><p>3. <strong>Versatile fulfilment</strong>: CCAI has the ability to handle multiple use cases for the customer with the same virtual agent, including taking a payment, updating information like a phone number, giving a customer information on their balance, and processing information for other tasks, all within the same conversational flow.</p><p><strong>How does CCAI Work?</strong></p><p>CCAI has three key components:</p><ul><li><strong>Conversation</strong>: CCAI enables and orchestrates high-quality conversational experiences at scale. Its ability to understand, talk, and interact makes it possible for customers to have conversations with a virtual agent that are as good as conversations with a human agent. This includes understanding, talking using the text-to-speech feature and interacting dynamically by understand the cstomer’s intent and thereby building the flow of the conversation.</li><li><strong>Virtual agents with</strong> <strong>Dialogflow</strong>: This component automates interactions with customers, using natural conversation to identify and address their issues. Virtual agents enable customers to get immediate help anytime, day or night. The <em>Agent Assist</em><strong> </strong>component brings AI to human agents to increase the quality of their work, while decreasing their average handling time. Agent Assist shares initial context and provides real-time, turn-by-turn guidance to coach agents through business processes, as well as full call transcriptions that agents can edit and file quickly.</li><li><strong>CCAI Insights</strong>: CCAI Insights aids your contact center management team in making better data driven decisions for their business by breaking down conversations using natural language processing and machine learning. This allows your business to reduce manual analysis and focus on decision making.</li></ul><p>A user using CCAI initiates a chat or voice call and the contact center provider connects them with CCAI, a virtual agent engages with the user and fulfils the request by connecting to the backend.<br>When necessary, the call is handed off to a human agent, who sees the transcript of the interaction with the virtual agent, gets feedback from the knowledge base to respond to queries in real time, and receives a summary of the call at the end. <br>These insights help you understand what happened during the virtual agent and live agent sessions. <br>This result is improved customer experiences and CSAT scores, lower agent handling times, and more time for human agents to spend on more complicated customer issues.</p><h3><strong>OUR EXPERIENCE:</strong></h3><p>While trying to understand the working of Contact Center AI, and the multiple options provided by it, my teammate Shruti Ohri and I decided to research and build upon the DialogFlow CX API of Contact Center AI.</p><p><strong>Our Objective:</strong></p><p>Our objective was to build a chatbot using DialogFlow API, based on the functionalities of speech to speech, text to text and speech to text communication. It would include the provision of a transcript being provided to the user in case of speech based conversations.</p><p>Our chatbot is built for an imaginary restaurant and caters to multiple functions with respect to it such as table reservations, food enquiry, catering services, job opportunities, collaborations and reservation cancellations. It aims at providing a smooth AI based customer service to the customers, where multiple problems can be solved for — simply through a chatbot.</p><p><strong>THE BACKGROUND:</strong></p><p>After exploring the platform, and going through several tutorials — we worked out the layout of our chatbot. The first step of the process was to decide the major flows for the layout, which we would in turn determine the consequent steps.</p><p>The first step was to create an agent in Dialogflow CX — which we named Restaurant Assistant. It is also important to wisely choose the location of the agent since it cannot be changed later. Here, we chose “global”, since only this option offers access to making a voicebot, i.e., a speech-to-speech bot that can be communicated with through the phone by making a simple call.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/0*fOdd2afO3KoRvYHj" /></figure><p>Once created, the chatbot can be tested along every step of the way using the simulator and also actually used using the “Dialogflow Messenger” option available under Integrations menu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZKIqPRzoROjC7x76" /></figure><p>Once the agent was created, we categorized the services provided by our chatbot into the following primary flows: Hiring, Management, Reservation Cancellation and Waiter Section.</p><p>The purpose of having separate flows is to segregate the chatbot on the basis of the various departments in the restaurant (and the same can be applied to any company or organization). The reasoning behind it is simple — if the manager of the waiters wants to check who has made a reservation through the bot, they shouldn’t have to scour through the various bookings concerning other departments. With the existence of a “Waiter Section” flow, they can easily access bookings and queries that concern their department and in case of any unavailability of reservations, make appropriate changes to inform the user by accessing the same flow itself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KSXKnwOI0uJSNFkr" /></figure><p>Let’s take a quick look at the functioning and purpose of each flow:</p><p><strong>TABLE RESERVATIONS:</strong></p><p>The most basic functionality of a restaurant chatbot would be to facilitate online reservations. To provide for this, the chatbot is expected to enquire about the following features:<br>i) The number of people expected to dine<br>ii) The date of reservation<br>iii) The time of reservation<br>iv) Contact Details</p><p>Once the user states that they are looking to reserve a table, the chatbot enquires about the number of people expected to dine. Following that, they are expected to give details about the date and time for the reservation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nCJNlVw_Zv_VgDSL" /></figure><p><strong>RESERVATION CANCELLATIONS:</strong></p><p>We understand the importance of having an easily accessible method for cancelling reservations, without too much of a hassle. To provide a hassle-free cancellation process to our users, we have provided this feature by our chatbot as well.</p><p>Incase of reservation cancellations, the chatbot will inquire about the existing booking details (date and time) of the user, and will follow up with a cancellation confirmation regarding the same. This makes the entire process easier for the user as well, completely digitised.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*C0ytV_JMXyHR59fQ" /></figure><p><strong>CATERING SERVICES:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*b0WBnZkJqegyB-e5" /></figure><p>Now, in the following case for catering services (which comes under the Management flow) — we’ve accommodated the following factors:</p><p>i) Catering services will be provided for events catering to a guest capacity of up to 50 only.</p><p>ii) Reservations must be within the restaurant timings only.</p><p>When a user tells the bot that they are interested in catering services, the chatbot enquires about the number of guests the event is expected to cater to. If the number of guests is more than 50, the chatbot will refuse and immediately redirect the chatbot flow to end the session. This is demonstrated in the video below.</p><p>However, in case the guest capacity is less than 50, the chatbot takes further details about the event details, date, time and contact information. Once the reservation is made, the chatbot repeats the reservation details to avoid any error and asks for the user’s confirmation.</p><p>In case the user confirms, the reservation is final and leads to a session end, otherwise in case of no confirmation the entire process repeats itself again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fYJIPtv3LZIBlsfE" /></figure><p><strong>HIRING:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9nTLgGMrFKrYOmxQ" /></figure><p>Hiring is broadly divided into two aspects — job opportunities and collaborations.<br>Here, while considering the job aspects of our chatbot — we aimed at covering all queries and options regarding job roles for three positions — chefs, waiters and cashiers.</p><p>Once the user tells the chatbot that they are interested in knowing about job opportunities, the chatbot guides them with follow up questions asking for their experience and contact details. In some cases, if the experience is less than the expected qualifications for the job role, the chatbot informs the user of the same.</p><p>Similarly, the collaborations page was provided in order to facilitate temporary partnerships between the restaurant and people working as social media influencers, Youtubers, food bloggers, etc. in order to create a tie-up for social media publicity of the restaurant (something which we see very commonly these days). The bot enquiries as to what kind of role the user has and what kind of tie-up they would like to have with the restaurant.</p><p>If the experience is aligned with the expected amount of experience or services required, the chatbot asks the user/applicant for their contact details which will get stored in the database, ensuring that someone from the restaurant looks upon a follow-up with the same person.</p><blockquote>Here, it is extremely important to manage the flows and link different pages together in case of redirecting the user to the next step.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*l0BmSvw6eI_v1N-D" /></figure><p>We can also inform the user in case of unavailability of certain job positions at that point in time. We assumed that the restaurant wasn’t looking for new chefs at that time. In that case, the conversation might go as displayed in the video below:</p><p>Otherwise, if the job is available, the conversation would flow in a similar manner to the video below:</p><p><strong>ALLERGY AND FOOD ENQUIRY:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Njb2JjhagMYXxX6N" /></figure><p>While making any restaurant reservation, one of the most important precautions one looks forward to are allergies and vegan options. This function is included under the Waiter Section flow itself, since these are enquiries that are usually handled by the servers in the retaurant. Our chatbot provides users with a feature to inquire about 4 different kinds of allergies along with vegan options.</p><p>In terms of allergies, our chatbot responds to enquiries regarding the following allergies:<br>i) Dairy <br>ii) Soy <br>iii) Gluten<br>iv) Nuts</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BEADAfwBnWRLt43t" /></figure><p>When someone uses any of these keywords to enquire about the respective allergies, the chatbot detects the respective allergy options — and provides menus regarding the same so that the user can browse through menus exclusive of their allergy requirements.</p><p>Similarly, the same process is followed for vegan options as well.</p><blockquote>Here, we have ensured to use a maximum range of allergy options and keywords to ensure that the chatbot can respond to a variety of questions and respond with relevant solutions.</blockquote><p>To redirect the user to different pages on the basis of the allergy requirement the user has, we have made use of these fulfillment features.</p><p>Here, once the user states the kind of allergy they are seeking options for, the chatbot immediately redirects them to the respective page — due to the keywords and options inserted through the fulfillment options.</p><p>This brings us to the technical aspects of the working of Dialogflow CX.</p><h4><strong>TECHNICAL ASPECTS:</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fN-mOTSDVN9FiXEz" /></figure><p>The technical aspects of the tool can be found in the “Manage” menu on the main page.</p><p><strong>FULFILLMENTS:</strong></p><p>Fulfillmets refer to what the bot says or responds to a user trigger, or in other words, how it fulfills the current needs of the user as described in the current point in their conversation flow. We usually provide multiple options of fulfillment or dialogue that the bot answers with, in order to enrich the conversation as well as to help train the agent further using Machine Language.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8TbgQzDoEKeW9asb" /></figure><p>We can also provide other forms of fulfillmets. They include custom payload and webhooks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MfDQVowGhDt5x-i3" /></figure><p>Custom payload is a JSON code that we can enter to allow for a richer chatbot experience.</p><pre>{<br> &quot;richContent&quot;: [<br> [<br> {<br> &quot;options&quot;: [<br> {<br> &quot;text&quot;: &quot;Bookings and Reservations&quot;<br> },<br> {<br> &quot;text&quot;: &quot;Food Enquiry&quot;<br> },<br> {<br> &quot;text&quot;: &quot;Collaborations&quot;<br> },<br> {<br> &quot;text&quot;: &quot;Work Opportunities&quot;<br> }<br> ],<br> &quot;type&quot;: &quot;chips&quot;<br> }<br> ]<br> ]<br>}</pre><p>It looks like this when using the chatbot:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/478/0*YMU0CjUX-TDdhSs7" /></figure><p>The user can simply click on any one of the 4 buttons or chips to proceed with the conversation, which reduces the amount of guesswork on the part of the user, provides for more accuracy and also is more convenient.</p><p><strong>INTENT, ENTITY AND PARAMETER OPTIONS:</strong></p><p>Fulfillment options are created and filled using intent and parameter options.</p><p>Intent deals with a specific topic of conversation that the user wishes to converse about. For instance, asking whether the restaurant offers birthday party bookings is an intent, asking for vegan food options is another intent. Saying hello and activating the bot is an intent too! Just like in real life conversations, the intent of the conversation with the bot changes every step of the way, as the conversation proceeds further and becomes more complex and detailed. Intents in Dialogflow CX are used in order to detect when the user is changing the topic and to accordingly respond to them in an accurate way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7XZtlOzmyqpMfZuI" /></figure><p>Training phrases such as those shown above are entered, so that the bot is “trained” to detect and respond to a diverse range of sentence structures and formations that we normally use in regular speech.</p><p>Here, the words highlighted in various colours correspond to various <strong><em>Entities</em></strong><em>, </em>which form another critical part of the bot building process. Each entity corresponds to a specific type of information that is gathered. The green highlights above indicate the “number” entity (a default entity used to identify the number of people dining) and the purple highlights indicate date and time of reservation (again, a default entity provided by Dialogflow CX).</p><p>We can also create custom entity types as shown below to provide for our organization’s needs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/860/0*WYbCzCBd3QHcIwHv" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FMkc1zcG6VWCtyoO" /></figure><p>We create different triggers for the entity as well as provide synonyms for each, so that the bot can be trained using inbuilt Machine Language features to improve its conversation detection performance with each conversation that it has.</p><p>Similarly, we see the example of the Allergy and Food Enquiry intents.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pbXKgxnwOZmc2mIX" /></figure><p>These are some training phrases we used for the Allergy and Food options enquiry function of the bot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AFe7D7ie4Vbm216e" /></figure><p>Here, since we are concerned with allergy enquiries, the parameter here is ‘@Allergy’ (which is automatically detected from the training phrases). Now, we have mentioned various keywords (allergy relevant — nuts, gluten, soy etc) under the same parameter, so that whenever one of these keywords is mentioned by the user, the chatbot can detect the relevant solution to provide.</p><p>Custom entities are created under the type “Allergy” to detect various keywords and triggers related to the function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GseSlIxhn1f0PQyr" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rjTZ10LfnACFsw4J" /></figure><p><strong>EVENT HANDLERS</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Qt2x6kQMECfRetpC" /></figure><p>While using any chatbot, it is a common instance to lose chat flow due to several reasons. We have made an attempt to avoid such scenarios from taking place, in the following possible situations:</p><ol><li><strong>Invalid Parameters:<br></strong>In situations where the chatbot is unable to identify the parameter due to the usage of a word that hasn’t been defined under any parameter — the chatbot will be unable to continue with the flow. In such a situation, we have made a provision for the chatbot to request the user to repeat their query to repeat or continue the flow process.</li><li><strong>No Input Default:<br></strong>In circumstances where the user becomes unresponsive, causing a pause in the chat flow- the chatbot sends a message ensuring that the user is still there to maintain chatbot activity.</li><li><strong>No Match Default:<br></strong>In case of the parameter inserted being unrecognised by the chatbot, there is a no match default. This requires the chatbot to ask the user to repeat their query.</li></ol><h3><strong>THE BOT EXPERIENCE:</strong></h3><p>The following videos provide demonstration of the various functionalities of the restaurant assistant bot:</p><h4>Reserve a table:</h4><p><a href="https://drive.google.com/file/d/195MH7hMj9nS2GALxaeufDgydWKfz749h/view?usp=share_link">Table Reservation Demo.mp4</a></p><h4>Cancel a reservation:</h4><p><a href="https://drive.google.com/file/d/1DkXQQXnTizZmB5kzHuyiPW6NY-DKQx6r/view?usp=share_link">Table Cancellation Demo.mp4</a></p><h4>Collaborate with the restaurant:</h4><p><a href="https://drive.google.com/file/d/1r8uRhTqjZ1wcSnw0TAKLIE-2E46TLso8/view?usp=share_link">Collaboration Demo.mp4</a></p><blockquote>Anyone can experience our bot using the voice bot feature. To talk to the restaurant assistant agent demonstrated here, simply call (813) 344–5069 on your phone.</blockquote><h4><strong>Additional Features:</strong></h4><p>After creating the chatbot and ensuring that it works with reference to text-to-text, speech-to-speech and text-to-speech versions — we recognised other changes that could be introduced to accentuate the working of our chatbot.</p><p>The bot has a transcript feature, in which the conversation with the user is recorded in the Google Cloud logs, including every detail mentioned by the user (unless the information is redacted for privacy or other reasons). The stackdriver logging provided by GCP and Dialogflow CX show the history of chat interactions with the bot, and therefore organisations can access the records as per their convenience to keep track of user needs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7r1dvjvpOZovaEwV" /></figure><p>This option is available under “Agent Settings”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oPZxjR7TwwsPoF-c" /></figure><p>The logs are then available for download and can be formatted for ease of use.</p><p>Additionally, the webhook functionality of Dialogflow CX provides scope for greater innovation and development of the bot, including but not limited to better databases, integration of the bot into a website, greater accuracy, etc.</p><p>From our experience, we found Dialogflow CX to be very user friendly and beginner friendly. The advanced software developed by Google Cloud Platform results in a very powerful tool for building AI chatbots, offering multiple functionalities that are actually useful for real world organisations who are looking to enhance their customer service by redirecting standardised queries and FAQs to chatbots, thereby allowing human employees to be available for more complex interactions. Dialogflow CX, although a recent tool, is a great point to step into the world of chatbots for anyone who loves building and conversing with an AI, aiding in creating a more digitally progressive world.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ae739519ae0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>