# extendify/3.2.2/src/Agent/follow-ups/cards/agent-chat-notification.js

Extendify, version 3.2.2. 26 lines.

- Page: https://pluginprobe.com/plugins/extendify/3.2.2/code/src/Agent/follow-ups/cards/agent-chat-notification.js
- Raw: https://pluginprobe.com/plugins/extendify/3.2.2/raw/src/Agent/follow-ups/cards/agent-chat-notification.js
- Modified: 2026-10-01T15:30:38+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.2/code/src/Agent/follow-ups/cards/agent-chat-notification.js#L10-L20`.

```javascript
import { notificationSuggestion } from '@agent/lib/notification-suggestion';
import { track } from '@shared/lib/track';
import { __ } from '@wordpress/i18n';

export default {
	id: 'agent-chat-notification',
	follows: '*',
	statuses: ['completed', 'canceled'],
	data: notificationSuggestion,
	score: ({ data }) => (data ? 0.04 : 0),
	content: ({ message, content, ctaLabel, url }) => ({
		title: message,
		body: content,
		action: {
			label:
				ctaLabel ||
				// translators: Button on a card in the AI Agent chat that opens a partner's offer in a new tab.
				__('Learn more', 'extendify-local'),
			url,
		},
	}),
	onView: ({ viewTelemetry }) =>
		track(viewTelemetry.key, viewTelemetry.payload),
	onClick: ({ telemetry }) => track(telemetry.key, telemetry.payload),
};

```
