Check the size of prompt drafts shared in Slack
Get a quick token estimate for a prompt draft before it becomes part of an AI workflow.
Trigger
Channel Message Received
Triggered when a message is posted in a Slack channel (public, private, or multi-party IM). Does NOT match direct messages.
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
Long prompts can be hard to judge by eye, especially when tuning an AI workflow under time pressure.
- Check prompt size with model tokenization.
- Catch oversized drafts earlier.
- Make prompt iteration more concrete.
Setup
Build it in a few focused steps.
- 1Connect Slack and Gemini to Notis once through the portal.
- 2Create an automation in the portal or ask Notis to count tokens for Slack messages that contain prompt drafts.
- 3Write one plain-language instruction describing which message text should be counted.
- 4Select the Channel Message Received trigger and choose a channel for run reports.
- 5Test with a real prompt draft and compare the reported token count with your expectations.
Questions about this workflow
Does token count equal the final API cost?
No. Token counts help estimate input size; actual cost depends on the model and complete request.
Can this count text in a file attached to Slack?
This workflow applies to text made available from the triggering message; attachment handling depends on the event context.
When this happens · Trigger
Do this · Action
Supported Triggers and Actions
Notis builds workflows that link Slack to Gemini. A trigger fires from one place; an action lands in another.
Slack 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.
New Channel Created Trigger
Triggered when a new channel is created in Slack.
Embed Content (Gemini)
Generates text embeddings using gemini embedding models. converts text into numerical vectors for semantic search, similarity comparison, clustering, and classification tasks.
Channel Message Received
Triggered when a message is posted in a Slack channel (public, private, or multi-party IM). Does NOT match direct messages.
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.
Direct Message Received
Triggered when a new direct message (DM) is sent to a user in Slack. Catches all DMs across all DM channels.
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.
Message Reaction Added
Triggered when a reaction is added to a message in Slack. Supports optional filtering by channel and emoji name.
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.
Message Reaction Removed
Triggered when a reaction is removed from a message in Slack. Supports optional filtering by channel and emoji name.
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.
Reaction Added Trigger
DEPRECATED: use `SLACK_MESSAGE_REACTION_ADDED` instead. Triggered when a reaction is added to a message in Slack.
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.
Slack 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.