Know the size of your Notion context before using AI
A quick token count helps you understand whether a long page is ready for a larger Gemini prompt.
Trigger
Page Properties Updated
Triggers when properties of a Notion page are updated. Customer optionally scopes with at most one of: - data_source_id: any row in this data source - page_id: this specific page - parent_page_id: any page whose immediate parent is this page With none set, fires for any property change in the workspace the integration has access to. Adding a column to a data source fires this trigger once per existing row. Customers can branch on `data.updated_properties` (array of property IDs) to filter downstream.
Action
Count Tokens (Gemini)
Counts the number of tokens in text using gemini tokenization. useful for estimating costs, checking input limits, and optimizing prompts before making api calls.
Why this helps
Large notes can make prompt limits and AI costs hard to judge by eye.
- Measure text length in Gemini tokens rather than rough word counts.
- Spot oversized context before a generation step.
- Plan a concise prompt with more confidence.
Setup
Build it in a few focused steps.
- 1Connect Notion and Gemini to Notis once through the portal.
- 2Create an automation in the portal or ask Notis conversationally.
- 3In one plain-language instruction, ask Gemini to count tokens for the relevant updated page text and report the total.
- 4Choose the Notion Page Properties Updated trigger for the relevant data source and a channel for run reports.
- 5Test it with an updated page containing a known amount of text and inspect the count.
Questions about this workflow
Does the token count prove a prompt will fit a model limit?
It provides a count for the supplied text. Total request size can also include instructions and other inputs.
Why use a property update trigger?
It provides a point to re-check a page when a tracked item's properties change. Describe which updated content you want counted.
When this happens · Trigger
Do this · Action
Supported Triggers and Actions
Notis builds workflows that link Notion to Gemini. A trigger fires from one place; an action lands in another.
Notion triggers
Gemini actions
Recurring trigger
Notis starts this workflow on a schedule, such as daily, weekly, or during business hours.
Count Tokens (Gemini)
Counts the number of tokens in text using gemini tokenization. useful for estimating costs, checking input limits, and optimizing prompts before making api calls.
Webhook trigger
Notis starts this workflow when an external tool or custom backend sends an HTTP request.
Download Video (Veo)
Downloads a generated veo video to local storage. takes the video uri from a completed operation and saves it to the specified file path.
All Page Events
Triggers when any Notion page is created or updated across the workspace.
Embed Content (Gemini)
Generates text embeddings using gemini embedding models. converts text into numerical vectors for semantic search, similarity comparison, clustering, and classification tasks.
Comment Created
Triggers when a new comment is created in Notion. Optional `page_id` filter scopes to comments on a specific page. When omitted, fires for any new comment in the workspace the integration has access to. Requires the 'Read comments' capability on the Notion integration. If a connection was authorized before that capability was enabled, the user must re-authorize the connection for comment events to flow.
Generate Content (Gemini)
Generates text content from prompts using gemini models. supports various models like gemini flash and pro with configurable temperature, token limits, and safety settings for diverse text generation tasks.
New Comment
Triggers when a new comment is added to a specified Notion block or page.
Generate Image (Gemini 2.5 Flash)
Generates images from text prompts using gemini 2.5 flash image preview model. supports creative image generation with customizable parameters like aspect ratio, safety settings, and optional file saving.
Database Created
Triggers when a new Notion database (the container) is created. A database is the post-2025-09-03 container that holds one or more data sources. This trigger fires for the container's creation event (`database.created`), distinct from `NOTION_DATASOURCE_CREATED` which fires when a new data source is added to an existing database. Most customers calling Notion's `POST /v1/databases` (the legacy API) or creating a database via the Notion UI will see this event. Adding a new data source to an existing database fires `data_source.created` instead — use `NOTION_DATASOURCE_CREATED` for that. Notion's payload puts `entity.type: "block"` (the container is a `child_database` block in the content tree) and `entity.id` is the database id.
Generate Videos (Veo)
Generates videos from text prompts using google's veo models. creates high-quality video content with customizable aspect ratios, duration, and style controls. returns operation id for tracking progress.
Data Source Created
Triggers when a new Notion data source is created. Fires workspace-wide. The payload's `data.parent` carries the data source's tree parent (typically the teamspace) for downstream filtering. A single template-based database creation can fire multiple `data_source.created` events at once — one per data source the template instantiates.
Get Videos Operation (Veo)
Checks the status of a veo video generation operation. use the operation name from generatevideos to track progress and get the download url when complete.
Data Source Schema Updated
Triggers when a Notion data source's schema is updated. Fires on column add / remove / rename. Payload includes `data.updated_properties: [{id, name, action}]` so consumers can discriminate the kind of change downstream. Optional `data_source_id` filter scopes to schema changes on a single data source. When omitted, fires for any schema change in the workspace the integration has access to. Note: adding a column also fires `page.properties_updated` once per existing row in the data source. Customers wanting a single structural-change signal should use this trigger.
List Models (Gemini API)
Lists available gemini and veo models with their capabilities and limits. useful for discovering supported models and their features before making generation requests.
Connect any two apps with Notis in the middle.
Notion and Gemini, or any other combination from 1,000+ integrations.
When this happens · Trigger
Do this · Action
Save your first hour today.
7-day trial of any paid plan, with 20$ of usage included.
No card. Works with personal or business Gemini.