Closed Deep-09 closed 5 years ago
You need to assign the match in each question to a variable as follows
<category>
<pattern>book my flight</pattern>
<template>
<set name=“topic”>bookflightto</set>
sure.. where you want to go?
</template>
</category>
<topic name=“bookflightto>
<category>
<pattern>*</pattern>
<template>
<set name=“topic”>bookflightfrom</set>
<set name=“to"><star /></set>
where you want to travel?
</template>
<category>
</topic
<topic name=“bookflightfrom>
<category>
<pattern>*</pattern>
<template>
<set name=“from"><star /></set>
Booking a flight from <get name=“from” /> to <get name=“to” />
</template>
<category>
</topic
On 26 Aug 2019, at 16:24, Deepak Bhasme notifications@github.com wrote:
For example User: book my flight? Bot: sure.. where you want to go? User: Singapore Bot: from where you want to travel> User: India
In this example I want to set two entities as 'from' and 'to' bud could do so as wild cards are assigning both user inputs to the same entity... Help
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/keiffster/program-y/issues/224?email_source=notifications&email_token=ABCUFM2O6N36C5GJMUU4243QGPYSZA5CNFSM4IPQYX32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5EWVAQ#issuecomment-524905090, or mute the thread https://github.com/notifications/unsubscribe-auth/ABCUFM7VXC363ILTHWIAMI3QGPYSZANCNFSM4IPQYX3Q.
Closed by mistake, oops. Have re opened
thanks Keith
No problem, did that work for you ?
It’s a common pattern for performing a series of questions and answers and controlling flow
Yes it worked for me... I am new to AIML based chat bots and still exploring what more we can do with special tags.
Issue tracker is ONLY used for reporting bugs. NO NEW FEATURE ACCEPTED! Use stackoverflow for supporting issues.
I couldn't find in documents to do so other than using wild cards
Expected Behavior
For example User: book my flight? Bot: sure.. where you want to go? User: Singapore Bot: from where you want to travel> User: India
Current Behavior
Possible Solution
Steps to Reproduce
1. 2. 3. 4.
Context (Environment)
Detailed Description
In this example I want to set two entities as 'from' and 'to' bud could do so as wild cards are assigning both user inputs to the same entity... Help
Possible Implementation