How I built 'AdminGPT', an AI-powered administrative assistant using OpenAI's Assistant API

Are you looking for a robust example of how to develop an Assistant with functions using the new OpenAI Assistant API?

I couldn’t find one, so I added helpful documentation to the repo for AdminGPT, an AI-powered administrative assistant that integrates with your email and calendar. AdminGPT is similar to Microsoft’s Copilot, only better because it integrates both your email and calendar, and includes more functionality.

In addition to showing how to build an Assistant from scratch, the repo’s documentation also includes examples of robust functions to interact with an email and calendar system. Automation interfaces such as those offered by Zapier do a good job of getting information from other systems, but usually lack the necessary prompting, and support functions to implement anything beyound basic functionality.

If you’re interested, the following notebook walks you through how to create an Assistant from scratch, and let’s you run AdminGPT on your system.

AdminGPT: Your AI-Powered Administrative Assistant, powered by OpenAI’s Assistant Framework

I hope this helps folks working with the Assistant API!

Hi all,

As part of the AdminGPT project, I’ve recently developed a toolkit designed to help anyone working with Microsoft Outlook or Microsoft Office—specifically Office365—to streamline common email and calendar tasks using the OpenAI API. If you need to manage emails, schedule meetings, or check availability, this toolkit might be useful to you.

Key Features:

  • Turnkey Functionality: Functions can be easily imported into existing OpenAI API applications, and run out-of-the-box
  • Email Search: Easily find emails in Outlook by sender, subject, or attachments.
  • Email Parsing: Extract meeting times directly from email content for faster scheduling.
  • Free Time Detection: Automatically find available time slots on your Office365 calendar.
  • Event Scheduling: Send meeting invites using extracted times from your emails.
  • Email Reply Automation: Generate replies and send them through your Outlook account.

Why Use It?

If you’re looking to automate tasks like searching through emails, finding free calendar slots, or sending meeting invitations, this toolkit can help save time and reduce manual work out-of-the-box by integrating with Office365 and the OpenAI API.

Example Usage:

# Search emails in your inbox
emails = o365search_emails(
  query="from:boss@company.com", 
  folder="inbox", 
  max_results=5)

# Find free time slots on your calendar
free_slots = o365find_free_time_slots(
  start_datetime="2024-09-01T08:00:00-05:00", 
  end_datetime="2024-09-01T17:00:00-05:00"
)

# Send a meeting invite
o365send_event(
    subject="Team Meeting",
    start_datetime="2024-09-01T10:00:00-05:00",
    end_datetime="2024-09-01T11:00:00-05:00",
    attendees=["colleague1@company.com"]
)

Contributions Welcome

This is an open project so contributions and requests are welcome. Feel free to check out the repo and submit any issues or pull requests below.

GitHub: Office365 Toolkit for OpenAI API

Thanks for sharing with the community! Looks super useful! :slight_smile: