Is it right way to handle multi-pal intent?

Hello,

NLU.MD

intent:monthlyincome

  • monthly income
  • month wise income

intent:monthlyexpense

  • monthly expense
  • month wise expense

stories

monthlyexpense

  • monthlyexpense
  • utter_monthlyexpense

monthlyexpense

  • monthlyexpense
  • utter_monthlyexpense

Domain.yml

intents:

  • monthlyincome
  • monthlyexpense

actions:

  • utter_monthlyincome
  • utter_monthlyexpense

templates:

  • utter_monthlyincome

    • text: “Monthly income”
  • utter_monthlyexpense

    • text: “Monthly Expense”

Is it right way to create intent ?

@Manthan Intents are correctly created, although there is an error in stories. Your story should look like -

* monthlyexpense
   - utter_monthlyexpense

* monthlyexpense
   - utter_monthlyexpense

Also, if the mapping between your actions and intents is that straight-forward you can take a look at Policies

1 Like

Thanks Daksh.

But i am in confusion that, can i give almost similar input in two input like one of my intent include monthly income and other include monthly expense ?

can this give me error ?

Programmatically yes you can give.