In order to use the AI chatbots in BotCommerce, you need to input your OpenAI API credentials into the app. Do not worry, it is easier than it sounds. Let’s go through the steps to achieve it.
Obtaining your OpenAI API Key
Go to the OpenAI website. Scroll down to the footer and click on API login. Create an account or sign up to an existing one. If you have a ChatGPT account, you can use the same credentials.
Open the API area. After you enter your personal information, the following screen will appear asking where do you wish to go. Select API.
Open your dashboard. Click on the Dashboard button at the top right corner of the screen.
Generate an API Key. Click on the API Keys option at the left sidebar. Then, click on the Create New Secret Key button.
Configure your API Key. Give it a name to identify it. In permissions, select “All”. Optionally, link it to a project and click on ‘Create secret key’. Copy the provided code.
Input your OpenAI API keys into the app
Login into BotCommerce. Open the left sidebar and scroll down. Select the ‘Integrations’ option.
Paste the key and select a model. Go to the OpenAI Integration. Paste the API key you generated in the corresponding field. Then, select a Prompt Model. Different models have different input limits (affecting the maximum length allowed for the AI training text), as well as different language comprehension abilities and costs. Check this article and the OpenAI documentation to learn more.
💡PRO TIP: If, despite following this tutorial, the AI chatbot does not work, add a credit card and funds to your OpenAI account. Typically, OpenAI requires you to make a $10 payment for credits. Click here to learn how.