Connect Serper to your Wiro AI agent
Google search results through Serper: organic results, answer box and related questions.
I'm writing a post on sourdough starters for the Rye & Ember blog. What do people actually search for around it?
Autocomplete for sourdough starter suggests recipe, not rising, smells like acetone, discard recipes and feeding schedule, in that order. The search results add these related questions:
- How long does a sourdough starter take to be ready?
- Why is my starter not bubbling?
- Can you use a starter straight from the fridge?
A post on why your starter is not rising answers the two biggest worries, with feeding as its own section. That took 2 Serper credits.
Serper actions
Your agent picks the right ones for each request
Overview
What Serper does for your agent
Searches Google with your own Serper API key. The agent reads web, News, Images, Videos, Shopping, Scholar and Patents results, Maps listings with their Google reviews, autocomplete suggestions and Google Lens matches for an image link, set to the country and language you choose and, for most search types, a city. Each search spends credits from your Serper balance: one for most kinds, two for Shopping and three for Maps or Lens.
Use cases
What your Wiro agent can do with Serper
- 01
Weekly keyword positions as seen from your city
Give the agent your 10 main keywords and your domain. Every Monday a Scheduled Task searches each one on Google from the city you sell in, notes where your site appears in the first 10 results and which pages sit above it, and posts the table in Chat. That is 10 Serper credits a week.
- 02
A morning news brief on your brand and your market
Each morning a Scheduled Task searches Google News for your brand, your product names and a few industry terms from the past day, and posts the headlines with their source, date and link in Chat, so you see coverage and mentions before the day starts.
- 03
A local prospect list from Google Maps
Ask for dental clinics in Austin rated 4.5 or higher, and the agent searches Google Maps and returns each place's address, rating, review count, opening hours, phone number and website, laid out as a list your sales team can work through.
- 04
Read what customers say in Google reviews
Name your locations, or a rival's, and the agent finds each place, reads its recent Google reviews with ratings and owner replies, groups the complaints by the topics Google shows, and writes a short summary per location. Run it as a weekly Scheduled Task to catch new issues early.
- 05
Plan an article from autocomplete and related questions
Before writing a blog post or an FAQ page, ask the agent to collect Google's autocomplete suggestions and the related questions and searches for your topic. It turns them into an outline built on what people type, with the questions as headings.
- 06
Find where your product photos appear online
Give the agent the public link to a product photo and it runs a Google Lens search for pages and shops that show the same image or one like it, with their titles, sources, links and prices where Google has them. Use it to spot resellers or copies of your listings.
How it works
How Serper works with Wiro
- 01
Connect Serper
Deploy an agent, open its Connectors tab, choose Serper and paste what the Connect dialog asks for.
- 02
Choose what each action may do
Set each Serper action to Allow, Ask or Block, in Chat and in Scheduled Tasks. By default, read-only actions run, and the rest ask first in Chat.
- 03
Ask in Chat or schedule it
Ask your agent for Serper work in Chat, or put it on a Scheduled Task that runs on its own.
- Where it runsInside your agent. Its requests go straight from the agent to Serper.
- Where its data goes
google.serper.devapi.serper.dev - How it signs inPaste a key. It is stored encrypted and never shown again.
What it can do
Actions your Wiro agent can take in Serper
By default, read-only actions run, and the rest ask first in Chat and run in Scheduled Tasks. Each agent can set any action to Allow, Ask or Block.
Read-only 13 actions
Looks things up in Serper and changes nothing.
| Action | What it does | Chat | Scheduled Tasks |
|---|---|---|---|
| Search the web (Google results via Serper) | Searches Google through Serper and returns the organic results (title, link, snippet, position, date), plus the answer box, knowledge graph, related questions and related searches when Google shows them. | Allow | Allow |
| Search the news (Google News via Serper) | Searches Google News through Serper: articles with title, link, snippet, source, date and image link, newest stories first. | Allow | Allow |
| Search images (Google Images via Serper) | Searches Google Images through Serper: each image with its URL, size, thumbnail, title and the page it is on, up to 100 a page. | Allow | Allow |
| Search videos (Google Videos via Serper) | Searches Google Videos through Serper: each video with title, link, snippet, duration, source, channel, date and thumbnail. | Allow | Allow |
| Search local places (Google Places via Serper) | Searches Google's local results through Serper, such as "coffee shops in Austin": each place with address, coordinates, rating and review count, category, phone. | Allow | Allow |
| Search Google Maps via Serper | Searches Google Maps through Serper: places with address, coordinates, rating and review count, price level, type, opening hours, phone, website. | Allow | Allow |
| Read the Google reviews of a place via Serper | The Google reviews of one place, found by the cid. | Allow | Allow |
| Search products (Google Shopping via Serper) | Searches Google Shopping through Serper: products with price, shop, delivery, rating and review count, offers and link, up to 40 a page. | Allow | Allow |
| Search papers (Google Scholar via Serper) | Searches Google Scholar through Serper: papers with title, link, publication, snippet, year, citation count and PDF link. | Allow | Allow |
| Search patents (Google Patents via Serper) | Searches Google Patents through Serper: patents with title, snippet, publication number, priority, filing, grant and publication dates, inventor, assignee and PDF link. | Allow | Allow |
| Get Google autocomplete suggestions via Serper | The searches Google suggests as someone types a query, in Google's order: what people look for around a topic, for keyword and content research. | Allow | Allow |
| Find an image on the web (Google Lens via Serper) | Searches the web for an image by its public URL, as Google Lens does: pages and products that show it or look like it, with title, source, link, price and stock when Google has them. | Allow | Allow |
| Find Serper location names | Looks up the place names the location option of the searches takes. | Allow | Allow |
How to connect
Connect Serper to Wiro
Open the agent's Connectors tab, choose Serper and paste what it asks for. Values are stored encrypted and never shown again.
What the Connect dialog asks for
| Field | About |
|---|---|
| Serper API KeyRequired |
|
Troubleshooting
Troubleshooting Serper
What to check when Serper stops working for your agent.
- An invalid or expired key If Serper refuses the key, for example after it was deleted or expired, the agent's Serper actions fail. Create a new key in Serper, then open the agent's Connectors tab, choose Serper and paste it in place of the old one.
- Limits set by Serper Serper limits how much an account can do, such as how many requests it takes in a minute. An action over a limit fails until the limit resets: wait and ask again, or check your Serper plan.
For developers
Connect Serper from your own product
Every call is a POST to the Wiro API with your project's API key. On a sign-in, your customers see your own app's name.
- 01
Read the connector
Detail answers without a session: what the connector needs and the tools it gives an agent.
POST /AgentConnector/Detail { "slug": "serper" }Response { "result": true, "errors": [], "agentconnectors": [ { "slug": "serper", "title": "Serper", "category": "data", "authtype": "fields", "credentialfields": [ { "name": "apikey", "label": "Serper API Key", "required": true, "secret": true, "format": "password" } ], "tools": [ { "name": "web_search", "readonly": true }, { "name": "news_search", "readonly": true } ] } ] } - 02
Connect with the values
Send what the person typed in your form. A value you leave out keeps what the connection holds; an empty one clears it.
POST /UserAgent/ConnectorConnect { "useragentguid": "YOUR_AGENT_GUID", "slug": "serper", "values": { "apikey": "YOUR_SECRET" } }Response { "result": true, "errors": [], "status": "connected", "applied": 1, "restart": "scheduled" } - 03
Read the status
connected, pending (a sign-in not finished), reauth (sign in again) or error. Values and tokens never come back.
POST /UserAgent/ConnectorList { "useragentguid": "YOUR_AGENT_GUID" }Response { "result": true, "errors": [], "useragentconnectors": [ { "slug": "serper", "title": "Serper", "authtype": "fields", "status": "connected", "accounts": {}, "savedvariables": [ "apikey" ], "lasterror": null } ] } - 04
Disconnect
Revokes a sign-in where the vendor allows it, deletes what the connection holds and removes the connector from the running agent.
POST /UserAgent/ConnectorDisconnect { "useragentguid": "YOUR_AGENT_GUID", "slug": "serper" }Response { "result": true, "errors": [], "removed": true, "revoked": false, "restart": "scheduled" }
Questions
Serper and Wiro FAQ
What can a Serper AI agent search on Google?
Google web results, News, Images, Videos, Places, Maps with reviews, Shopping, Scholar and Patents, plus autocomplete suggestions and Google Lens searches by image link. Web results include position, title, link, snippet and date, and the answer box, knowledge graph, related questions and related searches when Google shows them. Searches take a country and a language, and web, news, image, video, places, shopping and scholar searches also take a city or region to search from. Web, news, image and video results can be limited to the past hour, day, week, month or year.
How do I connect Serper to an AI agent?
Sign up on Serper's website, open the dashboard and copy the key from the API Key section. Then choose Serper on the agent's Connectors tab and paste it, or ask the agent in Chat to add Serper. There is no Google Cloud project, search engine ID or key restriction to set up: the API key is all it needs.
How many Serper credits does each search use?
Web, News, Videos, Places, Scholar, Patents, review and autocomplete searches use one credit each. An image search uses one, or two when you ask for more than 10 images. Shopping uses two, and Maps and Lens use three each. Looking up the exact name of a location is free, and each further page of results counts as a new search.
Can the agent search Google as if it were in a specific city?
Yes. Name a city, region or country and the agent first looks up the location name Serper expects, which uses no credits, then runs the search from there with the country and language you want. A Scheduled Task can keep the same settings, which is how you automate Serper rank checks and local searches for each market you serve.
Does the agent need my approval to run Serper searches?
No. Every Serper action is a read, so each one runs without asking in Chat and in Scheduled Tasks. To keep an eye on credits, set the ones that cost more, such as Maps or Lens, to Ask or Block. Each action has its own setting for Chat and another for Scheduled Tasks.
Where is my Serper API key kept?
It is saved encrypted and never passed to the AI model. The key itself belongs to your Serper dashboard: change or remove it there, or ask Serper support to rotate it, then disconnect Serper on the agent's Connectors tab or paste the new key.
What does the Serper MCP connector cost?
Nothing on top of your agent plan, and it runs inside your agent, so there is no server to host. Searches use your own Serper credits: new Serper accounts start with 2,500 free searches and need no credit card, and after that you buy credits from Serper.
Access
Revoke Serper access
The key lives on your serper.dev dashboard: change or remove it there, or ask Serper support to rotate it. Then disconnect it here.
Related connectors
More data connectors for your Wiro agent
Put Serper to work with Wiro
Deploy an agent and connect Serper from its Connectors tab. Every agent plan includes it: Starter $5, Pro $30 and Max $100 a month.