Tencent Marketing Delivery Smart Create
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md to install @tencent-adm/tencentads-delivery-smart-create.
About this skill
The Problem This Solves
Manually creating a Smart Delivery ad on the Tencent Ads platform requires navigating a web of interdependent fields and enum values, including scenario identification, quadruple matching, asset association, conversion goal selection, and bidding strategy. The nested structures from rules_json, account-specific access restrictions, and platform-specific argument passing quirks make manual automation error-prone. A single wrong field choice triggers API errors, while inefficient polling or retry strategies can exhaust execution rounds.
Core Capabilities & Workflow
This skill structures the Smart Delivery ad creation process into a strict seven-step sequence, with dedicated scripts handling API complexity.
- Script-Mediated API Calls: All API interactions (e.g.,
get-rules.mjs,get-assets.mjs) are executed via purpose-built scripts. These scripts handle API routing, data trimming, and format conversion (e.g., parsingrules_json, encoding geo lookups). The Agent focuses on business decisions derived from the script outputs, such as selecting the correct quadruple from multiple combinations. - The Non-Negotiable First Three Steps:
- Step 1 (Scenario Identification): Map user intent to a
smart_delivery_platformenum, e.g., Mini Game Promotion corresponds toSMART_DELIVERY_PLATFORM_EDITION_MINI_GAME_PROMOTION. - Step 2 (Fetch Quadruple): Call
get-rules.mjsto retrieve the account-eligible combinations ofmarketing_goal,marketing_sub_goal,marketing_target_type, andmarketing_carrier_type. Guessing is forbidden; the unique quadruple must be selected from the returnedcombinationslist using defined priority rules (e.g., reverse inference via asset ID, user intent keywords). - Step 3 (Fetch Promotion Product & Carrier): Based on the selected
marketing_target_type, callget-assets.mjsto get the list of available assets. The final output is aflat_paramsobject whose fields (e.g.,asset_id,carrier_id) are passed directly to the final creation script.
- Step 1 (Scenario Identification): Map user intent to a
- Key Decision Points: In subsequent steps, the Agent must make choices based on user input (e.g., ROI coefficients, bid amounts, conversion source) and system responses (e.g.,
site_setlists,conversion_idlists). For instance,conversion_idmust come from a query result or be explicitly provided by the user. - Strict Execution Protocol:
- Step Dependency: Before advancing, required data must be confirmed to originate from the previous step's output or explicit user input. Natural language descriptions cannot replace structured fields.
- Error Handling & Retry Limits: Each script call allows a maximum of 1 retry. If both attempts fail, the step is skipped, and execution continues with available data to avoid infinite loops.
- Explicit Evidence Allowlist: Only for query sub-actions in Steps 4-6 is skipping permitted if the user provides complete IDs or the data was fetched in the current session. Steps 1-3 have no such exemption.
Boundaries & Caveats
- Prerequisites: Requires
tencentads-cli(Node.js ≥ 20) installed globally. - Cross-Platform Compatibility: The script call format
node scripts/.mjs ''varies by terminal. Adhere to the documented escaping rules, particularly for Windows PowerShell 5.x (using--%stop-parsing token). - Scenario & Enum Specificity: Enum names may diverge from Chinese business names (e.g.,
SINGLE_PRODUCT= "Short Video & Live Dual-Link"). Always refer to the Step 1 table for precise matching. - Decision Transparency: Before entering Step 7, the origin of every critical field (e.g.,
conversion_id,asset_id)—either user-provided or returned by a preceding script—must be traceable. Fabrication is prohibited.
Use Cases
- To launch a new WeChat Mini Game promotion, you need to create a new Smart Delivery ad from scratch on the Tencent Ads platform, ensuring all parameters (quadruple, assets, conversion goals) are correctly configured per the latest platform rules.
- Upon receiving an urgent campaign request, you need to quickly set up and test multiple Smart Delivery ad plans by batch-executing the creation scripts, avoiding errors or time loss in the complex manual interface.
- You are migrating or rebuilding an existing Smart Delivery ad that was set up with outdated rules or manual inputs. You must systematically fetch and populate all necessary parameters following the latest 7-step execution protocol.
- During cross-platform development or deployment (e.g., switching from Windows to macOS), you need to call the Smart Delivery ad creation script while strictly adhering to terminal-specific JSON argument escaping rules to prevent parsing errors.
Best For
- An ad optimizer managing daily campaigns and optimizations across multiple Tencent Ads accounts, needing to quickly and accurately build and adjust Smart Delivery ad plans to minimize manual errors.
- An engineer on a marketing technology or growth team, needing to automate and standardize the ad creation process by integrating it into internal campaign management systems or workflows.
- A business owner or project lead in a small-to-medium enterprise without a dedicated ad team, needing to personally operate the ad backend to create Smart Delivery ads that meet business goals and control costs.
- A developer executing ad-related scripts across different operating systems (e.g., Windows, Linux), needing to handle cross-platform command-line invocation issues and JSON argument escaping.
Related Skills
AI agent tool for generating HTML proposals for client visit business scenarios, featuring deep research and dynamic mainline mapping.
Bid Proposal Verification Tool is used to verify the consistency between bid proposals and tender documents, checking table of contents, page numbers, attachments, and seals, based on Shibot Technology's bid data API.
An AI engine built on extensive bidding data to precisely search for tender projects and potential clients using natural language or structured criteria.
Automates bid document, response table, and material list generation from bid files and enterprise data using Shibuo Technology API.