技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
ecommerce-customer-onboarding-automator【数据与研究】Automates customer onboarding workflows for e-commerce platforms. Fetches recent WooCommerce orders, identifies first-time customers within a specified timeframe, syncs their information to a BigQuery CRM database, and sends personalized welcome emails using a template.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Automate the onboarding process for new e-commerce customers by:
woocommerce-woo_orders_list).woocommerce_crm) and table (e.g., new_customers) exist. The table should have at least these columns: customer_name (STRING), email (STRING), order_id (INT64), order_date (TIMESTAMP), order_total (FLOAT64).welcome_email_template.md file. The skill expects to find it at /workspace/dumps/workspace/ by default.woocommerce-woo_orders_list to retrieve completed orders. Start with parameters: {"status": ["completed"], "perPage": 100, "order": "desc", "orderby": "date"}."period": "recent_7_days" in their meta_data. You must implement a similar filtering logic based on your store's data structure.
date_completed field and calculate if it falls within the last 7 days from the current date.filesystem-search_files to find welcome_email_template.md.filesystem-read_file to load its content. The template should contain placeholders like {{customer_name}}, {{order_id}}, {{order_total}}, and {{order_date}}.google-cloud-bigquery_list_datasets and google-cloud-bigquery_get_dataset_info to verify the target dataset exists.google-cloud-bigquery_run_query to inspect the INFORMATION_SCHEMA and confirm the schema of the target table (e.g., new_customers) matches the data you will insert.customer_name: Combine billing.first_name and billing.last_name.email: From billing.email.order_id: The order's id.order_date: Convert date_completed to a TIMESTAMP.order_total: The order's total (as a float).INSERT query for BigQuery with all customer values. Use parameterized values or explicit casting (e.g., TIMESTAMP('...')) to ensure data type compatibility.google-cloud-bigquery_run_query.SELECT query to confirm all records were inserted correctly.emails-send_email to send the email.
page parameter in woocommerce-woo_orders_list.email or order_id already exists in the target table to prevent duplicates if the skill runs multiple times.After all emails are sent, provide a summary report including:
local-claim_done to mark the task as complete.