I am creating a dialogue to "make a complaint". The data to use in this dialog are:
- Contract number: it can consist of 10 numbers or numbers and letters (Type : pattern)
- Company (Type : entity)
- Name: it can be composed of
([A-Za-z àâæçéèêëîïôœùûüÿÀÂÆÇnÉÈÊËÎÏÔŒÙÛÜŸ'- ", ]){1,}(Type : pattern) - First name: it can be composed of
([A-Za-z àâæçéèêëîïôœùûüÿÀÂÆÇnÉÈÊËÎÏÔŒÙÛÜŸ'- ", ]){1,}(Type : pattern) - Object of complaint : paragraph which can contain letters, numbers, characters, spaces, ... (Type : pattern)
After the collection of these data, a question will arise to the customer:
your contract number is $num_contrat, your surname is: $surname your first name is: $first_name your claim is: $obj_reclamation. Do you confirm these data?
If yes, the claim will be recorded in the database. If not, the question that will be asked is: what data do you want to edit ? ...
Until now, my bot detects only the $company because it exists in the company entity and it does not detect $num_contrat, $surname, $first_name and $obj_reclamation.