# IBM Watsonx.AI Credential Setup

## Step 1 - IBM Access:

* Log into IBM Cloud: <https://cloud.ibm.com/>
* Navigate to the Watsonx.AI interface: <https://cloud.ibm.com/watsonx/overview>

<figure><img src="https://662370747-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3VoWwSsyrEg0DEvIIjv9%2Fuploads%2FeWYNKilPy4DfehEnFoXt%2Fimage.png?alt=media&#x26;token=07d8c9ed-1b44-4ee8-ab2e-a19c3cf2e185" alt="" width="354"><figcaption></figcaption></figure>

* Click Getting Started to create an environment, or "Launch" if one exists already

<figure><img src="https://662370747-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3VoWwSsyrEg0DEvIIjv9%2Fuploads%2FP0FCFgA5jPCCIffSG0H7%2Fimage.png?alt=media&#x26;token=be119569-4614-46b4-8949-328ba30763d1" alt=""><figcaption></figcaption></figure>

## Getting your Watsonx.AI Project ID

* First, we must retrieve your PROJECT ID. Click on the navigation and go to 'View all Projects'

<figure><img src="https://662370747-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3VoWwSsyrEg0DEvIIjv9%2Fuploads%2FYMvAbzwfBJDMUyumOOBE%2Fimage.png?alt=media&#x26;token=5f7a16b5-fe4d-4aaf-9d9d-e1f1a9702813" alt="" width="383"><figcaption></figcaption></figure>

* Create and or Select your Project that you will be working out of. A project should be considered a workload or outcome specific object.

  * Click on the "Manage" tab
  * :exclamation::exclamation:WRITE DOWN the Project ID! :exclamation::exclamation: We will need this later.

  <figure><img src="https://662370747-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3VoWwSsyrEg0DEvIIjv9%2Fuploads%2Fy4qGyXy6SiNCDdncF70x%2Fimage.png?alt=media&#x26;token=29338ae3-117b-4a23-b08a-50f2b53bfb5e" alt=""><figcaption></figcaption></figure>

## Getting your IBM Watsonx.ai API key

* Now we need to get your API KeyOpen the navigation menu in the top left corner and process to Access (IAM)

<figure><img src="https://662370747-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3VoWwSsyrEg0DEvIIjv9%2Fuploads%2F6BY48QIiyorevWyK1FZM%2Fimage.png?alt=media&#x26;token=4cbc416e-3fa6-4580-bfc4-bc3b440cc763" alt="" width="311"><figcaption></figcaption></figure>

* Once on the IAM Page, within the navigation click on API Keys

<figure><img src="https://662370747-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3VoWwSsyrEg0DEvIIjv9%2Fuploads%2F76L3c6W8YEKAlBKUwD0M%2Fimage.png?alt=media&#x26;token=93aa14d3-de97-4478-b8e9-afba8587593d" alt="" width="386"><figcaption></figcaption></figure>

* Click on 'Create' to generate an API Key

<figure><img src="https://662370747-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3VoWwSsyrEg0DEvIIjv9%2Fuploads%2FiiGnPMBMKnraLwKs7nPG%2Fimage.png?alt=media&#x26;token=09c214fa-aea0-4722-816d-ec0553cb6f45" alt=""><figcaption></figcaption></figure>

* Configure your key, the Session Creation option can be left as "No"

<figure><img src="https://662370747-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3VoWwSsyrEg0DEvIIjv9%2Fuploads%2FtXMeZpFdAHZFLQ9QHlEp%2Fimage.png?alt=media&#x26;token=ecdc9f84-4f5a-43c2-a36f-bc47668cebbf" alt="" width="563"><figcaption></figcaption></figure>

* Copy your API key and proceed to Tailwinds!

<figure><img src="https://662370747-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3VoWwSsyrEg0DEvIIjv9%2Fuploads%2FWvgN74Ig1xxFP6k5dYmg%2Fimage.png?alt=media&#x26;token=d03b7698-460e-43c3-94a4-61d553b0d932" alt=""><figcaption></figcaption></figure>

## Step 2 - Tailwinds Setup:

* Within Tailwinds, add a new Credential for IBM Watsonx:

<figure><img src="https://662370747-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3VoWwSsyrEg0DEvIIjv9%2Fuploads%2FJWEalaDUSsZuG1KJlY9F%2Fimage.png?alt=media&#x26;token=375716af-d570-4ae9-896c-0836911aa1c5" alt=""><figcaption></figcaption></figure>

* Update the fields with the Project ID and API Key you retrieved in Step 1.

<figure><img src="https://662370747-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3VoWwSsyrEg0DEvIIjv9%2Fuploads%2Fg5bKDGdeDH7MKhnJRgfE%2Fimage.png?alt=media&#x26;token=51928399-9e62-40da-913d-84539c3298ad" alt="" width="470"><figcaption></figcaption></figure>

## Step 3 - Using Watsonx.AI in Tailwinds:

* Once credentials are set, you can now use Watsonx.AI from within Tailwinds!
  * Within the Components, find and use the ChatIBMWatsonx node and assign your credentials to it.

<figure><img src="https://662370747-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3VoWwSsyrEg0DEvIIjv9%2Fuploads%2FBrqXCurtx0uRdvoB9xhd%2Fimage.png?alt=media&#x26;token=b24534a3-5076-486d-8048-6828aaaa040d" alt=""><figcaption></figcaption></figure>
