📧 Gmail & Calendar Integration

Automatically analyze incoming emails and prepare meeting briefings with AI expert panels. 2-minute setup No extra cost

📧

Email Analysis
Auto-process labeled emails through any workflow

📅

Meeting Prep
Research attendees and build talking points

Auto or On-Demand
Run on a schedule or trigger manually

How It Works

A small Google Apps Script runs in your Gmail account. It watches for emails with a specific label and sends them to Meta Council for analysis. Your data flows directly from Google to Meta Council — no middleman.

Gmail → Google Apps Script → Meta Council API → Your Dashboard

Setup Guide

1
Get Your API Key

Go to meta-council.com → Settings → Developer API Keys → Create Key.

Copy the key (starts with mc_). You'll need it in step 3.

2
Create the Google Apps Script

Go to script.google.com → New Project.

Delete the default code and paste the script below:

// Loading script...
3
Configure

In the script, update these two lines:

API_KEY: "mc_YOUR_API_KEY_HERE",    // ← paste your key
WORKFLOW: "email_lead_pipeline",    // ← choose your workflow

Workflow options:

4
Run Setup

In the script editor, select setup from the function dropdown and click Run.

Google will ask you to authorize the script — click through the permissions (it needs access to Gmail and external URLs).

You'll see: ✅ Setup complete!

5
Start Analyzing Emails

Create a Gmail filter to auto-label emails you want analyzed:

Gmail → Settings → Filters → Create filter → Choose criteria → Apply label: MetaCouncil

Any email with the MetaCouncil label gets automatically sent to your chosen workflow. Results appear in your Meta Council dashboard.

Bonus: Meeting Prep

The script also includes an analyzeUpcomingMeetings() function. Run it manually or set up a daily trigger to get AI-generated briefings for tomorrow's meetings — attendee research, talking points, and context.

Commands

setup()                    — Start the automation
processNewEmails()         — Process labeled emails now
analyzeUpcomingMeetings()  — Prep for tomorrow's meetings
testConnection()           — Verify API key works
stop()                     — Remove all triggers

FAQ

Is my email data safe?

The script runs in your own Google account. Data flows directly from Google to Meta Council's API — no third-party services. If you're self-hosting Meta Council, your data never leaves your network.

How much does it cost?

The Google Apps Script is free. Meta Council usage counts against your plan's query limits (5/day free, 50/day Pro).

Can I customize which emails get analyzed?

Yes — use Gmail's filter system to control which emails get the MetaCouncil label. Filter by sender, subject, keywords, or any Gmail criteria.

← Back to Meta Council