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

LINE Bot 入門介紹與 Platorm API 更新資訊 202107

LINE Bot 入門介紹與 Platorm API 更新資訊 202107

LINE API Platform Update 2021/07 by NiJia Lin @ 中部人 Chatbot community #16

https://chatbots.kktix.cc/events/chatbots-meetup-in-central-taiwan-016

LINE Developers Taiwan

July 14, 2021
Tweet

More Decks by LINE Developers Taiwan

Other Decks in Programming

Transcript

  1. 01 02 03 04 05 Outline Messaging API introduction Icon

    Switch Quick Reply Rich Menu Platform API Update
  2. 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
  3. Message Event Imagemap message Flex message Text message Template message

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

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

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

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

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

    Location message Sticker message Image message Video/Audio Message Send various message types
  9. A B C • Camera action • Camera roll action

    • Location action • Postback action • Message action • URI action • Datetime picker action What is Quick Reply?
  10. • Node.js • Heroku CLI • Git (Tutorial) Make a

    sample bot using Node.js h"ps://developers.line.biz/en/docs/messaging-api/nodejs-sample
  11. 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?
  12. 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?
  13. Easily switch between multiple rich menus • Create rich menu

    alias • Delete rich menu alias • Update rich menu alias • Get rich menu alias information • Get list of rich menu alias https://developers.line.biz/en/news/2021/06/21/switch-between-multiple-rich-menus/
  14. TO-BE: Alias • 使⽤者按下 Rich Menu 後向 LINE Server 發送請求,同時會以

    Postback 事件的形式向 Bot 應⽤程式發送 Webhook • LINE Server 接受請求後並將 Rich Menu 切換到使⽤者欲使⽤ 的樣式 h5ps://developers.line.biz/en/news/2021/06/21/switch-between-mulGple-rich-menus/