Latenode

Automatically share important emails with your Discord team

This template watches Gmail or Outlook for new mail, builds a short Discord message in JavaScript from subject, sender, and a body excerpt, then posts it to the channel you choose.

Connect the inbox you actually use and a Discord bot that can post there. Keep Gmail or Outlook access on that connection, and the bot token on the Discord connection.

Updated Sep 15, 2026Est. run: 8sEst. cost: $0.0005
How Latenode estimates time and cost

Latenode bills workflow runtime in CPU seconds. The first 10,000 CPU seconds are free each month, then usage follows pay-as-you-go CPU-second pricing. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how CPU seconds work →

Workflow preview

What this template does

  • Posts new Gmail or Outlook mail into Discord
  • Builds a short channel message in JavaScript
  • Lets you keep only the senders or subjects you care about
  • Keeps inbox and Discord bot credentials on those connections

How it works

1
Trigger

Watch the inbox

The scenario starts when a new message arrives in the Gmail or Outlook mailbox you connect.

2
Logic

Build the Discord message

JavaScript turns subject, sender, and a short excerpt into channel text. Skip mail that does not match the from-address or subject you set.

3
Action

Post to Discord

The Discord bot sends that message to the channel you map.

Setup guide

1

Connect Gmail or Outlook

Add a Gmail connection or an Outlook connection, depending on which inbox should start the run. Watch new email on that mailbox.

2

Connect Discord

Add a Discord bot connection with permission to post in the destination channel. Put the bot token on that connection.

3

Map and filter

In JavaScript, build the channel text from subject, sender, and a short excerpt. Keep only messages from the senders or subjects you care about. Map the text into Discord send message. Test with one incoming email.

Requirements

A Gmail or Outlook mailbox Latenode can read
A Discord bot that can post in the destination channel
The Discord channel id where notices should land

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work.