-
Notifications
You must be signed in to change notification settings - Fork 5
feat: add gmail support project #250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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:
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
|
|
||
| # Gmail Support Email Workflow | ||
|
|
||
| [](https://app.autokitteh.cloud/template?name=gmail_support_workflow) |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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
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