Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Discord とビルダー&チャットボットの使い方 / How to use Discord ...

Discord とビルダー&チャットボットの使い方 / How to use Discord and Builder & Chatbot

2024年5月24日(金) に使用した、早稲田大学大学院経営管理研究科 (早稲田大学ビジネススクール) 菅野・斉藤ゼミの合同トライアルのための資料です。

Kenji Saito

May 24, 2024
Tweet

More Decks by Kenji Saito

Other Decks in Technology

Transcript

  1. GPT-Discord Bot System ( AIC ) ( ) ChatGPT GPT

    GPTs AI Discord & — 2024-05-24 – p.2/28
  2. GPT-Discord Bot System ϝϯόʔ͕ॴଐ͢Δ૊৫ ϝϯόʔ େن໛ݴޠϞσϧ (15P ࢲͨͪͷ νʔϜ͕։ൃ εϨου

    ࢲ ࢲͨ ͨͪ ͪ νϟοταʔϏε %JTDPSE ϫʔΫεϖʔε %JTDPSE αʔόʔ PE νϟοτϘοτ HQUEJTDPSECPU ৗ࣌Քಇɾৗ࣌઀ଓͷ ԿΒ͔ͷϚγϯ ƅ˜ƅ ů ։࢝ Ξγελϯτ "1* εϥογϡίϚϯυ ᶃ ᶄ ᶅ ᶆ ᶇ ίϚϯυʹΑΔ੍ޚ Ξγελϯτͱͯ͠ର࿩ ಡΈग़͠ɾॻ͖ࠐΈ ର࿩ ର࿩ ର࿩ ର࿩ ʲΞγελϯτ "1*ʳ ɾΞγελϯτͷੜ੒ $ ɾऔಘ 3 ɾߋ৽ 6 ɾ࡟আ % ɾ 0QFO"* εϨουͷੜ੒ɾॻ͖ࠐΈ ϝϯόʔ͸ɺίϚϯυΛ௨ͯ͠ ʮϏϧμʔΞγελϯτʯͱର࿩͠ͳ͕Β "* ΞγελϯτΛੜ੒ͨ͠Γɺ ੜ੒ࡁͷ "* ΞγελϯτΛमਖ਼ͨ͠Γɺ "* ΞγελϯτΛݺͼग़ͯ͠ର࿩Ͱ͖·͢ɻ ʲίϚϯυҰཡʳ CVJME DIBU EFMFUF MJTU TIPX VQEBUF ʜΞγελϯτΛੜ੒ ʜΞγελϯτͱର࿩։࢝ ʜΞγελϯτΛ࡟আ ʜΞγελϯτҰཡ ʜΞγελϯτΛදࣔ ʜΞγελϯτΛमਖ਼ GPTs × ⇒ Discord & — 2024-05-24 – p.3/28
  3. GPT-Discord Bot System ( ) 0 1 2 API 3

    Discord 4 Discord 5 Discord Discord AI AI Discord & — 2024-05-24 – p.4/28
  4. Discord Discord . . . 1 ( ) @mentions →

    2 ( ) ( ) · AI Discord & — 2024-05-24 – p.6/28
  5. (1/3) ID ( id) (identifier ) . . . (

    ) . . . AI ( AI) /chat ID (assistant_id) name ( ) . . . description ( ) . . . · name description ( ) instructions ( ) . . . tools ( ) . . . · Files ( ), Code Interpreter ( ) files ( ) . . . · Files Code Interpreter (enable) Discord & — 2024-05-24 – p.8/28
  6. (2/3) ( /build ) /update ← (sandbox) Discord # ID

    (thread; ) ( 2 ) Discord Discord OpenAI OpenAI API thread_id /chat Discord Discord & — 2024-05-24 – p.9/28
  7. (3/3) ( ) “/” (/build) (Create ) (/show, /list) (Read

    ) (/update) (Update ) (/delete) (Delete ) · CRUD (/chat) ( )( ) /build /chat /update /build Discord & — 2024-05-24 – p.10/28
  8. (/list ) Discord → gpt /list /list search: ( )

    Discord & — 2024-05-24 – p.11/28
  9. (/chat )(2/3) /chat 3 (1) /chat 20 (2) /chat assistant_id:

    ID (3) /chat search: 20 ← OK /chat search: Discord & — 2024-05-24 – p.14/28
  10. (1) /chat assistant_id: ID — (2) /chat search: (2) /build

    name: ( ) ( ) ( ) ( ) — /update ID (3) /chat assistant_id: ID — 3 Discord & — 2024-05-24 – p.16/28
  11. (/build ) /build name: description ( ) instructions ( )

    ( ) code interpreter Discord & — 2024-05-24 – p.18/28
  12. /build EFTDSJQUJPO  આ໌ ͸ʁ ਓؒͷ ͨΊͷ ୹͍આ໌Λ ॻ͘ ϓϩϯϓτ

    Λॻ͘ Ξγελϯτʹ ໊લΛ෇͚Δ &OBCMFPS %JTBCMF :FT /P ϑΝΠϧ ܈Λ·ͱ Ίͯυϩ οϓ͢Δ &OBCMFPS %JTBCMF͔ͭ 'JMFT༗ޮ %JTBCMF͔ͭ 'JMFTແޮ JOTUSVDUJPOT  ࢦࣔ ͸ʁ 'JMFT ϑΝΠϧ ಡΈࠐΈ ͸ ༗ޮʁແޮʁ $PEF*OUFSQSFUFS ϓϩάϥϜͷ ੜ੒ɾ࣮ߦ ͸ ༗ޮʁແޮʁ ϑΝΠϧΛ ௥Ճ͢Δʁ ϑΝΠϧ଴ͪ Ξγελϯτ ੜ੒׬ྃ Discord & — 2024-05-24 – p.19/28
  13. (/update ) /update assistant_id: ID “.” ( ) 2(3?) GPTs

    /update (/build 1 ) Discord & — 2024-05-24 – p.20/28
  14. /update EFTDSJQUJPO  આ໌ ͸ʁ ਓؒͷ ͨΊͷ ୹͍৽͍͠ આ໌Λॻ͘ มߋ͠ͳ͍

    ͳΒlz Λଧͭ มߋ͠ͳ͍ ͳΒlz Λଧͭ ৽͍͠ ϓϩϯϓτ Λॻ͘ Ξγελϯτ *% Λ ࢦఆ͢Δ &OBCMFPS %JTBCMF :FT :FTPS /P /P ϑΝΠϧ ܈Λ·ͱ Ίͯυϩ οϓ͢Δ &OBCMFPS %JTBCMF͔ͭ 'JMFT༗ޮ %JTBCMF͔ͭ 'JMFTແޮ JOTUSVDUJPOT  ࢦࣔ ͸ʁ 'JMFT ϑΝΠϧ ಡΈࠐΈ ͸ ༗ޮʁແޮʁ $PEF*OUFSQSFUFS ϓϩάϥϜͷ ੜ੒ɾ࣮ߦ ͸ ༗ޮʁແޮʁ ࠓ͋ΔϑΝΠϧ Λอ࣋͢Δʁ ϑΝΠϧΛ ௥Ճ͢Δʁ ϑΝΠϧ଴ͪ Ξγελϯτ ߋ৽׬ྃ Discord & — 2024-05-24 – p.21/28
  15. Ϗϧμʔͱ࿩͢ εϨου ૬ஊ͢Δ ର࿩͢Δ ͪΐͬͱ ҧ͏ͳ ςΩετνϟϯωϧ ͔Β %JTDPSE͔Βίϐʔͨ͠ ಺༰ΛϝϞாͰ

    ฤूͯ͠ ίϐϖ͢Δͱ Α͍͔΋ ˣ ߋ৽εϨου͔Β ςΩετνϟϯωϧ ͔Β ςΩετνϟϯωϧ ͔Β Α͠ࢼͯ͠ΈΑ͏ ॳճDIBU DIBU ॳճ CVJME ߋ৽ VQEBUF આ໌΍ ࢦࣔΛ ೖྗ͢Δ ΞγελϯτΛ࡞Γ ߋ৽͢ΔεϨου ΞγελϯτΛ ࢼ͢εϨου Discord & — 2024-05-24 – p.22/28
  16. (1/2) ([ ] ) /build name: ( Discord ) /chat

    [assistant_id: ID][thread_id: ID] [search: ] ( Discord ) ID Discord 20 /delete assistant_id: ID ID Discord & — 2024-05-24 – p.23/28
  17. (2/2) ([ ] ) /list [offset: ][max: ] [search: ]

    ( ) 20 ( 0) 1 1,500 /show assistant_id: ID 1 1,500 /update assistant_id: ID ( Discord ) /build Discord & — 2024-05-24 – p.24/28
  18. MBA AI Discord ( gpt ) AI ( ) (

    ) AI L ATEX ( ) Discord & — 2024-05-24 – p.26/28
  19. (1) ( ) (2) ( ) (3) ( ) (4)

    ( ) AI Discord & — 2024-05-24 – p.27/28