How to connect OpenAI and integrate it with SendPulse services
GPT (Generative Pre-trained Transformer) is an AI model developed by the OpenAI company. It is a large-scale neural network you can use to generate text and code.
The primary models can perform different tasks: analyze text materials of various difficulty levels, provide answers to questions, optimize text for SEO and SMM tasks, categorize text in tables, help with brainstorming, edit and translate text, work with code and mathematical tasks, and support conversations on any or specific topics.
To set up GPT and perform your business tasks using a chatbot, you need to choose a model and prompts — for example, you can add reply sentiments, limit your list of questions or topics, and add additional information about your business or an example of what you want to receive in response.
In this article, we will talk about how to create an OpenAI account and add an AI model to your SendPulse account for use in chatbots, sites, and mailing services.
Create an account
Go to OpenAI, and create an account. Click Sign up, enter your email address, and click Continue, or continue with your Google or Microsoft account.
If you specified your email address, enter a password in the next window. You will receive a confirmation email in your inbox. Click Verify in the email, and enter your name and the name of your organization.
Enter your phone number, and a confirmation code will be sent to it via SMS. Enter the code, and log in to your account.
Before choosing a phone number to use, check OpenAI’s list of supported countries and territories.
During the first registration, OpenAI gives $18 dollars for 3 months. This money will be withdrawn when you use tokens. Read more: What are tokens and how to count them and about OpenAI’s pricing plans in the Pricing section.
To see how many tokens you have left, log in to your OpenAI account, and go to the Usage tab.
To check your token usage history, scroll down to the Daily usage breakdown (UTC) section. You can see the whole history or filter it by specific date or team member.
Copy the API key
Once you have logged in to your account, click the settings icon in the upper right corner.
Go to the Your profile section in the left panel > the User API keys tab.
You can create multiple API keys for projects in your OpenAI account. It helps manage your team and enhance data security. An account owner can generate keys in all projects. You do not need to create any separate projects — all data will be saved in the Default project automatically. Read more about project creation options in the OpenAI documentation.
Click View project secret Key > Create new secret key.
In the modal window, select an owner, and configure your key parameters.
You |
This API key is tied to your user and can make requests to your selected project. If you leave the project, this key will be disabled. Enter your key name, and select a project and permissions. We recommend giving full access to your project. Read more in the OpenAI documentation. |
Service account |
A new bot member (service account) will be added to your project, and an API key will be created. You can implement this feature if you use multiple OpenAI tools. Enter your service ID, and select a project. |
Click Create secret key, and copy it in the next modal window.
You need to save a key on your device because you cannot copy the same key on this page a second time. If you lose the key, you will need to generate a new one.
Insert the key into SendPulse
Connecting the model in the account settings enables it at the account level for the Websites and Chatbots services. If you want to use a separate account for bots, you can connect it separately in Bot Integrations and in the AI Step element.
Go to your account settings > the API tab. In the OpenAI & ChatGPT section, click Add OpenAI token.
Enter your key, and click Save.
After connecting your account, you can use models to generate text in websites, email campaigns, and chatbot responses.
Last Updated: 28.02.2025
or