Conversation
There was a problem hiding this comment.
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 <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
|
||
| # Gmail Support Email Workflow | ||
|
|
||
| [](https://app.autokitteh.cloud/template?name=gmail_support_workflow) |
There was a problem hiding this comment.
@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.
@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