TechGaged.com - Crypto News
YouTube
Flipboard
𝕏
No Result
View All Result
  • News
    • Bitcoin
    • Altcoins
    • Market
    • Industry
    • Blockchain
    • DeFi
    • Regulation
  • Guides
    • Beginners
    • Blockchain
    • DeFi
    • Regulation
    • Scams
    • Security
  • Info
    • About
    • Contact
    • Privacy policy
    • Disclaimer
    • Editorial Code of Conduct
    • Corrections Policy
    • Terms & Conditions
    • Advertising & Affiliate Disclosure
TechGaged.com - Crypto News
  • News
    • Bitcoin
    • Altcoins
    • Market
    • Industry
    • Blockchain
    • DeFi
    • Regulation
  • Guides
    • Beginners
    • Blockchain
    • DeFi
    • Regulation
    • Scams
    • Security
  • Info
    • About
    • Contact
    • Privacy policy
    • Disclaimer
    • Editorial Code of Conduct
    • Corrections Policy
    • Terms & Conditions
    • Advertising & Affiliate Disclosure
No Result
View All Result
TechGaged.com - Crypto News
No Result
View All Result
𝕏
LIVE

Developer automates Gmail with AI – Here’s how

by Ana Zirojević
March 14, 2025
in Artificial intelligence, Computer & IT
Developer automates Gmail with AI - Here’s how

Developer automates Gmail with AI - Here’s how

Have an email inbox you’ve neglected for so long that it’s now full to the brim and about to burst with messages? One option is to set aside an hour or two and start deleting them, page by page, or – you can use artificial intelligence (AI) agents to automate Gmail.

Ad

Indeed, this is exactly what happened to developer Tony Kipkemboi, known as tonykipkemboi on GitHub and The How-To Guy on YouTube, so he decided to deploy AI agents to categorize and carry out other tasks in his Gmail account, including generating drafts for certain emails.

And the best thing? He described the process in detail on his YouTube channel in a video streamed on March 7. On top of that, he posted the code alongside easy-to-understand instructions on GitHub, allowing pretty much anyone to copy his strategy with minimum coding experience.

Specifically, tonykipkemboi wanted the AI agents to read through the emails, classify and label them, and do some other work, like delete low-priority messages, in short – automate Gmail. So he gathered five AI agents into a ‘crew’ called CrewAI to create an intelligent email management system to categorize, organize, respond to, alert, and clean up his Gmail inbox automatically.

Ad
Architecture diagram of the automate Gmail project. Source: YouTube
Architecture diagram of the automate Gmail project. Source: YouTube

Setting up the system to automate Gmail

These agents included an email categorizer, email organizer, response generator, Slack notifier, and email cleaner, all with their own specific assigned functions. Together, these AI agents are able to automatically carry out the following actions in sequence:

  • categorize emails into specific types (like newsletters, promotions, personal, etc.), 
  • assign priority levels (high, medium, or low) based on content and sender with strict classification rules, 
  • apply Gmail labels and stars based on categories and priorities, 
  • generate draft responses to important emails that need replies, 
  • send creative notifications for high-priority emails to Slack, Telegram, or WhatsApp,
  • safely delete low-priority emails based on age and category,
  • handle YouTube-related emails specifically,
  • empty trash to free up storage space,
  • recognize and properly handle email threads.
Architecture diagram of the project in excalidraw. Source: YouTube
Architecture diagram of the project in excalidraw. Source: YouTube

To help others, the developer has shared with his viewers the entire code repository that pretty much anyone can follow with the help of the video and a little bit of coding experience. 

Installation

Copy and paste the following code:

# Clone the repository
git clone https://github.com/tonykipkemboi/crewai-gmail-automation.git
cd crewai-gmail-automation

# Create and activate a virtual environment
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate

# Install dependencies
crewai install

Configuration

Create a .env file in the root directory with the following variables:

# Choose your LLM provider
# OpenAI (Recommended)
MODEL=openai/gpt-4o-mini
OPENAI_API_KEY=your_openai_api_key

# Or Gemini
# MODEL=gemini/gemini-2.0-flash
# GEMINI_API_KEY=your_gemini_api_key

# Or Ollama  (Note: May have compatibility issues with tool calling)
# Download the model from https://ollama.com/library
# MODEL=ollama/llama3-groq-tool-use # use ones that have tool calling capabilities

# Gmail credentials
EMAIL_ADDRESS=your_email@gmail.com
APP_PASSWORD=your_app_password

# Optional: Slack notifications
SLACK_WEBHOOK_URL=your_slack_webhook_url

