# Get the next new inactive products — WooCommerce Botize method — `woocommerce.get_next_inactive_product` (trigger). Starting with the oldest product, return one by one each product that has been without updates for more than a specified number of hours. This is a trigger: it starts the task. A task has exactly one. ## 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)* — Minimum number of hours elapsed since the last product modification - `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 (0 for any price) - `max_price` *(string)* — Only products below this price (0 for any price) - `mb_outputvars_switch` *(boolean)* — Customize tags It also accepts repeatable field groups, with these prefixes: `filter_*`. These are composite components (buttons, filters, keyboards); the trailing number is set by the user as they are added. ## Output variables Data this step makes available. Reference them in later steps with the double-brace tag. - `{{product_id}}` *(int)* — Product Id. Product ID assigned by WooCommerce. For example: 123 - `{{name}}` *(text)* — Name. Product name. For example: FullHD Monitor - `{{slug}}` *(text)* — Slug. Part of the friendly URL used to uniquely identify a particular product. For example: fullhd-monitor - `{{permalink}}` *(text)* — Permalink. Unique URL generated by WooCommerce for each particular product. For example: https://onlineshop.com/product/fullhd-monitor - `{{type}}` *(text)* — Type. Type of product: Simple Product, Grouped Product, External/Affiliate Product or Variable Product. For example: external - `{{status}}` *(text)* — Status. Status type: Draft, Pending, Private or Publish. For example: publish - `{{featured}}` *(boolean)* — Featured. Whether the product is featured or not. For example: true - `{{description}}` *(text)* — Description. Product description. For example: 1920x1080, IPS LED, 16:9, HDMI - `{{sku}}` *(text)* — SKU. Stock Keeping Unit is the product code or reference number. For example: fullhd-monitor - `{{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 - `{{regular_price}}` *(int)* — Regular price. Normal price of the product when it is not on sale. For example: 100 - `{{sale_price}}` *(int)* — Sale price. Offer price of the product when it is on sale. For example: 75 - `{{external_url}}` *(text)* — External URL. External or affiliate URL for 'external' product types. For example: https://amazon.com/dp/BA3848123?tag=mycode-21 - `{{image_url}}` *(text)* — Image URL. URL of the main product image. For example: https://onlineshop.com/wp-content/uploads/2022/06/31iIhUf9-rL.jpg - `{{date_created_gmt}}` *(date)* — Date created (GMT). The date the product was created, as GMT. For example: 2023-02-22T09:20:48 - `{{date_modified_gmt}}` *(date)* — Date modified (GMT). The date the product was last modified, as GMT. For example: 2023-02-22T09:20:48 - `{{days_since_modified}}` *(int)* — Days since last modification. Total number of days elapsed since the product was last modified. For example: 0 - `{{stock_status}}` *(text)* — Stock status. Controls the stock status of the product. Options: instock, outofstock, onbackorder. For example: instock - `{{stock_quantity}}` *(int)* — Stock quantity. Available stock. If it is a variable product, this value reflects the generic for the product and not the quantity of stock for each of its possible variations. For example: 34 - `{{attributes}}` *(array)* — Attributes. List of attributes. For example: {"color":{"options":["red","blue"]} - `{{rating_count}}` *(int)* — Rating count. Amount of reviews that the product have. For example: 5 ## 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_next_inactive_product