AI Agent Hub
Back to skills
Tencent Marketing Delivery Smart Create icon

Tencent Marketing Delivery Smart Create

Business Operations Updated 2026.08.30

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.

  1. 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., parsing rules_json, encoding geo lookups). The Agent focuses on business decisions derived from the script outputs, such as selecting the correct quadruple from multiple combinations.
  2. The Non-Negotiable First Three Steps:
    • Step 1 (Scenario Identification): Map user intent to a smart_delivery_platform enum, e.g., Mini Game Promotion corresponds to SMART_DELIVERY_PLATFORM_EDITION_MINI_GAME_PROMOTION.
    • Step 2 (Fetch Quadruple): Call get-rules.mjs to retrieve the account-eligible combinations of marketing_goal, marketing_sub_goal, marketing_target_type, and marketing_carrier_type. Guessing is forbidden; the unique quadruple must be selected from the returned combinations list 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, call get-assets.mjs to get the list of available assets. The final output is a flat_params object whose fields (e.g., asset_id, carrier_id) are passed directly to the final creation script.
  3. 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_set lists, conversion_id lists). For instance, conversion_id must come from a query result or be explicitly provided by the user.
  4. 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.