# Generative AI — Shopwaive Code

Shopify Plus Dev teams can now connect directly to their GitHub repos to commit to a new or existing branch for code PRs developed with <mark style="color:blue;">**Shopwaive Code**</mark> — from the Built for Shopify admin Shopwaive app. Upload your files and ask Shopwaive to help you troubleshoot errors and complete code review. Need to refactor your PHP codebase to Javascript, format from HTML to React JSX, update your package.json to the latest node engine? No problem. Develop new features, functions, and more with <mark style="color:blue;">**Shopwaive Code**</mark><mark style="color:$info;">. Learn more</mark>

{% hint style="info" %}
Need support for Shopify Plus integration? Reach out to our team at <support@shopwaive.com> and we'll be glad to support or consider new feature or available options with this release upon request.
{% endhint %}

### Connect GitHub

First, ensure you've signed up for the **Shopwaive Checkout** subscription plan, as this is required to use Shopwaive Code.&#x20;

{% hint style="info" %}
Need to upgrade to the **Shopwaive Checkout s**ubscription plan? Simply visit the left side menu of the Shopwaive app within the Shopify admin. **View more** > **Billing.** Then click the **View all available subscription plans** link at the bottom. Once the web app opens, click the **Billing Plan** button at the top of the dashboard and proceed to upgrade to the **Checkout** plan
{% endhint %}

Once you're signed up to the **Shopwaive Checkout** plan, from the Shopwaive app, visit the **Generative AI** menu, click the **Code** tab, and then click the **Install** button in the GitHub card.

<figure><img src="https://311582772-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPSixuUh0CkVLkmb9bg0I%2Fuploads%2FTkRx24sCAslfO4keDBcy%2FInstallGitHub.png?alt=media&#x26;token=41a21a89-3b18-4a24-9833-ee862aef76da" alt=""><figcaption><p>Click the Install button to begin an OAuth session with GitHub where you'll select your repos</p></figcaption></figure>

During the GitHub OAuth session that begins, you'll choose which repo(s) you wish to connect to Shopwaive. Before installing, and for the most seamless installation, ensure you've already logged into your GitHub account in the same browser session that you've launched Shopify.&#x20;

{% hint style="info" %}
Though during installation you'll choose your repo(s) to connect, at anytime, you can visit the Shopwaive Code app in GitHub that you install on your GitHub account to add or remove repo(s)
{% endhint %}

Once you've successfully installed Shopwaive Code on your GitHub account, refresh your Shopify session and the GitHub card will update within the Shopwaive app indicating that your repo(s) have been successfully connected.

<figure><img src="https://311582772-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPSixuUh0CkVLkmb9bg0I%2Fuploads%2FkvLlTTjRhlNh4F1v23sJ%2FShopwaiveCode.png?alt=media&#x26;token=954fc181-de44-4e2a-99a8-0cb6b13e8109" alt=""><figcaption><p>The GitHub card will indicate your repo(s) are connected once you complete OAuth</p></figcaption></figure>

Next, you'll get to create code and commit directly to your repo(s). Ask Shopwaive's AI to generate a snippet, a landing page, an integration with Stripe and much more. You can upload files from your code base that you want Shopwaive's AI to debug or help run more efficiently, or refactor into a new language.&#x20;

<figure><img src="https://311582772-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPSixuUh0CkVLkmb9bg0I%2Fuploads%2FFGCh5XYiw7suH8PDTiMP%2FShopwaiveCodeGenerativeAI.png?alt=media&#x26;token=97caf773-0162-4894-8c8b-94c9cf1e4c32" alt=""><figcaption></figcaption></figure>

For example, provide a plain HTML and JS file and ask the AI to refactor into Liquid for your Shopify store. Or provide your Node.js package.json file and ask the AI to update your dependencies. The possibilities are endless.&#x20;

<figure><img src="https://311582772-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPSixuUh0CkVLkmb9bg0I%2Fuploads%2FErPRh8kmZ7oTFeD8Q6sy%2FCommitToGitHub.png?alt=media&#x26;token=641e13d0-d635-43fa-935e-7e79321a3487" alt=""><figcaption></figcaption></figure>

Let Shopwaive make code review and PRs easier than ever before and without expensive AI licenses that charge per seat or request, get unlimited access with one subscription to Shopwaive Checkout.

{% hint style="info" %}
Contact <support@shopwaive.com> for more information regarding token allotments and usage, our Billing team can ensure using Shopwaive's AI services are the most cost-effective for your development team
{% endhint %}
