We have started a workflow and assigned it to some user/group. Now, the notification goes to the respective user/group and they can view it by clicking on the bell icon.
Now in inbox where we have the assigned tasks - there are some inbuilt options like "Complete", "Payload" etc that comes up when any workflow related task is selected. Refer to the following image for further clarity.

Now, my requirement is to have custom options put in here as well - something like "Reject" which will straight away remove the task from the queue and send it back to the initiator of the workflow (author). And another one should be "Archive" which will basically have the page (if published) unpublished and then save it in some folder named Archive.
Need some help on how to implement this.