One-Message Account Consolidation for Loyalty Cleanup
Customer says 'I have two accounts.' Instead of logging into Piggy and manually merging, just message Notis. One instruction and the accounts are consolidated.
Trigger
New Message Received
Triggered when your bot receives a new message in a private chat, group, or supergroup. To receive every message in a group, Privacy Mode must be disabled for the bot in BotFather.
Action
Merge Contacts
Merges a source contact into a destination contact in Piggy's CRM. The source contact's data (attributes, balances, transactions) is transferred to the destination contact, and the source contact is removed. This operation is irreversible and processed asynchronously via a job queue. Use this when consolidating duplicate customer records.
Why this helps
Duplicate accounts scatter loyalty points across records, confusing customers and creating manual cleanup work for founders.
- Customers see their true loyalty balance immediately
- Eliminates data fragmentation and confusion
- Prevents lost points from split accounts
Setup
Build it in a few focused steps.
- 1Connect Telegram and Piggy to Notis
- 2Create an automation named 'Merge duplicate accounts' with this instruction: 'When a customer tells me they have duplicate accounts, merge them in Piggy, combining the points into their main account'
- 3Select the trigger: New Message Received in Telegram
- 4Notis will ask for clarification on which account is their main account if needed
- 5Test by creating two test accounts and merging them through a message
Questions about this workflow
How do I tell Notis which account to keep?
Mention it in your message like 'merge John's old account into his main account john@example.com' and Notis will consolidate them.
What happens to the old account?
After merging, the source account is removed from Piggy and its data is transferred to the main account. This is permanent.
Can I merge more than two accounts?
Yes. In your instruction, specify 'merge all of their accounts' and Notis will consolidate multiple records into their primary account.
When this happens · Trigger
Do this · Action
Supported Triggers and Actions
Notis builds workflows that link Telegram to Piggy. A trigger fires from one place; an action lands in another.
Telegram triggers
Piggy actions
New Message Received
Triggered when your bot receives a new message in a private chat, group, or supergroup. To receive every message in a group, Privacy Mode must be disabled for the bot in BotFather.
Claim Anonymous Contact
Tool to claim an anonymous contact by associating it with a real email address. Use when converting an anonymous contact (with a fictional email) into a verified contact with a real email address.
New Channel Post
Triggered when a new post is published to a channel where your bot is an administrator.
Create Contact Attribute
Tool to create a custom Contact Attribute. Use when you need to define new fields for contacts after initial setup.
Callback Query Received
Triggered when a user taps an inline keyboard button attached to one of your bot's messages.
Create Credit Reception
Tool to create a credit reception for a contact. Use when awarding credits to customers based on purchases or fixed amounts.
Message Edited
Triggered when a message in a chat your bot can see is edited by its sender.
Create Vouchers Batch
Tool to create a batch of vouchers for a promotion. Use when you need to generate multiple vouchers at once for a specific promotion. Batch processing is asynchronous and returns a PENDING status initially.
New Chat Member
Triggered when a new member joins a group or supergroup the bot belongs to, including when the bot itself is added.
Find or Create Products
Tool to find an existing product by external_identifier or create a new one if it doesn't exist. Use when you need to ensure a product exists in Piggy's system for loyalty programs or rewards.
Find Voucher By Code
Tool to find a voucher by its unique code. Use when you need to retrieve voucher details, check redemption status, or validate a voucher code.
Get Contact Auth Token
Tool to get an auth token for a Contact. Use after obtaining a Contact UUID and needing to verify identity for secure operations.
Get Contact's Credit Balance
Tool to get a Contact's credit balance. Use when you need to check a contact's current credit balance before processing rewards or promotions.
Connect any two apps with Notis in the middle.
Not just Telegram and Piggy. Any combination from 1,000+ integrations.
When this happens · Trigger
Do this · Action
Save your first hour today.
7 days free trial with 20$ free usage included.
No card. Works with personal or business Piggy.