| title | Email categorization and notification | ||||||
|---|---|---|---|---|---|---|---|
| description | Categorize incoming emails and notify relevant Slack channels | ||||||
| integrations |
|
||||||
| categories |
|
||||||
| tags |
|
Categorize incoming emails and notify relevant Slack channels by integrating Gmail, ChatGPT, and Slack. It is not meant to be a 100% complete project, but rather a solid starting point.
- Fetch new emails from Gmail API
- Use ChatGPT to analyze and categorize email content
- Post categorized emails to relevant Slack channels
- Label processed emails in Gmail
For more details, refer to this blog post.
- Initialize your connections (ChatGPT, Gmail, Slack)
- Copy the webhook URL from the "Triggers" tab (see the instructions here)
- Deploy the project
Important
Ensure all the connections (ChatGPT, Gmail, Slack) are properly initialized; otherwise the workflow will raise a ConnectionInitError.
-
Start a long-running AutoKitteh session by sending an HTTP GET request to the webhook URL from step 2 in the Cloud Usage section above:
curl -i "${WEBHOOK_URL}" -
Send yourself a new email
-
Wait up to 10 seconds for the workflow's polling loop to detect it
Follow these detailed instructions to deploy the project on a self-hosted server.
- ChatGPT: the prompt for this workflow works for simple cases. It may have mixed results for emails that lack detail or have nothing to do with the channels provided.
- Gmail mailbox polling: the polling mechanism is basic and does not cover edge cases.