How to write service in nodred

how to write service in nodred

service: notify.gmail
data:
message: test
data:
images:
- /config/www/snapshot/smalldoor00.jpg

Call service node

This is how I send notifications on my phone: (NodeRed)
Domain: notify
Service: my_phone
Data:

{
  "message": "Motion detected 👀 in Front",
  "title": "🎥 Frontdoor camera",
  "data": {
    "image": "/api/camera_proxy/camera.reolink1",
    "clickAction": "app://com.mcu.reolink",
    "color": "#f20515",
    "notification_icon": "mdi:cctv",
    "channel": "Security",
    "importance": "high",
    "tag": "camera"
  }
}

That doesn’t work directly, but the purpose is to guide you in the right direction