πŸ’¬ Handle e-commerce support on Telegram with Gemini and Google Sheets

⚑ 382 views Β· πŸ’¬ Support Chatbots

Description

Telegram E-Commerce Customer Support Bot with AI Agent & Google Sheets

An AI-powered Telegram bot that automates customer support for e-commerce stores β€” handling order tracking, order cancellations, and support ticket creation, all without human intervention.

Built with a Gemini AI Agent + Simple Memory, the bot understands natural language, remembers the conversation context per user, and reads/writes directly to your Google Sheets β€” no database or backend required.


How It Works


How to Use

Step 1 β€” Create a Telegram Bot Open @BotFather on Telegram, run /newbot, and copy your bot token. Add it as a Telegram credential in n8n.

Step 2 β€” Set Up Google Sheets

Create a Google Spreadsheet with two sheets (tabs):

Sheet 1 β€” Sheet1 (Orders): | order_id | customer_name | email | product | Status | date |

Sheet 2 β€” Sheet1 (Support Tickets β€” separate spreadsheet): | ticket_id | name | order_id | query | summary | category | status | created_at | telegram_id |

Step 3 β€” Add Credentials in n8n

Step 4 β€” Update Sheet IDs In the three Google Sheets tool nodes, replace the documentId values with your actual spreadsheet IDs (found in the Google Sheets URL).

Step 5 β€” Activate & Register Webhook Activate the workflow in n8n. If running locally, use ngrok to expose your n8n port over HTTPS, then register the webhook:

https://api.telegram.org/bot<YOUR_TOKEN>/setWebhook?url=https://<YOUR_NGROK_URL>/webhook/telegram-ecom-bot

Step 6 β€” Test Open your bot in Telegram and send /start. You should see the welcome message with three menu buttons.


Requirements


Customising This Workflow

πŸ”— Nodes Used

Telegram, Telegram Trigger, AI Agent, Simple Memory, Google Gemini Chat Model

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup