n8n

How to Automate Telegram Sales and Invoicing?

Run sales from Telegram with guided chat flows. The bot routes any message, registers new users, and sends invoices without manual steps. It fits teams selling digital goods, bookings, or memberships inside chats.

A Telegram event starts the flow. Switch nodes sort updates by text, photo, file, voice, and button clicks, so each path responds the right way. Command checks route people to menus, registration, or invoicing. Two child workflows handle registration and payments for clean separation. A Google Sheets step updates status so your team sees each user’s stage. Invoice data is prepared and sent back to the same chat, and standard replies cover each content type.

You need a Telegram bot token and access to Google Sheets. Map chat IDs correctly for normal messages and for button callbacks, then test in a private chat before going live. Expect faster response times, fewer data errors, and clear sales tracking in Sheets. This is useful for paid communities, simple storefronts in chat, and service bookings that need quick payment links.

What are the key features?

  • Telegram Trigger listens to all chat updates, including messages and button clicks
  • Switch nodes sort message types into text, photo, file, and voice paths for targeted replies
  • Command checks and a command switch route users to menus, registration, or invoicing
  • Execute Workflow nodes hand off registration and payment steps to separate child workflows
  • Google Sheets step updates user status so the team can track progress in a shared sheet
  • Invoice data is prepared and sent back in chat, enabling quick payment from Telegram
  • Callback query handling powers interactive menus using inline buttons

What are the benefits?

  • Reduce manual chat handling from hours to minutes by routing messages automatically
  • Automate up to 80% of common replies with message type and command routing
  • Improve sales tracking accuracy by logging status changes in Google Sheets
  • Handle several times more chat volume with the same team size
  • Connect Telegram and Google Sheets seamlessly for live updates

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Telegram and Google Sheets. See the Tools Required section above for links to create accounts with these services.
  3. Create a Telegram bot with BotFather and copy the bot token.
  4. In n8n, double click the Telegram Trigger node, choose Credential to connect with, click Create new credential, paste your bot token, and save.
  5. Open each Telegram send node and select the same Telegram credential. Confirm the chatId fields map to the correct IDs for messages and callbacks. For callbacks, use the original chat ID from the callback message.
  6. Sign in to Google Sheets with OAuth2. Double click the Google Sheets node, click Create new credential, then follow the sign in prompts and allow access.
  7. Configure the Google Sheets node with your Spreadsheet ID and target sheet. Map fields like user ID, username, and status to the correct columns.
  8. Check the invoice path. In the invoice data node, enter title, description, currency, and price values that match what you sell.
  9. Enable the workflow and send a /start command to your bot. Watch the executions panel to confirm the Start bot path runs and Sheets updates.
  10. Test message types: send a text, a photo, a file, and a voice note to confirm each branch replies correctly.
  11. Test a callback menu action by tapping an inline button. If you see chat not found, update the callback reply chatId to use the original chat ID from the callback message.
  12. Send the invoice command and confirm the invoice appears in Telegram and the status change writes to Google Sheets.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

Google Sheets

Sign up

Free: $0 (Google Sheets API usage has no additional cost; quota limits apply)

Telegram

Sign up

Free: $0, Telegram Bot API usage is free for developers

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.