Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Email Automation

Email Automation

Triage Gmail and Draft Replies on Telegram with OpenAI

When a new Gmail email arrives, OpenAI decides if it needs a response, and a Telegram bot lets you review and send a reply.

What it does

# Outputparserstructured Workflow ## Overview Automated workflow: Outputparserstructured Workflow. This workflow integrates 12 different services: telegramTrigger, stickyNote, telegram, gmailTrigger, chainLlm. It contains 32 nodes and follows best practices for error handling and security. ## Workflow Details - Total Nodes: 32 - Node Types: 12 - Error Handling: ✅ Implemented - Security: ✅ Hardened (no sensitive data) - Documentation: ✅ Complete ## Node Breakdown - Structured Output Parser: outputParserStructured - OpenAI Chat Model: lmChatOpenAi - Text Email: telegram - OpenAI: openAi - New Email Received: gmailTrigger - In the Inbox?: if - Needs a response?: if - Telegram Bot Message Received: telegramTrigger - It needs to be an audio message + a reply!: telegram - Get Audio File: telegram - ... and 22 more nodes ## Usage Instructions 1. Configure Credentials: Set up all required API keys and credentials 2. Update Variables: Replace any placeholder values with actual data 3. Test Workflow: Run in test mode to verify functionality 4. Deploy: Activate the workflow for production use ## Security Notes - All sensitive data has been removed or replaced with placeholders - Error handling is implemented for reliability - Follow security best practices when configuring credentials ## Troubleshooting - Check error logs if workflow fails - Verify all credentials are properly configured - Ensure all required services are accessible

The steps

  1. Structured Output Parser
  2. OpenAI Chat Model
  3. Text Email
  4. OpenAI
  5. New Email Received
  6. In the Inbox?
  7. Needs a response?
  8. Telegram Bot Message Received
  9. It needs to be an audio message + a reply!
  10. Get Audio File
  11. Create Email Draft
  12. Direct to Draft
  13. Does Email Need a Response?
  14. Is Type Audio Message + Reply?

26 steps in total.

Similar automations