How to Use OpenAI and Google Gemini in Kivo Search
Integrating AI-powered search capabilities into your WooCommerce store can significantly improve customer experience and boost sales. Kivo Search supports AI-based search functionality using OpenAI and Google Gemini. This guide will walk you through the process of obtaining API keys for both platforms and integrating them into your plugin.
Step 1: Obtain an OpenAI API Key
To use OpenAI in your plugin, you need an API key. Follow these steps to get one:
1. Sign Up for OpenAI
- Go to OpenAI’s website and sign up for an account.
- If you already have an account, log in.
2. Access the API Section
- Navigate to the OpenAI API Platform.
- Click on ‘API Keys’ in the dashboard.
3. Generate an API Key
- Click ‘Create a new secret key’.
- Copy and securely store the generated API key.
4. Set Up Billing
- OpenAI offers a free trial, but you might need to add a payment method for extended usage.
- Navigate to ‘Billing’ under your account settings to add a payment method.
Step 2: Obtain a Google Gemini API Key
Google Gemini provides advanced AI capabilities for natural language understanding. Follow these steps to obtain your API key:
1. Sign Up for Google Cloud
- Go to Google Cloud Console.
- Sign in with your Google account.
- If you haven’t already, set up a Google Cloud project.
2. Enable the Gemini API
- Navigate to the ‘APIs & Services’ section.
- Search for ‘Gemini API’ and click ‘Enable’.
3. Create API Credentials
- Go to ‘Credentials’ in the Google Cloud Console.
- Click ‘Create Credentials’ and select ‘API Key’.
- Copy and store the API key securely.
4. Set Up Billing (If Required)
- Some features may require a billing setup. Navigate to ‘Billing’ in the Google Cloud Console to configure your payment settings.
Step 3: Integrate API Keys into Kivo Search
Once you have obtained the API keys, follow these steps to integrate them into your plugin:
- Access the Kivo Search Settings
- Go to your WordPress Admin Dashboard.
- Navigate to ‘Kivo Search’ → ‘Settings’.
- Enter Your API Keys
- Paste your OpenAI and Google Gemini API keys in the respective fields.
- Save the settings.
- Test AI Search
- Try a few search queries in your store.
- If results are not appearing as expected, check the API status and key validity.
Conclusion
By integrating OpenAI and Google Gemini, Kivo Search enhances the search experience, ensuring customers find the right products effortlessly. This not only improves user engagement but also increases conversions and sales. Follow the steps above to set up AI search and take your WooCommerce store to the next level!