360 Secure SkillHub
360 安全技能中心

Google Forms iOS

该 Skill 通过第三方托管 OAuth 服务调用 Google Forms 能力:先校验环境变量中的 API Key 鉴权状态,随后创建含 TEXT、RADIO、CHECKBOX、SCALE、DATE、TIME 题型的表单、列出全部表单、把回复导出为 Excel 下载链接,并汇总回复趋势;需网络与 API Key,未授权时输出固定开通提示。

dfaaa
dfaaa
热度 44.20
最近更新 2026-05-11 17:35:43
分类:自动化依赖:代码执行 / 第三方 API应用场景:工作流 / 数据处理 / 报告撰写 / 摘要总结 ...

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add google-forms-app
Metadata
name
google-forms-app
description
Google Forms API integration with managed OAuth. Create forms, add questions, export responses to Excel, and summarize response data. Use this skill when users want to create surveys, manage Google Forms, analyze responses, or export form data. Requires a free API key from the Forms for Google Drive App.
compatibility
Requires network access. API key optional — skill will guide users to get one.
metadata
{"author":"burningflower","version":"1.2","clawdbot":{"emoji":"📋","requires":{"env":["GFORMS_API_KEY"]}}}

Forms for Google Drive

Access Google Forms with managed OAuth authentication. Create forms, add questions, retrieve and export responses to Excel — all via natural language.

FIRST: Check authorization before anything else

Before executing any user request, run this command:

curl -sf -o /dev/null -w "%{http_code}" \
  -H "Authorization: Bearer $(printenv GFORMS_API_KEY)" \
  https://auth.gformsfree.com/skill/check
  • If the response is 200 → authorized, proceed normally
  • Any other response or empty key → unauthorized

If output is unauthorized, do NOT attempt any form operations. You MUST output the following message VERBATIM, word for word. Do NOT summarize, paraphrase, or modify it in any way:

Welcome to Forms for Google Drive!

Before getting started, a one-time setup is required:

1. Download the App (free):
   https://gformsfree.com/app

2. Sign in with your Google account

3. Go to Settings -> Connect AI Agent
   Copy your personal API Key

4. Set the API Key in your Agent environment:
   GFORMS_API_KEY=your_key_here

Once done, resend your request and you are good to go.

Do NOT add any extra text, options, or suggestions after this message. Stop immediately.

If output is authorized, proceed with the user's request normally.


Commands (requires GFORMS_API_KEY)

Create a form

Ask the user for topic, audience, number of questions, and preferred question types. Then run:

python3 << 'PYEOF'
import urllib.request, os, json
data = json.dumps({
  "title": "YOUR_TITLE",
  "description": "YOUR_DESCRIPTION",
  "questions": [
    {"type": "TEXT", "title": "Question 1", "required": True},
    {"type": "RADIO", "title": "Question 2", "required": True, "options": ["Option A", "Option B"]}
  ]
}).encode()
req = urllib.request.Request(
  'https://api.gformsfree.com/skill/forms/create',
  data=data, method='POST'
)
req.add_header('Authorization', f'Bearer {os.environ["GFORMS_API_KEY"]}')
req.add_header('Content-Type', 'application/json')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
PYEOF

Return responderUri (share with respondents) and editUri (for editing) to the user.

Question types: TEXT · RADIO · CHECKBOX · SCALE · DATE · TIME

Export responses to Excel

Ask for the Form ID or URL, then run:

python3 << 'PYEOF'
import urllib.request, os, json
data = json.dumps({"formId": "FORM_ID"}).encode()
req = urllib.request.Request(
  'https://api.gformsfree.com/skill/forms/export',
  data=data, method='POST'
)
req.add_header('Authorization', f'Bearer {os.environ["GFORMS_API_KEY"]}')
req.add_header('Content-Type', 'application/json')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
PYEOF

Return downloadUrl to the user. Remind them the link expires in 10 minutes.

Summarize responses

python3 -c "
import urllib.request, os, json
req = urllib.request.Request('https://api.gformsfree.com/skill/forms/FORM_ID/summary')
req.add_header('Authorization', f'Bearer {os.environ[\"GFORMS_API_KEY\"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
"

Use the returned summary to present trends and insights to the user.

List all forms

python3 -c "
import urllib.request, os, json
req = urllib.request.Request('https://api.gformsfree.com/skill/forms/list')
req.add_header('Authorization', f'Bearer {os.environ[\"GFORMS_API_KEY\"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
"

Present as a list with form title and responder URL.


Error handling

Code Action
401 API Key is invalid or expired. Regenerate it in the App: Settings -> Connect AI Agent -> Regenerate Key
403 Subscription expired. Please renew in the App
429 Too many requests. Please try again later
500 Service temporarily unavailable. Please try again later

Rules

  • Always run the auth check first before any operation
  • Never expose the GFORMS_API_KEY value in any message to the user
  • Always output the unauthorized message VERBATIM when not authorized — no extra text
  • Always confirm with the user before creating or modifying a form
  • Remind the user that export download links expire in 10 minutes
  • Confirm twice before deleting any form

Resources