Keep a searchable record of every new AgentMail email
Turn each incoming message into a ClickHouse record, so useful email context is ready when you need it.
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
Important email details are scattered across inbox threads, making it hard to search, report, or connect them to other data.
- Keep a queryable record of new inbox messages.
- Reduce manual copying of email details into analytics systems.
- Make incoming email activity available for later reporting.
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 which message details to store and the existing ClickHouse table to use.
- 4Pick the AgentMail New Email Received trigger and choose where run reports should go.
- 5Test with one real email and confirm the resulting record.
Questions about this workflow
What starts this automation?
It starts when AgentMail receives a new email in a connected inbox.
Do I need to specify a ClickHouse table?
Yes. Include the existing destination table and the message details you want stored in your instruction.
Can it store every field from the email?
Describe the fields you need. The automation can only store information available from the received email and supported by your destination table.
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.
Execute ClickHouse Query
Execute a sql query in clickhouse and return the results. this is the primary action for querying data from clickhouse databases.
Webhook trigger
Notis starts this workflow when an external tool or custom backend sends an HTTP request.
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.
New Email Received
Trigger for new emails in an AgentMail inbox
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.
List ClickHouse Databases
List all databases in the clickhouse instance. useful for discovering available databases before querying tables.
List ClickHouse Tables
List tables in clickhouse databases. returns information about tables including their engine, size, and row count.
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.