Skip to content

A suite of AI-powered administrative tools that automate email management and phone interactions using cutting-edge Generative AI models.

Notifications You must be signed in to change notification settings

supun2001/ai-admin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Administrative Assistant (ai-admin)

A suite of AI-powered administrative tools designed to automate email management and phone interactions using state-of-the-art Generative AI models.

Project Structure

  • email/: AI-powered email assistant that fetches unread emails and generates professional replies.
  • phone/: Real-time AI voice agent for handling phone calls via Twilio and Deepgram.
  • img/: Project assets and images.

AI Email Assistant

The email assistant automates the process of checking and responding to emails from Gmail and Outlook.

Features

  • Multi-Platform Support: Works with both Gmail (IMAP) and Outlook (Microsoft Graph API).
  • Gemini Integration: Uses Google's Gemini 2.0 Pro model to generate polite, professional, and concise replies.
  • Thinking Capabilities: Leverages Gemini's thinking configuration for more reasoned responses.
  • Interactive Instruction: Allows users to provide custom instructions for specific email replies.

Setup

  1. Navigate to the email/ folder.
  2. Create a .env file with the following variables:
    EMAIL=your-email@gmail.com
    GMAIL_PASSWORD=your-app-password
    GEMINI_API_KEY=your-gemini-api-key
    
    # For Outlook (Optional)
    CLIENT_ID=your-client-id
    TENANT_ID=your-tenant-id
    CLIENT_SECRET=your-client-secret
  3. Run the assistant:
    python main.py

AI Phone Agent

The phone agent provides a voice-based interface for administrative tasks, integrating real-time speech-to-text and text-to-speech.

Features

  • Real-time Interaction: Low-latency voice communication using Deepgram's Converse API.
  • Twilio Integration: Receives and handles calls via Twilio Media Streams.
  • Function Calling: Capable of executing predefined Python functions during a call (see phone/inside.py).
  • Barge-in Support: Handles user interruptions gracefully.

Setup

  1. Navigate to the phone/ folder.
  2. Create a .env file:
    DEEPGRAM_API_KEY=your-deepgram-api-key
  3. Configure config.json with your agent details.
  4. Start the WebSocket server:
    python main.py
  5. Configure your Twilio number to point to the server's WebSocket URL.

Prerequisites

Ensure you have the following installed:

  • Python 3.10+
  • Dependencies listed in requirements.txt

Installation

pip install -r requirements.txt

Contributing

Feel free to open issues or submit pull requests to improve the administrative tools.

About

A suite of AI-powered administrative tools that automate email management and phone interactions using cutting-edge Generative AI models.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages