Skip to content
Notis

Count matching blockchain records from email

Turn a count question into a focused record total and a short explanation of what it covers.

Trigger

New Email Received

Trigger for new emails in an AgentMail inbox

Action

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.

Why this helps

A quick count request can consume time when you need to set up an aggregation and explain its scope.

  • Answer straightforward matching-record questions with a count metric.
  • Include the dataset and network in the result for clarity.
  • Keep a concise count response alongside its original request.

Setup

Build it in a few focused steps.

  • 1Connect Agent mail and Bitquery once in the Notis portal.
  • 2Create an automation in Automations, then choose New Automation and give it a name.
  • 3Describe the outcome in one instruction: use Bitquery's count metric to count records for the dataset and network specified in each email, and state what the count represents.
  • 4Pick the Agent mail New Email Received trigger and choose where run reports should go.
  • 5Test with one real email containing a clear record-count question, dataset, and network.

Questions about this workflow

How is this different from a unique wallet count?

A count metric counts records matching the query. Use count distinct when the question is about unique field values.

Can it choose a dataset for the sender?

Only when the request provides enough information to identify one. Otherwise it should surface the missing details.

Will it explain the count?

Yes. Ask it to include the dataset, network, and what the counted records represent.

When this happens · Trigger

Do this · Action

Supported Triggers and Actions

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

Agent mail 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

New Email Received

Trigger for new emails in an AgentMail inbox

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

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.

Agent mail 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.