Digressions

Digressions

Module7 : Understanding Digressions

Welcome to the seventh module of how to build chatbots. At this point, you should have a solid understanding of what context variables and slots bring to the table.

There is still one problem we're facing that we don't have a solution for yet. Consider the following interaction. The user asks the chatbot for some flower recommendations. The slot will ask for what occasion. Instead of replying with an occasion, the user decides to ask about hours of operation. The slot will continue to pester the user, asking for the occasion and ignoring other questions from the user. Even though technically the chatbot knows how to answer such questions.

The problem is that required slots won't quit asking their question until an acceptable answer has been provided and stored in a context variable. One option we have to make the interaction less obnoxious is to configure the not found section of a slot. Found and not found sections allow us to specify what the slot will say to the end-user when they reply with an acceptable answer and when they don't, respectively.

Typically you'll use the found section to thank the user for answering your question, or just leave it blank as it is by default. More interestingly, however, we can use the not found section to make asking the same question again less awkward. In other words, we can soften the blow of ignoring their second question by apologizing for having to ask the question again. Here's a practical example of how configuring the not found section of a slot can make the interaction a little smoother. You'll notice that when the user asks us an unrelated question while the slot is asking for the specific occasion, we don't just repeat the question verbatim. In this case, we say something like "Sorry to ask again, but what occasion would you like flower recommendations for?" It comes across as significantly more empathetic and less robotic, even though technically we're still asking the same question. This is an improvement, but wouldn't it be great to be able to answer the a side question we received from the user and then come back to the original question? That's what a human agent would do in most circumstances. It turns out this is possible thanks to digressions. We can allow a slot to jump to a different node after having asked the mandatory question. We can specify that other nodes can return back to an originating slot after answering the user's aside question. Let's see a practical example of how this would work. When the user ignores our requests for specific occasion, asking our chatbot to provide store hours instead, digressions allow us to jump to the node that handles hours of operations. Since that node has a slot too, that slot will ask its own question about which city are the store hours for. Once the user replies with Toronto, the node will provide the information to the user can return to the original node where the slot will ask about the occasion once again. This is a workflow that works quite well and makes our chatbot come across as smarter and friendlier.

Collaborate with AI SPOTLIGHT

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

10 个月
回复

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

Lahari kadhirimangalam的更多文章

  • 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 : 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…

    1 条评论
  • 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…

社区洞察

其他会员也浏览了