Skip to content
Notis

Put a new AgentMail message in context with your email history

When new mail arrives, ask Notis to query the related history in ClickHouse and return a concise comparison based on fields you specify.

Trigger

New Email Received

Trigger for new emails in an AgentMail inbox

Action

Execute ClickHouse Query

Execute a sql query in clickhouse and return the results. this is the primary action for querying data from clickhouse databases.

Why this helps

A new message can be hard to prioritize when the context needed to understand related customer or topic patterns sits in a separate database.

  • Bring related database context into review of a new email.
  • Compare only against attributes and history present in your ClickHouse records.
  • Reduce switching between inbox and analytics tools.

Setup

Build it in a few focused steps.

  • 1Connect AgentMail and ClickHouse once in the Notis portal.
  • 2Create an automation in the portal or tell Notis what you want from any channel.
  • 3In one instruction, describe the new email attributes to compare, the existing ClickHouse table, and the comparison you need.
  • 4Pick the AgentMail New Email Received trigger and choose where run reports should go.
  • 5Test with one real email and check that the returned comparison uses the intended records.

Questions about this workflow

Can it find similar emails automatically?

Describe the comparison and matching fields you want. The query can use only available message details and fields in your ClickHouse data.

Does it need an existing email history table?

Yes. The requested historical comparison depends on relevant records already being stored in ClickHouse.

Will it send a reply?

No. This workflow runs a ClickHouse query and returns results for review.

When this happens · Trigger

Do this · Action

Supported Triggers and Actions

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

Agent mail triggers

ClickHouse actions

Recurring trigger

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

TriggerScheduled

Execute ClickHouse Query

Execute a sql query in clickhouse and return the results. this is the primary action for querying data from clickhouse databases.

ActionInstant

Webhook trigger

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

TriggerInstant

Get Database Schema

Get comprehensive schema overview of an entire database including all tables and optionally their column definitions. essential for ai agents to understand the complete database structure in a single call.

ActionInstant

New Email Received

Trigger for new emails in an AgentMail inbox

TriggerPolling

Get Table Schema

Get detailed schema information for a specific table including column definitions, types, keys, and optionally sample data. this is essential for ai agents to understand table structure before constructing queries.

ActionInstant

List ClickHouse Databases

List all databases in the clickhouse instance. useful for discovering available databases before querying tables.

ActionInstant

List ClickHouse Tables

List tables in clickhouse databases. returns information about tables including their engine, size, and row count.

ActionInstant

Connect any two apps with Notis in the middle.

Agent mail and ClickHouse, 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 ClickHouse.