Gmail support drafts with IONOS AI
Drafts Gmail replies to support mail with a Mistral model on IONOS. This n8n template polls Gmail every minute for unread mail and discards anything not addressed to a support or info address. A language model, Mistral Small 24B on the IONOS AI Model Hub, returns a JSON object with category, priority, sentiment and detected language. The categories are Spam, Sales Lead, Tech Support, FAQ, Billing and Other. Spam is marked as read, and the other messages get a Gmail draft threaded to the original conversation. The page says the agent reviews each draft and clicks Send. It suits support teams that already use Gmail.
Steps
- Trigger: Gmail trigger polls for unread messagesGmail
Every minute. - Filter keeps support@ and info@ mail
- Prepare email data cleans the email
Strips HTML, removes quoted reply chains. - Basic LLM Chain sends it to IONOSIONOS AI Model Hub
Mistral Small 24B returns category, priority, summary, draft reply. - Parse AI Response validates the JSON
- Switch routes Spam to mark-as-readGmail
- Output: Gmail create Draft saves the replyGmail
Threaded to the original conversation.
Limits
- Needs an IONOS Cloud account and API token.
- Only mail addressed to the support or info address is processed.
What it does well
- Drafts are threaded to the original conversation.
- The agent reviews each draft and clicks Send.
Before you import
You need: Gmail OAuth2 credentials and an IONOS Cloud account with an API token.
Similar templates
Gmail knowledge base support agent
Also for customer support, 7 steps.
Label Gmail with a local Ollama model
Also for customer support, 8 steps.
Gmail sorting and Slack alerts
Also for customer support, 5 steps.
Sort incoming requests
Other templates that do this task.