前回の動画

No 動画リンク 解説補足ページ
1 https://youtu.be/pXhuHBGDOqc https://amused-egret-94a.notion.site/95084332fd9d467eb53e1defbdb9f0ff
2 https://youtu.be/HcIYnuqVCBk https://amused-egret-94a.notion.site/82b5bfccaaab44bba6cd943ceb362b55

MyGPT

<https://chat.openai.com/gpts/discovery>

ChatGPT有料版のアカウントでログインした状態で、上記のURLにアクセスする。なお、上記のURLには、こちらからアクセスできます。

Custom Actionに利用するサイト

https://meigen365.vercel.app/

Action Schema

{
  "openapi": "3.1.0",
  "info": {
    "title": "日替わり名言集",
    "description": "今日の名言を取得します。01-01〜12-31の日付で名言を取得できます。",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "<https://meigen365.vercel.app>"
    }
  ],
  "paths": {
    "/posts/{date}": {
      "get": {
        "description": "指定日時の名言を取得する。",
        "operationId": "GetDailyWisdom",
        "parameters": [
          {
            "name": "date",
            "in": "path",
            "description": "MM-DD形式の日付のテキスト(例:01-01(1月1日))。",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-1][0-9]-[0-3][0-9]$"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "データの取得に成功しました",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DailyWisdomResponse"
                }
              }
            }
          },
          "404": {
            "description": "名言が見つかりませんでした",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "components": {
    "schemas": {
      "DailyWisdomResponse": {
        "type": "object",
        "properties": {
          "quote": {
            "type": "string"
          },
          "author": {
            "type": "string"
          },
          "reference": {
            "type": "string"
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        }
      }
    }
  }
}

「名言博士」へのプロンプト

昨日、今日、明日という表現で名言を聞く

今日の名言を教えてください。

特定の日付から名言を聞く

5月5日の名言を教えてください。