🤖 Update Dialogflow intent responses via Telegram bot commands

314 views · 🤖 AI Chatbots & Agents

Description

Update a Dialogflow Intent’s Response via Telegram

This template allows you to easily update the response of a Dialogflow intent by simply typing a keyword in Telegram. Ideal for those who need to edit responses without accessing the Dialogflow console.


🔧 What does this flow do?

  1. Listens for incoming messages from a Telegram bot using the Telegram Trigger node.
  2. Validates the user by ID through the User validation by ID node to ensure only authorized people can execute the action.
  3. Checks if the message contains the keyword update using the Keyword validation node.
  4. If both conditions are met:
    • Executes an HTTP GET request using the HTTP Request GET node to fetch the full intent in JSON format from the Dialogflow API.
    • The user copies that JSON, edits the response content, and pastes it into the HTTP Request UPDATE node (PATCH).
    • Finally, the flow sends a confirmation message via Telegram using the Mensaje de confirmación node.
  5. If the user or keyword is invalid, the bot replies with an error message using the Invalid user message or Invalid keyword message nodes.

📌 Requirements


✅ Use Cases

🔗 Nodes Used

HTTP Request, Telegram, Telegram Trigger

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup