Telegram Bot for Item Multi-Select and Saving to Postgres (Module Checkbox)
### 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.
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_listtable 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
n8nin the provided SQL script with the appropriate schema name for your database. - Run the script to create the
shop_listtable.
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_listtable to include your specific options. - Adjust the Telegram messages and logic to match your use case.
New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.
Related bundle
Customer Support Automation Suite
8 hand-picked workflows for $39.00.
That is $4.88 each, vs $24.99 for this one alone.
View bundleSecure checkout powered by Stripe
Support
How to import this workflow into n8n
- 1Purchase or download the workflow to get the n8n workflow JSON file.
- 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
- 3Open each node marked with a credential warning and connect your own accounts and API keys.
- 4Run the workflow once manually to verify the data flow, then toggle it to Active.
Related Communication workflows
- Automate Outbound Calls with Ultravox AI and Twilio$4.99
- Automate Intelligent Email Classification with AI in Gmail$4.99
- Generate AI videos and carousels with Blotato for Instagram and TikTok$9.99
- Automating WhatsApp Replies Using GoHighLevel with Redis and Anthropic$24.99
- Automate Gmail Email Labeling with AI for Enhanced Organization$14.99
- Automate Email Summarization and Logging with AI and Google Sheets$9.99
More from Andrew
Need this deployed? We'll set it up for you.
Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.