Hi Gita,
I would go with Christoph's suggestion to use a workflow. In this workflow, you can use either Agentless email Data Action or the workflow's action Send Notification.
However, I would suggest the following: instead of using a button on the Agent script (note to be taken: using the button to invoke Data Action from the Agent script requires additional permission to be added to the Agent profile), create a new wrap-up code eg "Complaint Call" and assign it to the respective queues. Then create a trigger on the topic "v2.detail.events.conversation.{id}.acw", set the trigger's filter using the wrap-up's uuid for wrapupCode, and use this workflow as the Workflow Target.
With this approach, the agent does not need to press the script buttons. They just need to be instructed to use wrap-up notes to enter the conversation information and to select the complaint wrap-up code.
Thanks,
------------------------------
Tatjana Knezevic
www.startelecom.cloudhttps://www.linkedin.com/company/star-telecom-www-startelecom-ca-/------------------------------