Skip to content

Documentation: Send Notification Node

Overview

The Send Notification Node allows you to automatically send in-app notifications to users within the Netsocs platform. Users will receive notifications in real-time in their notification center, accessible from the bell icon 🔔 in the interface.

When to Use This Node

Use this node when you need to:

  • Alert users about critical system events (cameras offline, device failures)
  • Notify about security detections (motion, unauthorized access)
  • Inform about important state changes (temperature out of range, alarms)
  • Confirm completed actions (successful backups, finished tasks)
  • Send reminders or system updates

Node Configuration

Notification node configuration form

Step 1: Notification Title

  1. In the "Notification Title" field, enter the title that will appear in the notification
  2. Keep the title concise and descriptive (less than 50 characters recommended)
  3. Example: "Motion Detected", "System Updated", "Camera Offline"

Note

The title is the first thing users will see. It should clearly communicate the notification's purpose.

Step 2: Notification Type

  1. In the "Notification Type" field, select the type based on message severity
  2. Available options:
  3. Info - General informational messages (updates, state changes)
  4. Warning - Warnings that require attention but are not critical
  5. Error - Critical issues requiring immediate action
  6. Success - Confirmations of successfully completed actions

Note

The notification type determines the color and icon displayed. Choose the appropriate type for the message importance.

Step 3: Select Recipients

  1. Click the "Add Users as Targets" button
  2. A modal will open with the list of available users
  3. Use the search bar to find users by name or email
  4. Select one or more users by checking the corresponding boxes
  5. Click "Add Selected" to confirm

User selector for notification targets

Note

You must select at least one user. Selected users will appear as tags in the "Notification Targets" field. You can remove a user by clicking the "X" on their tag.

Step 4: Notification Message

  1. In the "Notification Message" field, write the detailed content
  2. Provide enough context: what happened, where, when
  3. If action is required, clearly indicate what the user should do
  4. You can use line breaks for better readability

Example:

Motion detected at Main Entrance.
Time: 14:30:45
Camera: CAM-001

Step 5: Additional Configuration (Optional)

In the "Data Configuration" tab you can add rich media:

Images

  1. In the "images" array, add image URLs separated by commas
  2. Images must be publicly accessible or accessible within your network
  3. Supported formats: JPG, PNG, GIF, WebP
  4. Example: https://cdn.netsocs.com/snapshots/cam001.jpg

Videos

  1. In the "videos" array, add video URLs separated by commas
  2. Videos must be publicly accessible or accessible within your network
  3. Supported formats: MP4, WebM, OGG
  4. Example: https://cdn.netsocs.com/clips/event-12345.mp4

Custom Color

  1. In the "color" field, enter a hexadecimal code
  2. Format: #RRGGBB (example: #b80a0a for dark red)
  3. If not specified, the default color based on type will be used

Note

Rich media is optional but enhances user experience by providing visual context.

JSON Structure

The node configuration generates the following JSON:

{
  "title": "Titulo",
  "type": "info",
  "targets": ["4b78cb66-bd26-43f9-a458-a7b73495dd3d"],
  "message": "Texto de notificacion",
  "data": {
    "images": ["https://imagen.com/...."],
    "videos": ["https://video.com/...."],
    "color": "#b80a0a"
  }
}

Required Fields

  • title - Notification title
  • type - Type: info, warning, error, or success
  • targets - Array of user IDs
  • message - Message body

Optional Fields

  • data.images - Array of image URLs
  • data.videos - Array of video URLs
  • data.color - Custom color in hexadecimal

Usage Examples

Example 1: Simple Security Alert

Configuration:

  • Title: Motion Detected
  • Type: warning
  • Recipients: Security team
  • Message: Motion detected at Main Entrance at 14:30:45

JSON:

{
  "title": "Motion Detected",
  "type": "warning",
  "targets": ["security-team-id"],
  "message": "Motion detected at Main Entrance at 14:30:45"
}

Example 2: Critical Error with Custom Color

Configuration:

  • Title: Camera Offline
  • Type: error
  • Recipients: System administrator
  • Message: Camera CAM-001 has disconnected. Last seen: 14:45:30
  • Color: #b80a0a (dark red)

JSON:

{
  "title": "Camera Offline",
  "type": "error",
  "targets": ["admin-id"],
  "message": "Camera CAM-001 has disconnected. Last seen: 14:45:30",
  "data": {
    "color": "#b80a0a"
  }
}

Example 3: Notification with Image and Video

Configuration:

  • Title: LPR Detection
  • Type: info
  • Recipients: Parking operator
  • Message: Vehicle detected. Plate: ABC123. Location: Main Entrance
  • Images: Plate capture
  • Videos: Event clip

JSON:

{
  "title": "LPR Detection",
  "type": "info",
  "targets": ["operator-id"],
  "message": "Vehicle detected. Plate: ABC123. Location: Main Entrance",
  "data": {
    "images": ["https://lpr.example.com/plate-abc123.jpg"],
    "videos": ["https://lpr.example.com/event-12345.mp4"]
  }
}

Example 4: Backup Confirmation

Configuration:

  • Title: Backup Completed
  • Type: success
  • Recipients: IT administrator
  • Message: Daily database backup completed successfully at 03:00 AM

JSON:

{
  "title": "Backup Completed",
  "type": "success",
  "targets": ["it-admin-id"],
  "message": "Daily database backup completed successfully at 03:00 AM"
}

Example 5: Warning Multiple Recipients

Configuration:

  • Title: Temperature Alert
  • Type: warning
  • Recipients: IT team, Facilities manager
  • Message: Server room temperature has reached 28°C. Check cooling system

JSON:

