GPT for Forms AI Quiz Maker · GPT アクション
MyQuizGPT — Google Forms Quiz Maker
Create multiple-choice quizzes and return a MyQuizGPT practice link. The same quiz can be saved to the user's account and synced to Google Forms after they sign in and connect Google (see https://myquizgpt.com/gpt-for-google-forms). This action only creates quizzes (multiple choice), not flashcards. IMPORTANT — FALLBACK IF THE ACTION FAILS: If createQuizForGoogleForms fails, is disabled, unavailable, or cannot POST, tell the user: "MyQuizGPT link generation isn't available right now. Here is your full quiz JSON — go to https://myquizgpt.com/create and paste it to create your quiz. For Google Forms setup, see https://myquizgpt.com/gpt-for-google-forms" Then provide the complete JSON object with title, set_type: "quiz", and data (array of question objects). Each question must have: question (string), options (array of 2-4 strings), correct_answer (string, must exactly match one option).
POST /api/createCreate a multiple-choice quiz and return a practice link (exportable to Google Forms via MyQuizGPT).
元の API スキーマ
{
"openapi": "3.1.1",
"info": {
"title": "MyQuizGPT — Google Forms Quiz Maker",
"version": "1.0.0",
"description": "Create multiple-choice quizzes and return a MyQuizGPT practice link. The same quiz can be saved to the user's account and synced to Google Forms after they sign in and connect Google (see https://myquizgpt.com/gpt-for-google-forms).\n\nThis action only creates quizzes (multiple choice), not flashcards.\n\nIMPORTANT — FALLBACK IF THE ACTION FAILS:\nIf createQuizForGoogleForms fails, is disabled, unavailable, or cannot POST, tell the user:\n\n\"MyQuizGPT link generation isn't available right now. Here is your full quiz JSON — go to https://myquizgpt.com/create and paste it to create your quiz. For Google Forms setup, see https://myquizgpt.com/gpt-for-google-forms\"\n\nThen provide the complete JSON object with title, set_type: \"quiz\", and data (array of question objects).\n\nEach question must have: question (string), options (array of 2-4 strings), correct_answer (string, must exactly match one option)."
},
"servers": [
{
"url": "https://myquizgpt.com"
}
],
"paths": {
"/api/create": {
"post": {
"operationId": "createQuizForGoogleForms",
"summary": "Create a multiple-choice quiz and return a practice link (exportable to Google Forms via MyQuizGPT).",
"security": [
{
"ApiKeyAuth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/QuizCreatePayload"
},
"examples": {
"quiz": {
"summary": "Quiz for Google Forms",
"value": {
"set_type": "quiz",
"title": "Photosynthesis basics",
"data": [
{
"question": "What is the main role of chlorophyll in photosynthesis?",
"options": [
"Absorb light energy",
"Store glucose",
"Release oxygen only",
"Break down water in the dark"
],
"correct_answer": "Absorb light energy"
},
{
"question": "Which gas do plants take in for photosynthesis?",
"options": [
"Oxygen",
"Nitrogen",
"Carbon dioxide",
"Hydrogen"
],
"correct_answer": "Carbon dioxide"
}
]
}
}
}
}
}
},
"responses": {
"200": {
"description": "Created successfully",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateResponse"
}
}
}
},
"400": {
"description": "Bad request"
},
"401": {
"description": "Unauthorized"
},
"500": {
"description": "Server error"
}
}
}
}
},
"components": {
"schemas": {
"QuizCreatePayload": {
"type": "object",
"required": [
"set_type",
"title",
"data"
],
"properties": {
"set_type": {
"type": "string",
"enum": [
"quiz"
],
"description": "Must always be \"quiz\" for this GPT."
},
"title": {
"type": "string",
"maxLength": 200,
"description": "Short descriptive title (shown in Google Forms when synced)."
},
"data": {
"type": "array",
"minItems": 1,
"maxItems": 50,
"items": {
"$ref": "#/components/schemas/QuizItem"
},
"description": "Multiple-choice questions. Each item must have question, options (2-4 strings), and correct_answer matching one option exactly."
}
}
},
"QuizItem": {
"type": "object",
"required": [
"question",
"options",
"correct_answer"
],
"properties": {
"question": {
"type": "string",
"description": "The question stem."
},
"options": {
"type": "array",
"minItems": 2,
"maxItems": 4,
"items": {
"type": "string"
},
"description": "Answer choices (2-4 options)."
},
"correct_answer": {
"type": "string",
"description": "Must be identical to one of the strings in options."
}
}
},
"CreateResponse": {
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "True when the quiz was created."
},
"public_id": {
"type": "string",
"description": "Public id for the study link."
},
"set_type": {
"type": "string",
"enum": [
"quiz"
],
"description": "Always quiz for this action."
},
"url": {
"type": "string",
"format": "uri",
"description": "Open this link to practice, save, and (after sign-in + Google connection) sync to Google Forms."
}
}
}
},
"securitySchemes": {
"ApiKeyAuth": {
"type": "apiKey",
"in": "header",
"name": "X-API-Key",
"description": "Same GPT API key as the main MyQuizGPT action (if configured on the server)."
}
}
}
}