𝗜 𝗕𝘂𝗶𝗹𝘁 𝗮 𝗗𝘂𝗼𝗹𝗶𝗻𝗴𝗼-𝗦𝘁𝘆𝗹𝗲 𝗟𝗼𝘆𝗮𝗹𝘁𝘆 𝗦𝘆𝘀𝘁𝗲𝗺 𝗳𝗼𝗿 𝗮 𝗧𝗲𝗮 𝗦𝗵𝗼𝗽
A local tea shop owner had a problem. Customers loved his tea. But they rarely came back for a second visit. He had no app. He had no database. He had no way to reward loyalty.
Big brands like Starbucks use expensive systems to keep customers coming back. Small businesses cannot afford these tools.
I decided to build a solution using free or low-cost tools.
The Tech Stack: • Telegram: The interface for customers. • n8n: The automation engine. • AI Agent (Groq LLM): To read natural text. • Google Sheets: The database.
How it works: The system rewards consistency. Every 10 visits, the customer gets a free tea.
To prevent cheating, I added a simple layer of security:
- Every morning, the system generates a random 6-digit code.
- The shopkeeper writes this code on a board in the shop.
- Only people physically inside the shop can see the code.
- Customers type the code into the Telegram bot to log their visit.
The AI Agent makes the experience seamless. Instead of rigid forms, customers talk to the bot naturally. If a new user joins, they can type: "My name is Rahul and my number is 9876543210." The AI extracts the name and number instantly. If an existing user visits, they just send the code.
The system performs two checks:
- Is the code correct?
- Has the customer already visited today?
If both pass, the visit count increases. If the count hits 10, the bot sends a message: "Congratulations! Your tea is free today."
Key Lessons:
- AI agents are great for parsing messy human input in workflows.
- Simple fraud prevention does not need complex code. A physical sign works.
- Google Sheets is a perfect database for small businesses.
- n8n and Telegram allow you to build powerful systems without backend coding.
Enterprise-level retention is no longer just for big budgets. You can bring these mechanics to any small shop with the right automation.
Optional learning community: https://t.me/GyaanSetuAi