AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

How to get to an older that?
 
 

So, I ran into the following problem:

Let’s assume the last response from the bot is: “Then you will never know. Anyways, how are you today?”

The question comes from a random question pool. However, I want to target the answer to the first part, e.g.:

<category>
    <
pattern>PLEASE TELL ME</pattern>
    <
that>THEN YOU WILL NEVER KNOW</that>
    <
template>OkI will tell you next time.</template>
</
category

However, the that contains only the second sentence thus never working. Is there a way to get to the other that? I tried <that index=“2”> but it doesn’t seem to work that way…

 

 
  [ # 1 ]

You can use indexes to access older parts of <that>

<that index=“1,2”> mean the last “that” and the 2nd part from the end.
<that index=“2”> means the 2nd to last <that>

Indexes (indices?) work backwards.

 

 
  login or register to react