...

action_with_slack_notification = %(banaction)s[name=%(__name__)s, port="%(port)$
                                 slack[name=%(__name__)s]
                                 
action = %(action_with_slack_notification)s

...