LoginSignup
14
2

More than 1 year has passed since last update.

Node-REDでChatGPTを試す

Last updated at Posted at 2022-12-05

今話題の ChatGPT をNode-RED(enebular)でサクッと試してみました。

1. パレットの追加

パレットの追加から node-red-contrib-simple-chatgpt を検索します。
出てきたやつをインストール。

s100.png

2. シークレットキーを取得する

下記URLにアクセスし、アカウント設定してシークレットキーを生成してください。
https://beta.openai.com/docs/quickstart/build-your-application

s101.png

3. simple-chatgptを設定する

simple-chatgptをドラッグアンドドロップして、先ほど取得したシークレットキーを適応します。

s102.png

あとはpayloadに適当なメッセージを設定すれば、こんな風に返答が返ってきます。

s103.png

まとめ

AIの進化が素晴らしいですね。Node-REDだと簡単に試すことができるので、幅が広がりますね。

14
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14
2