Module 10: Advanced Features

LINE Beacon, Membership subscriptions, Coupons, Reward Cards, Step Messages.

⏱ 25 min read 📖 Advanced

10.1 LINE Beacon — Proximity Triggers

LINE Beacon uses Bluetooth Low Energy (BLE) to detect when a user enters or leaves a physical location, triggering a webhook event to your OA.

🇪🇩 Available in Thailand
LINE Beacon is officially available in Thailand, Japan, and Taiwan. You can purchase certified LINE Beacons from LINE's Thai office or use the LINE Simple Beacon standard with any BLE device.
Beacon TypeDescriptionCost
LINE BeaconCertified hardware from LINE฿500-1,000 per unit
LINE Simple BeaconStandard BLE device with specific advertising dataAny BLE beacon

Beacon Webhook Events

{
  "type": "beacon",
  "replyToken": "...",
  "source": { "userId": "U4a8b..." },
  "beacon": {
    "hwid": "abcdef123456",        // Hardware ID
    "type": "enter",                // "enter", "leave", "banner", "stay"
    "dm": "{\"key\":\"value\"}",    // Device message (optional)
    "deviceMessage": { "key": "value" }  // Object version
  }
}

Beacon event types:

  • enter — User enters beacon range
  • leave — User leaves beacon range
  • banner — User taps the beacon banner notification
  • stay — User stays in range (periodic, requires LINE Simple Beacon)

Use Cases for Thailand

  • Retail stores: Send welcome message + promotion when customer enters
  • Restaurants: Auto-send menu when customer near the restaurant
  • Service counters: Queue number notification via beacon banner
  • Events: Check-in, booth-specific content, session reminders

10.2 Membership (Paid Subscriptions)

LINE OA supports paid membership tiers — users pay a recurring fee for exclusive content/benefits.

Set up in OA Manager: LINE Apps → Membership

API endpoints:

// List all membership plans
GET https://api.line.me/v2/bot/membership/list

// Get a user's subscription status
GET https://api.line.me/v2/bot/membership/subscription/{userId}

// List users subscribed to a plan
GET https://api.line.me/v2/bot/membership/{membershipId}/users/ids

Webhook events for membership:

{
  "type": "membership",
  "replyToken": "...",
  "source": { "userId": "U4a8b..." },
  "membership": {
    "membershipId": 1,
    "userId": "U4a8b..."
  }
}

// events: "membershipJoined", "membershipLeft", "membershipRenewed"

10.3 Coupons

Create and distribute discount coupons directly through LINE OA. Users see them in their LINE Wallet.

Creating a coupon via API:

POST https://api.line.me/v2/bot/coupon

{
  "name": "Summer Sale 2026",
  "issuanceCount": 500,           // Total coupons to issue
  "discountPercent": 15,          // 15% off
  "discountAmount": 0,            // Not using fixed amount
  "discountPrice": 0,             // Not using discounted price
  "discountConditions": [],       // Optional conditions
  "validFrom": 1748707200000,     // Unix ms
  "validUpto": 1751308800000,     // Unix ms
  "displayImageUrl": "https://example.com/coupon.jpg"
}

Response: { "couponId": "coupon-xxx" }

Send coupon to user via Messaging API:

{
  "type": "coupon",
  "couponId": "coupon-xxx",
  "title": "Summer Sale 2026",
  "promotionUrl": "https://yourdomain.com/sale",
  "reason": "For being a loyal customer!"
}

Or send the coupon by simply including it in a reply/push message as a coupon message type.

10.4 Reward Cards (Stamp Cards / Loyalty Cards)

Digital stamp cards within LINE — users collect stamps by taking actions and redeem rewards.

Set up in OA Manager: LINE Apps → Reward Cards

Note: Reward Cards are configured via the GUI, not the Messaging API. You can trigger stamp awards programmatically via postback data.

How it works:

  • Create a card with N stamp slots (e.g., 8 stamps for a free drink)
  • User gets a stamp when they perform an action (scan beacon, make purchase, etc.)
  • When full, user gets a reward (discount, free item)
  • Multiple cards can be active simultaneously
🇪🇩 Popular in Thailand
Stamp cards are very popular with Thai consumers. Coffee shops (Cafe Amazon, Starbucks), restaurants (MK, Sizzler), and retail stores all use them effectively on LINE OA.

10.5 Step Messages (Automated Sequences)

Step Messages are timed, automated message sequences triggered by user actions or time intervals. Set up in OA Manager: LINE Apps → Step Messages.

Example welcome sequence:

  1. Day 0 (immediate): Welcome + ฿50 coupon
  2. Day 1: Introduction to rich menu features
  3. Day 3: Showcase popular products
  4. Day 7: "We miss you" + special offer
  5. Day 14: Invite to LIFF app for full experience
  6. Day 30: Check satisfaction + review request

Trigger types:

  • Time elapsed since follow
  • Time elapsed since last message
  • Specific date (birthday, anniversary)
Pro tip: You can implement step messages yourself via the Messaging API for more control. Store followedAt timestamp for each user, then check daily if any step should trigger. This gives you flexibility the GUI Step Messages don't offer.

10.6 Surveys

Create in-chat questionnaires. Set up in OA Manager: LINE Apps → Survey.

  • Multiple question types: single choice, multiple choice, text
  • Responses collected in OA Manager
  • Can be sent via broadcast or as a step message
  • Results exportable to CSV