Interact With This Chatbot Through Voice And Audio

Vidyasagar Machupalli Vidyasagar Machupalli
May 3, 2018 Future of Work
Ready to learn Machine Learning? Browse courses like Robotics Application Machine Learning developed by industry thought leaders and Experfy in Harvard Innovation Lab.

This tutorial walks you through the process of defining intents and entities and building a dialog flow for your chatbot to respond to customer queries. You will learn how to enable Speech to Text and Text to Speech services for easy interaction with the Android app. Also, track the app’s usage metrics through Mobile Analytics service.

Objectives

  • Create a chatbot: create a workspace, define an intent and entity, build the dialog flow
  • Allow end users to interact with chatbot using voice and audio
  • Configure and run the Android app
  • Add Mobile Analytics to track usage

Before you begin

  • Download and install Android Studio

Create a workspace

To begin, you will create Watson Assistant service on IBM® Cloud and add a workspace. A workspace is a container for the artifacts that define the conversation flow.

For this tutorial, you will save and use Ana_workspace.json file with predefined intents, entities and dialog flow to your machine.

  • Go to the IBM Cloud Catalog and select Watson Assistant service > Lite plan under Watson. Click Create.
  • Click Service credentials on the left pane and click New credential to add a new credential.
  • Click View Credentials to see the credentials. Save the credentials in a text editor for quick reference.
  • Navigate to Manage on the left pane, click on Launch tool to see the Watson Assistant dashboard.
  • Click on Workspaces tab.
  • Click Import workspace

icon and choose the JSON file downloaded above.

  • Select Everything option and click Import. A new workspace is created with predefined intents, entities and dialog flow.
  • On the left pane, click

icon to see all your workspaces. Click

icon on the Ana workspace to View details of the workspace. Copy and save the Workspace ID for future reference.

Top 3 Bot Tutorials

1. Getting started with Dialogflow and building my first bot (Newbie’s guide)
2. DialogFlow(formerly API.AI): Let’s create a Movie ChatBot in minutes
3. Discord Bot Maker

What is an Intent?

An intent represents the purpose of a user’s input, such as answering a question or processing a bill payment. You define an intent for each type of user request you want your application to support. By recognizing the intent expressed in a user’s input, the Watson Assistant service can choose the correct dialog flow for responding to it. In the tool, the name of an intent is always prefixed with the # character.

Simply put, intents are the intentions of the end-user. The following are examples of intent names.

  • #weather_conditions
  • #pay_bill
  • #escalate_to_agent

What is an Entity?

An entity represents a term or object that is relevant to your intents and that provides a specific context for an intent. You list the possible values for each entity and synonyms that users might enter. By recognizing the entities that are mentioned in the user’s input, the Watson Assistant service can choose the specific actions to take to fulfill an intent. In the tool, the name of an entity is always prefixed with the @ character.

The following are examples of entity names

  • @location
  • @menu_item
  • @product

Read the complete tutorial

Next steps

  • Define an Intent
  • Define an Entity
  • Build the dialog flow
  • Add Speech to Text and Text to Speech capabilities
  • Configure and run the Android app
  • Add Mobile Analytics to track usage

Once you complete all the steps and run the app on an emulator or on a Android device, this is how it looks

  • Experfy Insights

    Top articles, research, podcasts, webinars and more delivered to you monthly.

  • Vidyasagar Machupalli

    Tags
    AutomationChatbotchatbot using voice and audioInteract With Chatbotworkspace
    © 2021, Experfy Inc. All rights reserved.
    Leave a Comment
    Next Post
    Data Science Digest

    Data Science Digest

    Leave a Reply Cancel reply

    Your email address will not be published. Required fields are marked *

    More in Future of Work
    Future of Work
    Where Will, the Future of Work, Take Place? (Office, Remote, or Hybrid)

    Changes in machine learning and advances in automation have already changed work for many industries. Still, the COVID-19 pandemic and recent labor shortages forced many brands to rethink what the future of work will look like going forward. The U.S. Bureau of Labor Statistics recently reported a dropping unemployment rate of 4.2% during the fourth

    4 MINUTES READ Continue Reading »
    Future of Work
    7 Tech Companies Changing the Future of Work

    Much has been reported about the impact of the COVID-19 pandemic in the traditional workplace. The effects of the pandemic are expected to be long-lasting, making it challenging for companies across all industries to keep operations running smoothly. Globally, companies had to be agile and adapt to a new normal, in addition to dealing with

    5 MINUTES READ Continue Reading »
    AI & Machine Learning,Future of Work
    AI’s Role in the Future of Work

    Artificial intelligence is shaping the future of work around the world in virtually every field. The role AI will play in employment in the years ahead is dynamic and collaborative. Rather than eliminating jobs altogether, AI will augment the capabilities and resources of employees and businesses, allowing them to do more with less. In more

    5 MINUTES READ Continue Reading »

    About Us

    Incubated in Harvard Innovation Lab, Experfy specializes in pipelining and deploying the world's best AI and engineering talent at breakneck speed, with exceptional focus on quality and compliance. Enterprises and governments also leverage our award-winning SaaS platform to build their own customized future of work solutions such as talent clouds.

    Join Us At

    Contact Us

    1700 West Park Drive, Suite 190
    Westborough, MA 01581

    Email: [email protected]

    Toll Free: (844) EXPERFY or
    (844) 397-3739

    © 2025, Experfy Inc. All rights reserved.