How do you pass an MQTT payload to delay?

Ah, some dopey formatting trick with logbook data means I need to use (notice “>”):

alias: ''
data:
  message: >
    {{ trigger.payload }}
  name: woo hoo
service: logbook.log

Now that gets me an interesting error:

Error while executing automation automation.new_automation. Error rendering template for call_service at pos 1: UndefinedError: 'trigger' is undefined

So now it seems that despite the help files indicating trigger.payload is a system variable it either isn’t or it drops out of scope between the trigger and the action so it is still not clear how to pass the payload out of the trigger into an action.

Is trigger.payload the tail of a breadcrumb? xxx.trigger.payload?

PS same problem if you swap notify.notify for logbook.log.
PS > gets converted to | by HMI editor so who know why but who cares, some dopey glitch as it otherwise appears to “work”.