I am writing a custom function to retrieve information from a file. The custom action handles two main scenarios based on the value of the entity:
If the user gives an entity name that exists in my database, then i return the information related to that product
If the user asks for information about a product but since the product commercial name can correspond to multiple product technical names, i want to list all possibilities and ask the user to choose the correct one then return to custom action to query the database and return the information.
Does anyone know the best way to achieve this ?