Websearch allows you to connect to a search engine, and access to its data. This is usefully to access latest content, or information that require sources. Currently, GasbyAI support Google Programmable Search Engine.
After setting up, you can trigger websearch by begin your message with "search". For example, "search latest new on OpenAI"
To enable websearch with Google Programmable Search Engine, you'll need the Engine ID, and its Custom search API Key. Please login into your Google account, then complete the following steps
After completed 2 steps above, you should have your Engine ID and Custome Search API Key. Now:
Now, you have completed setting up websearch feature
When enabled, you can trigger websearch by begin your message with "search"/"google", or end your message with "on the web"/"on google". The following examples will trigger websearch
When you sent a message that trigger websearch, it will send your search phrase to the search engine (ie "latest new about openai" as the example above), then retrieves and crawl content from top results, and form the answer.
Because the answer is formed based on the top results, the usage token will be consume as many as the content + answer. You can specify how many sites to consider on the websearch settings (Max results)