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
透過 Cloud Functions, Firebasem Gemini Pro 打造具有記憶...
Search
LINE Developers Taiwan
PRO
May 08, 2024
Technology
0
95
透過 Cloud Functions, Firebasem Gemini Pro 打造具有記憶的 Open Data LINE Bot
- Speaker: Nijia Lin
- Event: NCCU GDSC 工作坊
LINE Developers Taiwan
PRO
May 08, 2024
Tweet
Share
More Decks by LINE Developers Taiwan
See All by LINE Developers Taiwan
菸酒生在 LINE Taiwan 的後端雙刀流
line_developers_tw
PRO
0
1.1k
讓測試不再 BB! 從 BDD 到 CI/CD, 不靠人力也能 MVP
line_developers_tw
PRO
0
1.1k
DB 醬,嗨!哪泥嘎斯基?
line_developers_tw
PRO
0
1.1k
比起獨自升級 我更喜歡 DevOps 文化 <3
line_developers_tw
PRO
0
1.1k
工具人的一生: 開發很多 AI 工具讓我 慵懶過一生
line_developers_tw
PRO
0
1.1k
從四件事帶你見識見識 事件驅動架構設計 (EDA)
line_developers_tw
PRO
0
980
TODAY 看世界(?) 是我們在看扣啦!
line_developers_tw
PRO
0
1.1k
你想成為什麼樣的開發者?
line_developers_tw
PRO
0
24
研究生的 LINER生活
line_developers_tw
PRO
0
26
Other Decks in Technology
See All in Technology
米国国防総省のDevSecOpsライフサイクルをAWSのセキュリティサービスとOSSで実現
syoshie
2
820
変化する開発、進化する体系時代に適応するソフトウェアエンジニアの知識と考え方(JaSST'25 Kansai)
mizunori
0
140
PostgreSQL 18 cancel request key長の変更とRailsへの関連
yahonda
0
110
BigQuery Remote FunctionでLooker Studioをインタラクティブ化
cuebic9bic
2
230
白金鉱業Meetup_Vol.19_PoCはデモで語れ!顧客の本音とインサイトを引き出すソリューション構築
brainpadpr
2
490
Amazon ECS & AWS Fargate 運用アーキテクチャ2025 / Amazon ECS and AWS Fargate Ops Architecture 2025
iselegant
16
4.7k
Definition of Done
kawaguti
PRO
6
460
UIテスト自動化サポート- Testbed for XCUIAutomation practice
notoroid
0
110
強化されたAmazon Location Serviceによる新機能と開発者体験
dayjournal
2
160
実践! AIエージェント導入記
1mono2prod
0
140
2025/6/21 日本学術会議公開シンポジウム発表資料
keisuke198619
2
480
Create a Rails8 responsive app with Gemini and RubyLLM
palladius
0
140
Featured
See All Featured
Building Better People: How to give real-time feedback that sticks.
wjessup
367
19k
Navigating Team Friction
lara
187
15k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
34
3k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.8k
Designing for Performance
lara
609
69k
Large-scale JavaScript Application Architecture
addyosmani
512
110k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
35
2.3k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
8
660
Stop Working from a Prison Cell
hatefulcrawdad
270
20k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
130
19k
Statistics for Hackers
jakevdp
799
220k
Music & Morning Musume
bryan
46
6.6k
Transcript
透過 Cloud Functions, Firebasem Gemini Pro 打造具有記憶的 Open Data LINE
Bot
NiJia Lin 🥷 LINE Technology Evangelist ⭐ Developer Relations 👋
External Evangelism 📌 Internal Evangelism
Messaging API 介紹
如何運作 內容
什麼是 Channel? 內容
什麼是 Provider? • 獨立開發者、公司或組織 • Channel 建立之後是不能更動 channel 的 Provider
• 請勿使⽤測試帳號到線上環境
什麼是 Provider?
什麼是 Provider?
Messaging API Reply event Push event LINE Platform LINE Bot
的兩種回應⽅式
Text & Sticker message
• ⾏程管理 • 個⼈化⼩幫⼿ • 美化⽂字 Emoji message
• ⾏程管理 • 個⼈化⼩幫⼿ • 美化⽂字 Emoji message
Image, Video, Audio, Location message
⽣成式 AI 服務
Workshop: 善⽤ Vision 的 LINE bot
Bot 還記得剛剛說過什麼嗎? https://www.evanlin.com/linebot-cloudfunc-firebase-gemini-workshop/
None
• 前往 LINE TODAY 找分類 • 邀請進入群組 • 修改 prompt
讓不同領域的⼈了解 • 重新部署 Cloud Functions 增加「!摘要」功能 https://github.com/louis70109/linebot-summarize-cloud-functions-gemini
• 修改 prompt 判斷地板 • 重新部署 Cloud Functions • https://lin.ee/UfdHydQ/yltz
天氣應⽤範例
• 修改 prompt 判斷台灣上空是否有雲 • 重新部署 Cloud Functions • https://lin.ee/1UoxY7Gj/yltz
天氣應⽤範例 2 – 衛星雲圖
更多 Open API 地震 API: https://opendata.cwa.gov.tw/dataset/ear thquake?page=1 天氣 JSON: https://opendata.cwa.gov.tw/dataset/for
ecast/F-A0010-001 紅外線: https://gist.github.com/louis70109/696d 064f3d40a676d6326e921c20843e ⽇常⽣活中有更多好⽤的 open data