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)
📖 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:
- Click the Direct Download JSON button above to save
Telegram_bot_for_item_multi_select_and_saving_to_Postgres_Modul.json. - Log in to your n8n Cloud or self-hosted n8n instance.
- In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
- Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
- Click Execute Workflow to test and switch to Active!
Related AI Agents Workflows
View All in AI Agents →5 ways to process images PDFs with Gemini AI in n8n
How it works Many users have asked in the support forum about different methods to analyze images and PDF documents with Google Gemini AI in n8n. This workfl...
7 AI Sales Assistant
Production-ready n8n automation template for 7 AI Sales Assistant built by AhiXLight. Seamlessly connects Airtop Tool, Slack, Airtop with 24 configured nodes.
AAVE portfolio professional AI agent Telegram Email GPT 4o
A next-generation AI-powered DeFi health monitor that tracks wallet positions across Aave V3 using GPT-4o and LangChain. It delivers human-readable reports v...
Access control for AI agents RBAC using Airtable and Telegram
Purpose This workflow allows granular control over the access to tools connected to AI Agents (including Multi-Agent setups) using Role Based Access Control....