Incoming mail triage — the urgent straight to Telegram

The scenario reads every new email in Gmail, decides its type and urgency, flags the important ones in Telegram and logs all emails to Azure Cosmos DB.

  • Urgent mail is flagged in Telegram at once
  • Emails are sorted into streams
  • Nothing is lost — everything in Azure Cosmos DB
  • Attachments are handled separately