Use this powerful n8n workflow to securely update your Dialogflow intent responses remotely via a simple Telegram command. Features user ID and keyword validation for security.
Download this n8n workflow template and start using it instantly.
This n8n template is ideal for:
Chatbot developers who need a quick way to update production responses without accessing the Dialogflow console.
Technical managers requiring a secure, remote mechanism for content changes.
Anyone looking to implement a secure, command-based control system using n8n and Telegram.
Users seeking advanced examples of API interaction within an n8n workflow.
Managing bot responses often requires access to complex consoles like Dialogflow. This specialized n8n workflow solves this by creating a secure, command-line interface directly within Telegram. The core value of this n8n automation is security and convenience. It triggers only upon receiving a message from a whitelisted user ID and containing a specific keyword (e.g., 'update'). Once validated, the n8n workflow executes a PATCH request to the Dialogflow API using Google Service Account credentials, instantly applying predefined changes to the target intent's responses. This robust system ensures that only authorized personnel can initiate critical updates to your AI agents.
This n8n workflow operates in four main steps, triggered by a message in Telegram:
User validation by ID n8n node (an If statement). If the sender's ID matches the predefined user, it proceeds. If not, an 'Invalid user' message is sent.Keyword validation n8n node, checking if the message text is exactly 'update'. If the keyword is incorrect, an 'Invalid word' message is sent.HTTP Request UPDATE n8n node. This node performs a PATCH request to the Dialogflow API URL for a specific intent ID. The request body contains the complete, modified JSON structure of the intent, including the desired new response text. This updates the intent in Dialogflow.Mensaje de confirmación n8n node sends a success message back to the initiating user via Telegram, confirming that the intent update was completed successfully. This completes the robust n8n workflow cycle.To deploy this n8n template, follow these steps:
Telegram Trigger n8n node and the subsequent Telegram message nodes with your Telegram Bot API token.dialogflow.intents.patch). This credential must be linked to the HTTP Request UPDATE n8n node.User validation by ID n8n node, replace the placeholder {{ TelegramuserID }} with the actual Telegram User ID of the authorized updater.HTTP Request UPDATE n8n node to point to your specific Dialogflow project ID and the exact Intent ID you wish to modify. (Refer to the sticky notes in the n8n workflow for guidance on finding the Intent ID).HTTP Request UPDATE n8n node must contain the entire JSON structure of the Dialogflow intent, with the messages field updated to reflect the new response text. Ensure you remove the external array brackets ([]) from the JSON payload.This n8n workflow utilizes several key n8n node types to achieve secure and reliable automation:
Telegram Trigger (n8n Trigger):
Function: Serves as the starting point, listening for incoming Telegram messages.
Key Configuration: Configured to listen specifically for 'message' updates.
User validation by ID (If n8n node):
Function: Enforces security by checking if the incoming message sender ID matches a known, authorized user ID (checked against a variable TelegramuserID).
Key Configuration: Compares {{ $json.message.from.id }} to the user ID.
Keyword validation (If n8n node):
Function: Ensures the user intended to run the update command by validating the message text is exactly 'update'.
Key Configuration: Checks if {{ $json.message.text }} equals 'update'.
HTTP Request UPDATE (n8n node):
Function: Performs the critical API call (HTTP PATCH) to Dialogflow to overwrite the existing intent definition with the new content.
Key Configuration: Method set to PATCH. Uses a predefined Google API Service Account credential. The body is complex JSON representing the full intent structure, including updated text responses.
Mensaje de confirmación (Telegram n8n node):
Function: Notifies the user that the n8n workflow executed successfully, confirming the updated intent name (displayName).
* Key Configuration: Sends the message back to the originating chatId ({{ $('Telegram Trigger').item.json.message.from.id }}).
Use this powerful n8n workflow to automatically parse unstructured online resumes using the Thordata Universal API and OpenAI GPT-4.1-mini, transforming candidate data into a structured JSON resume format for recruitment systems.

Use this high-efficiency n8n workflow to instantly convert Unix timestamps (in seconds) received via a POST webhook into a standardized ISO 8601 format using a specialized n8n node expression.

Build a robust academic assistant using n8n and Google Gemini. This n8n workflow provides real-time FAQ answers, academic calendar lookups, and proactive weekly voice announcements via Telegram.

Automate grocery list updates in Asana using natural language via Telegram text or voice. This smart n8n workflow uses AI agents for transcription and task management.

Use this comprehensive n8n workflow to automatically track Stripe invoice payments, update corresponding HubSpot deals, and instantly notify your sales or finance team via Slack. Get reliable n8n templates for finance.

Soy un apasionado de la tecnología. Me entusiasma el desarrollo y la implementación de chatbots y automatizaciones. Disfruto simplificando procesos y mejorando la experiencia del usuario.







































