FM
FlowMarket
AI Agents Advanced ⚡ 46 n8n Nodes

Telegram bot for item multi select and saving to Postgres Modul

Who is this for? This template is for developers and automation specialists looking to create a Telegram bot that enables users to select items from a predef...

🔌 Nodes & Integrations Used (4)

Telegram PostgreSQL Telegram Trigger Summarize

📖 Implementation & Setup Guide

Who is this for?

This template is for developers and automation specialists looking to create a Telegram bot that enables users to select items from a predefined list and save their choices to a Postgres database.

What problem is this workflow solving?

It provides a simple and efficient way to collect structured user input via Telegram and store it in a Postgres database, useful for inventory selection, order systems, or preference tracking.

What this workflow does

  • Displays a list of selectable options from a Postgres `shop_list` table in Telegram
  • Saves the user’s selection back to the database
  • Automatically deletes messages at each step to keep the chat clean

Setup

#### 1. Create the required tables in Postgres

  • Replace `"n8n"` in the provided SQL script with the appropriate schema name for your database
  • Run the script to create the `shop_list` table

#### 2. Add necessary credentials in n8n

  • **Telegram**: Connect your Telegram bot using the Bot Token
  • **Postgres**: Add your Postgres DB credentials to allow the workflow to read/write data

How to customize this workflow to your needs

  • Modify the `shop_list` table to include your specific options.
  • Adjust the Telegram messages and logic to match your use case.

⚡ How to import this workflow into n8n:

  1. Click the Direct Download JSON button above to save Telegram_bot_for_item_multi_select_and_saving_to_Postgres_Modul.json.
  2. Log in to your n8n Cloud or self-hosted n8n instance.
  3. In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
  4. Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
  5. Click Execute Workflow to test and switch to Active!

Related AI Agents Workflows

View All in AI Agents →