An automation for a LINE bot that helps people check whether a phone number or a name has been reported as a scammer. Built with n8n, a Supabase (PostgreSQL) database and Google Gemini for understanding free-text messages.
Student project, 2025-2026. The workflow files are n8n exports; credentials are referenced by name only and no secrets are stored here.
- A user messages the LINE bot (a phone number, a name, or a command such as
report/help/stats). - n8n receives the message through a webhook and uses Gemini to work out the intent.
- For a check, it looks the number or name up in the database (fuzzy search with
pg_trgm) and replies with a result. - For a report, it validates the input, stores it in the database and replies with a confirmation.
| File | Purpose |
|---|---|
Scam Checker Bot V14*.json |
Latest n8n workflow (webhook, database lookup, Gemini intent, LINE replies, report counter) |
FULL VERSION.json, Scam Checker V10.json |
Earlier versions of the workflow |
Scam Checker - Improved V4.js |
Message-handling code used inside an n8n Code node |
Create100k.sql |
Database schema (tables, indexes, pg_trgm extension) |
richmenu.py |
Generates the 4-panel LINE rich menu image |
test2.json |
Small test workflow |
- Create a Supabase project and run
Create100k.sqlin the SQL editor. - Import a workflow JSON into n8n.
- Create your own credentials in n8n: LINE Messaging API token, Supabase/PostgreSQL connection, Gemini API key. None are included in this repo.
- Set the LINE webhook URL to your n8n webhook.
- (Optional) run
python richmenu.pyto generate the rich menu image.
All phone numbers in the examples (such as 0812345678) are fake placeholders. Do not commit real reports or API keys.