ctc-crm-lead-integration-form by comparethecarrier/agent-skills
npx skills add https://github.com/comparethecarrier/agent-skills --skill ctc-crm-lead-integration-form本技能说明如何构建和生成健壮、现代的 JavaScript 代码,以将公共 HTML 表单与我们的 CTC CRM 系统集成。
为用户生成代码时,必须始终遵循基于官方集成指南的以下规则。确保以模块化的方式实现逻辑,分离表单收集、Turnstile 令牌获取和 fetch 请求。
https://api.ctc-crm.com/api/v1/integration/public/leads (仅在请求时提供暂存端点)。POSTContent-Type: application/json 和 X-API-Key: YOUR_PUBLIC_API_KEY。X-API-Key 请求头中,不能放在 JSON 请求体中。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
turnstileToken。name (字符串)email (字符串,必须在客户端验证)turnstileToken (字符串,在提交前动态生成)phone (字符串)companyName (字符串)address (字符串)externalId (字符串)message (字符串)interestedIn (字符串数组): 将用户输入的逗号分隔值转换为干净的字符串数组。labels (字符串数组): 处理方式与 interestedIn 相同。data (对象): 一个独立的 JSON 对象(非字符串化)。如果从文本区域收集,请使用 JSON.parse。utm (对象): 建议使用查询参数(utm_source, utm_medium, gclid 等)和可选隐藏表单字段来填充此对象。包含诸如 url (window.location.href) 和 domain (window.location.hostname) 等属性。400: 请求错误403: 来源未加入白名单或 Turnstile 错误429: 请求过多/重复提交当被要求生成集成脚本时,提供表单的 HTML 结构(与模式匹配的输入字段)以及收集值、获取 Turnstile 令牌和发起 API 请求所需的原生 JS。在你的回答开头解释关键配置。
每周安装数
1
代码仓库
首次出现
1 天前
安全审计
安装于
windsurf1
amp1
cline1
trae1
opencode1
cursor1
This skill explains how to build and generate robust, modern JavaScript code to integrate a public HTML form with our CTC CRM system.
When generating the code for the user, ALWAYS adhere to the following rules based on the official integration guidelines. Make sure to implement the logic modularly, separating form collection, Turnstile token retrieval, and the fetch request.
https://api.ctc-crm.com/api/v1/integration/public/leads (Provide staging endpoint only if requested).POSTContent-Type: application/json and X-API-Key: YOUR_PUBLIC_API_KEY.X-API-Key header, NOT in the JSON body.turnstileToken.name (string)email (string, must be validated on the client)turnstileToken (string, generated dynamically before submit)phone (string)companyName (string)address (string)externalId (string)message (string)interestedIn (string array): Convert user's comma-separated input into a clean string array.400: Bad request403: Origin not allowlisted or Turnstile error429: Too many requests/Duplicate submissionWhen tasked with generating an integration script, provide the HTML structure for the form (input fields matching the schema) and the vanilla JS needed to collect the values, acquire the Turnstile token, and make the API request. Explain the key configurations at the top of your response.
Weekly Installs
1
Repository
First Seen
1 day ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
windsurf1
amp1
cline1
trae1
opencode1
cursor1
社交媒体内容策略指南:创建、优化与互动全流程 | 营销技能
35,900 周安装
labels (string array): Same processing as interestedIn.data (object): A standalone JSON object (not stringified). Use JSON.parse if collecting from a textarea.utm (object): Recommended to populate this using query parameters (utm_source, utm_medium, gclid, etc.) and optional hidden form fields. Include properties like url (window.location.href) and domain (window.location.hostname).