component of a chatbot : Entities

component of a chatbot : Entities

MODULE 3: working with Entities

Welcome to the third module of how to build chatbots. In the previous module, we mastered Intents. This module is entirely dedicated to Entities, the second key component of our dialogue skill.

As you know by now, Intents capture the user goal. Entities allow us to capture specific values within the user utterance. You might recall this example from the previous module. You'll notice how the chatbot is correctly detecting the Intent, but completely ignoring the specifics of the question. In other words, "when is your Toronto store open?" And "when is your Vancouver store open?" Are the same as far as our chatbot is concerned. That's because we haven't defined an Entity to capture that specific bit of information, namely the location of the store. So what we could do is create a location Entity. Notice how we use an at symbol rather than a pound symbol for entities. We can then define multiple values for our Entity, such as Toronto, Montreal, Vancouver, et cetera. One value for each store location that we have.

You'll notice that we can also define synonyms for a given Entity value. These can be dictionary synonyms, but are often synonyms in the sense that the user might refer to the Entity value in that way. Imagine, for example, our Toronto store is located on Warden Avenue. People might ask about hours of operation of our Toronto Store, or they might phrase it as what are the hours of operation of your Warden Avenue store? Either should lead our chatbot to detect the same Entity value. Synonyms are optional, but are a useful feature and worth defining when applicable. With our location Entity defined, we can now detect the Intent and the specific location. With these two pieces of information, we can provide an appropriate and specific answer to the user. Note that although Entities' values can have spaces in them, we need a special syntax to represent them. If the Entity value has a space in it, we simply wrap it in parentheses to refer to it when later on we'll define the rules of our dialog.

Other than entering them manually in Watson Assistant and importing them from CSV, there is also a third way to add Entities to your chatbot. In fact, there are some predefined system Entities that you can enable if needed by your chatbot. As you can see, there are quite a few options. sys-currency allows us to detect mentions of currencies within the user input. sys-date mentions of dates. For example, the user might reply to a question with next Monday, and sys-date will allow us to capture that piece of information as an actual specific date. sys-person allows us to detect common names, an easy way to collect people's names to make your chatbot more personal as you'll see later on in the course. System entities are quite handy, and they are constantly being improved upon. Make sure you check the system Entities available in your dialogue skill before you jump right to implementing your own entities.


Taught by: Antonio Cangiano, Engineering Manager and AI Specialist

IBM Developer Skills Network


Lahari kadhirimangalam

Analyst/Software Engineer at Capgemini || Power BI ||PL-300|| SQL || ETL Tools || AI-900 || Azure basic

11 个月
回复

要查看或添加评论,请登录

Lahari kadhirimangalam的更多文章

  • Digressions

    Digressions

    Module7 : Understanding Digressions Welcome to the seventh module of how to build chatbots. At this point, you should…

    1 条评论
  • Context Variables and Slots

    Context Variables and Slots

    Module 6 : Working with Context Variables and Slots Coming to the sixth module of how to build chatbots. Now that you…

    1 条评论
  • Deployment

    Deployment

    MODULE 5: Deployment we’ve created a basic, but functioning chatbot. The problem is that it’s currently available only…

    3 条评论
  • Component of a chatbot :Dialog

    Component of a chatbot :Dialog

    MODULE 4: Dialog In this module, we will finally address the third component of our dialogues skill, namely the…

    3 条评论
  • component of a chatbot : Intents

    component of a chatbot : Intents

    MODULE 2: working with Intents In this Article, we will discuss one of the three components of a chatbot, namely…

    1 条评论
  • Building AI Powered Chatbots Without Programming

    Building AI Powered Chatbots Without Programming

    MODULE 1 : Introduction to Chatbots In this Article, we're going to focus on one of the most popular applications of AI…

    1 条评论
  • Prompt Engineering : Techniques and approaches

    Prompt Engineering : Techniques and approaches

    Let's explore the techniques that make text prompts effective and improve the reliability of output generated by LLMs…

  • Prompt Engineering For Generative AI

    Prompt Engineering For Generative AI

    Concept of Prompt Engineering: Prompt A prompt is any input you provide to a generative model to produce a desired…

    2 条评论
  • AI Tools for Code Generation

    AI Tools for Code Generation

    The basic capabilities of generative AI for code generation, discuss the strengths and limitations of text-generating…

  • Tools for Audio and Video Generation

    Tools for Audio and Video Generation

    To describe how generative AI audio, and video tools create impactful media content, explain the key capabilities of…

社区洞察

其他会员也浏览了