AI Email Classifier
Classify incoming Gmail messages with AI and route them to the right team.
Polls Gmail for new emails and uses OpenAI to classify each one into a single department label (Sales, Support, Finance, Operations, HR, or URGENT). The matching Gmail label is applied, the department's recipient address is stored, and the original email is forwarded to the correct team.
- AI classification constrained to a fixed set of labels via a JSON response schema
- Multi-way branch routing, one case per department label
- Automatic Gmail label tagging of the incoming message
- Per-team recipient address resolved through in-execution data storage
- HTML email forwarding to the resolved team address
- Google Mail (Gmail) connection
- OpenAI API key
- Gmail labels pre-created, matching the label IDs referenced in the workflow
- Department recipient email addresses
Support and operations teams that want incoming email triaged and routed to the correct department automatically.
- Trigger: poll Gmail for a new email.
- Classify the email into a single label (Sales, Support, Finance, Operations, HR, or URGENT) with OpenAI.
- Branch on the predicted label: add the matching Gmail label and store the team's recipient address.
- Read the stored recipient address, defaulting to a fallback inbox.
- Forward the original email to the resolved team address.
MoreAITemplates
When a Google Forms response is submitted, downloads the attached CV PDF from Google Drive, extracts its text, and summarizes it with AI. OpenAI scores the candidate from 0 to 10 against a Senior Java Developer job description. The name, email, summary, and score are recorded in a Google Sheet, and the CV file is filed into a Rejected or Potential candidates Google Drive folder based on the score.
Lists all files in a local documentation directory recursively, then loops over each file, reads its contents, and loads it into a Pinecone vector database as a Markdown document, building a searchable knowledge base for retrieval-augmented generation.
This workflow prompts OpenAI for an inspirational quote on weekdays and a joke on the weekends. The quote is enriched with some context. Afterwards, the joke or the quote is sent via email.