AI Agents

Connect Telegram with OpenAI andGoogle Sheets

23 nodes 236 121 Automatic trigger
Download

Workflow Description

An advanced automation that connects Telegram conversations to OpenAI's intelligent responses, automatically storing data in Google Sheets. Processes incoming messages through a smart agent, parses outputs, and logs results in spreadsheets for review and analysis.

How it works

  1. 1.Receive messages from Telegram via chat triggers
  2. 2.Process messages using OpenAI AI Agent
  3. 3.Analyze and structure outputs from the language model
  4. 4.Log results and data to Google Sheets
  5. 5.Send intelligent responses back to Telegram

Use cases

  • Create a smart Telegram bot that answers customer inquiries while maintaining a conversation log
  • Automatically analyze message data and categorize it in organized spreadsheets

Requirements

  • Active OpenAI account with valid API key
  • Telegram account with Bot Token configured
  • Google Sheets file with write and edit permissions

Service Value

Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.

Apps Used

Chat Trigger OpenAI Output Parser Telegram AI Agent Google Sheets

Details

Trigger Automatic trigger
Nodes 23
Apps 6
Views 236
Downloads 121

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (23)

/

When chat message received

Chat Trigger

#1

OpenAI Chat Model

OpenAI

#2

Structured Output Parser

Output Parser Structured

#3

Get Audio File

Set

#4

Transcribe Recording

OpenAI

#5

Limit

Limit

#6

Receive Telegram message

Set

#7

If it's a voice message

If

#8

Set chatInput from message

Set

#9

Set chatInput from voice

Set

#10

List of Ingredients and nutrients

Agent

#11

Explode the list

Split Out

#12

Add date

Code

#13

Store in sheet

Google Sheets

#14

Sticky Note

Sticky Note

#15

Sticky Note1

Sticky Note

#16

Sticky Note2

Sticky Note

#17

Sticky Note3

Sticky Note

#18

Sticky Note4

Sticky Note

#19

Sticky Note5

Sticky Note

#20

Sticky Note6

Sticky Note

#21

Respond message

Set

#22

Sticky Note7

Sticky Note

#23