Remove outdated Cody knowledge when plans change
When a Telegram edit clearly invalidates a saved reference, remove the stale document from Cody.
Trigger
Message Edited
Triggered when a message in a chat your bot can see is edited by its sender.
Action
Delete Document
Tool to delete a document by id. Use when removing a document that is no longer needed.
Why this helps
Outdated documents can keep influencing answers after a correction has changed the facts.
- Reduce conflicting or obsolete references.
- Make explicit corrections easier to act on.
- Keep Cody's knowledge base closer to current reality.
Setup
Build it in a few focused steps.
- 1Connect Telegram and Cody to Notis once.
- 2Create an automation with one plain-language prompt that requires a clearly identified obsolete document before deletion.
- 3Pick Telegram Message Edited as the trigger and choose a channel for run reports.
- 4Test with a harmless test document and an explicit correction before using real content.
Questions about this workflow
Is the deletion reversible?
Cody's Delete Document action permanently removes a document. The prompt should require an unambiguous instruction and document identity.
Will any edited message delete a document?
The prompt should specify that deletion happens only when an edit clearly requests removal of a named obsolete document.
When this happens · Trigger
Do this · Action
Supported Triggers and Actions
Notis builds workflows that link Telegram to Cody. A trigger fires from one place; an action lands in another.
Telegram triggers
Cody actions
Recurring trigger
Notis starts this workflow on a schedule, such as daily, weekly, or during business hours.
Create Conversation
Tool to create a new conversation with a specified bot. Use when starting a new conversation thread with optional focus mode to limit bot's knowledge base to specific documents.
Webhook trigger
Notis starts this workflow when an external tool or custom backend sends an HTTP request.
Create Document
Tool to create a new document with text or HTML content in Cody AI. Use when you need to add documents to Cody's knowledge base with up to 768 KB of content.
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 From File
Tool to create a document by uploading a file (up to 100 MB). Supports txt, md, rtf, pdf, ppt, pptx, pptm, doc, docx, docm formats. Use when you need to add file-based documents to Cody's knowledge base. The file is processed asynchronously.
New Channel Post
Triggered when a new post is published to a channel where your bot is an administrator.
Create Document from Webpage
Tool to create a document from a publicly accessible webpage URL. Use when you need to import content from a webpage into Cody AI. The webpage must be accessible without login. If request fails, ensure the URL is publicly accessible and not blocked by a firewall.
Callback Query Received
Triggered when a user taps an inline keyboard button attached to one of your bot's messages.
Create Folder
Tool to create a new folder in Cody AI for organizing content. Use when you need to create a folder to organize documents or conversations.
Message Edited
Triggered when a message in a chat your bot can see is edited by its sender.
Delete Conversation
Tool to delete a conversation by its ID. Use when you need to permanently remove a conversation from the system.
New Chat Member
Triggered when a new member joins a group or supergroup the bot belongs to, including when the bot itself is added.
Delete Document
Tool to delete a document by id. Use when removing a document that is no longer needed.
Get Conversation
Tool to fetch a conversation by its ID from Cody AI. Use when you need to retrieve details about a specific conversation. Supports optional includes parameter to filter response to list document IDs.
Connect any two apps with Notis in the middle.
Telegram and Cody, 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 Cody.