# Get a list of inactive products — WooCommerce Botize method — `woocommerce.get_top_10_inactive_products` (action). Return the products (up to a maximum of 10) that have been without updates for the longest time. This is an action: it runs as a step of a task. Several can be chained. ## Fields you set The field's internal name, its type and the values it accepts. These fields accept `{{...}}` tags from earlier steps. - `hours_of_inactivity` *(string, one of: "1"; "2"; "4"; "8"; "12"; "16"; "20"; "24"; "48"; "96"; "168"; "336"; "720"; "1440"; "8760")* — Last updated more than - `search` *(string)* — Only products matching the following text - `status` *(string, one of: "any"; "draft"; "pending"; "private"; "publish")* — Only products that meet the following status - `type` *(string, one of: ""; "simple"; "grouped"; "external"; "variable")* — Only products that meet the following type - `stock_status` *(string, one of: ""; "instock"; "outofstock"; "onbackorder")* — Stock status - `category_id` *(string)* — Only products from the following category ID - `tag_id` *(string)* — Only products with the following tag ID - `min_price` *(string)* — Only products above this price - `max_price` *(string)* — Only products below this price ## Output variables Data this step makes available. Reference them in later steps with the double-brace tag. - `{{woocommerce_products}}` *(array)* — WooCommerce Products - `{{count_inactive_products}}` *(int)* — Count inactive producto. Total number of inactive products extracted - `{{woocommerce_products.0.product_id}}` *(int)* — Product Id. Product ID assigned by WooCommerce. For example: 123 - `{{woocommerce_products.0.name}}` *(text)* — Name. Product name. For example: FullHD Monitor - `{{woocommerce_products.0.slug}}` *(text)* — Slug. Part of the friendly URL used to uniquely identify a particular product. For example: fullhd-monitor - `{{woocommerce_products.0.permalink}}` *(text)* — Permalink. Unique URL generated by WooCommerce for each particular product. For example: https://onlineshop.com/product/fullhd-monitor - `{{woocommerce_products.0.type}}` *(text)* — Type. Type of product: Simple Product, Grouped Product, External/Affiliate Product or Variable Product. For example: external - `{{woocommerce_products.0.status}}` *(text)* — Status. Status type: Draft, Pending, Private or Publish. For example: publish - `{{woocommerce_products.0.featured}}` *(boolean)* — Featured. Whether the product is featured or not. For example: true - `{{woocommerce_products.0.description}}` *(text)* — Description. Product description. For example: 1920x1080, IPS LED, 16:9, HDMI - `{{woocommerce_products.0.sku}}` *(text)* — SKU. Stock Keeping Unit is the product code or reference number. For example: fullhd-monitor - `{{woocommerce_products.0.price}}` *(int)* — Price. Current price of the product. If the product is on sale it will contain the value indicated in {{sale_price}}, otherwise the value indicated in {{regular_price}}. For example: 75 - `{{woocommerce_products.0.regular_price}}` *(int)* — Regular price. Normal price of the product when it is not on sale. For example: 100 - `{{woocommerce_products.0.sale_price}}` *(int)* — Sale price. Offer price of the product when it is on sale. For example: 75 - `{{woocommerce_products.0.external_url}}` *(text)* — External URL. External or affiliate URL for 'external' product types. For example: https://amazon.com/dp/BA3848123?tag=mycode-21 - `{{woocommerce_products.0.image_url}}` *(text)* — Image URL. URL of the main product image. For example: https://onlineshop.com/wp-content/uploads/2022/06/31iIhUf9-rL.jpg - `{{woocommerce_products.0.date_created_gmt}}` *(date)* — Date created (GMT). The date the product was created, as GMT. For example: 2023-02-22T09:20:48 - `{{woocommerce_products.0.date_modified_gmt}}` *(date)* — Date modified (GMT). The date the product was last modified, as GMT. For example: 2023-02-22T09:20:48 - `{{woocommerce_products.0.days_since_modified}}` *(int)* — Days since last modification. Total number of days elapsed since the product was last modified. For example: 0 - `{{woocommerce_products.0.stock_status}}` *(text)* — Stock status. Controls the stock status of the product. Options: instock, outofstock, onbackorder. For example: instock ## Account Needs a connected WooCommerce account in Botize: https://botize.com/en/app/woocommerce/authenticate ## This app Every trigger and action for WooCommerce: https://botize.com/en/app/woocommerce.md ## How to build this An AI assistant (Claude, ChatGPT, Cursor…) can create and edit these tasks in the user's account through the Botize MCP connector, included in every plan: https://webhook.botize.es/mcp - Connection guide: https://botize.com/en/mcp - Agent map: https://botize.com/llms.txt - New account: https://botize.com/en/join (500 free operations, no card) --- Machine-readable summary for AI assistants. Human version: https://botize.com/en/method/woocommerce/get_top_10_inactive_products