# How to install the plugin

<figure><img src="https://1627858133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJYHZlG6MmDYLIluSzCKk%2Fuploads%2FuiZD8nYl6AQHTSIOQEdw%2FThumbnail%20WebUse.png?alt=media&#x26;token=745008b2-5a57-4c77-8d92-22a69614db2b" alt=""><figcaption></figcaption></figure>

Installing is easy through the epic games launcher.

### Step 1. Epic Games Launcher Install Process

Steps:\
1\. Add to library on Fab.com\
2\. Open Epic Games launcher\
3\. Click the refresh button next to fab.\
4\. Once the refresh is complete, search for "GPT Dialogue System" in the search panel.\
5\. Click the install to engine button on the plugin and choose your engine version.\


<div align="left"><figure><img src="https://1627858133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJYHZlG6MmDYLIluSzCKk%2Fuploads%2FbZImnVzmuYXHKeBz7ZQ6%2Fimage.png?alt=media&#x26;token=c5612eb9-3a49-4c6d-8fd8-dff7ca38b252" alt="" width="447"><figcaption></figcaption></figure></div>

### Step 2. Installing in Unreal Engine

This part requires you be familiar with the unreal editor and how its UI works.\
\
Steps:\
1\. Open the edit menu in the toolbar and select plugins.

&#x20;![](https://1627858133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJYHZlG6MmDYLIluSzCKk%2Fuploads%2F1goKWuBKWzHeltoYzJL3%2Fimage.png?alt=media\&token=30d1db02-59e3-49b8-9ed1-ab624acbe28c)\\\
2\. Search for "GPT Dialogue System" in the plugins window and ensure the checkbox for it is set to true.\


<figure><img src="https://1627858133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJYHZlG6MmDYLIluSzCKk%2Fuploads%2F7zoeOvveSNVHwqjTcR8L%2Fimage.png?alt=media&#x26;token=944e7def-d377-41fe-afc9-fab1374fdd2f" alt=""><figcaption></figcaption></figure>

3. Restart the editor if it asks for it.\
   \


### Step 3. Finding the Demo and Necessary Content

Now we need to show the content for the plugin as it will not be visible by default.\
\
Steps:

1. In your content browser find in the top right corner the button that says "settings"![](https://1627858133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJYHZlG6MmDYLIluSzCKk%2Fuploads%2Fcfxprqsyoua8XhE2aR8F%2Fimage.png?alt=media\&token=34259821-c875-467c-b460-d84eca9b890e)
2. Once you click settings, enable the "Show Engine Content" feature if you are using the Epic Games Launcher to install or Show plugin content if you installed it directly to your project. Most users will be using the Epic Games Launcher version.

![](https://1627858133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJYHZlG6MmDYLIluSzCKk%2Fuploads%2FMAPV7MXlIjeEvGegvjX1%2Fimage.png?alt=media\&token=ca71cc8c-d07f-4a1d-a61f-a6f546a3ed23)

3. Go to your newly found engine folder in the content browser and find the plugins directory, from there look for "GPT Dialogue System Content" folder and open it up.

<div align="left"><figure><img src="https://1627858133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJYHZlG6MmDYLIluSzCKk%2Fuploads%2F63Tx5InGpWvt0GKqnkVK%2Fimage.png?alt=media&#x26;token=0284604a-7d78-4a21-8e9a-5b0ccd041d94" alt=""><figcaption></figcaption></figure></div>

4. From there you can access the demo content and the necessary content.&#x20;
5. Now we need to make a copy of the FirebaseJson folder from the necessary content directly in our game content project. This step is critical for plugin functionality.\
   \
   \


### Step 4. The firebase Json file and folder

Steps:

1. find the FirebaseJson folder in the plugins necessary content folder.

![](https://1627858133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJYHZlG6MmDYLIluSzCKk%2Fuploads%2Ffwqp4ubyclCuXjBFXfJW%2Fimage.png?alt=media\&token=0675296b-d0e1-423d-8f81-b7831cb5b203)

2. Now drag and drop this folder to your PROJECTS content directory at its root(not the plugins content directory, they are different).

&#x20;![](https://1627858133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJYHZlG6MmDYLIluSzCKk%2Fuploads%2F2lOusuEp7C3hVWyqbhFd%2Fimage.png?alt=media\&token=05799605-5505-431f-ac52-2076f7596d2b)

3. Next we need to go back to the necessary content once the firebaseJson folder is in our project directory and right click->Show in explorer. The json file is only accessible through windows not the unreal content browser.

&#x20;![](https://1627858133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJYHZlG6MmDYLIluSzCKk%2Fuploads%2FYmEFS6CEFKOfcwPWudIZ%2Fimage.png?alt=media\&token=e0efb23b-599d-438f-9a16-40f477167073)\


4. In this folder in windows explorer(or the file explorer for Mac or Linux) you should see a file named "Firebase\_Details", right click this file and click copy.

&#x20;![](https://1627858133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJYHZlG6MmDYLIluSzCKk%2Fuploads%2FgvRCu4O5slPaRe37qlhX%2Fimage.png?alt=media\&token=31c508dc-3fef-4024-9687-ca08ae202179)

5. Now go to your FirebaseJson folder you created in step 2 and paste it in there, you must paste it from windows explorer, not unreal engine since unreal engine does not recongize json files natively.
6. Now that the Firebase\_Details file exists in both the plugin and our project content directory we need to tell unreal engine to package it with our games.&#x20;
7. To package the json with our game, we need to open the project settings under edit-Project Settings ![](https://1627858133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJYHZlG6MmDYLIluSzCKk%2Fuploads%2FwFs4dU92Em1Bkus9olAi%2Fimage.png?alt=media\&token=404fd0a1-be49-4c32-98f4-8ace79a347be)
8.  Once there find "packaging" and open that window. you should see a white arrow if this window is already open.

    ![](https://1627858133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJYHZlG6MmDYLIluSzCKk%2Fuploads%2FFueWVkEAAUXli7ALCtnu%2Fimage.png?alt=media\&token=a84cc731-2520-4040-9731-8a96ac6c9e8c)
9. Now click show advanced drop down arrow.

<figure><img src="https://1627858133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJYHZlG6MmDYLIluSzCKk%2Fuploads%2FKutM3BTtYtjs8FDO82CB%2Fimage.png?alt=media&#x26;token=70483f7f-570d-4bc2-998b-11e943886915" alt=""><figcaption></figcaption></figure>

10. Now find the "Additional Non Asset Directories to Package" and add the Project Content folder for FirebaseJson to it using the 3 dots icon. Please ensure you are in your Active project folder as unreal does not always open the correct folder when you click the 3 dot icon.

    <figure><img src="https://1627858133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJYHZlG6MmDYLIluSzCKk%2Fuploads%2FQLfe5dwS1ae97wTB1xxk%2Fimage.png?alt=media&#x26;token=a4b86b12-9c9e-4d39-a336-8a3ff255e438" alt=""><figcaption></figcaption></figure>


11. That is it for installing the plugin, now all you need to do is register an account which will be discussed in the next section. This uses cloud backend so an account is required, you will not be spammed with emails or have your data shared, it's solely for backend code.
