$30 off During Our Annual Pro Sale. View Details »

Fly in the LINE APIs

Fly in the LINE APIs

LINE Developers Thailand

September 13, 2022
Tweet

More Decks by LINE Developers Thailand

Other Decks in Technology

Transcript

  1. Fly in the LINE APIs


    Growth your business with LINE APIs


    View Slide

  2. View Slide

  3. View Slide

  4. Customer Journey
    Booking Enter Loyalty Upsales
    Booking

    View Slide

  5. New Booking
    LINE Notify

    View Slide

  6. Create Booking with LINE LIFF
    +

    View Slide

  7. Create Booking with LINE LIFF
    liff.getProfile()
    {
    "userId": "U4af4980629...",
    "displayName": "Brown",
    "pictureUrl": "https://profile………………",
    "statusMessage": "Hello, LINE!"
    }

    View Slide

  8. Notify to Admin with LINE Notify
    https://notify-api.line.me/api/notify
    {
    "message": "นัดหมายเ
    ข้
    ารับบริการ",
    "imageThumbnail": "https://..................",
    "imageFullsize": "https://.................."
    }
    Rate Limit : 1,000 / Hour / Acces Token

    View Slide

  9. Customer Journey
    Booking Enter Loyalty Upsales
    Enter

    View Slide

  10. Welcome message

    View Slide

  11. {
    "destination": "xxxxxxxxxx",
    "events": [
    {
    "replyToken": "nHuyWiB7yP…..",
    "type": "beacon",
    "source": {
    "type": "user",
    "userId": "U4af4980629..."
    },
    "beacon": {
    "hwid": "d41d8cd98f",
    "type": "enter"
    }
    }
    ]
    }
    LINE


    Server
    Your


    Server
    LINE API
    "hwid": "d41d8cd98f",
    "userId": "U4af4980629.
    "replyToken": “nHuyWiB7
    Reply Message

    View Slide

  12. Customer Journey
    Booking Enter Loyalty Upsales
    Loyalty

    View Slide

  13. POS x Loyalty

    View Slide

  14. POS x Loyalty
    LIFF
    Push Message

    View Slide

  15. Customer Journey
    Booking Enter Loyalty Upsales
    Upsales

    View Slide

  16. Upsales
    Create Audience Send Message via Narrowcast

    View Slide

  17. Create Audience Group
    "audiences": [
    { "id": "U30ab....." },
    { "id": "U4a5f....." }
    ]
    U4af4980627...
    U4af4980628...
    U4af4980629...
    10,000
    userId / request


    ?????
    userId / request


    1,500,000


    userId / request

    View Slide

  18. POST - https://api-data.line.me/v2/bot/audienceGroup/upload/byFile
    Create Audience Group
    Audience
    Group
    {
    "audienceGroupId": “86739203…..”
    }
    U4af4980627...
    U4af4980628...
    U4af4980629...

    View Slide

  19. POST - https://api.line.me/v2/bot/audienceGroup/{audienceGroupId}
    Check Audience Status
    Audience
    Group
    Check
    Ready
    {
    "audienceGroup": {
    "audienceGroupId": 1234567890123,
    "type": "UPLOAD",
    "description": "audienceGroupName_01",
    "status": "READY",
    "audienceCount": 1887,
    "created": 1608617466
    }
    }
    “status": "READY",
    "audienceCount": 1887,

    View Slide

  20. POST - https://api.line.me/v2/bot/message/narrowcast
    Send Message via Narrowcast
    Audience
    Group
    Check
    Ready
    Send
    Message
    {
    "messages": [
    {
    "type": "text",
    "text": "test message"
    }
    ],
    "recipient": {
    "type": "audience",
    "audienceGroupId": 5614991076
    },
    "limit": {
    "max": 100,
    "upToRemainingQuota": true
    }
    }
    “audienceGroupId": 561499
    “max": 100,

    “upToRemainingQuota": true

    View Slide

  21. Summary
    LINE LIFF LINE Notify
    Messaging API
    LINE Beacon

    View Slide

  22. Use Case
    Support a variety of business
    Pet Foundation Car Dealer Food Beauty

    View Slide

  23. Pamorn Trivorrarat (Golf)
    LINE API Expert
    Co-Founder - BeTask Consulting

    View Slide