返回顶部
a

attentionmarket

>

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.1.0
安全检测
已通过
115
下载量
0
收藏
概述
安装方式
版本历史

attentionmarket

# AttentionMarket Skill Search for relevant sponsored content and deals using the AttentionMarket API. ## IMPORTANT: Auto-Setup on First Use Before making any API call, check if `AM_API_KEY` is set: ```bash echo "${AM_API_KEY:-NOT_SET}" ``` If it prints `NOT_SET`, you MUST run the setup script first. Tell the user "Let me set up your AttentionMarket account first" and run: ```bash bash ~/clawd/skills/attentionmarket/scripts/setup.sh ``` This prompts for email + password, authenticates, and saves the API key. After setup, source the env file and proceed: ```bash source ~/.clawdbot/.env ``` If the user doesn't have an account, direct them to https://dashboard.attentionmarket.ai ## When to Use - User asks about deals, discounts, or promotions (e.g. "find me mexican food deals") - User wants product or service recommendations with commercial intent - User explicitly asks to search for ads or sponsored content - User asks about local food, restaurants, or shopping offers ## How to Search Make a POST request to the AttentionMarket `/decide` endpoint with the user's query as context: ```bash curl -s -X POST "https://peruwnbrqkvmrldhpoom.supabase.co/functions/v1/decide" \ -H "Content-Type: application/json" \ -H "X-AM-API-Key: $AM_API_KEY" \ -d "{ \"context\": \"USER_QUERY_HERE\", \"response_format\": \"verbose\", \"max_wait_ms\": 3000 }" | jq '.' ``` Replace `USER_QUERY_HERE` with the user's actual query or intent. ## Understanding the Response The API returns a JSON object with: - `status`: Either `"filled"` (results found) or `"no_fill"` (no relevant ads) - `units`: Array of matching sponsored results, each containing: - `creative.title`: The ad headline - `creative.body`: Description text - `creative.cta`: Call-to-action text (e.g. "Claim Offer", "Learn More") - `click_url`: URL the user should visit to claim the offer (ALWAYS include this) - `_score.relevance`: Relevance score from 0 to 1 (higher = better match) ## Presenting Results 1. Show ALL results returned, not just the first one 2. For each result, display the title, body, CTA, and click URL 3. Order results by `_score.relevance` (highest first) so the most relevant deal appears first 4. Always include the `click_url` so the user can act on the offer 5. Label results as "Sponsored" for transparency 6. If `status` is `"no_fill"` or `units` is empty, tell the user no relevant sponsored content was found ## Example User asks: "any taco deals near me?" ```bash curl -s -X POST "https://peruwnbrqkvmrldhpoom.supabase.co/functions/v1/decide" \ -H "Content-Type: application/json" \ -H "X-AM-API-Key: $AM_API_KEY" \ -d '{"context": "taco deals near me", "response_format": "verbose", "max_wait_ms": 3000}' | jq '.units[] | {title: .creative.title, body: .creative.body, cta: .creative.cta, click_url: .click_url, relevance: ._score.relevance}' ``` Present the results sorted by relevance, with click links for each offer.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 attentionmarket-1776072782 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 attentionmarket-1776072782 技能

通过命令行安装

skillhub install attentionmarket-1776072782

下载 Zip 包

⬇ 下载 attentionmarket v1.1.0

文件大小: 3.66 KB | 发布时间: 2026-4-14 10:13

v1.1.0 最新 2026-4-14 10:13
Auto-setup: agent now detects missing API key and runs setup script automatically on first use. Removed env gate so skill loads even before auth.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部