+

Ai Configuration (6)

+

Woocommerce Integration (5)

+

Chatbot Implementation (3)

+

Customization (2)

+

Conversation Management (2)

+

Chatbot Menu Settings (4)

+

Security And Privacy (4)

API Key Configuration

Reading Time: 2 minutes

Overview

WPiko Chatbot uses OpenAI’s API to power its intelligent chatbot features. You’ll need to configure your OpenAI API key to enable the chatbot functionality.

Getting an OpenAI API Key

  • Visit OpenAI’s platform
  • Sign in or create an OpenAI account
  • Navigate to the API section
  • Click “Create new secret key”
  • Copy your API key immediately (you won’t be able to see it again)
  • Configuring the API Key in WPiko Chatbot

    Steps:

  • Log in to your WordPress dashboard
  • Navigate to WPiko Chatbot settings
  • Go to the “API Key” section
  • Enter your OpenAI API key in the designated field
  • Click “Save API Key”
  • The plugin will automatically validate your API key upon saving. If successful, you’ll see a confirmation message.

    Security Features

  • The API key is encrypted before being stored in the database
  • Only the last 5 digits of the API key are visible after saving
  • The key can be deleted and replaced at any time
  • Managing Your API Key

    Viewing Your API Key Status

  • A masked version of your API key will be displayed for verification
  • The status of your API key will be shown (valid/invalid)
  • Deleting Your API Key

  • Navigate to the API Key section
  • Click the “Delete API Key” button
  • Confirm the deletion
  • Updating Your API Key

  • Delete the existing API key
  • Enter the new API key
  • Save the changes
  • Troubleshooting

    Invalid API Key

    If you receive an “Invalid API key” error:

  • Verify you’ve copied the entire API key correctly
  • Ensure your OpenAI account is active and has available credits
  • Check if the API key has been revoked in your OpenAI dashboard
  • Connection Issues

    If the plugin can’t connect to OpenAI:

  • Check your internet connection
  • Verify your server’s firewall settings
  • Ensure your server can make outbound HTTPS requests
  • Best Practices

  • Never share your API key
  • Regularly monitor your OpenAI usage
  • Keep your API key secure and rotate it periodically
  • Store a backup of your API key in a secure location