# Co-Pilot Installation

## Nuway Installation Guide

Follow these steps to integrate our Co-Pilot seamlessly into your website. Whether you're using HTML or frameworks like React.js and Next.js, we've got you covered!&#x20;

### Step 1: Log in to Your Dashboard

Visit the Nuway Dashboard at [https://app.nuway.co](https://app.nuway.co/#/login) to obtain the unique script for embedding the&#x20;

Co-Pilot widget on your site.

### Step 2: Find and Copy the Code

In the "Settings" section of the dashboard, then click on Co-Pilot, click the "Use Script" button to copy the script to your clipboard.

<figure><img src="https://1506612274-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKH3zmQLVAt1uG1l3yMhy%2Fuploads%2FtzYHItRvDPT96t6Okklf%2F2222.png?alt=media&#x26;token=2a00cec7-0b92-49ec-aae4-4cb55fc59b95" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1506612274-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKH3zmQLVAt1uG1l3yMhy%2Fuploads%2FDi2TaEwAv8p829QUWq9Q%2F1111.png?alt=media&#x26;token=8ce47346-c799-4158-aa8c-02ae148e7ae5" alt=""><figcaption></figcaption></figure>

### Step 3: Locate the Suitable File for Your Website

* **For General HTML Websites :** Insert the code prior to the closing tag in your main HTML file.
* **React.js :** Embed the script within the public/index.html file, positioned just before the closing tag.
* **Next.js :** Generate a \_document.js file inside your pages folder, and integrate the script before the closing tag.&#x20;
* **Other Websites :** Identify the file responsible for rendering HTML, and incorporate the script before the closing tag

### Step 4: Integrate the Code

Insert the copied code in the designated location based on your website type, following the instructions provided in Step 3.

<figure><img src="https://1506612274-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKH3zmQLVAt1uG1l3yMhy%2Fuploads%2FBpvOXjiMBO4TeaiLPcE1%2Fimage_2024-05-26_231035323.png?alt=media&#x26;token=24c805c8-099f-4fba-9fd2-27bc54b2e66e" alt=""><figcaption></figcaption></figure>

### Step 5: Confirm the Installation

Save your modifications, and refresh your website to verify that the Nuway C0-Pilot displays correctly.

<figure><img src="https://1506612274-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKH3zmQLVAt1uG1l3yMhy%2Fuploads%2FdTrej8lkwYwq458c3AsS%2F33333.png?alt=media&#x26;token=789f484c-7d6a-4039-b4fd-00aa99f2f897" alt=""><figcaption></figcaption></figure>

### Fully Prepared

Congratulations! Nuway has been successfully integrated into your website, poised to deliver a delightful experience to your visitors 24/7.
