Skip to content

Conversation

@mario99logic
Copy link
Contributor

project description:
When a new Gmail is received, if it's from "XXXX", ask ChatGPT whether it's related to support. If it's a support issue, reply with "Thank you for your email. We will get back to you within 2 hours" and send a Slack message to the support channel.

ref: INT-451

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements a Gmail support automation workflow that monitors incoming emails from specific senders, uses ChatGPT to classify them as support-related, and automatically responds with replies and Slack notifications. The implementation includes email processing, AI-powered classification, automated responses, and team notifications.

  • Gmail integration with mailbox change monitoring and history tracking
  • ChatGPT-powered email classification to identify support requests
  • Automated reply system and Slack notification workflow

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
gmail_support/program.py Main workflow implementation with email processing, ChatGPT analysis, and response automation
gmail_support/autokitteh.yaml Project configuration defining connections, variables, and triggers
gmail_support/README.md Documentation explaining the workflow setup and usage
Comments suppressed due to low confidence (1)

gmail_support/program.py:232

  • [nitpick] This error handler prints both reason and full error details, which is inconsistent with other error handlers in the file. Consider standardizing error logging across all handlers.
    except HttpError as e:


# Gmail Support Email Workflow

[![Start with AutoKitteh](https://autokitteh.com/assets/autokitteh-badge.svg)](https://app.autokitteh.cloud/template?name=gmail_support_workflow)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mario99logic You have to add how to execute and use this project:
here, the User needs to fill in the variables for the SENDER_EMAIL and SLACK Channel.

slack = slack_client("slack_conn")

SENDER_EMAIL = os.getenv("SENDER_EMAIL")
if not SENDER_EMAIL:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mario99logic I'm not sure this is the right thing to do the check in the global scope. I think it's cleaner in the function. But you can ask Itay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants