Customers can initiate an order cancellation using the Shopify bot. They can choose the order they wish to cancel from the list of orders and cancel.
To set this up:
Go to Marketing Automation > Chatbots
Under the Templates tab, select the Shopify bot.
Under Flows, you can find the Order Cancellation flow.
Edit it to your preferences.