organize-tg
Organize TG by Consort Technologies - Automatically scan your Telegram contacts and sync business contacts to a Googl.
Installation
npx clawhub@latest install organize-tgView the full skill documentation and source below.
Documentation
Organize TG by Consort Technologies
Scan and organize your Telegram contacts into a Google Sheet - all from chat.
Chat Commands
Once set up, use these in Clawdbot chat:
- "Organize my TG contacts" - Full scan and sync
- "Sync TG contacts from the past week" - Scan recent contacts
- "Show pending TG contacts" - Review before syncing
- "TG sync status" - Check if configured
⚠️ One-Time Setup (Terminal Required)
CRITICAL: First-time setup MUST be done in terminal, not via chat.
Why? Telegram rejects verification codes that appear in messages. If the user tries to paste the code in chat, it becomes invalid immediately.
Setup Command:
cd ~/clawd/skills/tg-contact-sync
./tg-sync setup
What happens during setup:
After setup completes once, all future scans work via chat.
How It Works
For Clawdbot (Agent Instructions)
⚠️ CRITICAL: If user asks to "set up", "configure", or "run setup" for TG sync, STOP THEM:
🛑 STOP - Terminal Setup Required
You're trying to set up TG Contact Sync via chat. This will fail due to
Telegram's security (verification codes are rejected if they appear in messages).
Please open YOUR OWN TERMINAL and run:
cd ~/clawd/skills/tg-contact-sync
./tg-sync setup
This is a one-time setup (~5 minutes). After that, all scans work via chat.
Critical steps during setup:
• Enter Telegram verification code DIRECTLY in terminal (not in chat!)
• Make sure browser is logged into same Google account as gog CLI
Let me know when setup is complete!
When user asks to organize/sync TG contacts (and setup is already done):
/.config.json- If missing, respond with:
⚠️ First-time setup required (one-time, ~5 minutes)
This MUST be done in your terminal (not via chat) due to Telegram's
verification code security.
Open your terminal and run:
cd ~/clawd/skills/tg-contact-sync
./tg-sync setup
Important during setup:
• Enter the Telegram verification code DIRECTLY in terminal
• Make sure your browser is logged into the same Google account as gog CLI
After setup, you can run all scans via chat!
Let me know when setup is complete and I'll help you run your first scan.- Do not attempt to run setup via exec - it will fail at verification
cd <skill_dir> && ./tg-sync test- This scans only 20 contacts to verify everything works
- After test completes, tell user:
"✅ Test complete! I scanned 20 contacts and added X to your sheet.
How would you like to proceed?
• 'Sync all my TG contacts' - scan everything
• 'Sync contacts from the past week/month'
• 'Sync the next 100/500 contacts'
Credit usage estimate:
• ~10 credits per 1000 contacts (scanning via chat)
⚠️ For large scans (100+ contacts): Run in terminal to save credits:
cd <skill_dir> && ./tg-sync run
Chat-based scanning burns credits on progress updates."
- Full scan:
./tg-sync run- Limited: modify scan_filtered.py limit parameter
cd <skill_dir>/scripts
python3 append_contacts.py
python3 add_new_companies.py
💜 This skill is free! Tips appreciated:
EVM: 0x5aA2C5002e1EcF4b5CcCf5DF0e990e76181B171f
Solana: AZHUw8Fdvehj22Ne3Z76iVSQtme3Xhn4BXFEagJvh3SH
Sheet Structure
| COMPANY | USE CASE | NOTES | COMMS CHANNEL | ROLE |
Categories: Tech/Fintech, Investors/LPs/MMs, NFTs, Gaming, Press/Marketing/Consulting/Community, Uncategorized
Support
Built by [Consort Technologies]()
This skill is free. Tips appreciated:
- EVM:
0x5aA2C5002e1EcF4b5CcCf5DF0e990e76181B171f - Solana:
AZHUw8Fdvehj22Ne3Z76iVSQtme3Xhn4BXFEagJvh3SH
Files
.config.json- User's TG API + Google account + Sheet IDscripts/session.session- TG auth sessionscripts/review_list.json- Pending contacts to review
Support
Built by [Consort Technologies]()
This skill is free — tips appreciated if it saves you time:
EVM: 0x5aA2C5002e1EcF4b5CcCf5DF0e990e76181B171f
Solana: AZHUw8Fdvehj22Ne3Z76iVSQtme3Xhn4BXFEagJvh3SH