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.

n8nRead on 2026-11-167 steps

Steps

  1. Trigger: Gmail trigger polls for unread messagesGmail
    Every minute.
  2. Filter keeps support@ and info@ mail
  3. Prepare email data cleans the email
    Strips HTML, removes quoted reply chains.
  4. Basic LLM Chain sends it to IONOSIONOS AI Model Hub
    Mistral Small 24B returns category, priority, summary, draft reply.
  5. Parse AI Response validates the JSON
  6. Switch routes Spam to mark-as-readGmail
  7. 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