Certifications
Gen AI Advanced
Setup and Get started
Open AI

Setup Open AI

In this step you will setup the connections needed to Open AI to be able to build your chatbot.

In your package

For the OpenAI integration, you need the OpenAI package, install it in your package root:

yarn add openai

You can also skip installing this package and fetch from OpenAI REST Apis directly, but this package will make it easier to use the OpenAI api.

To access OpenAI API's

Create an OpenAI Account:

If you don't already have an account, go to the OpenAI website (opens in a new tab) and sign up for an account.

Log In:

Once you have an account, log in to the OpenAI platform.

Navigate to API Section:

Go to the API section or developer dashboard on the OpenAI website. This is where you can access your API key.

Choose a Plan:

Select a suitable plan based on your usage and needs. OpenAI often offers different plans with varying levels of access and pricing.

Provide Payment Information:

If necessary, you may need to provide payment information to subscribe to a paid plan. Some plans come with a free tier for limited usage.

Generate API Key:

Once you have selected a plan and provided the necessary information, you should be able to generate an API key. This key is essential for making requests to the OpenAI API.

Copy the API Key:

After generating the API key, copy it to your clipboard. It's a sensitive piece of information, so keep it secure.

Integrate API Key:

In steps further ahead in the path, you need to use the API key to authenticate your requests to the OpenAI API. You'll include it in the headers of your HTTP requests when interacting with the API. Please keep it safe until those steps and bare in mind that you should never store a key visible nor push the key to github. Use best practises to handle the key in a good way, this should never be shared to anyone.