$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
本授業におけるチャットボットの使い方 / How to Use Chatbots in Thi...
Search
Kenji Saito
PRO
April 11, 2025
Technology
0
100
本授業におけるチャットボットの使い方 / How to Use Chatbots in This Class
早稲田大学大学院経営管理研究科「プロンプトエンジニアリング ─ 生成AI の応用」2025 春のオンデマンド教材 第3回で使用したスライドです。
Kenji Saito
PRO
April 11, 2025
Tweet
Share
More Decks by Kenji Saito
See All by Kenji Saito
ウェブサービスデザイン 2 / Web Service Design 2
ks91
PRO
0
8
Learning to Govern the Orbital Commons: A Serious Game on Incentivizing Debris Removal
ks91
PRO
0
4
FinTech 13-14 : FinTech Ideathon and Poster
ks91
PRO
0
92
講師自己紹介 / Lecturer Self-Introduction
ks91
PRO
0
18
講師研究紹介 / Lecturer Research Profile
ks91
PRO
0
12
NPO とは何か (を考えるワールドカフェ) / What is an NPO? (A World Café for Reflection)
ks91
PRO
0
70
FinTech 11-12 : Cyber-Physical Society and Future of Finance
ks91
PRO
0
67
AI 前提社会のキャッチ=22 (または私は如何にして民主主義、文書主義、人道的活動...) / Catch-22 in an AI-Premised Society (or How I Came to Democracy, Documentation, Humanitarian Activities...)
ks91
PRO
0
12
ウェブサービスデザイン 1 / Web Service Design 1
ks91
PRO
0
9
Other Decks in Technology
See All in Technology
事業状況で変化する最適解。進化し続ける開発組織とアーキテクチャ
caddi_eng
1
8.8k
レガシーシステム刷新における TypeSpec スキーマ駆動開発のすゝめ
tsukuha
4
840
Claude Code はじめてガイド -1時間で学べるAI駆動開発の基本と実践-
oikon48
15
8.4k
Pandocでmd→pptx便利すぎワロタwww
meow_noisy
2
1k
GitHub を組織的に使いこなすために ソニーが実践した全社展開のプラクティス
sony
14
8.1k
信頼性が求められる業務のAIAgentのアーキテクチャ設計の勘所と課題
miyatakoji
0
190
履歴テーブル、今回はこう作りました 〜 Delegated Types編 〜 / How We Built Our History Table This Time — With Delegated Types
moznion
6
4.6k
日経電子版の BCP への取り組みについて/mediajaws1121
nikkei_engineer_recruiting
0
110
IPv6-mostly field report from RubyKaigi 2026
sorah
0
220
AI駆動開発を実現するためのアーキテクチャと取り組み
baseballyama
17
15k
生成AIシステムとAIエージェントに関する性能や安全性の評価
shibuiwilliam
2
260
TypeScript 6.0で非推奨化されるオプションたち
uhyo
15
5.5k
Featured
See All Featured
Speed Design
sergeychernyshev
33
1.3k
How to Think Like a Performance Engineer
csswizardry
28
2.3k
Context Engineering - Making Every Token Count
addyosmani
9
430
Side Projects
sachag
455
43k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
34
2.3k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
Why You Should Never Use an ORM
jnunemaker
PRO
60
9.6k
How to train your dragon (web standard)
notwaldorf
97
6.4k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
253
22k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
9
990
Building a Scalable Design System with Sketch
lauravandoore
463
34k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
350
Transcript
Generated by Stable Diffusion 3.5 — AI 2025 3 (WBS)
2025 3 — 2025-04 – p.1/34
https://speakerdeck.com/ks91/collections/prompt-engineering-2025-spring 2025 3 — 2025-04 – p.2/34
( 20 ) 1 • 2 • 3 • 4
5 6 RPG 7 “September 12th” 8 9 10 ∼ 11 Linux (Windows )(Mac ) 12 Open Interpreter ∼ 13 01 ∼ 14 AGI (Artificial General Intelligence) 7 (4/28 ) / (2 ) OK / 2025 3 — 2025-04 – p.3/34
(1/2) ( ) OpenAI GPT OpenAI Playground / Dashboard 1
: API (Application Programming Interface) 2 : ( ) 3 : AI ( ) Saito Lab at WBS 2025 Zoom Discord ( ) 2025 3 — 2025-04 – p.4/34
(2/2) Discord GPT-Discord Bot System 1 : 2 : AI
Playground / Dashboard AI ^^; (realtime ) OpenInterpreter ( ) 01 ( ) 2025 3 — 2025-04 – p.5/34
(15 (15 P P P (15 NPEFMT 0QFO"* ʹ͔͠ ৮Εͳ͍
ɾίϯγϡʔϚʔ͚ ɾ։ൃऀ͚ νϡʔτϦΞϧ༻ ؆୯ͳ͓ࢼ͠ ɾίϯγϡʔϚʔ͚ ɾֶशऀ͚ ϚϧνϢʔβʔ ޓ͍ʹ؍հೖ͕Մೳ ɾۀ͚ Έͳ͞Μ͕ۀͰ ɹ։ൃͨ͠ΓͬͨΓ͢Δ ɹͷଟ͜Ε ະͰ͋Γ࿅शͷ͠Α͏͕ͳ͍ (15P ͳΜͰ Ͱ͖Δ νϟοτ Ͱ͖Δ (15 ⣋ Λఏڙ ͔͜͜Βҹͷઌͷ ΄ͱΜͲΛମݧͯ͠ ֶΔ तۀͰ͏ तۀͰ͏ ͔͜͜Βҹͷઌͷ ΄ͱΜͲΛମݧͯ͠ ֶΔ େ·͔ʹಉ͡ͷ ֓೦తͳ 0QFO"*"1* XFC ΞϓϦ XFC ΞϓϦ XFCΞϓϦ %JTDPSE XFC ΞϓϦ (15 ⣋ DPEFJOUFSQSFUFS GVODUJPODBMMJOH %"--& WFDUPSTUPSF 1MBZHSPVOE $IBU(15 (15T ΞϓϦ ϩδοΫ ΞϓϦ ϩδοΫ "TTJTUBOUT $IBU $PNQMFUJPOT "TTJTUBOUT "TTJTUBOUT $IBU (15 ⣋ Λఏڙ HQU EJTDPSE CPU ƅ˜ƅ ů ˞(15 (FOFSBUJWF1SFUSBJOFE5SBOTGPSNFS ͋͘·Ͱ ɹࣄલੜֶश͞ΕͨτϥϯεϑΥʔϚʔͷ͜ͱͰɺ(15P ɹͱ͔ͷϞσϧͷ͜ͱͰ͕͢ɺͦ͜ʹDPEFJOUFSQSFUFS ɹWFDUPSTUPSF ͳͲͷػೳΛଓͨ͠ɺ֦ு͞Εͨ(15γεςϜ ɹͷ͜ͱΛɺ0QFO"*ϚʔέςΟϯά্ Ϣʔβʔෳࡶͳ ɹ༻ޠମܥΛ·ͳ͍ͷͰ ɺಉ͘͡ʮ(15ʯͱݺΜͰ͍·͢ɻ ɹ͜ΕΛຊདྷͷ (15 ͱ۠ผ͢ΔͨΊʹɺ͜ͷतۀͰ (15 ⣋ ɹ ϚʔέςΟϯά༻ޠͱͯ͠ͷ (15 ͱݺΜͰΈ·͠ΐ͏ɻ (15 ϑΝΠϯ νϡʔχϯά ͞Εͨ ϑΝΠϯ νϡʔχϯά ͞Εͨ API (Application Programming Interface) Chat ChatGPT Assistants GPTs 2025 3 — 2025-04 – p.6/34
Discord 2025 3 — 2025-04 – p.7/34
Discord Discord . . . 1 . . . (
) @mentions → 2 ( ) ( ) 2 · ( ) BAN · OpenAI API 2025 3 — 2025-04 – p.8/34
OpenAI Playground Saito Lab at WBS “Personal” OpenAI (ChatGPT) 2025
3 — 2025-04 – p.9/34
Playground (ChatGPT ) ϞσϧΛબͰ͖·͢ ೖྗ͠·͢ 2025 3 — 2025-04 –
p.10/34
Playground (GPTs ) ΞγελϯτΛબʗ࡞͠·͢ ϞσϧΛબͰ͖·͢ ೖྗ͠·͢ 2025 3 — 2025-04
– p.11/34
GPT-Discord Bot System ( AIC ) ( ) ( )
Assistants API Playground /chat 2025 3 — 2025-04 – p.12/34
GPT-Discord Bot System ϝϯόʔ͕ॴଐ͢Δ৫ ϝϯόʔ େنݴޠϞσϧ (15P΄͔ ࢲͨͪͷ νʔϜ͕։ൃ εϨου
ࢲ ࢲͨ ͨͪ ͪ νϟοταʔϏε %JTDPSE ϫʔΫεϖʔε %JTDPSE αʔόʔ PE νϟοτϘοτ HQUEJTDPSECPU ৗ࣌Քಇɾৗ࣌ଓͷ ԿΒ͔ͷϚγϯ ƅ˜ƅ ů ։࢝ Ξγελϯτ "1* εϥογϡίϚϯυ ᶃ ᶄ ᶅ ᶆ ᶇ ίϚϯυʹΑΔ੍ޚ Ξγελϯτͱͯ͠ର ಡΈग़͠ɾॻ͖ࠐΈ ର ର ର ର ʲΞγελϯτ "1*ʳ ɾΞγελϯτͷੜ $ ɾऔಘ 3 ɾߋ৽ 6 ɾআ % ɾ 0QFO"* εϨουͷੜɾॻ͖ࠐΈ ϝϯόʔɺίϚϯυΛ௨ͯ͠ ʮϏϧμʔΞγελϯτʯͱର͠ͳ͕Β "* ΞγελϯτΛੜͨ͠Γɺ ੜࡁͷ "* ΞγελϯτΛमਖ਼ͨ͠Γɺ "* ΞγελϯτΛݺͼग़ͯ͠ରͰ͖·͢ɻ ʲίϚϯυҰཡʳ CVJME DIBU EFMFUF MJTU TIPX VQEBUF ʜΞγελϯτΛੜ ʜΞγελϯτͱର։࢝ ʜΞγελϯτΛআ ʜΞγελϯτҰཡ ʜΞγελϯτΛදࣔ ʜΞγελϯτΛमਖ਼ GPTs × ⇒ 2025 3 — 2025-04 – p.13/34
GPT-Discord Bot System ( ) 0 1 2 API 3
Discord 4 Discord 5 Discord Discord AI · tutor (noun) — a private teacher, typically one who teaches a single pupil or a very small group 2025 3 — 2025-04 – p.14/34
gptbot-wbs WBS Discord : https://github.com/KeioAIConsortium/gpt-discord-bot : https://github.com/ks91/gpt-discord-bot ← GPTs (
) ChatGPT ( ) 2025 3 — 2025-04 – p.15/34
(1/3) ID ( id) (identifier ) . . . (
) . . . AI ( AI) /chat ID (assistant_id) name ( ) . . . description ( ) . . . · name description instructions ( ) . . . tools ( ) . . . · Files ( ), Code Interpreter ( ) files ( ) . . . · Files (enable) 2025 3 — 2025-04 – p.16/34
(2/3) (assistant_id : asst_OUIhymbGuI1siXVaLs7evkaJ) ( /build ) /update ← (sandbox)
Discord # ID (thread; ) ( 2 ) Discord Discord OpenAI OpenAI API thread_id /chat Discord 2025 3 — 2025-04 – p.17/34
(3/3) ( ) “/” (/build) (Create ) (/show, /list) (Read
) (/update) (Update ) (/delete) (Delete ) · CRUD (/chat) ( )( ) /build /chat /update /build 2025 3 — 2025-04 – p.18/34
(/list ) Discord → /list /list search: ( ) 2025
3 — 2025-04 – p.19/34
( ) ΫϦοΫͯ͠બͿͱೖྗͰ͖·͢ . . . assistant_id 2025 3 —
2025-04 – p.20/34
(/chat )(1/3) /chat ΫϦοΫͯ͠εϨουΛදࣔ͠·͢ ⇒ ΫϦοΫͯ͠ϓϧμϯϝχϡʔΛ දࣔͤͯ͞ɺΞγελϯτΛબͼ·͢ 20 . .
. . . . 2025 3 — 2025-04 – p.21/34
(/chat )(2/3) /chat 3 (1) /chat 20 (2) /chat assistant_id:
ID (3) /chat search: 20 2025 3 — 2025-04 – p.22/34
(/chat )(3/3) Discord 2025 3 — 2025-04 – p.23/34
(1) /chat assistant_id: asst_OUIhymbGuI1siXVaLs7evkaJ — (2) /chat search: (2) /build
name: ( ) ( ) ( ) ( ) — /update ID (3) /chat assistant_id: ID — 3 2025 3 — 2025-04 – p.24/34
( ) /chat assistant_id asst_OUIhymbGuI1siXVaLs7evkaJ 2025 3 — 2025-04 –
p.25/34
(/build ) /build name: description ( ) instructions ( )
( ) code interpreter 2025 3 — 2025-04 – p.26/34
/build EFTDSJQUJPO આ໌ ʁ ਓؒͷ ͨΊͷ ͍આ໌Λ ॻ͘ ϓϩϯϓτ
Λॻ͘ Ξγελϯτʹ ໊લΛ͚Δ &OBCMFPS %JTBCMF :FT /P ϑΝΠϧ ܈Λ·ͱ Ίͯυϩ οϓ͢Δ &OBCMFPS %JTBCMF͔ͭ 'JMFT༗ޮ %JTBCMF͔ͭ 'JMFTແޮ JOTUSVDUJPOT ࢦࣔ ʁ 'JMFT ϑΝΠϧ ಡΈࠐΈ ༗ޮʁແޮʁ $PEF*OUFSQSFUFS ϓϩάϥϜͷ ੜɾ࣮ߦ ༗ޮʁແޮʁ ϑΝΠϧΛ Ճ͢Δʁ ϑΝΠϧͪ Ξγελϯτ ੜྃ 2025 3 — 2025-04 – p.27/34
(/update ) /update assistant_id: ID “.” ( ) 2(3?) GPTs
/update (/build 1 ) 2025 3 — 2025-04 – p.28/34
/update EFTDSJQUJPO આ໌ ʁ ਓؒͷ ͨΊͷ ͍৽͍͠ આ໌Λॻ͘ มߋ͠ͳ͍
ͳΒlz Λଧͭ มߋ͠ͳ͍ ͳΒlz Λଧͭ ৽͍͠ ϓϩϯϓτ Λॻ͘ Ξγελϯτ *% Λ ࢦఆ͢Δ &OBCMFPS %JTBCMF :FT :FTPS /P /P ϑΝΠϧ ܈Λ·ͱ Ίͯυϩ οϓ͢Δ &OBCMFPS %JTBCMF͔ͭ 'JMFT༗ޮ %JTBCMF͔ͭ 'JMFTແޮ JOTUSVDUJPOT ࢦࣔ ʁ 'JMFT ϑΝΠϧ ಡΈࠐΈ ༗ޮʁແޮʁ $PEF*OUFSQSFUFS ϓϩάϥϜͷ ੜɾ࣮ߦ ༗ޮʁແޮʁ ࠓ͋ΔϑΝΠϧ Λอ࣋͢Δʁ ϑΝΠϧΛ Ճ͢Δʁ ϑΝΠϧͪ Ξγελϯτ ߋ৽ྃ 2025 3 — 2025-04 – p.29/34
Ϗϧμʔͱ͢ εϨου ૬ஊ͢Δ ର͢Δ ͪΐͬͱ ҧ͏ͳ ςΩετνϟϯωϧ ͔Β %JTDPSE͔Βίϐʔͨ͠ ༰ΛϝϞாͰ
ฤूͯ͠ ίϐϖ͢Δͱ Α͍͔ ˣ ߋ৽εϨου͔Β ςΩετνϟϯωϧ ͔Β ςΩετνϟϯωϧ ͔Β Α͠ࢼͯ͠ΈΑ͏ ॳճDIBU DIBU ॳճ CVJME ߋ৽ VQEBUF આ໌ ࢦࣔΛ ೖྗ͢Δ ΞγελϯτΛ࡞Γ ߋ৽͢ΔεϨου ΞγελϯτΛ ࢼ͢εϨου 2025 3 — 2025-04 – p.30/34
(1/2) ([ ] ) /build name: ( Discord ) /chat
[assistant_id: ID][thread_id: ID] [search: ] ( Discord ) ID Discord 20 /delete assistant_id: ID ID 2025 3 — 2025-04 – p.31/34
(2/2) ([ ] ) /list [offset: ][max: ] [search: ]
( ) 20 ( 0) 1 1,500 /show assistant_id: ID 1 1,500 /update assistant_id: ID ( Discord ) /build 2025 3 — 2025-04 – p.32/34
( ) /update /build 2025 3 — 2025-04 – p.33/34
2025 3 — 2025-04 – p.34/34