To create a Gmail app password for your procedure, you’ll need to:

  1. Go to your Google Account settings.
  2. Select ‘Security’ from the left navigation panel.
  3. Under ‘Signing in to Google,’ enable 2-Step Verification.
  4. Scroll to find ‘App passwords.’
  5. Select ‘Mail’ from the ‘Select app’ dropdown.
  6. Click on ‘Other (Custom name)’ in the ‘Select device’ dropdown.
  7. Enter ‘Gmail CrewAI’ as the name.
  8. Click ‘Generate.’
  9. Copy the 16-character password that appears.
  10. Paste the password in your .env file as the ‘APP_PASSWORD’ value.
  11. Press ‘Done.’

Furthermore, to create a Slack Webhook URL: 

  1. Go to api.slack.com/apps.
  2. Click ‘Create New App.’
  3. Select ‘From scratch.’
  4. Enter ‘Gmail Notifications’ as the app name.
  5. Select your workspace and click ‘Create App.’
  6. In the left sidebar, press ‘Incoming Webhooks.’
  7. Turn on ‘Activate Incoming Webhooks.’
  8. Click ‘Add New Webhook to Workspace.’
  9. Select the channel where you want to receive notifications.
  10. Click ‘Allow.’
  11. Find the ‘Webhook URL’ section and copy the URL that begins with https://hooks.slack.com/services/.
  12. Paste this URL in your .env file as the ‘SLACK_WEBHOOK_URL’ value.

IMAP function

The developer has also used the IMAP (Internet Message Access Protocol) to securely connect to his Gmail account and manage his emails because it allows the app to work with emails while they remain on Google’s servers, unlike POP3, which downloads them to your device.

Usage

Run the application with:

crewai run

You’ll be prompted to enter the number of emails to process (the default is 5, but you can go with a higher number if you feel comfortable).

And that’s pretty much it – your Gmail inbox is now automated and you can have a peace of mind that it’s not overwhelmed with emails preventing new messages from arriving.

Conclusion

All things considered, AI agents might be a new thing, but they’re becoming increasingly accessible to a wider audience regardless of their level of technical expertise. For instance, OpenAI has just launched its new AI building tools, making the development of proprietary AI agents easier than ever before.

What do you think?

SUBSCRIBE to our YouTube channel ▶️
Bitmine just dropped $200M on MrBeast’s company, and it says a lot about where crypto and specifically ETH are headed.


#MrBeast #CryptoNews #Bitcoin #Ethereum #Web3 #Finance #Investing #Shorts
😳BitMine Just Made a $200M Bet on Mr Beast!
As protests escalate and financial restrictions tighten, on-chain data reveals a sharp increase in crypto usage across the country. 

From rising exchange flows to growing Bitcoin and stablecoin activity, digital assets are increasingly being used as financial infrastructure rather than investment tools.


#digitalcurrency #youtubeshorts #cryptoshorts #cryptonews #shortsfeed #shorts #shortsindia
💥Iran's Crypto Activity Just Exploded
This video breaks down the Terra Luna collapse and how one of the largest failures in crypto history unfolded from a technical and structural perspective.

We explain how the UST–LUNA mechanism was designed, how the peg defense failed under pressure, and why liquidity dynamics, market incentives, and reflexive mint-burn mechanics triggered a death spiral that wiped out billions in days.

This is a clear, technical look at what went wrong, why it couldn’t be stopped once it started, and the key lessons the collapse left behind for crypto investors and builders.
--
Read crypto news: https://www.techgaged.com 
Learn about crypto: https://www.techgaged.com/category/crypto-guides/

Follow us:
X: https://x.com/Techgaged_news
Flipboard: https://flipboard.com/@TechGaged
Telegram: @TechGagedGlobal
Terra Luna Collapse | The Code That Destroyed $60 Billion
US Senators introduced the Blockchain Regulatory Certainty Act. Learn why it matters if you're a blockchain developer.

#Blockchain #Cryptoshorts #youtubeshorts #cryptocurrency #shorts
Blockchain Devs Just Got a HUGE Win!
Many industries other than finance are currently implementing blockchain technology. Setting the ground for the infrastructure of the future. 



#bitcoin #youtubeshorts #cryptoshorts #blockchaineducation #blockchainfuture #shorts
Blockchain is building the infrastructure of the future!
According to VanEck, Bitcoin's set to break over the $1M barrier and climb all the way to $2.9M by 2050.

This is a bold prediction but not unrealistic considering current fundamentals and institutional adoption levels. 








#youtubeshorts #cryptoprediction #cryptoshorts #shorts #viral #bitcoinanalysis
🔮VanEck Made The Boldest BTC Prediction Ever
SUBSCRIBE

