Log Gmail emails to Job report and Slack

ProductivitySales EnablementRecipe ToolsDeveloper ToolAPI IntegrationBotsArtificial Intelligence

What it does

When a new email arrives in Gmail from sharat@workato.com, this automation logs the subject and body to Job report. It analyzes sentiment, generates a completion via a web service, and posts the result to Slack or sends a reply email based on the tone.

Who it's for

Operations teams who want to track incoming emails in a central report and route responses by sentiment.

How teams use this

Track customer emails in a report

Log every email from a key contact into Job report so the team has a searchable archive. No manual copying or pasting is needed.

Route urgent issues to Slack

When sentiment analysis detects a negative tone, send the message to a Slack channel instead of replying by email. This ensures urgent issues get immediate attention from the team.

Add approval step before sending replies

Include a manual approval gate so someone reviews the generated response before it posts to Slack or Gmail. This adds a quality check to outbound messages.

How it works

  1. New email arrives in Gmail. When a new email lands in Gmail from sharat@workato.com, this automation starts and checks the sender to avoid loops.
  2. Log email details to Job report. Log the email subject and body to Job report via Rest so the team has a record of all incoming messages from that sender.
  3. Analyze sentiment via web service. Send the email text to a sentiment analysis service via Rest to determine if the tone is negative or positive.
  4. Generate response via web service. Call a text completion service via Rest to draft a reply based on the email content and sentiment result.
  5. Route to Slack or Gmail based on tone. Post the generated response to Slack if sentiment is positive, or send a reply email via Gmail if the tone is negative.