The response_data: variable undefined when using a service action

It needs to be in the config YAML; the UI doesn’t yet have the necessary functionality. See the example here:

Please don’t post screenshots. The indentation as shown is flat and thus wrong. Post the complete, properly-formatted YAML that you have is configuration.yaml. It needs to be under the template: header — check you don’t already have that header in an !include declaration.