コードディタでコードを書く
今回はgitHubからコードを流用します。のでコードをダウンロードしてください。
ここのコードを使わせていただきます。UzzalRahmanさん、ありがとうございます。
https://github.com/UzzalRahman/chatgpt-skill-alexa
コードのzipファイルへの直リンクですが、リンク切れしてたら↑から辿ってください。
https://github.com/UzzalRahman/chatgpt-skill-alexa/archive/refs/heads/main.zip
コードエディタをクリック
![](https://www.dubstep.blog/blog/wp-content/uploads/2023/02/image-20.png)
Import Codeをクリック
![](https://www.dubstep.blog/blog/wp-content/uploads/2023/02/image-21.png)
先程ダウンロードしたzipファイルを選択してください。
![](https://www.dubstep.blog/blog/wp-content/uploads/2023/02/image-22.png)
lambda以下全部を選択して次へ
![](https://www.dubstep.blog/blog/wp-content/uploads/2023/02/image-23.png)
上書きとか新規の確認して、インポート
![](https://www.dubstep.blog/blog/wp-content/uploads/2023/02/image-24.png)
先にKeys.jsをダブルクリックで開いて、下記のようにAPIキーを自分のものに書き換えてください。
index.jsは日本語に変えたり書き換えるため、あとで。
![](https://www.dubstep.blog/blog/wp-content/uploads/2023/02/image-25.png)
index.jsを次のページに載せますので書き換えてください。
コメント