Review AI query history when you send an email
After you send a message that prompts a usage review, retrieve Apipie AI query history for analysis.
Trigger
Email Sent
Triggers when a Gmail message is sent by the authenticated user. It polls the 'SENT' label and emits metadata including sender, recipients, subject, timestamp, and thread ID.
Action
Get query history
Tool to retrieve historic api usage logs including latency, token counts, costs, and source ip. use after authenticating to analyze past queries for cost management, performance monitoring, or auditing.
Why this helps
Checking API activity separately can make it harder to connect an operational review to the work that prompted it.
- Start a usage review from a sent message.
- Retrieve history that includes latency, token counts, costs, and source IP.
- Use returned data to support cost management or auditing.
Setup
Build it in a few focused steps.
- 1Connect Gmail and Apipie AI once in the Notis portal.
- 2Create an automation in the portal or tell Notis from any channel.
- 3Describe the outcome in one instruction: when I send an email prompting an Apipie AI usage review, retrieve query history for analysis.
- 4Pick Email Sent as the trigger.
- 5Choose a report channel, test with one real sent email, and review the usage history.
Questions about this workflow
What information does the history include?
The action retrieves historic API usage logs including latency, token counts, costs, and source IP.
Does it calculate a budget or compare against a baseline?
No. It retrieves usage history. Supply any budget or baseline separately if you want Notis to analyze against it.
When this happens · Trigger
Do this · Action
Supported Triggers and Actions
Notis builds workflows that link Gmail to Apipie ai. A trigger fires from one place; an action lands in another.
Gmail triggers
Apipie ai actions
Recurring trigger
Notis starts this workflow on a schedule, such as daily, weekly, or during business hours.
Delete Vectors
Tool to delete an entire vector collection or specific vectors. use when you need to remove vector data after identifying your target collection or vectors.
Webhook trigger
Notis starts this workflow when an external tool or custom backend sends an HTTP request.
Fetch model restrictions
Tool to retrieve a list of country restrictions for models. use when you need to verify allowed deployment countries before final model selection.
Email Sent
Triggers when a Gmail message is sent by the authenticated user. It polls the 'SENT' label and emits metadata including sender, recipients, subject, timestamp, and thread ID.
Get query history
Tool to retrieve historic api usage logs including latency, token counts, costs, and source ip. use after authenticating to analyze past queries for cost management, performance monitoring, or auditing.
New Gmail Message Received Trigger
Triggers when a new message is received in Gmail.
List AI Models
Tool to fetch a list of available ai models. use when you need up-to-date model listings and want to filter by. model type, subtype, provider, or retrieve specialized lists like voices or restrictions.
Connect any two apps with Notis in the middle.
Gmail and Apipie ai, 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 Apipie ai.