{
  "title": "Temperature Alert",
  "type": "warning",
  "targets": ["it-team-id", "facilities-manager-id"],
  "message": "Server room temperature has reached 28°C. Check cooling system"
}

Where Users See Notifications

Notification Center

  1. Users see a bell icon 🔔 in the Netsocs header
  2. A numeric badge shows the count of unread notifications
  3. Clicking opens a panel with all notifications
  4. Notifications are delivered in real-time (no refresh needed)

Details View

  1. Clicking a notification opens the full view
  2. Shows title, message, date/time, and attached media
  3. Users can mark as read or delete the notification

Troubleshooting

Notification is not being sent

  1. Verify that target users exist in the system
  2. Deleted users cannot receive notifications
  3. Confirm user IDs in identity settings

  4. Check all required fields

  5. title, type, targets, and message are mandatory
  6. The type field must be exactly: info, warning, error, or success (lowercase)

  7. Test the automation

  8. Use the "Test" button in the automation editor
  9. Check automation logs for error messages

Error: "Invalid notification type"

Cause: The type field contains an incorrect value

Solution:

  • Use only these values (lowercase): info, warning, error, success
  • ❌ Incorrect: Info, ALERT, notice
  • ✅ Correct: info, warning, error, success

Error: "No valid targets specified"

Cause: The targets array is empty or contains invalid IDs

Solution:

  1. Use the user selector to choose at least one valid user
  2. Verify that selected users have not been deleted
  3. The field must be an array: ["user-id"] not just "user-id"

Images or videos are not displaying

  1. Verify URL accessibility
  2. Open URLs in a browser to confirm they work
  3. Ensure you use https:// (not http://)
  4. Verify they don't require authentication

  5. Check file formats

  6. Images: JPG, PNG, GIF, WebP
  7. Videos: MP4, WebM, OGG

  8. Confirm complete URL format

  9. ✅ Correct: https://example.com/image.jpg
  10. ❌ Incorrect: example.com/image.jpg (missing protocol)
  11. ❌ Incorrect: https://example.com/image (missing extension)

Custom color is not applying

Cause: Incorrect color format

Solution:

  • Use hexadecimal format with 6 characters: #RRGGBB
  • ✅ Correct: #b80a0a, #ff0000
  • ❌ Incorrect: b80a0a (missing #), #b80 (too short), red (not supported)

Users are not receiving notifications

  1. Check user notification settings
  2. Some users may have disabled in-app notifications
  3. Verify in user account settings

  4. Confirm user permissions

  5. User must be active (not disabled)
  6. Verify user has permission to receive notifications

  7. Check notification center

  8. Notifications may be marked as read
  9. Verify user is viewing the correct notification center

Best Practices

1. Choose the Right Type

  • info - Routine updates, state changes
  • warning - Situations requiring attention
  • error - Critical issues
  • success - Confirmations of completed actions

2. Write Clear Messages

  • Keep titles short (less than 50 characters)
  • Include relevant details: what, where, when
  • If action is required, clearly state what to do
  • Use line breaks to improve readability

3. Target the Right Users

  • Only notify those who need to know
  • Use roles and responsibilities to determine recipients
  • Avoid over-notifying (notification fatigue)
  • Consider creating user groups for common recipients

4. Use Rich Media Strategically

  • Attach images for visual confirmation (camera snapshots)
  • Include videos for motion events or incident review
  • Don't overload with too many attachments
  • Consider file sizes for performance

5. Custom Colors with Purpose

  • Use consistent colors to categorize (blue: doors, red: alarms)
  • Ensure good contrast and accessibility
  • Document your color scheme for the team

6. Test Before Deploying

  • Always test with real users before production
  • Verify media loads correctly
  • Confirm notification is clear and actionable
  • Test with different user accounts

Industry Use Cases

Security and Access Control

{
  "title": "Unauthorized Access Attempt",
  "type": "error",
  "targets": ["security-team-id"],
  "message": "Failed access attempt at Server Room.\nCard ID: Unknown\nTime: 15:42:18",
  "data": {
    "images": ["https://cdn.netsocs.com/access/failed-attempt.jpg"],
    "color": "#dc3545"
  }
}

System Monitoring

{
  "title": "Server CPU High",
  "type": "warning",
  "targets": ["it-admin-id"],
  "message": "CPU usage has exceeded 85% for 5 minutes.\nServer: PROD-WEB-01\nCurrent Usage: 92%",
  "data": {
    "images": ["https://monitoring.example.com/cpu-graph.png"],
    "color": "#ffc107"
  }
}

Video Analytics

{
  "title": "Vehicle in Restricted Area",
  "type": "info",
  "targets": ["parking-admin-id"],
  "message": "Vehicle detected in restricted area.\nPlate: XYZ789\nLoading Zone - 16:15:30",
  "data": {
    "images": ["https://lpr.example.com/plate-xyz789.jpg"],
    "videos": ["https://lpr.example.com/event-67890.mp4"]
  }
}

Frequently Asked Questions

Q: Can I send notifications without selecting recipients?
A: No, you must select at least one user. Notifications without recipients will fail.

Q: Will users see notifications immediately?
A: Yes, notifications are delivered in real-time via WebSocket. Users don't need to refresh the page.

Q: Can I use variables in messages?
A: Yes, you can use variables like {{eventType}}, {{location}}, etc. based on available data in your automation.

Q: Are notifications saved in history?
A: Yes, users can see all their notifications (read and unread) in the notification center.

Q: Can I delete already sent notifications?
A: Users can delete their own notifications. Administrators cannot delete other users' notifications once sent.

Q: Is there a limit on message size?
A: It's recommended to keep messages concise (less than 500 characters). Very long messages may affect readability.