Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
LINE 平台技術介紹與應用
Search
LINE Developers Taiwan
PRO
September 04, 2021
Programming
0
5.5k
LINE 平台技術介紹與應用
LINE 平台技術介紹與應用 by NiJia Lin
LINE Developers Taiwan
PRO
September 04, 2021
Tweet
Share
More Decks by LINE Developers Taiwan
See All by LINE Developers Taiwan
台大資料分析與決策社 機器學習的商業應用_Rei
line_developers_tw
PRO
0
12
政大數據分析社 機器學習的商業應用_Rei
line_developers_tw
PRO
0
16
Gemini 2025 新功能回顧 LINE Bot 完美結合
line_developers_tw
PRO
0
470
NTUAI企業參訪
line_developers_tw
PRO
0
11k
Data TECH FRESH企業參訪- Amber
line_developers_tw
PRO
0
22k
Data Team 實習分享
line_developers_tw
PRO
0
19k
Backend Intern之旅
line_developers_tw
PRO
0
26k
清大企業參訪- Ben
line_developers_tw
PRO
0
4.3k
LLM 商品規格萃取大冒險- Vila
line_developers_tw
PRO
0
2.8k
Other Decks in Programming
See All in Programming
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
550
nuget-server - あなたが必要だったNuGetサーバー
kekyo
PRO
0
390
どんと来い、データベース信頼性エンジニアリング / Introduction to DBRE
nnaka2992
1
320
AI活用のコスパを最大化する方法
ochtum
0
280
AWS×クラウドネイティブソフトウェア設計 / AWS x Cloud-Native Software Design
nrslib
16
3.3k
S3ストレージクラスの「見える」「ある」「使える」は全部違う ─ 体験から見た、仕様の深淵を覗く
ya_ma23
0
890
Symfony + NelmioApiDocBundle を使った スキーマ駆動開発 / Schema Driven Development with NelmioApiDocBundle
okashoi
0
210
Rethinking API Platform Filters
vinceamstoutz
0
140
エンジニアの「手元の自動化」を加速するn8n 2026.02.27
symy2co
0
180
AI 開発合宿を通して得た学び
niftycorp
PRO
0
160
[PHPerKaigi 2026]PHPerKaigi2025の企画CodeGolfが最高すぎて社内で内製して半年運営して得た内製と運営の知見
ikezoemakoto
0
250
ポーリング処理廃止によるイベント駆動アーキテクチャへの移行
seitarof
3
1.1k
Featured
See All Featured
Designing Powerful Visuals for Engaging Learning
tmiket
0
290
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.2k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
89
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.4k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
9.9k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
150
Optimising Largest Contentful Paint
csswizardry
37
3.6k
Music & Morning Musume
bryan
47
7.1k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
330
The Invisible Side of Design
smashingmag
302
51k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
150
Transcript
LINE 平台技術介紹與應用 LINE Developer Rela/ons NiJia Lin
NiJia Lin LINE Technology Evangelist Developer Relations External Evangelism Internal
Evangelism
None
None
Messaging API 介紹
Message Event Imagemap message Flex message Text message Template message
Location message Sticker message Image message Video/Audio Message 發送各種訊息格式
Text & Sticker message
Message Event Imagemap message Flex message Text message Template message
Location message Sticker message Image message Video/Audio Message 發送各種訊息格式
• 關鍵字 (Keywords) • 與使⽤者更多的互動 • 更符合對話情境 • 猜你想什麼 https://developers.line.biz/en/docs/messaging-api/sticker-list/
Sticker message
• ⾏程管理 • 個⼈化⼩幫⼿ • 美化⽂字 https://github.com/line/line-bot-sdk-python/blob/master/examples/flask-kitchensink/app.py#L118 Emoji message
• ⾏程管理 • 個⼈化⼩幫⼿ • 美化⽂字 h@ps://github.com/line/line-bot-sdk-python/blob/master/examples/flask-kitchensink/app.py#L118 Emoji message
Image, Video, Audio, Location message
Message Event Imagemap message Flex message Text message Template message
Location message Sticker message Image message Video/Audio Message 發送各種訊息格式
Template message
Message Event Imagemap message Flex message Text message Template message
Location message Sticker message Image message Video/Audio Message 發送各種訊息格式
Imagemap message
Message Event Imagemap message Flex message Text message Template message
Location message Sticker message Image message Video/Audio Message 發送各種訊息格式
Flex Message
Message Event Imagemap message Flex message Text message Template message
Location message Sticker message Image message Video/Audio Message 發送各種訊息格式
Flex Message
Flex Message Simulator https://developers.line.biz/flex-simulator/
Flex Message Simulator h>ps://developers.line.biz/flex-simulator/
如何運作 內容
什麼是 Channel? 內容
什麼是 Provider? • 獨立開發者、公司或組織 • Channel 建立之後是不能更動 channel 的 Provider
• 請勿使⽤測試帳號到線上環境
什麼是 Provider?
什麼是 Provider?
Messaging API Reply event Push event LINE Platform LINE Bot
的兩種回應⽅式
• Push messages • Multicast messages • Broadcast messages •
Narrowcast messages Push event 的四種⽅法
如何跟 Messaging API 溝通
取得⽤⼾資訊
• Display Name • User Id • Language • Picture
Url • Status Message 詳細資訊 https://developers.line.biz/en/reference/messaging-api/#get-profile
Icon Switch
修改⼤頭貼圖⽰與名字 h>ps://developers.line.biz/en/reference/messaging-api/#icon-nickname-switch
修改⼤頭貼圖⽰與名字 https://developers.line.biz/en/reference/messaging-api/#icon-nickname-switch
修改⼤頭貼圖⽰與名字 https://github.com/louis70109/line-icon-switch-python
Quick Reply
A B C • Camera action • Camera roll action
• Location action • Postback action • Message action • URI action • Datetime picker action 什麼是 Quick Reply?
• Node.js • Heroku CLI • Git (Tutorial) 使⽤ Node.js
做⼀個 Sample Bot h"ps://developers.line.biz/en/docs/messaging-api/nodejs-sample
Rich Menu
h>ps://developers.line.biz/en/docs/messaging-api/using-rich-menus/#introducIon Rich Menu 範例
A B C • 居於 LINE Bot 聊天室的下⽅ • Rich
menu無法在 LINE 桌⾯版使⽤(macOS, Windows). • ⽬前僅⽀援 JPEG 以及 PNG 什麼是 Rich Menu?
• 圖片格式: JPEG or PNG • 寬度 (pixels): 800 to
2500 • ⾼度 (pixels): 250 or more • 比率 (width/height): 1.45 or more • 檔案最⼤尺⼨: 1 MB 什麼是 Rich Menu?
更多資訊可以參考以下⽂章 ⬇ https://engineering.linecorp.com/zh-hant/blog/rich-menu-alias-switch-action/
Messaging API SDK • 讓您可以使用套快速建立聊天機器人 • 支援多種程式語言 • Java •
Python • PHP • Node.js • Go • Ruby • Perl
LINE API Status 網⾴ h@ps://api.line-status.info
LINE Login 透過整合 LINE Login 能夠讓您的應⽤程式更快地連結 LINE ⽤⼾ https://developers.line.biz/zh-hant/docs/line-login/overview/
LIFF (LINE Frontend Framework) LIFF 能夠透過 Web 應用程式的方式與 LINE 用戶互動
Rich Menu 搭配 LIFF
LIFF 使用方式 • NPM 套件 • npm install --save @line/liff
• https://www.npmjs.com/pac kage/@line/liff • CDN 路徑
LIFF 使用方式 • NPM 套件 • npm install --save @line/liff
• https://www.npmjs.com/pac kage/@line/liff • CDN 路徑
LINE TECH FRESH https://engineering.linecorp.com/zh-hant/blog/line-tech-fresh-2020-graduate/ 52
None
THANK YOU