Every 15 minutes
Track sponsorship offers from Gmail in Notion
Sponsorship and brand deal emails are spotted in your Gmail and added to your Notion deals board with brand, budget and deadline.
- Runs
- Every 15 minutes
- Apps
- Gmail, Notion
- AI
- Yes, uses the built-in AI allowance
- Access
- Gmail gmail.readonly; Notion read+write
Send this to your assistant
Create a ClickRuntime automation: watch my Gmail for sponsorship offers, pull out the brand, budget and deadline, and add each one to my Notion deals board.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A creator with a growing channel receives brand deal offers mixed in with fan mail, newsletters and spam. Good offers get buried, replies go out late, and deadlines for content slip because the details live in an email thread nobody can find.
This automation reads new emails every 15 minutes, uses AI to spot the ones that are real sponsorship or deal offers, and adds each to a Notion board with the brand, budget and deadline filled in. Your inbox stays as it is, and your deals are in one place.
What you get out of it
Offers do not get buried
Real deals are picked out from the noise and listed in Notion. You can reply to the good ones first, while the brand is still waiting.
Key details at a glance
Brand, budget and deadline are pulled into their own fields. Sorting by budget or deadline shows what to focus on this week.
A pipeline you can manage
Notion lets you move each offer through stages such as new, negotiating and booked. You see how many deals are in play at once.
Fewer missed deadlines
Delivery dates sit next to each deal instead of inside an old thread. Planning content around them becomes easier.
How it works
What happens, step by step
Every 15 minutes, ClickRuntime checks Gmail for emails it has not seen before.
AI reads the subject and the start of each email and decides whether it is a sponsorship or deal offer.
For each offer it pulls out the brand, budget and deadline.
A card is added to your Notion deals board with those details and the sender.
Before it runs live
- Connect Google through your own Google app (a one-time, 10-minute setup), so it works with your own Gmail
- Connect Notion and share the database you want it to use
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
- Act only on the items that match your own rules, and skip the rest
- 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 Gmail and Notion steps into one automation
Under the hood
The code that runs this automation
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, credentials, http, state, ai, report_fetched
DEALS_DB = "your-notion-database-id"
SCHEMA = {"type": "object", "properties": {"is_offer": {"type": "boolean"}, "brand": {"type": "string"}, "budget": {"type": "string"}, "deadline": {"type": "string"}}, "required": ["is_offer"]}
@on_trigger
def run(event):
gmail = build("gmail", "v1", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False).users().messages()
seen = set(state.get("seen") or [])
new = [m["id"] for m in gmail.list(userId="me", q="newer_than:1d -category:promotions", maxResults=50).execute().get("messages", []) if m["id"] not in seen]
report_fetched(len(new))
if not new:
return {"summary": "Nothing new"}
notion = {"Authorization": f"Bearer {credentials.connection('notion', 'work')}", "Notion-Version": "2022-06-28"}
added = 0
for mid in new:
msg = gmail.get(userId="me", id=mid, format="metadata", metadataHeaders=["From", "Subject"]).execute()
h = {x["name"]: x["value"] for x in msg["payload"]["headers"]}
info = ai.generate(f"From: {h.get('From')}\nSubject: {h.get('Subject')}\n{msg['snippet']}", system="Is this a sponsorship or brand deal offer? Extract brand, budget, deadline.", json_schema=SCHEMA, max_output_tokens=120).json
if info.get("is_offer"):
http.post("https://api.notion.com/v1/pages", headers=notion, json={"parent": {"database_id": DEALS_DB}, "properties": {
"Name": {"title": [{"text": {"content": info.get("brand") or h.get("Subject", "Offer")}}]},
"Budget": {"rich_text": [{"text": {"content": info.get("budget", "")}}]}, "Deadline": {"rich_text": [{"text": {"content": info.get("deadline", "")}}]},
"From": {"rich_text": [{"text": {"content": h.get("From", "")}}]}}}).raise_for_status()
added += 1
state.set("seen", (list(seen) + new)[-500:])
return {"checked": len(new), "added": added}FAQ
Common questions
What if a normal email is mistaken for a deal?
Can it track job offers instead?
Does it change anything in my Gmail?
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
Score CVs from email against your Notion job profiles
Each job application that arrives by email is scored against the matching role in Notion, with the result saved and emailed to you.
See how it worksSummarise and sort new emails into a Notion inbox
Every hour, your new emails are summarised, given a category and added to your Notion inbox database with any action needed.
See how it worksSave labelled Gmail emails to Notion
Any email you label Notion in Gmail is saved as a page in your Notion database with its subject, sender and text.
See how it worksKeep exploring
Set up “Track sponsorship offers from Gmail in Notion” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.