OpenAI account connection
The connection allows you to use the API of your OpenAI account to process ChatRex messages. OpenAI costs and ChatRex write-off conditions are accounted for separately; check current values in the interfaces of both services.
ChatGPT does not replace API balance. To operate the key in the OpenAI account, access to the API and billing must be configured.
Creating an API key
- Open OpenAI API Keys page.
- Enter the right organization or project.
- Create a new secret key.
- Copy it immediately: the full value is not shown later.
- Save the key in a secure secret manager until the connection is complete.
OpenAI’s official documentation recommends keeping the API key in a secure location and not publishing it in client code or documents.
Connecting to ChatRex
- Open Integrations.
- Press Connect integration.
- In the Data Sources tab, select OpenAI or ChatGPT integration.
- Insert the API key in the field intended for it.
- Press Connect.
- Make sure the connection is active.
Verification
- Select the bot that should use the connection.
- Send a short message in Testing.
- Check the answer and no authorization error.
- Check the flow at ChatRex and OpenAI.
If an error occurs, check the selected OpenAI project, billing status, key rights and model availability.
Never insert an API key into a system prompt, messages, knowledge base files, tasks, or screenshots. If the key is unlocked, delete it in OpenAI, create a new one, and update the integration.