An “out-of-the-box” LINE Official Account webhook template for Cloudflare Workers.
- Signature verification (validate webhook request source)
- Reply messages
- Mark messages as read
- Message loading animation
- Create a repo from this template
Use this template=>Create a new repository- Fill in
Repository nameand other repository info
- Customize the code
- Message routing/handling:
src/eventRouter.ts - Config:
wrangler.tomlnamesecrets_store_secretsstore_id(both entries) -> replace with your accountstore_id
- Message routing/handling:
- Deploy
- Cloudflare
Workers & PagesCreate applicationContinue with GitHub- Fill in the required info
| Type | Name | Description | Purpose |
|---|---|---|---|
| Secrets Store | LINE_CHANNEL_SECRET | LINE Official Account channel secret | Validate |
| Secrets Store | LINE_CHANNEL_ACCESS_TOKEN | LINE Official Account channel access token | Validate |