Can we add a conversational agent to a workflow?
Summary:
I have created a workflow called "ACN_Return_Guard_V1" which makes use of the standard Sales Return Order assistant to create returns but, initially checks if the number of returns created for the customer in the past 30 days does not exceed a limit of 5 return orders. In case the number of returns created for the specific customer has exceeded 5, the agent should respond with an appropriate message. In case the number of returns for the specific customer is equal to or less than 5, it should call the Sales Return Order Assistant and create the return.
The logic works fine for those customers where the return count has exceeded the threshold limit and it prompts the correct error message, but in case the return count has not exceeded, the sales return order agent in triggered (As shown in the attachment) and it asks me to provide the Return Option to create a return.