# extendify/3.2.0/src/Agent/lib/notification-suggestion.js

Extendify, version 3.2.0. 35 lines.

- Page: https://pluginprobe.com/plugins/extendify/3.2.0/code/src/Agent/lib/notification-suggestion.js
- Raw: https://pluginprobe.com/plugins/extendify/3.2.0/raw/src/Agent/lib/notification-suggestion.js
- Modified: 2026-08-20T19:51:40+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/extendify/3.2.0/code/src/Agent/lib/notification-suggestion.js#L10-L20`.

```javascript
import {
	resolveNotificationLink,
	siteHost,
} from '@notifications/notification-link';
import { notificationFor } from '@notifications/selection';

export const AGENT_CHAT_SLOT = 'agent-chat';

export const notificationSuggestion = () => {
	const notification = notificationFor(AGENT_CHAT_SLOT);
	if (!notification) return null;

	const message = notification['content-agent-chat'];
	const { href } = resolveNotificationLink(notification, siteHost());
	if (!message || !href) return null;

	const slug = notification.slug;
	const source = notification.source;

	return {
		id: `notification-${slug}`,
		type: 'external-link',
		message,
		url: href,
		viewTelemetry: {
			key: 'notification_view',
			payload: { slug, slot: AGENT_CHAT_SLOT, source },
		},
		telemetry: {
			key: 'notification_click',
			payload: { slug, slot: AGENT_CHAT_SLOT, source },
		},
	};
};

```
