I would try to create a script but I don’t know how to do.
Thanks for your help.
Running a script when you receive a notification from a different app than Scriptable is not possible. There exists no app that can do such things because of limitations by Apple.
If you can control the action that is run when you tap on the notification, then it might be possible, but will require you to open the notification manually.
Ok thanks for your response