Skip to content
RTILA Web Business Automation
  • Home
  • Features
  • Pricing
  • Marketplace
  • Support
    • Documentation

Cart

RTILA Web Business Automation
  • Home
  • Features
  • Pricing
  • Marketplace
  • Support
    • Documentation
Free Download
Free Download

Billing & Licensing

10
  • Change License’s registered email address
  • Upgrade a License
  • Manage License Activation Count
  • RTILA Studio local database
  • Standalone Exe Antivirus False Positive Alert
  • Team Member Activation URL & License
  • AppSumo Codes Redemption
  • Download & Activate RTILA Studio
  • AppSumo Code Stacking & Upgrade
  • Mac OS Installation Warning

Custom Commands

36
  • WordPress Posts via API (beta)
  • Webhook Send Request
  • Target Text Before After
  • Download File to Folder
  • Clipboard Copy & Paste
  • ChatGPT API Full Control
  • Generate Random Numbers and Text
  • Regex & JS Filters
  • API Bridge Get Post Requests
  • WhatsApp API send MSG
  • GET HTML
  • Slack Notification Command
  • Target Elements With Text Value
  • Directory Get Files Path
  • Folder and File Monitoring
  • Get iFrame URL
  • Get File Content
  • Verify License Easy Digital Downloads
  • Save Variable to File
  • Rename File
  • Move File to New Directory
  • Delete File
  • Mouse Events
  • Get System Info
  • Airtable Get & Update Records
  • Email Send Via SMTP
  • Wait For Element to disappear
  • OCR Passport Reader
  • Target Element in Shadow Dom
  • Airtable Get Records
  • Airtable Update Records
  • Sanitize URL
  • Email Verification
  • Get Hardware ID HWID
  • Timestamp Unix and UTC
  • Switch Tab Focus Command

How-To & Tutorials

42
  • How to target a CSS element
  • Change default Browser
  • Export Results to a CSV file
  • Profile Session Feature
  • OCR Feature: read text from images
  • Auto Download Pinterest Images
  • Save current URL using JavaScript
  • Search & Filter Projects
  • Error handling Strategy
  • Working with Arrays and Objects in RTILA
  • Auto Comment On WordPress Posts
  • Run Automations in Silent Mode
  • License Check for Standalone Executables
  • Trigger Standalone Bots via Command lines
  • How To Find Custom Collections For List type Datasets
  • Correcting & Completing Auto-Recorder Commands
  • RTILA WordPress Plugin installation & configuration
  • Using Developer Tools In RTILA Studio
  • Create A Project From Scratch
  • Bring back disappearing commands & properties
  • Export & share an RTILA project file
  • Install Browser Extensions using Profile Session
  • How To Fill a Form Using Generic Form Filler Child-Project
  • Project Settings: Import URLs manual entry, From File, From Project, and Read XML Sitemap
  • Project Settings: Import URLs manual entry
  • Use Local Storage Variable to scrape Do-follow Links
  • Schedule Launch of Automations
  • Email Results File via Gmail
  • Read from Google Sheets & Post on WordPress
  • Website Load Testing Automation
  • Read data from a txt or csv file
  • Downloading files
  • Open in a New tab
  • Using filters to complete a URL
  • Choosing the right collection
  • Set a Counter with JavaScript
  • Setup reCAPTCHA Resolution
  • Woo Categories & ChatGPT API
  • Login to Google Account & share profile session
  • Google Search Baby Steps
  • Auto-Recorder as a 1st step
  • Standalone Executable Bots

Official Commands

58
  • List Command
  • Incogniton Anti-detect browser
  • Save results to file command
  • RTILA Cloud API Documentation
  • FTP / SFTP Command
  • Custom Commands
  • Integrations
  • RPA & Desktop OS Commands
  • Add And Configure Dataset Properties
  • Inspection Panel Interface & Elements
  • Config & binaries files for Standalone
  • Focus On Element Command
  • Go To Url Command
  • Scroll Element Command
  • Execute JavaScript Code command
  • Reload Page Command
  • Compare Variables Condition
  • Take Screenshot Command
  • Smart Variable (ChatGPT API)
  • Child Projects
  • Confirm (Dialog Box) Command
  • Populate Text Field Command
  • Hover Mouse On Element Command
  • Download Page Command
  • Stop Automation Command
  • Log Message Command
  • Input (prompt box) Variable
  • Extract Results Command
  • Wait for Element to Appear Command
  • Selector (DOM element)
  • Check Radio Input Command
  • Dynamic Variable (JavaScript Code)
  • Static Variables
  • Set Checkbox State Command
  • Set Dropdown Value Command
  • Press a Keyboard Key Command
  • Upload File Command
  • Double Click On An Element Event
  • Click On An Element Event
  • Switch Browser Identity Command
  • Slack Notification Command
  • Save as Pdf Command
  • Go Back To Previous Page Command
  • Go Forward To Next Page Command
  • Proxies Built-In Rotation
  • External Proxy Rotation API
  • Regular Expressions
  • Mock Location Command
  • Close Page Command
  • Desktop Notification Command
  • Command Folder
  • Clear Cookie Command
  • Change Page Size Command
  • Break Loop Command
  • DataSet Types
  • Link Crawler Command
  • Alert Message Command
  • Wait Commands
  • Home
  • Docs
  • How-To & Tutorials
  • Woo Categories & ChatGPT API
