← Files KVADRAT — Нерухомість УкраїниARCHIVED FILE

skills/subscriptions/references/create.md

853 Bytes · Nov 26, 2026 · 00:16 UTC

↓ Download file

# Create one alert

Call this only after the user agrees to alerts for the search they just ran.

1. Copy `searchContextId` from that `search_listings` result. Do not rebuild the filter from the chat.
2. Follow `channels.md` and obtain one confirmed `channelId`.
3. Call `create_search_subscription` with that `searchContextId` and `channelId`. Do not pass a typed email or a Telegram username.
4. Say which address will receive the alerts. Do not show either id, and do not ask the user to confirm a sentence that contains them.

The same filter is not stored twice. If the server reports the existing alert, say that and do not create a second one.

If `searchContextId` is missing or expired, stop. Repeat `search_listings` with the same category, operation, place, price, and attributes, then use the new id. Do not pass the expired id.

SHA-256: 012fb9e311c44792bc0480fe7260f45f1dd5ed27b0519cb01cb795fef3208390