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
LWWSxGASxSlack
Search
noviiro
December 07, 2019
Technology
0
300
LWWSxGASxSlack
noviiro
December 07, 2019
Tweet
Share
More Decks by noviiro
See All by noviiro
LaravelのCVE-2021-3129の脆弱性について.pdf
noviiro
0
300
My GAS Tips
noviiro
1
310
FileMaker Data API
noviiro
0
190
Tried to set up Mastodon instance for myself. ( ja )
noviiro
0
170
Several TIPS for making a single board computer a web server (ja)
noviiro
0
230
PINE64で遊んでみた
noviiro
0
400
Other Decks in Technology
See All in Technology
アプリにAIを正しく組み込むための アーキテクチャ── 国産LLMの現実と実践
kohju
1
270
SES向け、生成AI時代におけるエンジニアリングとセキュリティ
longbowxxx
0
270
Oracle Database@Azure:サービス概要のご紹介
oracle4engineer
PRO
3
240
AWSインフルエンサーへの道 / load of AWS Influencer
whisaiyo
0
240
Oracle Database@AWS:サービス概要のご紹介
oracle4engineer
PRO
2
590
Authlete で実装する MCP OAuth 認可サーバー #CIMD の実装を添えて
watahani
0
310
LayerX QA Night#1
koyaman2
0
300
AIエージェントを5分で一気におさらい!AIエージェント「構築」元年に備えよう
yakumo
1
130
Agentic AIが変革するAWSの開発・運用・セキュリティ ~Frontier Agentsを試してみた~ / Agentic AI transforms AWS development, operations, and security I tried Frontier Agents
yuj1osm
0
170
BidiAgent と Nova 2 Sonic から考える音声 AI について
yama3133
2
140
2025-12-27 Claude CodeでPRレビュー対応を効率化する@機械学習社会実装勉強会第54回
nakamasato
4
1.3k
TED_modeki_共創ラボ_20251203.pdf
iotcomjpadmin
0
190
Featured
See All Featured
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.8k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
2
270
How STYLIGHT went responsive
nonsquared
100
6k
Ethics towards AI in product and experience design
skipperchong
1
150
How Software Deployment tools have changed in the past 20 years
geshan
0
30k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
210
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
39
Building an army of robots
kneath
306
46k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2k
KATA
mclloyd
PRO
33
15k
Leo the Paperboy
mayatellez
0
1.3k
GraphQLとの向き合い方2022年版
quramy
50
14k
Transcript
Slackに天気予報を流すbotを つくるまで (或いはLivedoor Weather Web ServiceとGoogle Apps Scriptを使って Slackに天気予報を流すまで) ノブ@noviiro
#gunmaweb #37
もともとの動機
遡ること2~3年前 (Slackでカップルアプリを作ってみたとかが流行った頃)
Slackの自分用ワークスペースに何 かbotを入れてみたい...! (しかも手軽に)
(探す)
(天気予報を投稿する...?) (JSONだし簡単そう)
(しかもGoogle Apps Script ででき る…!?)
作った。
Livedoor Weather Web Service x Google Apps Script x Slack
連携に必要なもの • GASxSlack連携用ライブラリ 参照 :https://qiita.com/soundTricker/items/43267609a870fc9c7453 • Slack連携用に必要なアクセストークン ◦ 「ファイル」→「プロジェクトのプロパティ」→「スクリプトのプロパティ」 • 天気のJSONデータ(今回はLivedoor天気)
• 少しのJSの知識 • 少しのGASの知識 • BEER
JSONデータ 例:http://weather.livedoor.com/forecast/webservice/json/v1?city=100010 ※仕様は「お天気webサービス仕様」を参照してください。 (http://weather.livedoor.com/weather_hacks/webservice)
取得してslackに流したい情報 • 1日の天気予報 • 最高気温 • Livedoor天気へのリンク ※画像(gif)も取得できるけどslackは文字列と結合できなかっ た・・・?
実際はこんな具合です。
Slack x GAS楽しい!