How to Connect Your OpenAI Account to Commnia

How to Generate AI Token Key

Commnia allows you to link your OpenAI account to assist with tasks such as completing RFIs, Defects, and other project records. This guide walks you through creating an OpenAI account, generating an API key, and securely using it for integration purposes.

1. Create an OpenAI account


2. Go to API Keys

3. Generate a new key


  • Click “Create new secret key” or similar.
  • A token (string of letters/numbers) will be shown — copy it now (you won’t see it again).
  • Give your key a name and click on Generate Secret Key

4. Store it securely

  • Treat it like a password — don’t share publicly or commit to code repos.


5. Use it in your code

Example (Python):

import openai
openai.api_key = "YOUR_KEY_HERE"

Or with environment variable:

export OPENAI_API_KEY="YOUR_KEY_HERE"
 

    • Related Articles

    • How to generate a Commnia API key

      To generate an API for integration with Commnia, please follow the below steps: 1. Log in to the required Commnia server You must log in as the system administrator and have access to all projects to generate a Commnia API key.  2. Navigate to the ...
    • How to Manage Workflow Categories - Create and Delete | Desktop

      In Commnia, managing your Document Workflow Categories is easily accessible through the Control Panel. These workflows are crucial for ensuring documents are reviewed and approved by designated owners and reviewers before being officially added to ...
    • Commnia Sign On, Pre-start and Inductions Workflow

      With Commnia, you have several convenient options for managing your site visitors and maintaining compliance. Use our all-in-one module for QR Sign-On, Pre-start Notices, and Inductions with ease. To find these options navigate to the Main Menu and ...
    • Workflow and Category Management FAQ

      Q&A: Categories and Workflow Management Can we create categories? If so, where? Yes, categories can be created in two ways: Option 1: While creating a new workflow Click on the plus (+) button. Enter the category name. Click on "Save." Option 2: Via ...
    • Document Management Roll Out

      This article provides a quick summary to links and information on document control, tendering and communication to Commnia. The following links below will be referenced from the Commnia Knowledge Base. Getting Started How to Log In and Select Your ...