# 将 NotebookLM 测验转为自动评分的 Google Forms 表单

来源: https://nlmexporter.com/zh/guides/integrations/notebooklm-to-google-forms  
板块: 应用集成  
方案: 免费

从测验导出包中解压出 Google Forms 脚本，在你的 Apps Script 项目中运行 `createNotebookQuiz`，然后打开执行日志中的编辑链接核对评分设置。

## 操作步骤

1. 打开 Studio 测验并确认标准答案，在测验导出弹窗中选择 **Google Forms 脚本（Google Forms script）**，解压下载的 ZIP 并打开其中的 `.gs` 文件。
2. 在 [Apps Script](https://script.google.com/) 新建一个项目，粘贴下载的脚本代码，选中函数 `createNotebookQuiz` 并点击 **Run**，按提示审核 Google 授权请求。
3. 打开执行日志中输出的 `Edit:` 编辑链接，检查单选题与多选题（如有），在预览模式下提交已知答案并核对得分。

## 运行脚本会生成哪些内容

脚本会创建一份每题 1 分且均为必填的测验表单；遇到多选题时会自动使用复选框（Checkboxes）。重复运行脚本会再生成一份新表单。对外分享前，请检查成绩发布方式与作答者访问权限。

- [细胞呼吸 Forms 示例脚本 (Apps Script)](https://nlmexporter.com/assets/samples/en/cellular-respiration-quiz-forms.gs) — 运行前可先阅读脚本逻辑与示例题目数据。

| NotebookLM 内容 | 导出格式 |
| --- | --- |
| 测验 | [Apps Script](https://nlmexporter.com/zh/guides/export/quiz-to-google-forms) |

## 参考来源

- [Apps Script Forms 服务参考文档（Google Developers）](https://developers.google.com/apps-script/reference/forms/form-app) (platform)

## 相关指南

- [Create a Google Forms quiz from NotebookLM questions](https://nlmexporter.com/zh/guides/export/quiz-to-google-forms)
- [通过电子表格将 NotebookLM 测验题导入 Kahoot](https://nlmexporter.com/zh/guides/integrations/notebooklm-to-kahoot)
- [将 NotebookLM 测验导入 Wayground（原 Quizizz）](https://nlmexporter.com/zh/guides/integrations/notebooklm-to-wayground)
- [将 NotebookLM 测验上传到 Socrative 并核对答案](https://nlmexporter.com/zh/guides/integrations/notebooklm-to-socrative)
- [将 NotebookLM 测验导入 Moodle 题库](https://nlmexporter.com/zh/guides/integrations/notebooklm-to-moodle)
- [将 NotebookLM 测验导入 Canvas Classic 或 New Quizzes](https://nlmexporter.com/zh/guides/integrations/notebooklm-to-canvas)
