where i need one of the story for balance inquiry.
If the customer is having single account i can simply continue with the flow. But there are cases where the customer can have multiple accounts. So for that purpose to find out weather the customer is having multiple accounts or not … i need to do a small api call … If there are multiple accounts for the customer i need ask for last 4 digits of account number and match with account number that i got from api call and then proceed.
What is the best way of writing or handling this situation ?
If it was only a single account the story would be straight forward. I am facing difficulty for the usage for multiple account
Here is a small flow that i could think of
balenq_path
greet
utter_greet
inform{“facility_type”: “bal_enq”}
find_bal_enq
utter_bal
thankyou
utter_noworries
how would flow look like if there are multiple accounts and i have a api to find weather person is having multiple accounts or not. If there is multiple account i have to utter a message and ask them for last 4 digits of account number that they wish to find balance for.
How can i fit these two situations in a flow. or is there any other way of handing it ?
(BTW this is my first project on rasa)
One of the possible solutions is to add custom action after utter_greet that would query an api and set a slot whether account is unique. Then create 2 different stories depending on whether the slot value is true or false