# IBM Watsonx

## Prerequisite

1. Register an account on [IBM Watsonx](https://www.ibm.com/watsonx)
2. Create a new project:

<figure><img src="https://823733684-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F00tYLwhz5RyR7fJEhrWy%2Fuploads%2Fgit-blob-5fe767ad2a6d7f6267050ec99a1a2754101eb441%2Fimage%20(238).png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://823733684-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F00tYLwhz5RyR7fJEhrWy%2Fuploads%2Fgit-blob-d0c08c85d3b69a11efe46da8dbd4190472953c79%2Fimage%20(239).png?alt=media" alt=""><figcaption></figcaption></figure>

3. After project has been created, back to the main dashboard, and click **Explore foundation models**:

<figure><img src="https://823733684-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F00tYLwhz5RyR7fJEhrWy%2Fuploads%2Fgit-blob-f2e87855f78a4162b6dd9a152fd09e95d9584a6a%2Fimage%20(240).png?alt=media" alt=""><figcaption></figcaption></figure>

4. Choose the model you would like to use and open in Prompt Lab:

<figure><img src="https://823733684-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F00tYLwhz5RyR7fJEhrWy%2Fuploads%2Fgit-blob-420c6804daab03d16bdff29e8dd41ca2d5e6b1eb%2Fimage%20(241).png?alt=media" alt=""><figcaption></figcaption></figure>

5. From the top right corner, click on View Code:

<figure><img src="https://823733684-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F00tYLwhz5RyR7fJEhrWy%2Fuploads%2Fgit-blob-f055ff3025287f2673cce26ff2fe4c6ded7ab25c%2Fimage%20(242).png?alt=media" alt=""><figcaption></figcaption></figure>

6. Take note on the `model_id` and `version` parameter. In this case, it is `ibm/granite-3-8b-instruct,` and the version is `2023-05-29`.
7. Click the navigation bar from the left side, and click Developer access

<figure><img src="https://823733684-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F00tYLwhz5RyR7fJEhrWy%2Fuploads%2Fgit-blob-fea1ce7b3bcfb12d30c1ab43949fa34b70bc6458%2Fimage%20(243).png?alt=media" alt="" width="308"><figcaption></figcaption></figure>

8. Take note on the `watsonx.ai URL`, `Project ID` and create a new API key from IBM Cloud Console.
9. By now, you should have the following information:
   * Watsonx.ai URL
   * Project ID
   * API Key
   * Model's version
   * Model's ID

## Setup

1. **Chat Models** > drag **ChatIBMWatsonx** node

<figure><img src="https://823733684-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F00tYLwhz5RyR7fJEhrWy%2Fuploads%2Fgit-blob-b1e7497da8abc40939b2352983c222b0aa0d2c26%2Fimage%20(244).png?alt=media" alt="" width="306"><figcaption></figcaption></figure>

2. Fill in the Model with the Model ID earlier. Create New Credential and fill in all the details.

<figure><img src="https://823733684-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F00tYLwhz5RyR7fJEhrWy%2Fuploads%2Fgit-blob-bfbe657950d18bb56f784ce77177d6e0b2658058%2Fimage%20(245).png?alt=media" alt="" width="419"><figcaption></figcaption></figure>

2. Voila [🎉](https://emojipedia.org/party-popper/), you can now use **ChatIBMWatsonx node** in Flowise!

<figure><img src="https://823733684-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F00tYLwhz5RyR7fJEhrWy%2Fuploads%2Fgit-blob-6e3fefb433c7fc94319cf49acb3a013ac633478f%2Fimage%20(246).png?alt=media" alt=""><figcaption></figcaption></figure>
