Delete a Dialogflow Intent via Telegram 🗑️
This workflow allows you to delete a specific Dialogflow intent simply by sending the keyword delete through Telegram. It’s designed for quick and safe deletions from your mobile device, without needing to access the Dialogflow console.
🔧 What does this workflow do?
- Listens for Telegram messages using the Telegram Triggernode.
- Validates the user ID through the User validation by IDnode, ensuring only authorized users can trigger the deletion.
- Checks if the message equalsdeleteusing theKeyword validationnode.
- If both checks pass:
- Performs an HTTP GET request via HTTP Request GET NAMEto retrieve the name of the intent (used in the confirmation message).
- Adds a small delay using simulated delay.
- Then executes a DELETE request to the Dialogflow API via the HTTP Request ELIMINARnode to delete the intent.
- Sends a Telegram confirmation message through the Confirmation messagenode.
 
- If the user ID or keyword is invalid:
- Responds with a custom message using either Invalid user messageorInvalid keyword message.
 
📌 Requirements
- A valid Google API credential (Service Account) set up in n8n.
- Obtain your PROJECT_IDandINTENT_IDfrom the URL of the intent in Dialogflow:
✅ Use Cases
- Delete test or unused intents without opening Dialogflow.
- Automate cleanup of outdated intents.
- Allow controlled Telegram-based access for specific users to delete intents remotely.