⚒️ Delete Dialogflow intents via Telegram commands
⚡ 185 views · ⚒️ Engineering
Description
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 equals
deleteusing 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.
- Performs an HTTP GET request via
- If the user ID or keyword is invalid:
- Responds with a custom message using either
Invalid user messageorInvalid keyword message.
- Responds with a custom message using either
📌 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.
🔗 Nodes Used
HTTP Request, Telegram, Telegram Trigger
📥 Import
Download workflow.json and import into n8n:
Workflow menu → Import from File