{"id":40036,"date":"2023-05-30T16:00:23","date_gmt":"2023-05-30T16:00:23","guid":{"rendered":"https:\/\/crocoblock.com\/knowledge-base\/?post_type=article&#038;p=40036"},"modified":"2024-08-09T09:38:25","modified_gmt":"2024-08-09T09:38:25","slug":"sql-query-with-open-ai-dynamic-sale-notifications","status":"publish","type":"article","link":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/sql-query-with-open-ai-dynamic-sale-notifications\/","title":{"rendered":"How to Create Dynamic Sale Notifications for WooCommerce SQL Query with Open AI"},"content":{"rendered":"\n<p>This tutorial will show how to generate the SQL query with AI to show a notification of the most recent website sale: the product itself and the date\/time.<\/p>\n\n\n\n<p>Before you proceed further, ensure you have several completed orders on the website.\u00a0<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1480\" height=\"910\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/05\/completed-order.png\" alt=\"completed order\" class=\"wp-image-40059\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/05\/completed-order.png 1480w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/05\/completed-order-300x184.png 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/05\/completed-order-1024x630.png 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/05\/completed-order-768x472.png 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/05\/completed-order-600x369.png 600w\" sizes=\"(max-width: 1480px) 100vw, 1480px\" \/><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"create-the-sql-query\">Create the SQL Query<\/h2>\n\n\n\n<p>Follow the <strong><em>JetEngine &gt; Query Builder <\/em><\/strong>path and push the <strong>\u201cAdd New\u201d <\/strong>button.<\/p>\n\n\n\n<p>Give the query a <strong>Name<\/strong>, and select the \u201cSQL\/AI Query\u201d <strong>Query Type<\/strong>.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/05\/add-new-query-page-1024x422.png\" alt=\"add new query page\">\n\n\n\n<p>Enable the <strong>Advanced\/AI mode <\/strong>toggle, and you\u2019ll see that the settings are different than if you decided to write SQL query manually.<\/p>\n\n\n\n<p>To use AI, press the <strong>magic stick<\/strong> icon, and the pop-up for the SQL query generation will appear.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/05\/advanced-sql-query-1024x650.png\" alt=\"advanced SQL query\">\n\n\n<div class=\"note-banner d-flex border-bold border-jetsmartfilters rounded overflow-hidden p-20\"><div class=\"mr-12\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z\" fill=\"#FA5450\"\/><\/svg><\/div><div class=\"d-flex flex-column\"><div class=\"text-900 mb-12\">Warning<\/div><p class=\"m-0\">Currently, you can make 30 requests per month with the Lifetime subscription plan and 5 requests per month with other subscriptions.<\/p><\/div><\/div>\n\n\n\n<p>Now the critical thing is to write the correct prompt so the AI understands the request.<\/p>\n\n\n\n<p>I entered the \u201cWooCommerce. Select all product IDs from latest order. Add to the response product_ID and order_date. Limit 1.\u201d text into the <strong>Describe your query <\/strong>textarea.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/05\/describe-your-query.png\" alt=\"describe your query\">\n\n\n\n<p>Hit the <strong>\u201cGenerate query\u201d <\/strong>button, and get a generated query.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/05\/use-this-query.png\" alt=\"use this query\">\n\n\n\n<p>Check it and press the <strong>\u201cUse this query\u201d <\/strong>button. After that, you can see the generated query in the <strong>SQL Query <\/strong>field.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/05\/SQL-query-field-1024x625.png\" alt=\"SQL query field\">\n\n\n\n<p>Return to the top of the page and enable the <strong>Preview results <\/strong>toggle.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/05\/preview-query-results-1024x390.png\" alt=\"preview query results\">\n\n\n\n<p>At the bottom of the preview pop-up, you can see the last order details. The order_item_name matches the last order (High waist denim shorts) on my website.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/05\/preview-results.png\" alt=\"preview results\" class=\"wp-image-41064\"\/><\/figure>\n\n\n\n<p class=\"has-text-align-left\">After you finish, press the <strong>\u201cAdd\/Update Query\u201d <\/strong>button.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"create-a-listing-item\">Create a Listing Item<\/h2>\n\n\n\n<p>Move to the <strong><em>JetEngine &gt; Listings <\/em><\/strong>tab and click the <strong>\u201cAdd New\u201d <\/strong>button.&nbsp;<\/p>\n\n\n\n<p>In the <strong>Setup Listing Item <\/strong>pop-up, choose the \u201cQuery Builder\u201d <strong>Source<\/strong> and pick the needed <strong>Query <\/strong>as well. Enter the <strong>Listing item name <\/strong>and choose the \u201cElementor\u201d <strong>Listing view<\/strong>. Then, click the <strong>\u201cCreate Listing Item\u201d <\/strong>button.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/05\/listing-item-for-the-sql-query-1024x631.png\" alt=\"listing item for the SQL query\">\n\n\n\n<p>To show the \u201cSomeone purchased\u201d label, I used the <strong>Header <\/strong>widget.<\/p>\n\n\n\n<p>I used the <strong>Dynamic Field <\/strong>widget to display the order details. To learn more, proceed to the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/dynamic-field-widget-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Dynamic Field Widget Overview<\/strong><\/a>.<\/p>\n\n\n\n<p>To show the product title, select the \u201cPost\/Term\/User\/Object Data\u201d <strong>Source<\/strong> and the \u201corder_item_name\u201d <strong>Object Field.<\/strong><\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/05\/order-item-name.png\" alt=\"order item name\">\n\n\n\n<p>To display how much time has passed since purchase, select the \u201cPost\/Term\/User\/Object Data\u201d <strong>Source<\/strong> and the \u201cpost_date\u201d <strong>Object Field<\/strong>.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/05\/post-date.png\" alt=\"post date\">\n\n\n\n<p>Then, enable the <strong>Filter field output <\/strong>toggle and pick the \u201cHuman readable time difference\u201d <strong>Callback<\/strong>. Also, you can use the <strong>Customize field output <\/strong>option.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/05\/human-readable-time-difference.png\" alt=\"human readable time difference\">\n\n\n\n<p>To show the product thumbnail, choose the \u201cPost\/Term\/User\/Object Data\u201d Source and the \u201cmeta_value\u201d Object Field. Enable the <strong>Filter field output <\/strong>toggle and pick the \u201cGet post\/page thumbnail\u201d <strong>Callback<\/strong>.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/05\/get-post-thumbnail.png\" alt=\"get post thumbnail\">\n\n\n\n<p>After you done customizing, press the <strong>\u201cUpdate\u201d <\/strong>button.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"create-a-popup\">Create a Pop-up<\/h2>\n\n\n\n<p>Proceed to the <strong><em>JetPopup &gt; Create New Popup <\/em><\/strong>tab.<\/p>\n\n\n\n<p>In the <strong>Create a Popup <\/strong>window, select the \u201cElementor\u201d <strong>Content Type<\/strong>, pick the \u201cBordering\u201d <strong>Preset<\/strong>, and click the <strong>\u201cCreate\u201d <\/strong>button.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/05\/create-a-popup-1024x655.png\" alt=\"create a popup\">\n\n\n\n<p>Drag-n-drop the <strong>Listing Grid <\/strong>widget to the container. Select the needed <strong>Listing <\/strong>in the drop-down menu, and set the \u201c1\u201d <strong>Columns Number <\/strong>and \u201c1\u201d <strong>Post Number<\/strong>.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/05\/listing-grid-settings-1024x652.png\" alt=\"listing grid settings\">\n\n\n\n<p>Click on the <strong>Settings <\/strong>icon.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"363\" height=\"952\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/07\/pop-up-settings-icon.png\" alt=\"\" class=\"wp-image-41037\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/07\/pop-up-settings-icon.png 363w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/07\/pop-up-settings-icon-114x300.png 114w\" sizes=\"(max-width: 363px) 100vw, 363px\" \/><\/div>\n\n\n\n<p>Open the <strong>Settings <\/strong>tab and customize the pop-up. I applied the \u201cOn page load(s) <strong>Open event<\/strong> \u2013 it opens a pop-up with a delay after the page loads.<\/p>\n\n\n\n<p>You can learn more about pop-up creation and pop-up settings from the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetpopup\/how-to-create-a-new-popup-template-from-scratch-based-on-jetpopup\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>How to Create a New Popup Template in Elementor<\/strong><\/a> tutorial.<\/p>\n\n\n\n<p>Then, press the <strong>\u201cEdit\u201d <\/strong>button near the <strong>Display Conditions <\/strong>option.<\/p>\n\n\n\n<div class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"337\" height=\"540\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/05\/popup-settings-tab.png\" alt=\"\" class=\"wp-image-40044\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/05\/popup-settings-tab.png 337w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/05\/popup-settings-tab-187x300.png 187w\" sizes=\"(max-width: 337px) 100vw, 337px\" \/><\/div>\n\n\n\n<p>Set the visibility conditions in the appeared window. I set the \u201cInclude,\u201d \u201cEntire,\u201d and \u201cEntire Site\u201d conditions. Learn more from the <strong><a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/popup-conditions-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\">Popup <\/a><\/strong><a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/popup-conditions-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Conditions Overview<\/strong><\/a>.<\/p>\n\n\n\n<p>When you finish, hit the <strong>\u201cSave Conditions\u201d <\/strong>button.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/05\/set-the-popup-visibility-conditions-1024x558.png\" alt=\"set the popup visibility conditions\">\n\n\n\n<p>Return to the pop-up on the Elementor editing page and open the <strong>Style<\/strong> settings tab.<\/p>\n\n\n\n<p>Here you can customize the pop-up style setting. To learn more, go to the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/jetpopup\/popup-style-settings-overview-in-elementor\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Popup Style Settings Overview in Elementor<\/strong><\/a>.<\/p>\n\n\n\n<p>For example, I changed the pop-up <strong>Width <\/strong>in the <strong>Popup Container <\/strong>tab.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/05\/popup-container-width.png\" alt=\"popup container width\">\n\n\n\n<p>I changed the close button position with the <strong>Icon Transform <\/strong>option in the <strong>Close Button <\/strong>settings tab.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/05\/popup-close-icon-transform.png\" alt=\"popup close icon transform\">\n\n\n\n<p>Also, I disabled the <strong>Use Overlay <\/strong>option in the <strong>Popup Overlay <\/strong>settings tab. If enabled, it covers the screen beyond the pop-up by darkening the background.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/05\/popup-overlay.png\" alt=\"popup overlay\">\n\n\n\n<p>When you finish, hit the <strong>\u201cUpdate\u201d <\/strong>button.<\/p>\n\n\n\n<p>Proceed to the front end. According to my condition, the pop-up will open on the entire website, so I went to a random page. The pop-up appeared according to the open event settings.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/05\/dynamic-sale-notification-on-the-front-end-1024x656.png\" alt=\"dynamic sale notification on the front end\">\n\n\n\n<p>Let\u2019s make a new purchase. As you can see, the dynamic notification was changed immediately.<\/p>\n\n\n\n<img decoding=\"async\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/05\/dynamic-sale-notification-checking-1024x652.png\" alt=\"dynamic sale notification checking\">\n\n\n\n<p>That\u2019s all. Now you can generate the SQL query for the WooCommerce dynamic notification sale using OpenAI.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to show visitors the last sale on the website and when the order was completed.<\/p>\n","protected":false},"author":8,"featured_media":0,"template":"","format":"standard","builder-category":[],"article-category":[405],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Generate SQL Query with Open AI: Dynamic Sale Notifications | Crocoblock<\/title>\n<meta name=\"description\" content=\"Discover how to generate the SQL query using the power of OpenAI to display dynamic sale notifications for WooCommerce. Learn how to show visitors the last sale on the site and when the order was completed.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/sql-query-with-open-ai-dynamic-sale-notifications\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Generate SQL Query with Open AI: Dynamic Sale Notifications | Crocoblock\" \/>\n<meta property=\"og:description\" content=\"Discover how to generate the SQL query using the power of OpenAI to display dynamic sale notifications for WooCommerce. Learn how to show visitors the last sale on the site and when the order was completed.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/sql-query-with-open-ai-dynamic-sale-notifications\/\" \/>\n<meta property=\"og:site_name\" content=\"Help Center\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-09T09:38:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/05\/completed-order.png\" \/>\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=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/sql-query-with-open-ai-dynamic-sale-notifications\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/sql-query-with-open-ai-dynamic-sale-notifications\/\",\"name\":\"How to Generate SQL Query with Open AI: Dynamic Sale Notifications | Crocoblock\",\"isPartOf\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\"},\"datePublished\":\"2023-05-30T16:00:23+00:00\",\"dateModified\":\"2024-08-09T09:38:25+00:00\",\"description\":\"Discover how to generate the SQL query using the power of OpenAI to display dynamic sale notifications for WooCommerce. Learn how to show visitors the last sale on the site and when the order was completed.\",\"breadcrumb\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/sql-query-with-open-ai-dynamic-sale-notifications\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/sql-query-with-open-ai-dynamic-sale-notifications\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/sql-query-with-open-ai-dynamic-sale-notifications\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Articles\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/articles\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Create Dynamic Sale Notifications for WooCommerce SQL Query with Open AI\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/\",\"name\":\"Help Center\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/crocoblock.com\/knowledge-base\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#organization\",\"name\":\"Help Center\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg\",\"contentUrl\":\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg\",\"caption\":\"Help Center\"},\"image\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Generate SQL Query with Open AI: Dynamic Sale Notifications | Crocoblock","description":"Discover how to generate the SQL query using the power of OpenAI to display dynamic sale notifications for WooCommerce. Learn how to show visitors the last sale on the site and when the order was completed.","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:\/\/crocoblock.com\/knowledge-base\/jetengine\/sql-query-with-open-ai-dynamic-sale-notifications\/","og_locale":"en_US","og_type":"article","og_title":"How to Generate SQL Query with Open AI: Dynamic Sale Notifications | Crocoblock","og_description":"Discover how to generate the SQL query using the power of OpenAI to display dynamic sale notifications for WooCommerce. Learn how to show visitors the last sale on the site and when the order was completed.","og_url":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/sql-query-with-open-ai-dynamic-sale-notifications\/","og_site_name":"Help Center","article_modified_time":"2024-08-09T09:38:25+00:00","og_image":[{"url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2023\/05\/completed-order.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/sql-query-with-open-ai-dynamic-sale-notifications\/","url":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/sql-query-with-open-ai-dynamic-sale-notifications\/","name":"How to Generate SQL Query with Open AI: Dynamic Sale Notifications | Crocoblock","isPartOf":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#website"},"datePublished":"2023-05-30T16:00:23+00:00","dateModified":"2024-08-09T09:38:25+00:00","description":"Discover how to generate the SQL query using the power of OpenAI to display dynamic sale notifications for WooCommerce. Learn how to show visitors the last sale on the site and when the order was completed.","breadcrumb":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/sql-query-with-open-ai-dynamic-sale-notifications\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crocoblock.com\/knowledge-base\/jetengine\/sql-query-with-open-ai-dynamic-sale-notifications\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/sql-query-with-open-ai-dynamic-sale-notifications\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/crocoblock.com\/knowledge-base\/"},{"@type":"ListItem","position":2,"name":"Articles","item":"https:\/\/crocoblock.com\/knowledge-base\/articles\/"},{"@type":"ListItem","position":3,"name":"How to Create Dynamic Sale Notifications for WooCommerce SQL Query with Open AI"}]},{"@type":"WebSite","@id":"https:\/\/crocoblock.com\/knowledge-base\/#website","url":"https:\/\/crocoblock.com\/knowledge-base\/","name":"Help Center","description":"","publisher":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/crocoblock.com\/knowledge-base\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/crocoblock.com\/knowledge-base\/#organization","name":"Help Center","url":"https:\/\/crocoblock.com\/knowledge-base\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/","url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg","contentUrl":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg","caption":"Help Center"},"image":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article\/40036"}],"collection":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/types\/article"}],"author":[{"embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/users\/8"}],"wp:attachment":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=40036"}],"wp:term":[{"taxonomy":"builder-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/builder-category?post=40036"},{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article-category?post=40036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}