Ad

Join Techgaged on Telegram

Get first-access to daily trending tech stories, AI breakthroughs, and more, before it hits your feed.

Subscribe
Tags: AIArtificial IntelligenceautomationEmailGmail

Ana Zirojević

Senior Staff Reporter. Have a question? Write us at hello@techgaged.com.

Related Posts

Older man wearing glasses, softly lit, looking upward with colorful light reflections in the foreground.
Artificial intelligence

Robert Kiyosaki Warns AI Bubble May Be Bigger Than Dot-Com

by Ana Zirojević
December 24, 2025

⚡ KEY TAKEAWAYS Kiyosaki warns AI hype may be forming a major market bubble. He cites extreme valuations and rising...

Read moreDetails
A man walking down a long aisle between tall shelves filled with stacked paper files inside a warehouse.

New Epstein Disclosures Collide With an AI Project Built Months Earlier

December 22, 2025
Identical image of a young woman

Gemini Can Now Detect AI-Generated Files

December 19, 2025
A robot giving another robot a USDC coin

Fetch.ai Launches Autonomous AI-to-AI USDC Settlement

December 19, 2025
A front-facing silhouette of the Tesla Semi truck emerging from darkness, with sleek headlights illuminated, highlighting its futuristic design and hinted engineering upgrades.

Tesla Semi Tease Hints At Big Changes Under The Hood

December 19, 2025
A human head sculpture intricately formed from interlocking numbers, symbols, and mechanical patterns.

Scientists Use AI to Crack Nature’s Hidden Laws

December 18, 2025
Load More
Ad

🔝 Popular

  • Over $455 billion in BTC at Risk of a Quantum Attack Due to Address Reuse, Up 16% Since 2020

    $455 Billion in Bitcoin Exposed to Quantum Attack Risk via Address Reuse, Up 16% Since 2020

    0 shares
    Share 0 Tweet 0
  • Cardano Loses Structure as Buyers Step Aside Below Key Levels

    0 shares
    Share 0 Tweet 0
  • Ethereum Bulls Lose Momentum. The Market Enters a Decision Zone

    0 shares
    Share 0 Tweet 0
  • Bitcoin May Halve vs Gold – Senior Bloomberg Strategist McGlone Warns

    0 shares
    Share 0 Tweet 0
  • DeFi Disaster: $5M Drained in Oracle Nightmare

    0 shares
    Share 0 Tweet 0

Latest

Clear representation of crypto legislation being passed with bitcoin and ethereum in the picture.
Crypto Guides

Clarity Act 2026: Everything You Should Know

by Patrick Sabeh
January 20, 2026

Bitcoin stands next to a whale both on top of a motherboard

Bitcoin Whales Keep Buying as Institutional Demand Holds Firm

January 20, 2026
Stacks of XRP coins sit in front of a rising yellow price chart.

XRP to $10 in 2026? The Realistic Path Explained

January 20, 2026
A Dogecoin (DOGE) coin sits on a stack of crypto tokens in front of a red-and-green candlestick chart.

Dogecoin Crash Incoming – Then Moonshot?

January 20, 2026
A gold bar stamped “FINE GOLD” rests on a bed of U.S. dollar bills, with a silver Bitcoin coin placed on top of the bar.

Bitcoin May Halve vs Gold – Senior Bloomberg Strategist McGlone Warns

January 20, 2026
Ad

Techgaged.com | Crypto News

📧 hello@techgaged.com

  • NEWS
    • Altcoins
    • Bitcoin
    • Blockchain
    • DeFi
    • Industry
    • Market
    • Regulation
  • GUIDES
    • Beginners
    • Blockchain
    • DeFi
    • Regulation
    • Scams
    • Security
  • COMPANY
    • About
    • Contact
    • Corrections Policy
    • Editorial Guidelines
    • Privacy Policy
    • Ad & Affiliate Disclosure
    • Terms of Service
    • Disclaimer
Ad
  • News
  • Guides
  • Info

© 2020-2025 Crypto News - TechGaged.com | Global Crypto News & Insights

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • News
    • Bitcoin
    • Altcoins
    • Market
    • Industry
    • Blockchain
    • DeFi
    • Regulation
  • Guides
    • Beginners
    • Blockchain
    • DeFi
    • Regulation
    • Scams
    • Security
  • Info
    • About
    • Contact
    • Privacy policy
    • Disclaimer
    • Editorial Code of Conduct
    • Corrections Policy
    • Terms & Conditions
    • Advertising & Affiliate Disclosure

© 2020-2025 Crypto News - TechGaged.com | Global Crypto News & Insights