عربي
News
●E-invoicing: the last date to connect for wave 25 is February 1, 2027●WhatsApp Business: service messages are paid after 1,000 free per month●Salla acquires Paylink to strengthen payment solutions for merchants●Google launches a Gemini agent for businesses first, then consumers●Hostinger's White Friday deals continue until December 14

A morning AI summary of customer messages with n8n and Telegram

An n8n workflow reads customer messages from Google Sheets every morning, an AI model summarizes them, and the summary is sent to your phone through Telegram.

The problem

Customer messages and notes pile up in a spreadsheet, and every morning you have to read dozens of lines to find what matters: an urgent complaint, a repeated question, or a sales opportunity. What you want is one short message on your phone each morning that summarizes what arrived and highlights what deserves attention.

The tool

n8n is an automation tool where you build workflows from connected nodes. According to its official docs, it can run in the cloud (n8n Cloud) or self-hosted on your own server, and the Community edition is free for self-hosting. n8n Cloud has a 14-day free trial with Pro features. It includes a Schedule Trigger node for running at fixed times, a Basic LLM Chain node for sending instructions to an AI model, and a Telegram node for sending messages. Here we describe a path with four middle nodes, following the official docs.

The steps

  1. Prepare a Google Sheets spreadsheet with a sheet that holds customer messages. Ideally it contains only the current period's messages, because the Google Sheets node with the Get Row(s) operation reads all the rows in the sheet.
  2. Create a Telegram bot: start a chat with BotFather and send it the command /newbot, then choose a name and a username ending in bot. Copy the Token it gives you.
  3. Open n8n. For a quick trial, sign up for n8n Cloud. If you want to run it on your own machine, follow the Docker installation page in the docs, and set the timezone (GENERIC_TIMEZONE) because the scheduling nodes rely on it, then open localhost:5678.
  4. Create a new workflow and add a Schedule Trigger node. Choose the unit Days, then the hour and minute, for example 8:00 AM. A note from the docs: the schedule only runs after the workflow is saved and published.
  5. Add a Google Sheets node with the Get Row(s) operation. Create a Credential for your Google account. On n8n Cloud there is an option to sign in with Google directly, with no setup in Google Cloud Console; on self-hosted installs you need to set up OAuth2 by hand. Choose the spreadsheet and the sheet.
  6. Add an Aggregate node in All Item Data mode, and write a field name such as rows in Put Output in Field. This gathers all the rows into one item, so the model receives one request instead of one per row.
  7. Add a Basic LLM Chain node. In Prompt choose Define below, and write instructions such as: "Summarize the following customer messages in Arabic in at most 5 points, and start with any urgent complaint", then insert the data from the rows field. This node requires a chat model sub-node.
  8. From the same node add a chat model, such as OpenAI Chat Model. You need OpenAI credentials, meaning an API key from your account. Choose the model from the list; n8n shows only the models available to your account.
  9. Add a Telegram node with the Send Message operation. Create a Credential by pasting the token into the Access Token field. Enter the Chat ID and put the output of the Basic LLM Chain node in the text.
  10. Run the workflow manually to test and check the message on your phone, then save and publish it.

The real cost

Self-hosting the Community edition is free, but you carry the server and its upkeep. According to the official pricing page at the time of writing, the cloud Starter plan begins at 20 euros a month when billed annually with 2,500 executions a month, and Pro is 50 euros a month with 10,000 executions. A workflow that runs once a day uses about 30 executions a month. On top of that comes the cost of using the model, which is billed on the model provider's account, not by n8n, so check its official pricing page.

The free alternative

If you want neither hosting nor a subscription, the free Google Apps Script can email a simple statistical summary without AI. Summarizing with a model always needs an API key from a provider, and it may have a limited free tier that differs from one provider to another, so check its page.

Notes

  • We have not tried these steps ourselves yet; they are based on the current official docs. Button names may change, so if your interface differs, follow the docs.
  • Customer messages will be sent to the model provider. Don't send phone numbers or sensitive data; delete them from the sheet or leave them out of the fields you send.
  • The model can make mistakes in summarizing. Keep reading the original messages in important cases.
  • Don't put keys in the workflow text. Use Credentials inside n8n only.

Sources

  1. docs.n8n.io
  2. docs.n8n.io
  3. docs.n8n.io
  4. docs.n8n.io
  5. n8n.io

Did you like this guide?

The weekly newsletter is being prepared. Leave your email and we'll send it when it launches.

We use your email only to send the newsletter. Privacy policy