← 返回
安全合规 Key 中文

Report Generator Adarsh

Generates a structured marketing audit report from aggregated data using a single GPT-4.1-mini API call with six predefined sections.
使用单次GPT-4.1-mini API调用,从聚合数据生成包含六个预定义部分的结构化营销审计报告。
adarshvmore
安全合规 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 513
下载
💾 12
安装
1
版本
#latest

概述

Report Generator Skill

Purpose

Single GPT-4.1-mini call that transforms aggregated marketing data into a structured, professional audit report. This is the ONLY AI call in the entire audit pipeline.

Input Schema

interface AuditData {
 input: AuditInput;
 instagram: InstagramData;
 metaAds: MetaAdsData;
 keywords: KeywordData;
 competitors: CompetitorData;
 websiteAudit: WebsiteAuditData;
 collectedAt: string;
}

Output Schema

interface MarketingReport {
 brand: string;
 generatedAt: string;
 sections: ReportSections;
 rawData: AuditData;
 reportMarkdown: string;
}

API Dependencies

  • API: OpenAI
  • Model: gpt-4.1-mini
  • Auth: OPENAI_API_KEY
  • Cost: ~$0.001-0.002 per call

Implementation Pattern

  • System prompt defines the analyst persona and exact 6-section format
  • User message is the full AuditData JSON
  • Single API call with max_tokens: 1500, temperature: 0.4
  • Response markdown is parsed into individual sections via ## header splitting
  • Token usage is logged for cost tracking
  • Fallback report is generated if OpenAI call fails

Token Budget

  • Input: ~1,500-2,000 tokens (JSON data)
  • Output: ~800-1,200 tokens (report)

Error Handling

  • Missing API key: returns fallback report with error message
  • API failure: returns fallback report with raw data preserved
  • All errors logged with context

Example Usage

const report = await generateMarketingReport(auditData);
console.log(report.reportMarkdown);

Notes

  • This is the ONLY file that should make OpenAI calls (except competitor collector fallback)
  • Never add additional GPT calls to other modules

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 13:10 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,212 📥 266,315
developer-tools

Meta Ads Collector

adarshvmore
扫描Meta广告库API,统计指定品牌的在投广告数量、识别广告格式与类型、追踪投放时间最长的广告并估算广告花费。
★ 0 📥 580
security-compliance

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,709