# Notifications

ION boasts a comprehensive notification system seamlessly integrated into the application's processes, offering both native functionality and user-configurable options through ION's API. For instance, imagine you're assigned to handle an approved issue disposition. In such cases, as the assignee, you'll promptly receive a toast notification (if you're actively using the application) and a notification within the designated notifications tab.

Toast notifications elegantly pop out from the upper left-hand corner of the interface, ensuring immediate visibility. ION diligently checks for toast notifications every 30 seconds, so you might experience a brief delay of up to 30 seconds before one appears.

To view all notifications in detail, simply navigate to the notification page by clicking the envelope icon in the top left corner and selecting "SHOW ALL."

When creating automations or integrating external systems, it's essential to keep users informed about pertinent events. ION's robust notification features empower you to do just that. Utilize the dispatchNotification mutation to craft custom notifications. Refer to the following example for guidance:

```graphql
mutation notification($input:DispatchNotificationInput!){
  dispatchNotification(input: $input){
    response{
      messageId
    }
  }
}
```

Query Variables:

```json
{
  "input": {
    "userId": 3660,
    "notificationType": "WARNING",
    "description": "Purchase order versioned and PDF file generated. Please refresh.",
    "title": "PO Versioned & PDF Generated",
    "linkText": "This is the link",
    "path": "https://staging.firstresonance.io/"
  }
}
```

Explanation of Query Variables:

* **userId**: Specifies the ID of the user to whom you want to send the notification.
* **notificationType**: Defines the type of notification being dispatched. In this case, "WARNING" signifies a critical notification.
* **description**: Provides a brief description of the notification's content, informing users about the specific event or action taken.
* **title**: Sets the title of the notification, which is displayed prominently in the toast notification.
* **linkText**: Indicates the text to be displayed as the link within the notification page, directing users to further details or actions.
* **path**: Specifies the URL path users will be directed to when clicking either the toast notification or the notification within the application.

For clarity, here's a brief overview of notification types within ION:

* **EXTERNAL (BLUE)**: Indicates notifications originating from external systems, typically used for general updates.
* **SIGNOFF (YELLOW)**: Reserved for notifications requiring user attention or signoff.
* **WARNING (RED)**: Signals events that may not be favorable, ensuring users are promptly informed of potential issues.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://manual.firstresonance.io/api/examples/notifications.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
