How to Create Dynamic Sale Notifications for WooCommerce SQL Query with Open AI
How to Create Dynamic Sale Notifications for WooCommerce SQL Query with Open AI
Discover how to generate the SQL query using the power of Open AI to display dynamic sale notifications for WooCommerce. Learn how to show visitors the last sale on the website and when the order was completed.
Before you start, check the tutorial requirements:
Elementor (Free version)
WooCommerce plugin installed and activated with several products created
JetEngine plugin at least 3.2.0 version installed and activated
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.
Before you proceed further, ensure you have several completed orders on the website.
Create the SQL Query
Follow the JetEngine > Query Builder path and push the “Add New” button.
Give the query a Name, and select the “SQL/AI Query” Query Type.
Enable the Advanced/AI mode toggle, and you’ll see that the settings are different than if you decided to write SQL query manually.
To use AI, press the magic stick icon, and the pop-up for the SQL query generation will appear.
Warning
Currently, you can make 30 requests per month with the Lifetime subscription plan and 5 requests per month with other subscriptions.
Now the critical thing is to write the correct prompt so the AI understands the request.
I entered the “WooCommerce. Select all product IDs from latest order. Add to the response product_ID and order_date. Limit 1.” text into the Describe your query textarea.
Hit the “Generate query” button, and get a generated query.
Was this article helpful?
YesNo
Need help?
Ask Facebook community
Get answers from 22K Crocoblock Community experts from all over the world.
Start a live chat
Ask question to support agent and share its details via chat messages.
Before you continue to use Crocoblock
We use required cookies for site navigation, purchasing, improving your browsing experience to:
Provide you with services described on the Sites, general administrative and performance functions, and support services;
Operate the Sites and verify your identity when you sign in to any of our Sites;
Inform you about company news and give updates on our services;
Carry out technical analysis to determine how to improve the Sites and services we provide;
Track outages and protect against spam and fraud.
Required cookies come from the following sources: WordPress, Intercom, Freshdesk, affiliate cookies, Crazy Egg, Google Inc.
If you choose to “Accept all,” we will also use cookies and data to:
Improve site performance;
Deliver and measure the effectiveness of ads;
Show personalized content and ads, depending on your settings.
Optional (non-required) cookies enforced by such entities as Meta (formerly Facebook) and Microsoft Advertising (formerly Bing).