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..

Using sets to set a variable
 
 

Any suggestion on how to use a set of words to set a variable?

ex.

<category>
    <
pattern>^ <set>negativefeelings</set> ^</pattern>    
    <
template>[Relating Events 1] <get name="personName"></get>: I am sorry you feel that way.
    <
think><set name="feelings"><star/><set>negativefeelings</set></set></think>
    <
srai>XREMINDER</srai>
    </
template>
    </
category

 

 

 
  [ # 1 ]

Can you give an example of what you are trying to do? You can refer to the second wildcard in your pattern as <star index=“2”>

 

 
  login or register to react