Upgrade to Pro — share decks privately, control downloads, hide ads and more …

LINE Bot APIs introduction and demonstration

LINE Bot APIs introduction and demonstration

NYCU Glocal Design Competition @ online

Speaker: Nijia Lin
Event: https://event.oia.nycu.edu.tw/

line_developers_tw2

July 03, 2021
Tweet

More Decks by line_developers_tw2

Other Decks in Technology

Transcript

  1. LINE Bot APIs introduction
    and demonstration
    Developer Relations
    Nijia Lin
    2021.07

    View full-size slide

  2. NiJia Lin
    LINE Technology Evangelist
    Developer Relations
    External Evangelism
    Internal Evangelism

    View full-size slide

  3. 01
    02
    03
    04
    05
    06
    Outline
    Messaging API introduction
    Environment setting
    Let’s play LINE Bot!
    Deployment
    Collaboration
    Prized-Quiz

    View full-size slide

  4. Messaging API
    Introduction

    View full-size slide

  5. Hot it works
    內容

    View full-size slide

  6. What's a channel?
    內容

    View full-size slide

  7. What's a Provider?
    • Is an individual developer, company or organization
    • Can not change the channel PROVIDER after the channel is created
    • Do not use develop account to production environment

    View full-size slide

  8. Messaging API Reply event Push event
    LINE Platform
    What you can do with the Messaging API

    View full-size slide

  9. Messaging API Reply event Push event
    LINE Platform
    What you can do with the Messaging API

    View full-size slide

  10. Messaging API Reply event Push event
    LINE Platform
    What you can do with the Messaging API

    View full-size slide

  11. • Push messages
    • Multicast messages
    • Narrowcast messages
    • Broadcast messages
    Push event methods

    View full-size slide

  12. What you can do with the Messaging API

    View full-size slide

  13. Message Event
    Imagemap message
    Flex message
    Text message
    Template message
    Location message
    Sticker message
    Image message
    Video/Audio Message
    Send various message types

    View full-size slide

  14. Message Event
    Imagemap message
    Flex message
    Text message
    Template message
    Location message
    Sticker message
    Image message
    Video/Audio Message
    Send various message types

    View full-size slide

  15. Text & Sticker message

    View full-size slide

  16. Message Event
    Imagemap message
    Flex message
    Text message
    Template message
    Location message
    Sticker message
    Image message
    Video/Audio Message
    Send various message types

    View full-size slide

  17. Image, Video, Location message

    View full-size slide

  18. Message Event
    Imagemap message
    Flex message
    Text message
    Template message
    Location message
    Sticker message
    Image message
    Video/Audio Message
    Send various message types

    View full-size slide

  19. Template message

    View full-size slide

  20. Message Event
    Imagemap message
    Flex message
    Text message
    Template message
    Location message
    Sticker message
    Image message
    Video/Audio Message
    Send various message types

    View full-size slide

  21. Imagemap message

    View full-size slide

  22. Message Event
    Imagemap message
    Flex message
    Text message
    Template message
    Location message
    Sticker message
    Image message
    Video/Audio Message
    Send various message types

    View full-size slide

  23. Flex Message

    View full-size slide

  24. Message Event
    Imagemap message
    Flex message
    Text message
    Template message
    Location message
    Sticker message
    Image message
    Video/Audio Message
    Send various message types

    View full-size slide

  25. Environment Setting

    View full-size slide

  26. Python Development for LINE Bot Service
    NodeJS Assist development
    Git Clone and Publish resource from GitHub and Heroku
    LINE account LINE Bot service provider
    Heroku Demonstration environment
    Following tools you need to install

    View full-size slide

  27. Let’s play LINE Bot!

    View full-size slide

  28. Get Current User Profile

    View full-size slide

  29. Get Sticker Keywords

    View full-size slide

  30. Change icon and display name
    https://developers.line.biz/en/reference/messaging-api/#icon-nickname-switch

    View full-size slide

  31. Change icon and display name
    https://developers.line.biz/en/reference/messaging-api/#icon-nickname-switch

    View full-size slide

  32. A
    B
    C
    • Camera action
    • Camera roll action
    • Location action
    • Postback action
    • Message action
    • URI action
    • Datetime picker action
    What is Quick Reply?

    View full-size slide

  33. Demo
    Quick Reply

    View full-size slide

  34. A
    B
    C
    • Bottom of the LINE Bot chat screen.
    • Rich menus aren't displayed on LINE for desk-
    top (macOS, Windows).
    • Is a JPEG or PNG image file.
    What is Rich Menu?

    View full-size slide

  35. A
    B
    C
    • Image format: JPEG or PNG
    • Image width size (pixels): 800 to 2500
    • Image height size (pixels): 250 or more
    • Image aspect ratio (width/height): 1.45 or more
    • Max file size: 1 MB
    What is Rich Menu?

    View full-size slide

  36. LINE API Status Site
    https://api.line-status.info

    View full-size slide

  37. Collaboration

    View full-size slide

  38. LINE TECH FRESH
    https://engineering.linecorp.com/zh-hant/blog/tech-fresh-2020/ 49

    View full-size slide