Templates / Route Telegram customer complaints with OpenAI and Google Sheets

Route Telegram customer complaints with OpenAI and Google Sheets

Ready for 3.0

by Rahul Joshi ✓ · 45 views · created 2026-07-20 · Support Chatbot, AI Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 31 nodes and runs on Telegram events (message) (plus 2 other triggers). Along the way it connects Telegram, Google Sheets, OpenAI and Slack.

How it runs

Trigger: On Telegram events (message) (plus 2 other triggers).

  1. Normalize Complaint Input (Code): runs custom JavaScript code
  2. If: checks a condition and branches into true / false
  3. Slack: uses Slack
  4. Lookup Order Details (Google Sheets): uses Google Sheets
  5. Extract Order ID From Callback (Code): runs custom JavaScript code
  6. Notify Support Lead - Rejected Logged (Telegram): uses Telegram
  7. Get Customer Complaint History (Google Sheets): uses Google Sheets
  8. Update Row - Mark Approved (Google Sheets): update
  9. Determine Issue Type and Repeat Offender (Code): runs custom JavaScript code
  10. Notify Customer - Escalated Resolution Approved (Telegram): uses Telegram

…plus 18 more steps. See the full node list below.

Services it uses

TelegramGoogle SheetsOpenAISlack

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (10)

From the author

Quick overview This workflow handles customer order complaints submitted via Telegram by looking up order details in Google Sheets, using OpenAI to classify message sentiment, and routing each case to auto-approval, support lead review, warehouse…

Excerpt from Rahul Joshi's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.