OpenAI Integration Setup

Connect an OpenAI API key to LeenOps for module-specific AI features, then manage validation, usage, costs, disconnection, and errors.

Connect your OpenAI account for module-specific AI features beyond the workspace AI configuration.

What It Does

The OpenAI integration enables:

  • Module-specific AI — Custom AI features in individual modules
  • Separate API keys — Different key from workspace AI
  • Feature isolation — Specific use cases only

This is different from the workspace AI Configuration in Settings. This integration is for module-specific use cases.

Connecting OpenAI

Step 1: Get API Key

From OpenAI:

  1. Go to OpenAI API keys
  2. Sign in to your account
  3. Go to API Keys
  4. Create new secret key
  5. Copy the key (starts with sk-)

Step 2: Connect in LeenOps

  1. Go to Settings > Connected Accounts
  2. Click Connect OpenAI
  3. Paste your API key
  4. Click Validate
  5. System verifies key
  6. Save connection

Use Cases

Recruiting Enhancement

  • Advanced resume parsing
  • Custom interview questions
  • Enhanced candidate summaries
  • Cultural fit analysis

Content Generation

  • Marketing copy generation
  • Email template suggestions
  • Knowledge Base article drafts
  • Documentation assistance

Data Analysis

  • Custom report insights
  • Anomaly detection
  • Trend analysis
  • Predictive modeling

API Key Management

Rate Limits

OpenAI applies request and token limits by model and account usage tier. These limits change over time, so check the current limit shown for your project and model instead of relying on a static table. See the OpenAI model catalog for current model details.

If a request returns a rate-limit error, wait before retrying and use exponential backoff for automated requests. Persistent errors can mean the project has reached a request, token, or spending limit.

Monitor usage in OpenAI dashboard. Set up billing alerts to avoid interruptions.

Cost Management

Control costs:

  • Set usage limits
  • Monitor token consumption
  • Use appropriate models
  • Cache results when possible

Model Selection

Available models depend on your OpenAI project and can change as models are released or retired. Select from the models exposed by the LeenOps connection, then test output quality, latency, and cost with your actual workload. Consult the current OpenAI model guidance before choosing a model for new work.

Disconnecting

To remove:

  1. Go to Settings > Connected Accounts
  2. Find OpenAI
  3. Click Disconnect
  4. Confirm

Disconnecting stops module-specific AI features. Workspace AI continues working.

Troubleshooting

"Invalid API Key"

  • Check key format (sk-)
  • Verify key hasn't been revoked
  • Ensure billing is set up
  • Check for extra spaces

Rate Limit Errors

  • You've hit OpenAI limits
  • Upgrade OpenAI plan
  • Implement request throttling
  • Wait and retry

High Costs

  • Review token usage
  • Switch to cheaper model
  • Reduce request frequency
  • Implement caching

Next Steps