跳到正文
Skillpedia
自动化48k · #4773

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/google-no-code/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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.log so 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 onFormSubmit by 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.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#4773
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能