Skip to content
Notis

See how many unique entities appear in wallet activity

When an email asks how many distinct counterparties or values are involved, have Notis run a count distinct query and summarize the scope.

Trigger

New Gmail Message Received Trigger

Triggers when a new message is received in Gmail.

Action

Count Distinct Metric

Tool to use the count distinct metric to aggregate unique values for a field. use when you need to count the number of unique occurrences in a dataset.

Why this helps

A total transaction count does not answer how many different wallets or entities were involved.

  • Answer questions about unique participants rather than total records
  • Keep the queried field and time scope visible
  • Reduce manual deduplication

Setup

Build it in a few focused steps.

  • 1Connect Gmail and Bitquery once in the Notis portal.
  • 2Create an automation for unique activity counts.
  • 3Tell Notis to detect email questions about unique values, identify the requested field and query scope, run a count distinct metric, and state whether the result is approximate or exact as supported.
  • 4Choose New Gmail Message Received as the trigger.
  • 5Choose where reports go and test with an email asking for a unique counterparty count.

Questions about this workflow

Can it count unique wallets?

Yes, when the query targets a suitable address field and the request provides enough context to build the query.

Is the count always exact?

Use the metric's supported behavior and have Notis state whether the result is approximate or exact in the report.

When this happens · Trigger

Do this · Action

Supported Triggers and Actions

Notis builds workflows that link Gmail to Bitquery. A trigger fires from one place; an action lands in another.

Gmail triggers

Bitquery actions

Recurring trigger

Notis starts this workflow on a schedule, such as daily, weekly, or during business hours.

TriggerScheduled

Aliases Metric

Tool to use graphql aliases to rename fields in the response for clarity and disambiguation. use when you need to query multiple metrics with identical field names in one call.

ActionInstant

Webhook trigger

Notis starts this workflow when an external tool or custom backend sends an HTTP request.

TriggerInstant

Archive Database Query

Tool to query the archive database. use when you need full historical blockchain data (delayed by tens of minutes to hours).

ActionInstant

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.

TriggerPolling

Combined Database Query

Tool to query the combined database, which merges archive and real-time databases. use when you need both historical and up-to-the-second blockchain data in one request.

ActionInstant

New Gmail Message Received Trigger

Triggers when a new message is received in Gmail.

TriggerPolling

Conditional Metrics Snippet

Tool to generate a graphql metric snippet with conditional logic. use when you need to apply filters directly on metric calculations via the `if` attribute.

ActionInstant

Count Distinct Metric

Tool to use the count distinct metric to aggregate unique values for a field. use when you need to count the number of unique occurrences in a dataset.

ActionInstant

Count Metric

Tool to use the count metric to aggregate the number of records matching a graphql query. use when you need simple record counts.

ActionInstant

Database Selection

Tool to select the database (archive, realtime, combined) to query at the top level of a graphql request. use after determining whether you need live, historical, or combined blockchain data.

ActionInstant

Early Access Program Query

Tool to access streaming data across various blockchain networks for evaluation purposes. use when querying chains not available via the v2 endpoint; limited to real-time data only.

ActionInstant

Connect any two apps with Notis in the middle.

Gmail and Bitquery, 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 Bitquery.