Close out unused collections from a chat request
When a collection is no longer needed, capture the cleanup decision in Telegram and let Notis remove the identified Affinda collection.
Trigger
New Message Received
Triggered when your bot receives a new message in a private chat, group, or supergroup. To receive every message in a group, Privacy Mode must be disabled for the bot in BotFather.
Action
Delete Collection
Tool to delete a specific collection by its id. use when you need to remove an unused collection. use after verifying the collection id.
Why this helps
Organization cleanup gets pushed aside when it requires another tool switch and a separate task to remember.
- Complete a decided cleanup while it is top of mind.
- Reduce clutter from unused document groupings.
- Avoid turning routine maintenance into an open loop.
Setup
Build it in a few focused steps.
- 1Connect Telegram and Affinda to Notis once.
- 2Create an automation or tell Notis to remove clearly identified unused collections from Telegram requests.
- 3Write one plain-language instruction that requires the collection identity and explicit cleanup intent.
- 4Select New Message Received as the trigger and choose a run-report channel.
- 5Test with a verified unused collection and confirm the intended Affinda result.
Questions about this workflow
Should the collection be checked first?
Yes. Confirm its identity and that it is unused before requesting removal.
Does this remove documents too?
This action deletes a collection. Check the collection and its contents before using the workflow.
When this happens · Trigger
Do this · Action
Supported Triggers and Actions
Notis builds workflows that link Telegram to Affinda. A trigger fires from one place; an action lands in another.
Telegram triggers
Affinda actions
Recurring trigger
Notis starts this workflow on a schedule, such as daily, weekly, or during business hours.
Batch Update Annotations
Tool to update multiple annotations in one request. use when you need to modify parsed values or other fields across many annotations at once.
Webhook trigger
Notis starts this workflow when an external tool or custom backend sends an HTTP request.
Create Collection
Tool to create a new collection. use after you have a valid workspace id and want to group documents by a specific extractor within that workspace.
New Message Received
Triggered when your bot receives a new message in a private chat, group, or supergroup. To receive every message in a group, Privacy Mode must be disabled for the bot in BotFather.
Create Document
Tool to upload a new document for parsing. use when you have the document file or a public url and need to extract structured data immediately.
New Channel Post
Triggered when a new post is published to a channel where your bot is an administrator.
Create Organization
Tool to create a new organization. use when you have a unique organization name and want to group resources under it.
Callback Query Received
Triggered when a user taps an inline keyboard button attached to one of your bot's messages.
Create RESTHook Subscription
Tool to create a new resthook subscription. use after confirming your webhook endpoint is ready to receive document event notifications.
Message Edited
Triggered when a message in a chat your bot can see is edited by its sender.
Create Tag
Tool to create a new tag. use when you need to label documents in a specific workspace.
New Chat Member
Triggered when a new member joins a group or supergroup the bot belongs to, including when the bot itself is added.
Create Validation Result
Tool to create a validation result. use when recording validation outcomes for a document after parsing.
Create Workspace
Tool to create a new workspace. use when you need to programmatically create a workspace container within an organization.
Connect any two apps with Notis in the middle.
Telegram and Affinda, or any other combination from 1,000+ integrations.
When this happens · Trigger
Do this · Action
Save your first hour today.
7-day trial of any paid plan, with 20$ of usage included.
No card. Works with personal or business Affinda.