View Categories

Woo Categories & ChatGPT API

2 min read

Quick Demo Video #

Today ChatGPT have launched their API and we have immediately built a first Automation Template on how to use the Power of ChatGPT to enhance the SEO potential of your WooCommerce website in a fully automated way. The Automation Template is already available for free to our users to experiment with and learn from. You just need to replace/add your OpenAI API key and you are good to go. Watch the accelerated demo and then dive in and apply it to your WooCommerce websites.

https://youtu.be/Sr8YfIwYZTg

Download and or Import this Template #

This Template has already been added to our Template Catalog which you can reach from RTILA Studio > New Project > Iport project. Or you can also download it directly from here: https://drive.google.com/file/d/1CysgJuSX6nozUGg10KnZO6ZpuMaNXe-8/view?usp=sharing

Update your WooCommerce URLs #

There are 3 locations in this Automation Template where you need to update your WooCommerce Admin URLs.

Update your ChatGPT API Key #

There are few changes that you can make inside the Execute JavaScript code Command, see below.

The only information that you must change in the JavaScript code of the Execute JavaScript code Command is your ChatGPT API key which stats with sk- in our example.

Login then go here to find or generate your ChatGPT API Key:
https://platform.openai.com/account/api-keys

A second information that you can tweak to your liking is the prompt we are using to generate the description. You can change the number of words or anything you may like to adapt it to your use case. But be careful to only change this sentence and not any code that precedes or follows it.

We copy below the full JavaScript for you to learn from and tweak as you see fit. The same approach can be used to communicate with other Ai tools or API based systems.

Copy CodeCopiedUse a different Browser
(async () => {
  const token='sk-dwdwdwd7777DDDDDmZavD9ajZwgvofJ';
  const response = await fetch('https://api.openai.com/v1/chat/completions', {
    method: 'POST',
    headers: {
      'Authorization': `Bearer ${token}`,
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({
      model: "gpt-3.5-turbo",
      messages: [{"role": "user", "content": `Create a 30 words seo friendly description for this software product category: ${window.localStorage['RTILA_VAR_1677780406631']}.`}]
    })
  });
  const content = await response.json();
  console.log(content);
  window.localStorage.setItem('chatgpt-response',content.choices[0].message.content.replace(/\r?\n|\r/,""));

document.querySelector('body').setAttribute('chatgpt-response',content.choices[0].message.content);
})();

Change the ChatGPT model #

In this example we are using the ChatGPT model 3.5 turbo, but you can use a different versions. Simply replace the model reference in the JavaScript code.

The currently available text models are:
gpt-4 (and variations)
gpt-3.5-turbo (and variations)
text-davinci-002 (and variations)
Full list of models available here

JavaScript and RTILA variables access #

Note that you can call and interact with RTILA variables within your JavaScript code. In the example above we are doing 2 variable data exchanges between the JavaScript command and the rest of the automation blocks:
1- The RTILA Selector Variable command which is called in the JavaScript using this syntax: RTILA_VAR_1677780406631
Where 1677780406631 is the unique variable ID that you can find in the Variable bloc header, see screenshot below.

2- The ChatGPT response is saved in the local storage variable called “chatgpt-response” which is then saved into the Dynamic Variable command using the following JavaScript code. This approach allows you to save any data received from an API and use it elsewhere and further in your automation flow including as a value for a Property.

Copy CodeCopiedUse a different Browser
VALUE=window.localStorage.getItem('chatgpt-response');

    Still stuck? How can we help?

    How can we help?

    Updated on 02/04/2023
    Setup reCAPTCHA ResolutionLogin to Google Account & share profile session

    Powered by BetterDocs

    Table of Contents
    • Quick Demo Video
    • Download and or Import this Template
    • Update your WooCommerce URLs
    • Update your ChatGPT API Key
    • Change the ChatGPT model
    • JavaScript and RTILA variables access

    INFO & LEGALS

    PRICING
    PAYMENTS & REFUND
    COOKIES - PRIVACY
    LICENSE AGREEMENT

    DOWNLOADS

    BOT LAUNCHER
    RTILA STUDIO ON GITHUB
    BOT & TEMPLATES
    PARTNERSHIPS

    RESOURCES

    VIDEO TUTORIALS
    DOCUMENTATION
    SUPPORT PORTAL
    FB COMMUNITY SUPPORT

    stay in touch

    Subscription Form

    follow us on

    • Facebook
    • YouTube
    • RTILA LinkedIn Page
    Copyright © RTILA CORPORATION