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
Discord とビルダー&チャットボットの使い方 / How to use Discord and Builder & Chatbots
Search
Kenji Saito
PRO
April 13, 2024
Technology
0
210
Discord とビルダー&チャットボットの使い方 / How to use Discord and Builder & Chatbots
早稲田大学大学院経営管理研究科「プロンプトエンジニアリング ─ 生成AIの応用」2024 春のオンデマンド教材 第3回で使用したスライドです。
Kenji Saito
PRO
April 13, 2024
Tweet
Share
More Decks by Kenji Saito
See All by Kenji Saito
コバヤシマルテスト ─ 勝ち目のないゲームに抗いながら旅する心の旅路 / Kobayashi Maru Test - a mental journey of defiance against a game that cannot be won
ks91
PRO
0
3
セキュリティ戦略・発表と総括 / Security Strategies, Presentation and Conclusions
ks91
PRO
1
31
暗号資産の経済学・イントロダクション / Economics of Cryptocurrencies (Introduction)
ks91
PRO
0
20
AI とデジタルトランスフォーメーション / AI and Digital Transformation
ks91
PRO
0
10
インシデントレスポンス演習 II / Incident Response Exercise II
ks91
PRO
0
36
A思考の自動化とX 思考の行方 / Automation of A Thinking and the Future of X Thinking
ks91
PRO
0
23
サイバー戦の現在と未来 / Present and Future of Cyber Warfare
ks91
PRO
0
69
サイバー攻撃・防御とサイバー法 / Cyber Attacks, Defenses and Cyber Law
ks91
PRO
0
50
インシデントレスポンス演習I / Incident Response Exercise I
ks91
PRO
0
63
Other Decks in Technology
See All in Technology
シフトレフトで挑む セキュリティの生産性向上
sekido
PRO
0
270
AWSサービスメニュー開発をしていてAWSを好きだ!と感じた瞬間
toru_kubota
0
130
ギークの理想が7つ集まるエムスリーで夢を叶えよう - エムスリー株式会社
m3_engineering
1
260
データベース研修 分析向けSQL入門【MIXI 24新卒技術研修】
mixi_engineers
PRO
0
110
サービス開発を前に進めるために 新米リードエンジニアが 取り組んだこと / Steps Taken by a Novice Lead Engineer to Advance Service Development
nologyance
0
180
テスト・設計研修【MIXI 24新卒技術研修】
mixi_engineers
PRO
0
170
AWSで”最小権限の原則”を実現するための考え方 /20240722-ssmjp-aws-least-privilege
opelab
10
4.3k
さらに高品質・高速化を目指すAI時代のテスト設計支援と、めざす先 / AI Test Lab vol.1
shift_evolve
0
190
[NIKKEI Tech Talk] KDDI/KAG Scrum & Community for Engineering Training
curanosuke
2
220
サービスの持続的な成長と技術負債について
siva_official
PRO
10
4.4k
RAGのサービスをリリースして1年3ヶ月が経ちました
segavvy
4
910
クラウド利用者の「責任」をどう果たす?AWSセキュリティ対策のススメ #AWSSummit
hiashisan
0
270
Featured
See All Featured
Into the Great Unknown - MozCon
thekraken
20
1.3k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
325
21k
How GitHub Uses GitHub to Build GitHub
holman
471
290k
10 Git Anti Patterns You Should be Aware of
lemiorhan
652
58k
Fantastic passwords and where to find them - at NoRuKo
philnash
42
2.7k
Optimizing for Happiness
mojombo
373
69k
Fireside Chat
paigeccino
25
2.8k
Build The Right Thing And Hit Your Dates
maggiecrowley
28
2.2k
[RailsConf 2023] Rails as a piece of cake
palkan
35
4.4k
Learning to Love Humans: Emotional Interface Design
aarron
269
39k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
226
52k
Scaling GitHub
holman
458
140k
Transcript
Generated by Stable Diffusion XL v1.0 — AI 2024 3
Discord & (WBS) 2024 3 Discord & — 2024-04 – p.1/28
https://speakerdeck.com/ks91/collections/prompt-engineering-2024-spring 2024 3 Discord & — 2024-04 – p.2/28
( 20 ) 1 • 2 • 3 Discord &
• 4 5 6 RPG 7 “September 12th” 8 9 10 ∼ 11 Linux (Windows )(Mac ) 12 Open Interpreter ∼ 13 14 AGI (Artificial General Intelligence) 7 (5/6 ) / (2 ) OK / 2024 3 Discord & — 2024-04 – p.3/28
GPT-Discord Bot System ( AIC ) ( ) 2024 3
Discord & — 2024-04 – p.4/28
GPT-Discord Bot System ϝϯόʔ͕ॴଐ͢Δ৫ ϝϯόʔ େنݴޠϞσϧ (155VSCP ࢲͨͪͷ νʔϜ͕։ൃ εϨου
ࢲ ࢲͨ ͨͪ ͪ νϟοταʔϏε %JTDPSE ϫʔΫεϖʔε %JTDPSE αʔόʔ PE νϟοτϘοτ HQUEJTDPSECPU ৗ࣌Քಇɾৗ࣌ଓͷ ԿΒ͔ͷϚγϯ ƅ˜ƅ ů ։࢝ Ξγελϯτ "1* εϥογϡίϚϯυ ᶃ ᶄ ᶅ ᶆ ᶇ ίϚϯυʹΑΔ੍ޚ Ξγελϯτͱͯ͠ର ಡΈग़͠ɾॻ͖ࠐΈ ର ର ର ର ʲΞγελϯτ "1*ʳ ɾΞγελϯτͷੜ $ ɾऔಘ 3 ɾߋ৽ 6 ɾআ % ɾ 0QFO"* εϨουͷੜɾॻ͖ࠐΈ ϝϯόʔɺίϚϯυΛ௨ͯ͠ ʮϏϧμʔΞγελϯτʯͱର͠ͳ͕Β νϡʔλʔ Ξγελϯτ Λੜͨ͠Γɺ ੜࡁͷνϡʔλʔΛमਖ਼ͨ͠Γɺ νϡʔλʔΛݺͼग़ͯ͠ରͰ͖·͢ɻ ʲίϚϯυҰཡʳ CVJME DIBU EFMFUF MJTU TIPX VQEBUF ʜΞγελϯτΛੜ ʜΞγελϯτͱର։࢝ ʜΞγελϯτΛআ ʜΞγελϯτҰཡ ʜΞγελϯτΛදࣔ ʜΞγελϯτΛमਖ਼ GPTs × ⇒ 2024 3 Discord & — 2024-04 – p.5/28
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 2024 3 Discord & — 2024-04 – p.6/28
Discord 2024 3 Discord & — 2024-04 – p.7/28
Discord Discord . . . 1 . . . (
) @mentions → 2 ( ) ( ) 2 · ( ) BAN · OpenAI API 2024 3 Discord & — 2024-04 – p.8/28
gptbot-wbs WBS Discord : https://github.com/KeioAIConsortium/gpt-discord-bot : https://github.com/ks91/gpt-discord-bot ← GPTs (
) ChatGPT ( ) 2024 3 Discord & — 2024-04 – p.9/28
(1/3) ID ( id) (identifier ) . . . (
) . . . AI ( AI) /chat ID (assistant_id) name ( ) . . . description ( ) . . . · name description instructions ( ) . . . tools ( ) . . . · Files ( ), Code Interpreter ( ) files ( ) . . . · Files (enable) 2024 3 Discord & — 2024-04 – p.10/28
(2/3) (assistant_id : asst_OUIhymbGuI1siXVaLs7evkaJ) ( /build ) /update ← (sandbox)
Discord # ID (thread; ) ( 2 ) Discord Discord OpenAI OpenAI API thread_id /chat Discord 2024 3 Discord & — 2024-04 – p.11/28
(3/3) ( ) “/” (/build) (Create ) (/show, /list) (Read
) (/update) (Update ) (/delete) (Delete ) · CRUD (/chat) ( )( ) /build /chat /update /build 2024 3 Discord & — 2024-04 – p.12/28
(/list ) Discord → /list /list search: ( ) 2024
3 Discord & — 2024-04 – p.13/28
( ) ΫϦοΫͯ͠બͿͱೖྗͰ͖·͢ . . . assistant_id 2024 3 Discord
& — 2024-04 – p.14/28
(/chat )(1/3) /chat ΫϦοΫͯ͠εϨουΛදࣔ͠·͢ ⇒ ΫϦοΫͯ͠ϓϧμϯϝχϡʔΛ දࣔͤͯ͞ɺΞγελϯτΛબͼ·͢ 20 . .
. . . . 2024 3 Discord & — 2024-04 – p.15/28
(/chat )(2/3) /chat 3 (1) /chat 20 (2) /chat assistant_id:
ID (3) /chat search: 20 2024 3 Discord & — 2024-04 – p.16/28
(/chat )(3/3) Discord 2024 3 Discord & — 2024-04 –
p.17/28
(1) /chat assistant_id: asst_OUIhymbGuI1siXVaLs7evkaJ — (2) /chat search: (2) /build
name: ( ) ( ) ( ) ( ) — /update ID (3) /chat assistant_id: ID — 3 2024 3 Discord & — 2024-04 – p.18/28
( ) /chat assistant_id asst_OUIhymbGuI1siXVaLs7evkaJ 2024 3 Discord & —
2024-04 – p.19/28
(/build ) /build name: description ( ) instructions ( )
( ) code interpreter 2024 3 Discord & — 2024-04 – p.20/28
/build EFTDSJQUJPO આ໌ ʁ ਓؒͷ ͨΊͷ ͍આ໌Λ ॻ͘ ϓϩϯϓτ
Λॻ͘ Ξγελϯτʹ ໊લΛ͚Δ &OBCMFPS %JTBCMF :FT /P ϑΝΠϧ ܈Λ·ͱ Ίͯυϩ οϓ͢Δ &OBCMFPS %JTBCMF͔ͭ 'JMFT༗ޮ %JTBCMF͔ͭ 'JMFTແޮ JOTUSVDUJPOT ࢦࣔ ʁ 'JMFT ϑΝΠϧ ಡΈࠐΈ ༗ޮʁແޮʁ $PEF*OUFSQSFUFS ϓϩάϥϜͷ ੜɾ࣮ߦ ༗ޮʁແޮʁ ϑΝΠϧΛ Ճ͢Δʁ ϑΝΠϧͪ Ξγελϯτ ੜྃ 2024 3 Discord & — 2024-04 – p.21/28
(/update ) /update assistant_id: ID “.” ( ) 2(3?) GPTs
/update (/build 1 ) 2024 3 Discord & — 2024-04 – p.22/28
/update EFTDSJQUJPO આ໌ ʁ ਓؒͷ ͨΊͷ ͍৽͍͠ આ໌Λॻ͘ มߋ͠ͳ͍
ͳΒlz Λଧͭ มߋ͠ͳ͍ ͳΒlz Λଧͭ ৽͍͠ ϓϩϯϓτ Λॻ͘ Ξγελϯτ *% Λ ࢦఆ͢Δ &OBCMFPS %JTBCMF :FT :FTPS /P /P ϑΝΠϧ ܈Λ·ͱ Ίͯυϩ οϓ͢Δ &OBCMFPS %JTBCMF͔ͭ 'JMFT༗ޮ %JTBCMF͔ͭ 'JMFTແޮ JOTUSVDUJPOT ࢦࣔ ʁ 'JMFT ϑΝΠϧ ಡΈࠐΈ ༗ޮʁແޮʁ $PEF*OUFSQSFUFS ϓϩάϥϜͷ ੜɾ࣮ߦ ༗ޮʁແޮʁ ࠓ͋ΔϑΝΠϧ Λอ࣋͢Δʁ ϑΝΠϧΛ Ճ͢Δʁ ϑΝΠϧͪ Ξγελϯτ ߋ৽ྃ 2024 3 Discord & — 2024-04 – p.23/28
Ϗϧμʔͱ͢ εϨου ૬ஊ͢Δ ର͢Δ ͪΐͬͱ ҧ͏ͳ ςΩετνϟϯωϧ ͔Β %JTDPSE͔Βίϐʔͨ͠ ༰ΛϝϞாͰ
ฤूͯ͠ ίϐϖ͢Δͱ Α͍͔ ˣ ߋ৽εϨου͔Β ςΩετνϟϯωϧ ͔Β ςΩετνϟϯωϧ ͔Β Α͠ࢼͯ͠ΈΑ͏ ॳճDIBU DIBU ॳճ CVJME ߋ৽ VQEBUF આ໌ ࢦࣔΛ ೖྗ͢Δ ΞγελϯτΛ࡞Γ ߋ৽͢ΔεϨου ΞγελϯτΛ ࢼ͢εϨου 2024 3 Discord & — 2024-04 – p.24/28
(1/2) ([ ] ) /build name: ( Discord ) /chat
[assistant_id: ID][thread_id: ID] [search: ] ( Discord ) ID Discord 20 /delete assistant_id: ID ID 2024 3 Discord & — 2024-04 – p.25/28
(2/2) ([ ] ) /list [offset: ][max: ] [search: ]
( ) 20 ( 0) 1 1,500 /show assistant_id: ID 1 1,500 /update assistant_id: ID ( Discord ) /build 2024 3 Discord & — 2024-04 – p.26/28
( ) /update /build 2024 3 Discord & — 2024-04
– p.27/28
2024 3 Discord & — 2024-04 – p.28/28