# Creating a simple LLM app

To create your first LLM app, you'll need 3 things:  credential, one LLM Node and one LLM Chain node.

For the sake of this example, we'll make an app that uses ChatGPT.&#x20;

### 1. Create New Chatbot

Open the main menu and click on "Chatbots" -> "Create new chatbot"

<figure><img src="https://4201130305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw5WCzT6qKpsr5PibWgDP%2Fuploads%2FpejsLbXGyrazHnllZZQ8%2FScreenshot%202024-07-20%20at%2012.35.33.png?alt=media&#x26;token=8022dace-e08d-4497-8808-779d4f0426ad" alt=""><figcaption><p>Create new chatbot</p></figcaption></figure>

### 2. Give it a name

<figure><img src="https://4201130305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw5WCzT6qKpsr5PibWgDP%2Fuploads%2Fn92hfDOomw0GBVlalyfl%2Fimage.png?alt=media&#x26;token=d35133a4-fdab-4556-b5e9-60bff6a69897" alt=""><figcaption><p>Give a name</p></figcaption></figure>

### 3. Add a new node "ChatOpenAI"

Click on the green floating button to add a new node, and search for "ChatOpenAI". Then, drag and drop it on the editor pane:

<figure><img src="https://4201130305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw5WCzT6qKpsr5PibWgDP%2Fuploads%2F2km3C09ooNW6VXFFkDsq%2Fimage.png?alt=media&#x26;token=76aa3ae3-d0dd-4e4f-850e-93340004970f" alt=""><figcaption><p>Add ChatOpenAI Node</p></figcaption></figure>

### 4. Set the credentials

Click on "Change Parameters" button. It'll open the node's details where you will search for the [credentials you've created](https://docs.gaiahub.ai/getting-started/adding-credentials) earlier. Then **Save Node Parameters**

<figure><img src="https://4201130305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw5WCzT6qKpsr5PibWgDP%2Fuploads%2Fd42C1MKoRDOVsZqA4Hbj%2Fimage.png?alt=media&#x26;token=d48e30c8-5b1c-4225-b537-a32e05e15cd4" alt=""><figcaption><p>Here you can also configure other parameters if you want</p></figcaption></figure>

### 5. Add a "LLM Chain" node

Click on the green floating button to add a new node, and search for "LLM Chain". Then, drag and drop it on the editor pane:

<figure><img src="https://4201130305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw5WCzT6qKpsr5PibWgDP%2Fuploads%2FQW1WNvNBWR3UmMytmYfO%2Fimage.png?alt=media&#x26;token=91dacdcd-f3b9-49f2-ac08-51a02a6623b0" alt=""><figcaption><p>Add LLM Chain node</p></figcaption></figure>

### 6. Connect the dots

<figure><img src="https://4201130305-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw5WCzT6qKpsr5PibWgDP%2Fuploads%2FWRGrCCk2FCNURxR1jH5f%2FScreenRecording2024-07-20at12.45.44-ezgif.com-video-to-gif-converter.gif?alt=media&#x26;token=09aad415-740c-4bae-a557-999435b72b6b" alt=""><figcaption></figcaption></figure>
