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
Elevate your video Broadcasts with Video viewin...
Search
LINE Developers Thailand
September 22, 2023
Technology
230
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Elevate your video Broadcasts with Video viewing complete event
LINE Developers Thailand
September 22, 2023
More Decks by LINE Developers Thailand
See All by LINE Developers Thailand
Unlocking the Power of AI Agents with LINE Bot MCP Server
linedevth
0
560
No REST No Stress! Connect LINE SHOPPING with MCP
linedevth
0
150
Build & Ship LINE MINI App with MINI AI Studio
linedevth
0
270
Scouter: Unleashing the True Power Level of Web Performance
linedevth
0
130
Spec > Spell: Write It Clearly, and Let AI Do the Magic
linedevth
0
130
ArgoCD: Deploy with confidence, conquer YAML mysteries
linedevth
0
150
LINE Group Bot by Zwiz.AI
linedevth
0
190
Next-Gen Retail: LINE MINI App with AI Location Intelligence
linedevth
0
210
TicketO: Reinventing the event experience with AI on MINI App
linedevth
0
320
Other Decks in Technology
See All in Technology
internal/testlog で遊ぼう
rokuosan
0
250
Microsoft MVP プログラムを紹介するから目指す人増えてくれ
tsubakimoto_s
0
130
AI時代のデータ基盤を考える問い
pacocat
0
700
EMの役割で 変わったこと・変わらなかったこと
sansantech
PRO
0
160
エージェント化するAI:現在地とその先に起きる変化 / AI as Agents: The Current State and the Changes Ahead
ks91
PRO
0
120
[ホンマでっか SRE] あなたはなぜ SRE に?
_awache
0
280
Introduction to Sansan Meishi Maker Development Engineer
sansan33
PRO
0
460
8bit CPU 2026
koba789
7
2.9k
Digitization部 紹介資料
sansan33
PRO
2
7.7k
Master Dataグループ紹介資料
sansan33
PRO
1
4.8k
APIセキュリティを組織で実現するには~注力する点と設計・実装に入れたい対策~
riiimparm
1
260
1000⼈規模のClaude Enterprise運⽤を「Oktaのグループ」と「Slack」に集約する
sansantech
PRO
0
440
Featured
See All Featured
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.6k
Embracing the Ebb and Flow
colly
88
5.1k
Practical Orchestrator
shlominoach
191
12k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
220
Darren the Foodie - Storyboard
khoart
PRO
3
3.8k
Navigating Weather and Climate Data
rabernat
0
490
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.3k
Un-Boring Meetings
codingconduct
0
390
Bash Introduction
62gerente
615
220k
Become a Pro
speakerdeck
PRO
31
6.2k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.5k
Deep Space Network (abreviated)
tonyrice
0
270
Transcript
Elevate your video Broadcasts with Video viewing complete event
อยากใ ห้ คน ดู ใ ห้ จบ? ดู จบ มั
้ ย?
Mission Re-Targeting Boost Up Tracking Elevate your video Broadcasts
1st Mission Tracking
Tracking 1st Mission Webhook Broadcast
Broadcast with Messaging API POST https://api.line.me/v2/bot/message/broadcast { "messages": [ ]
} { "type": "video", "originalContentUrl": "https://example.com/original.mp4", "previewImageUrl": "https://example.com/preview.jpg", “trackingId": "track-id" } , { "type": "text", "text": “New Feature!! ดูวีดีโอจบ รับคะแนนไปเลย 🎉" }
Webhook - VideoPlayComplete LINE Server { "destination": “xxxxxxxxxx", "events": [
{ "replyToken": “nHuyWiB7y…CTA”, "type": “videoPlayComplete", "mode": "active", "timestamp": 1462629479859, "source": { "type": "user", "userId": "U4af4980629..." }, "videoPlayComplete": { "trackingId": "track-id" } } ] Your Server Webhook Event Viewing Complete 😊
Your Server Insert data to BigQuery
Preview Data with Looker Finish 1st Mission
2nd Mission Re-Targeting
Re-Targeting 2nd Mission Broadcast Narrowcast
Create Audience from LINE OA Manager
Broadcast from LINE OA Manager
Create Audience Group POST https://api-data.line.me/v2/bot/audienceGroup/upload/byFile Request body { “description": “viewing_video_complete”
“file": “@audiences.txt;type=text/plain” } Request headers { “Authorization": “Bearer {channel access token}” “Content-Type“: “multipart/form-data” } audiences.txt “audienceGroupId“: “8672903….”
Check Audience Status POST https://api.line.me/v2/bot/audienceGroup/{audienceGroupId} { "audienceGroup": { "audienceGroupId": 1234567890123,
"type": "UPLOAD", "description": "audienceGroupName_01", "status": "READY", "audienceCount": 1887, "created": 1608617466 } }
Send Message via Narrowcast POST https://api-data.line.me/v2/bot/message/narrowcast { “messages": [ {
“type": “text” “text”: “ติดตามรายละเอียดเพิ่มเติมไ ด้ ที่...” } ], “recipient“: { “type": “audience” “audienceGroupId”: “5614991076” }, “limit“: { “max": 100 “upToRemainingQuota”: true } }
NarrowCast Audience Age Gender Device Area Sub
{ "messages": [ { "type": "text", "text": "test message" }
], "recipient": { "type": "audience", "audienceGroupId": 5614991076 }, "limit": { "max": 100, "upToRemainingQuota": true } } Viewer Complete { "messages": [ { "type": "text", "text": "test message" } ], "recipient": { "type": "audience", "audienceGroupId": 5614991076 }, "limit": { "max": 100, "upToRemainingQuota": true } } + Only Female "filter": { “demographic": { "type": “operator", “and”: [ { "type": “gender”, "oneOf": [ “female” ] } ] } }, + Only Age between 35 - 40 { "messages": [ { "type": "text", "text": "test message" } ], "recipient": { "type": "audience", "audienceGroupId": 5614991076 }, "filter": { “demographic": { "type": “operator", “and”: [ { "type": “gender”, "oneOf": [ “female” ] }, ] } }, { "type": “age”, "gte": “age_35”, "lt": “age_40” }
3rd Mission Boost up
Boostup Viewing Complete 😊 Integrate with Loyalty Congratulation Message Get
Point Reward Redeem
Integrate with Loyalty https://betask-loyalty-app.web.app/system/register
Generate Token Integrate with Loyalty
Call API video-activity Integrate with Loyalty Webhoo k Viewing Complete
😊 POST https://api.beloyalty.betaskthai.com/video-activity Request headers { "apiToken": “f8e5d2c4787fddf3….”, } Request body { "lineUserId": “U4af4980629….”, "shopId": “U123fxxxxx….”, "replyToken": “nHuyWiB7y..XCTA”, }
None
Summary 1st Mission Tracking 2nd Mission Re-Tageting 3rd Mission Boost
up Loyalty
Send Course Another Use case E-Learning Send Exam Do Exam
Send Certificate
Note Flex Message Imagemap Message
Pamorn Trivorrarat (Golf) LINE API Expert CTO - BeTask Consulting
THANK YOU