This bot supports searching google for answers to your questions with assistance from GPT! To get started, you need to get a Google Custom Search API key, and a Google Custom Search Engine ID. You can then define these as follows in your .env
file:
GOOGLE_SEARCH_API_KEY="...."
GOOGLE_SEARCH_ENGINE_ID="...."
You first need to create a programmable search engine and get the search engine ID here.
Then you can get the API key, click the "Get a key" button on this page.
You can limit the max price that is charged for a single search request by setting MAX_SEARCH_PRICE
in your .env
file.
1. Go to the Programmable Search Engine docs to get a Search engine ID.
a. Click on "Control Panel" under "Defining a Programmable Engine in Control Panel"
b. Click to sign in(make a Google account if you do not have one):
After logging in, you will be redirected to the Control Panel to create a new search engine:
Fill in a name, select to "Search the entire web" and hit "Create":
5. Go to custom-search docs to get a Google search API key
Click "Get a Key":
a. Navigate to the Google Cloud API console here.
b. Click on 'Create Project':
c. Give it a name and create it:
d. Now, navigate to the API Library:
e. Search for the 'Cloud Vision API' and enable it:
You can follow this link to quickly jump to the page to enable the custom search API. You may need to first selet the project you created before: