Daily
Get daily content ideas from search trends in a sheet
Each morning five post ideas based on what people are searching and reading in your niche are added to your content sheet.
- Runs
- Daily
- Apps
- Google Sheets, SerpApi
- AI
- Yes, uses the built-in AI allowance
- Access
- Sheets write; SerpApi key
Send this to your assistant
Create a ClickRuntime automation: every morning, search Google News and Google Trends for my niche and add 5 post ideas to my Content Ideas sheet with the reason each one is timely.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A small coffee roaster runs a blog, a newsletter and an Instagram account with one part-time marketer. The hardest part of the job is not writing but deciding what to write about. Ideas dry up by Wednesday, and posts end up being about whatever the roaster happened to think of rather than what customers are curious about that week.
This automation fills the ideas column every morning. It checks Google News for your niche and Google Trends for rising related searches through SerpApi, and AI suggests five post ideas with a one-line reason each is timely. The marketer opens the sheet, picks the best ones, and starts writing.
What you get out of it
Never start from a blank page
Five fresh ideas each morning means there is always something to pick from. The hardest part of a content routine becomes the easiest.
Topics people are already searching for
Ideas come from rising searches and current news, not guesswork. Posts on topics with growing interest are more likely to be found and shared.
A record of ideas over time
Every idea is kept in the sheet with its date and reason. Good ones you skip today are still there to use next month.
Fits a small team's routine
One person can review five ideas in a couple of minutes. It suits teams without time for formal trend research.
How it works
What happens, step by step
Every morning, ClickRuntime searches Google News and Google Trends for the terms that describe your niche, through SerpApi.
It collects the latest headlines and the related searches that are rising.
AI suggests five post ideas from those results, each with a one-line reason it is timely, avoiding ideas it suggested recently.
The ideas are added as new rows in your Content Ideas sheet with today's date.
Before it runs live
- Connect your Google Sheets account and pick the spreadsheets it may use
- Connect SerpApi
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Run it at a different time, more or less often, or only on weekdays
- Change what the AI looks for, or how it writes the result
- Add another app, for example also send it to Slack
- Combine it with other Google Sheets and SerpApi steps into one automation
Under the hood
The code that runs this automation
from datetime import date
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, credentials, http, state, ai
SHEET_ID = "your-spreadsheet-id"
NICHE = "specialty coffee"
@on_trigger
def run(event):
key = credentials.secret("SERPAPI_API_KEY")
news = http.get("https://serpapi.com/search", params={"engine": "google_news", "q": NICHE, "api_key": key}).json().get("news_results", [])[:10]
trends = http.get("https://serpapi.com/search", params={"engine": "google_trends", "q": NICHE, "data_type": "RELATED_QUERIES", "api_key": key}).json()
rising = [q["query"] for q in trends.get("related_queries", {}).get("rising", [])[:10]]
recent = state.get("recent") or []
schema = {"type": "object", "properties": {"ideas": {"type": "array", "items": {"type": "object",
"properties": {"idea": {"type": "string"}, "why": {"type": "string"}}, "required": ["idea", "why"]}}}, "required": ["ideas"]}
prompt = f"Niche: {NICHE}\nHeadlines:\n" + "\n".join(n["title"] for n in news) + f"\nRising searches: {', '.join(rising)}\nAvoid: {'; '.join(recent)}\nSuggest 5 post ideas."
ideas = ai.generate(prompt, json_schema=schema, max_output_tokens=500).json["ideas"][:5]
sheets = build("sheets", "v4", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)
sheets.spreadsheets().values().append(spreadsheetId=SHEET_ID, range="Content Ideas!A:C", valueInputOption="RAW",
body={"values": [[date.today().isoformat(), i["idea"], i["why"]] for i in ideas]}).execute()
state.set("recent", (recent + [i["idea"] for i in ideas])[-70:])
return {"ideas": len(ideas)}FAQ
Common questions
How do I define my niche?
Will it suggest the same ideas again?
Can I get ideas for a particular format?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Collect local business leads from Google Maps into a sheet
Every week, local businesses that match your search are added to your leads sheet with their phone number, website and rating, and none are added twice.
See how it worksFill in company research for every row in a sheet
Add a company name to your sheet and the empty columns fill in with what they do, their size, recent news and their LinkedIn page.
See how it worksWrite SEO content briefs for new keywords in a sheet
Add a keyword to your SEO sheet and a content brief based on the current top ten Google results appears in the next column.
See how it worksKeep exploring
Set up “Get daily content ideas from search trends in a sheet” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.
