For AI agents: docs.octen.ai/integrations/gemini-tool-calling.md
Gemini decides when to search, your code runs the query on Octen Web Search, and Gemini answers from the results.Get API Key
Create a key from the API Platform.
Web Search API Reference
Full request/response schema.
Install
Quick Start
Set your Octen and Gemini API keys:tools on every request: previous_interaction_id carries the conversation history, but tool declarations are not stored with the interaction.
Add an Extract Tool
Let Gemini read a full page from a URL it finds, with Extract. Add this code to the Quick Start program, right afterfunctions = {"web_search": web_search}:
Add More Search Tools
Let Gemini also use Web Search Premier, Broad Search, News Search, Business Search, Pulse Search, Place Search, Image Search, and Design Search. Add this code to the Quick Start program, right afterfunctions = {"web_search": web_search}. Each tool takes a query and returns the response data as JSON, with the same fields as the API reference:
Last modified on November 24, 2026