When the user poses this question to the bot, the bot should:
- Acknowledge the question
- Ask for the Opportunity Number from the user
- Check
- The status of the Opportunity
- Check if there are any Quotes associated with the Opportunity
- Check if there are any Orders associated with the Opportunity
- If the Opportunity Status = Open and if there are any Order associated with the Opportunity, then
- Suggest the user that the Order will have to be deleted and re-created
- That the existing Quote will have to be deleted as well
- Ask for user confirmation if they would want the bot to do the deletions on their behalf.
- If the User agrees for deletion as per step 4.3 then bot should delete the associated Order and Quote in that order
- The bot should then suggest the user create the necessary change to the Opportunity and its PL line items. The bot should also inform the user to create and activate the new Quote and then he/she will be able to close the Opportunity
- The bot should also present the URL of the Opportunity in question so that the user can jump to the record directly from the chat
- The bot should then close the chat with a survey
- Email the chat transcript to the user

Report
All responses (
Answers (