{"id":5913,"date":"2025-02-28T11:13:26","date_gmt":"2025-02-28T05:43:26","guid":{"rendered":"https:\/\/www.huntbee.com\/resources\/docs\/ai-generator\/how-the-cron-job-works\/"},"modified":"2025-02-28T11:15:06","modified_gmt":"2025-02-28T05:45:06","slug":"how-the-cron-job-works","status":"publish","type":"docs","link":"https:\/\/www.huntbee.com\/resources\/docs\/ai-generator\/how-the-cron-job-works\/","title":{"rendered":"How the Cron Job Works"},"content":{"rendered":"\n<p>The AI Content Generator&#8217;s cron job automates content generation based on the configured settings. Here\u2019s how it functions:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Language Selection:<\/strong> The cron job determines whether to generate content for all languages or only for the default language, based on the settings.<\/li>\n\n\n\n<li><strong>Product Selection:<\/strong> Products are selected for content generation only if at least one of the enabled fields (e.g., product description, meta description, meta keywords, H1, H2, tags) is empty. If all fields are already populated, the product is skipped.<\/li>\n\n\n\n<li><strong>Prompt Generation:<\/strong> For each selected product, a single prompt is created specifying which fields require generation.<\/li>\n\n\n\n<li><strong>AI Response Processing:<\/strong> The AI generates and returns content for all requested fields in a structured response.<\/li>\n\n\n\n<li><strong>Field Overwrite:<\/strong>\n<ul class=\"wp-block-list\">\n<li>If the <strong>&#8220;Overwrite Fields&#8221;<\/strong> option is enabled, existing data will be replaced.<\/li>\n\n\n\n<li>If disabled, only empty fields will be populated while existing content remains unchanged.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Simulation Mode:<\/strong>\n<ul class=\"wp-block-list\">\n<li>When enabled, generated content is stored in a temporary database and does not directly update the main product table.<\/li>\n\n\n\n<li>This allows manual review and approval before applying changes to the main database.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>This ensures efficient and controlled content generation while maintaining flexibility in data management.<\/p>\n","protected":false},"featured_media":0,"parent":5826,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-5913","docs","type-docs","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How the Cron Job Works - HuntBee Resources<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.huntbee.com\/resources\/docs\/ai-generator\/how-the-cron-job-works\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How the Cron Job Works - HuntBee Resources\" \/>\n<meta property=\"og:description\" content=\"The AI Content Generator&#8217;s cron job automates content generation based on the configured settings. Here\u2019s how it functions: This ensures efficient and controlled content generation while maintaining flexibility in data management.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.huntbee.com\/resources\/docs\/ai-generator\/how-the-cron-job-works\/\" \/>\n<meta property=\"og:site_name\" content=\"HuntBee Resources\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/huntbee.opencart\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-28T05:45:06+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/docs\\\/ai-generator\\\/how-the-cron-job-works\\\/\",\"url\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/docs\\\/ai-generator\\\/how-the-cron-job-works\\\/\",\"name\":\"How the Cron Job Works - HuntBee Resources\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#website\"},\"datePublished\":\"2025-02-28T05:43:26+00:00\",\"dateModified\":\"2025-02-28T05:45:06+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/docs\\\/ai-generator\\\/how-the-cron-job-works\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/docs\\\/ai-generator\\\/how-the-cron-job-works\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/docs\\\/ai-generator\\\/how-the-cron-job-works\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AI Content Generator\",\"item\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/docs\\\/ai-generator\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How the Cron Job Works\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#website\",\"url\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/\",\"name\":\"HuntBee Resources\",\"description\":\"OpenCart Extension Documentations - Guides - Blogs - Projects\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#organization\",\"name\":\"HuntBee OpenCart\",\"url\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/cropped-mobile-logo-new.png\",\"contentUrl\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/cropped-mobile-logo-new.png\",\"width\":945,\"height\":200,\"caption\":\"HuntBee OpenCart\"},\"image\":{\"@id\":\"https:\\\/\\\/www.huntbee.com\\\/resources\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/huntbee.opencart\",\"https:\\\/\\\/www.instagram.com\\\/opencart.huntbee\\\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How the Cron Job Works - HuntBee Resources","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.huntbee.com\/resources\/docs\/ai-generator\/how-the-cron-job-works\/","og_locale":"en_US","og_type":"article","og_title":"How the Cron Job Works - HuntBee Resources","og_description":"The AI Content Generator&#8217;s cron job automates content generation based on the configured settings. Here\u2019s how it functions: This ensures efficient and controlled content generation while maintaining flexibility in data management.","og_url":"https:\/\/www.huntbee.com\/resources\/docs\/ai-generator\/how-the-cron-job-works\/","og_site_name":"HuntBee Resources","article_publisher":"https:\/\/www.facebook.com\/huntbee.opencart","article_modified_time":"2025-02-28T05:45:06+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.huntbee.com\/resources\/docs\/ai-generator\/how-the-cron-job-works\/","url":"https:\/\/www.huntbee.com\/resources\/docs\/ai-generator\/how-the-cron-job-works\/","name":"How the Cron Job Works - HuntBee Resources","isPartOf":{"@id":"https:\/\/www.huntbee.com\/resources\/#website"},"datePublished":"2025-02-28T05:43:26+00:00","dateModified":"2025-02-28T05:45:06+00:00","breadcrumb":{"@id":"https:\/\/www.huntbee.com\/resources\/docs\/ai-generator\/how-the-cron-job-works\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.huntbee.com\/resources\/docs\/ai-generator\/how-the-cron-job-works\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.huntbee.com\/resources\/docs\/ai-generator\/how-the-cron-job-works\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.huntbee.com\/resources\/"},{"@type":"ListItem","position":2,"name":"AI Content Generator","item":"https:\/\/www.huntbee.com\/resources\/docs\/ai-generator\/"},{"@type":"ListItem","position":3,"name":"How the Cron Job Works"}]},{"@type":"WebSite","@id":"https:\/\/www.huntbee.com\/resources\/#website","url":"https:\/\/www.huntbee.com\/resources\/","name":"HuntBee Resources","description":"OpenCart Extension Documentations - Guides - Blogs - Projects","publisher":{"@id":"https:\/\/www.huntbee.com\/resources\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.huntbee.com\/resources\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.huntbee.com\/resources\/#organization","name":"HuntBee OpenCart","url":"https:\/\/www.huntbee.com\/resources\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.huntbee.com\/resources\/#\/schema\/logo\/image\/","url":"https:\/\/www.huntbee.com\/resources\/wp-content\/uploads\/2020\/04\/cropped-mobile-logo-new.png","contentUrl":"https:\/\/www.huntbee.com\/resources\/wp-content\/uploads\/2020\/04\/cropped-mobile-logo-new.png","width":945,"height":200,"caption":"HuntBee OpenCart"},"image":{"@id":"https:\/\/www.huntbee.com\/resources\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/huntbee.opencart","https:\/\/www.instagram.com\/opencart.huntbee\/"]}]}},"comment_count":0,"_links":{"self":[{"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/docs\/5913","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/comments?post=5913"}],"version-history":[{"count":1,"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/docs\/5913\/revisions"}],"predecessor-version":[{"id":5915,"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/docs\/5913\/revisions\/5915"}],"up":[{"embeddable":true,"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/docs\/5826"}],"next":[{"title":"Model Selection Guide","link":"https:\/\/www.huntbee.com\/resources\/docs\/ai-generator\/model-selection-guide\/","href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/docs\/5981"}],"prev":[{"title":"Installation","link":"https:\/\/www.huntbee.com\/resources\/docs\/ai-generator\/installation\/","href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/docs\/5846"}],"wp:attachment":[{"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/media?parent=5913"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.huntbee.com\/resources\/wp-json\/wp\/v2\/doc_tag?post=5913"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}