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 打造具有記憶的 Open Data LINE Bot
Search
LINE Developers Taiwan
PRO
May 08, 2024
Technology
0
45
透過 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
The Magic of Feature Toggles:
line_developers_tw
PRO
0
13
透過 Cloud Function + Firebase 與 Gemini Pro Vision 打造一個旅遊小幫手 LINE ChatBot
line_developers_tw
PRO
0
1.3k
iThome Cloud Summit 2024 - 透過生成式 AI 多模態模型與 LINE Bot 產生有趣應用
line_developers_tw
PRO
0
48
從實習到專家:LINE TECH FRESH -t的成長軌跡
line_developers_tw
PRO
0
52
QA 蝦米 QA?我的扣超讚的啊
line_developers_tw
PRO
0
910
這就很玄囉! 從粽子看開發的世界
line_developers_tw
PRO
0
900
從混亂到掌控:使用 Observability 揭開管家的神秘面紗
line_developers_tw
PRO
0
1.3k
蔡EC:24歲開發一次成功
line_developers_tw
PRO
0
900
你在 DevOps 什麼啦,我要趕快上線!
line_developers_tw
PRO
0
470
Other Decks in Technology
See All in Technology
Amazon FSx for NetApp ONTAPのパフォーマンスチューニング要素をまとめてみた #cm_odyssey #devio2024
non97
0
220
サーバーレスAPI(API Gateway+Lambda)とNext.jsで 個人ブログを作ろう!
shuntaka
PRO
0
560
What if...? 처음부터 다시 LLM 어플리케이션을 개발한다면
huffon
0
1k
AI研修【MIXI 24新卒技術研修】
mixi_engineers
PRO
0
130
スレットハンティングについて知っておきたいこと
hacket
0
130
シフトレフトで挑む セキュリティの生産性向上
sekido
PRO
0
270
フルリモートワークはエンジニアの夢を叶えたか? #cm_odyssey
mamohacy
2
600
AIアシスタントの活用で品質の向上と開発ワークフローのスピードアップ
nagix
1
190
Azure Pipelinesを使用したCICDベースラインアーキテクチャ実践
yuriemori
0
190
What is DRE? - Road to SRE NEXT@広島
chanyou0311
3
620
地理情報とAPIのトレンド
nagix
0
160
可視化プラットフォームGrafanaの基本と活用方法の全て
hamadakoji
0
230
Featured
See All Featured
The Invisible Side of Design
smashingmag
294
50k
It's Worth the Effort
3n
181
27k
No one is an island. Learnings from fostering a developers community.
thoeni
17
2.8k
How STYLIGHT went responsive
nonsquared
93
5k
Music & Morning Musume
bryan
43
5.9k
The Brand Is Dead. Long Live the Brand.
mthomps
52
36k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
20
7.2k
Optimising Largest Contentful Paint
csswizardry
18
2.6k
Web development in the modern age
philhawksworth
203
10k
How GitHub Uses GitHub to Build GitHub
holman
471
290k
Designing for humans not robots
tammielis
247
25k
Testing 201, or: Great Expectations
jmmastey
33
6.9k
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