๐ Send legal AI news digests from IMAP email with OpenAI, Tavily, and Gmail
โก 5 views ยท ๐ Market Research & Insights
Description
Quick overview
Monitor an inbox, keep only emails about AI in the legal industry (or any topic), research each topic with web search, and email a branded HTML digest.
How it works
- A schedule trigger polls an IMAP mailbox every few hours for unread emails.
- Each message is extracted and passed to an agent that scores it for relevance
- Irrelevant emails are filtered out and the source message is deleted from the inbox
- Relevant Emails are added to the digest
- An email summary is sent to the recipient
Setup
- Install the community nodes
n8n-nodes-imapand@tavily/n8n-nodes-tavily(Settings โ Community Nodes). - Add credentials for IMAP, OpenAI, Tavily, and Gmail OAuth2.
- Set the recipient address in the Gmail โ Send Digest node.
- Optionally adjust the polling interval and the IMAP mailbox path
- Set the cadence for you email digest
Requirements
- IMAP, OpenAI, Tavily, and Gmail OAuth2 credentials
- โ ๏ธ Uses the
n8n-nodes-imapand@tavily/n8n-nodes-tavilycommunity nodes and requires a self-hosted n8n instance.
Customization
- Change the polling frequency in the Schedule node.
- Rewrite the topic list in OpenAI Agent โ Score Relevance to target a different industry or subject.
- Swap Gmail for another email node, or point the IMAP node at a specific subfolder.
Additional info
Support is available at support@ais.email
๐ Nodes Used
Gmail, Schedule Trigger, Filter, AI Agent, OpenAI Chat Model
๐ฅ Import
Download workflow.json and import into n8n:
Workflow menu โ Import from File