google-no-code
它能做什么
这个工具可以帮你设计 Google 表单,并在有人提交回复时设置自动操作,例如发送邮件,或把回答保存到电子表格中,整个过程无需编写代码。
适用场景
- ✓当你想创建 Google 表单,并希望提交后自动执行某些操作时。
- ✓当你需要邮件提醒,或想把回复保存到电子表格时。
- ✓当你想获取可直接使用的代码片段,粘贴到 Google Apps Script 中时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/google-no-code/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我想创建一个联系表单,并且每条新回复都发送到我的邮箱。”
每周 5 个新技能,1 分钟读完。
工作原理
你先像平常一样在 Google 表单中创建表单。然后打开脚本编辑器,粘贴工具提供的一小段代码,并设置触发器,使代码在有人提交表单时自动运行。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Google No-Code Forms Automation
Overview
Guides the user through building a Google Form in the Forms UI and connecting it to Google Apps Script triggers, without writing a custom integration or leaving the browser. Covers form design, the Apps Script editor, the onFormSubmit trigger, and small response-handling scripts that run automatically when a form is submitted.
When to Use This Skill
- Use when the user wants to build a Google Form and automate what happens after submissions.
- Use when the user asks for email alerts, spreadsheet logging, or conditional handling of form responses.
- Use when the user wants Apps Script snippets to paste into a form bound script project.
- Skip this skill if the user needs custom UI, paid APIs, or a full standalone Apps Script application.
How It Works
Step 1: Define the form in the Forms UI
Create the form in Google Forms with clear questions, answer types (short answer, multiple choice, checkbox), and required fields. Match question IDs to what the script will need later. Add a description to the form so respondents know what to expect.
Step 2: Open the bound Apps Script editor
In the form, go to Extensions > Apps Script. This opens a project bound to the form. The script can read each submission through the e.response event object.
Step 3: Write the response handler
Add a function that accepts the onFormSubmit event, reads e.response with getItemResponses(), and then performs the desired action: send an email, write to a spreadsheet, or branch on answers.
Step 4: Install the trigger
In Apps Script, go to the clock/triggers menu, select the onFormSubmit function, choose the event source From form and event type On form submit, then save and authorize. The function runs automatically on each new submission.
Step 5: Test with a real submission
Submit a test response from a private/incognito window and verify the email, sheet row, or log arrives once. Check the Apps Script executions page (Executions in the editor) for errors and read the stack trace if something fails.
Examples
Example 1: Email notification on every response
function onFormSubmit(e) {
const response = e.response;
const email = getEmail(response);
MailApp.sendEmail({
to: email,
subject: "Form submission received",
body: "Thank you. We have recorded your response."
});
}
function getEmail(response) {
const items = response.getItemResponses();
for (const item of items) {
if (item.getItem().getTitle().toLowerCase().includes("email")) {
return item.getResponse();
}
}
return Session.getActiveUser().getEmail();
}
Example 2: Log each response to a Google Sheet
function onFormSubmit(e) {
const sheet = SpreadsheetApp.openById(SHEET_ID).getSheetByName("Responses");
const itemResponses = e.response.getItemResponses();
const row = [new Date()].concat(itemResponses.map(r => r.getResponse()));
sheet.appendRow(row);
}
Example 3: Branch on a multiple-choice answer
function onFormSubmit(e) {
const items = e.response.getItemResponses();
for (const item of items) {
if (item.getItem().getTitle().toLowerCase() === "priority") {
const priority = item.getResponse();
const subject = priority === "High" ? "[URGENT] " : "";
MailApp.sendEmail({ to: MANAGER_EMAIL, subject: subject + "New submission", body: itemResponsesText(e) });
}
}
}
Best Practices
- ✅ Test every trigger with a real submission before telling the user it works.
- ✅ Use clear, stable question titles so the script can match items by title instead of fragile indexes.
- ✅ Keep secrets and API keys in script properties, never hard-coded in the file.
- ✅ Add try/catch around handler logic and log errors with
Logger.logso failures surface in the Executions page. - ❌ Do not grant broad scopes; run with the minimum permission the form action needs.
- ❌ Do not send email to addresses that the form did not legitimately collect.
Limitations
- Apps Script quotas apply (email rate limits, daily triggers, execution time); heavy volume needs review.
- Only form submissions trigger the event; edits to responses by users do not fire
onFormSubmitby default. - The skill produces scripts the user must paste, authorize, and deploy; it cannot create a Google Forms project by itself.
…
常见问题
我需要会编程才能使用吗?
不需要,这个工具的目标正是让你无需编写代码。你只需复制并粘贴它提供的代码片段。
什么是 Google Apps Script?
它是 Google 提供的一种工具,可以在表单、表格、邮件等 Google 应用之间自动完成任务。
如果代码出错了怎么办?
工具会帮你测试,并指出常见错误。你可以在脚本编辑器中查看“执行记录”,了解哪里出了问题。
详情
作者的原始描述
Design Google Forms and wire Apps Script triggers (onFormSubmit) for email alerts, spreadsheet logging, and dynamic questions — no code editor required.
热度
- GitHub 星标
- 48k
- 排名
- #4773
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。