← Slack (legacy) + Elastic Email integrations

Send Email with Elastic Email API on New Interaction Events (Instant) from Slack (legacy) API

Pipedream makes it easy to connect APIs for Elastic Email, Slack (legacy) and 2,900+ other apps remarkably fast.

Trigger workflow on
New Interaction Events (Instant) from the Slack (legacy) API
Next, do this
Send Email with the Elastic Email API
No credit card required
Intro to Pipedream
Watch us build a workflow
Watch us build a workflow
8 min
Watch now ➜

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo

Developers Pipedream

Getting Started

This integration creates a workflow with a Slack (legacy) trigger and Elastic Email action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the New Interaction Events (Instant) trigger
    1. Connect your Slack (legacy) account
    2. Configure alert
    3. Optional- Configure Action IDs
    4. Optional- Select one or more Channels
    5. Configure slackApphook
  3. Configure the Send Email action
    1. Connect your Elastic Email account
    2. Configure Recipients
    3. Configure From
    4. Optional- Select a Body Content Type
    5. Optional- Configure Body Content
    6. Optional- Configure Merge
    7. Optional- Configure Reply To
    8. Optional- Configure Subject
    9. Optional- Select a Template Name
    10. Optional- Configure Time Offset
    11. Optional- Configure Pool Name
    12. Optional- Configure Channel Name
    13. Optional- Select a Encoding
    14. Optional- Configure Track Opens
    15. Optional- Configure Track Clicks
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, source-available components from Pipedream's GitHub repo. These components are developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Trigger

Description:Emit new events on new Slack [interactivity events](https://api.slack.com/interactivity) sourced from [Block Kit interactive elements](https://api.slack.com/interactivity/components), [Slash commands](https://api.slack.com/interactivity/slash-commands), or [Shortcuts](https://api.slack.com/interactivity/shortcuts).
Version:0.0.20
Key:slack-new-interaction-event-received

New Interaction Events (Instant) Overview

Slack messages can contain interactive elements like buttons, dropdowns, radio buttons, and more. This source subscribes to interactive events, like when a button is clicked in a message.

Example of a Slack button

Then this source will be triggered when you or another Slack user in your workspace clicks a button, selects an option or fills out a form.

Example feed of interaction events coming from Slack

With this trigger, you can build workflows that perform some work with other APIs or services, and then reply back to the original message.

Trigger Code

import common from "../common/base.mjs"; import sampleEmit from "./test-event.mjs"; export default { name: "New Interaction Events (Instant)", version: "0.0.20", key: "slack-new-interaction-event-received", description: "Emit new events on new Slack [interactivity events](https://api.slack.com/interactivity) sourced from [Block Kit interactive elements](https://api.slack.com/interactivity/components), [Slash commands](https://api.slack.com/interactivity/slash-commands), or [Shortcuts](https://api.slack.com/interactivity/shortcuts).", type: "source", props: { ...common.props, alert: { type: "alert", alertType: "info", content: "Please note that only messages created via Pipedream's [Send Block Kit Message](https://pipedream.com/apps/slack/actions/send-block-kit-message) Action, or via API call from the Pipedream app will emit an interaction event with this trigger. \n\nBlock kit messages sent directly via the Slack's block kit builder will not trigger an interaction event. \n\nSee the [documentation](https://pipedream.com/apps/slack/triggers/new-interaction-event-received) for more details.", }, action_ids: { type: "string[]", label: "Action IDs", description: "Filter interaction events by specific `action_id`'s to subscribe for new interaction events. If none are specified, all `action_ids` created via Pipedream will emit new events.", optional: true, default: [], }, conversations: { propDefinition: [ common.props.slack, "conversation", ], type: "string[]", label: "Channels", description: "Filter interaction events by one or more channels. If none selected, any interaction event in any channel will emit new events.", optional: true, default: [], }, // eslint-disable-next-line pipedream/props-description,pipedream/props-label slackApphook: { type: "$.interface.apphook", appProp: "slack", /** * Subscribes to potentially 4 different events: * `interaction_events` - all interaction events on the authenticated account * `interaction_events:${action_id}` - all interaction events with a specific given action_id * `interaction_events:${channel_id}` - all interaction events within a specific channel * `interaction_events:${channel_id}:${action_id}` - action_id within a specific channel * @returns string[] */ async eventNames() { // start with action_ids, since they can be the most specific const action_events = this.action_ids.reduce((carry, action_id) => { // if channels are provided, spread them if (this.conversations && this.conversations.length > 0) { return [ ...carry, ...this.conversations.map( (channel) => `interaction_events:${channel}:${action_id}`, ), ]; } return [ ...carry, `interaction_events:${action_id}`, ]; }, []); if (action_events.length > 0) return action_events; // if no action_ids are specified, move down to channels const channel_events = this.conversations.map( (channel) => `interaction_events:${channel}`, ); if (channel_events.length > 0) return channel_events; // if not specific action_ids or channels are specified, subscribe to all events return [ "interaction_events", ]; }, }, }, methods: {}, async run(event) { this.$emit( { event, }, { summary: `New interaction event${ event?.channel?.id ? ` in channel ${event.channel.id}` : "" }${ event.actions?.length > 0 ? ` from action_ids ${event.actions .map((action) => action.action_id) .join(", ")}` : "" }`, ts: Date.now(), }, ); }, sampleEmit, }; 

Trigger Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
Slack (legacy)slackappThis component uses the Slack (legacy) app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
Action IDsaction_idsstring[]

Filter interaction events by specific action_id's to subscribe for new interaction events. If none are specified, all action_ids created via Pipedream will emit new events.

Channelsconversationsstring[]Select a value from the drop down menu.
slackApphook$.interface.apphook

Trigger Authentication

Slack (legacy) uses OAuth authentication. When you connect your Slack (legacy) account, Pipedream will open a popup window where you can sign into Slack (legacy) and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Slack (legacy) API.

Pipedream requests the following authorization scopes when you connect your account:

channels:historychannels:readchannels:writeemoji:readgroups:historygroups:readgroups:writeim:historyim:readim:writelinks:readlinks:writempim:historympim:readmpim:writereactions:readreactions:writereminders:readreminders:writestars:readteam:readusergroups:readusergroups:writeusers:readusers:read.emailusers:writechat:write:botchat:write:userfiles:write:userfiles:readcommandsusers.profile:writeusers.profile:readsearch:read

About Slack (legacy)

Slack is a channel-based messaging platform. With Slack, people can work together more effectively, connect all their software tools and services, and find the information they need to do their best work — all within a secure, enterprise-grade environment.

Action

Description:Sends an email to one or more recipients. [See the documentation](https://elasticemail.com/developers/api-documentation/rest-api#operation/emailsPost)
Version:0.0.2
Key:elastic_email-send-email

Elastic Email Overview

The Elastic Email API allows you to integrate a robust email sending platform into your Pipedream workflows. Use it to send emails, manage contacts, and track campaign statistics. With this API, you can automate email notifications, synchronize subscriber lists, or trigger marketing campaigns based on user actions.

Action Code

import { BODY_CONTENT_TYPE_OPTIONS, ENCODING_OPTIONS, } from "../../common/constants.mjs"; import { parseObject } from "../../common/utils.mjs"; import app from "../../elastic_email.app.mjs"; export default { key: "elastic_email-send-email", name: "Send Email", description: "Sends an email to one or more recipients. [See the documentation](https://elasticemail.com/developers/api-documentation/rest-api#operation/emailsPost)", version: "0.0.2", annotations: { destructiveHint: false, openWorldHint: true, readOnlyHint: false, }, type: "action", props: { app, recipients: { type: "string[]", label: "Recipients", description: "List of recipients", }, from: { type: "string", label: "From", description: "Your e-mail with an optional name (e.g.: email@domain.com)", }, bodyContentType: { type: "string", label: "Body Content Type", description: "Type of body part", options: BODY_CONTENT_TYPE_OPTIONS, optional: true, }, bodyContent: { type: "string", label: "Body Content", description: "Actual content of the body part", optional: true, }, merge: { type: "object", label: "Merge", description: "A key-value collection of custom merge fields, shared between recipients. Should be used in e-mail body like so: {firstname}, {lastname} etc.", optional: true, }, replyTo: { type: "string", label: "Reply To", description: "To what address should the recipients reply to (e.g. email@domain.com)", optional: true, }, subject: { type: "string", label: "Subject", description: "Default subject of email.", optional: true, }, templateName: { propDefinition: [ app, "templateName", ], optional: true, }, timeOffset: { type: "integer", label: "Time Offset", description: "By how long should an e-mail be delayed (in minutes). Maximum is 35 days.", optional: true, }, poolName: { type: "string", label: "Pool Name", description: "Name of your custom IP Pool to be used in the sending process", optional: true, }, channelName: { type: "string", label: "Channel Name", description: "Name of selected channel.", optional: true, }, encoding: { type: "string", label: "Encoding", description: "Encoding type for the email headers", options: ENCODING_OPTIONS, optional: true, }, trackOpens: { type: "boolean", label: "Track Opens", description: "Should the opens be tracked? If no value has been provided, Account's default setting will be used.", optional: true, }, trackClicks: { type: "boolean", label: "Track Clicks", description: "Should the clicks be tracked? If no value has been provided, Account's default setting will be used.", optional: true, }, }, async run({ $ }) { const response = await this.app.sendBulkEmails({ $, data: { Recipients: parseObject(this.recipients)?.map((item) => ({ Email: item, })), Content: { From: this.from, Body: [ { ContentType: this.bodyContentType, Body: this.bodyContent, }, ], Merge: parseObject(this.merge), ReplyTo: this.replyTo, Subject: this.subject, TemplateName: this.templateName, }, Options: { TimeOffset: this.timeOffset, PoolName: this.poolName, ChannelName: this.channelName, Encoding: this.encoding, TrackOpens: this.trackOpens, TrackClicks: this.trackClicks, }, }, }); $.export("$summary", `Emails sent successfully to ${this.recipients.join(", ")}`); return response; }, }; 

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

LabelPropTypeDescription
Elastic EmailappappThis component uses the Elastic Email app.
Recipientsrecipientsstring[]

List of recipients

Fromfromstring

Your e-mail with an optional name (e.g.: email@domain.com)

Body Content TypebodyContentTypestringSelect a value from the drop down menu:HTMLPlainTextAMPCSS
Body ContentbodyContentstring

Actual content of the body part

Mergemergeobject

A key-value collection of custom merge fields, shared between recipients. Should be used in e-mail body like so: {firstname}, {lastname} etc.

Reply ToreplyTostring

To what address should the recipients reply to (e.g. email@domain.com)

Subjectsubjectstring

Default subject of email.

Template NametemplateNamestringSelect a value from the drop down menu.
Time OffsettimeOffsetinteger

By how long should an e-mail be delayed (in minutes). Maximum is 35 days.

Pool NamepoolNamestring

Name of your custom IP Pool to be used in the sending process

Channel NamechannelNamestring

Name of selected channel.

EncodingencodingstringSelect a value from the drop down menu:UserProvidedNoneRaw7bitRaw8bitQuotedPrintableBase64Uue
Track OpenstrackOpensboolean

Should the opens be tracked? If no value has been provided, Account's default setting will be used.

Track ClickstrackClicksboolean

Should the clicks be tracked? If no value has been provided, Account's default setting will be used.

Action Authentication

Elastic Email uses API keys for authentication. When you connect your Elastic Email account, Pipedream securely stores the keys so you can easily authenticate to Elastic Email APIs in both code and no-code steps.

You can get your API Key in the Manage API Key page.

About Elastic Email

A modern email marketing and delivery platform for small businesses.

More Ways to Connect Elastic Email + Slack (legacy)

Add Contact to Mailing List with Elastic Email API on New Channel Created (Instant) from Slack API
Slack (legacy) + Elastic Email
 
Try it
Add Contact to Mailing List with Elastic Email API on New Direct Message (Instant) from Slack API
Slack (legacy) + Elastic Email
 
Try it
Add Contact to Mailing List with Elastic Email API on New Interaction Events (Instant) from Slack API
Slack (legacy) + Elastic Email
 
Try it
Add Contact to Mailing List with Elastic Email API on New Keyword Mention (Instant) from Slack API
Slack (legacy) + Elastic Email
 
Try it
Add Contact to Mailing List with Elastic Email API on New Message In Channels (Instant) from Slack API
Slack (legacy) + Elastic Email
 
Try it
Add Contact to Mailing List with Elastic Email API on New Reaction Added (Instant) from Slack API
Slack (legacy) + Elastic Email
 
Try it
Add Contact to Mailing List with Elastic Email API on New Saved Message (Instant) from Slack API
Slack (legacy) + Elastic Email
 
Try it
Add Contact to Mailing List with Elastic Email API on New User Added (Instant) from Slack API
Slack (legacy) + Elastic Email
 
Try it
Add Contact to Mailing List with Elastic Email API on New User Mention (Instant) from Slack API
Slack (legacy) + Elastic Email
 
Try it
Unsubscribe Contact with Elastic Email API on New Channel Created (Instant) from Slack API
Slack (legacy) + Elastic Email
 
Try it
Unsubscribe Contact with Elastic Email API on New Direct Message (Instant) from Slack API
Slack (legacy) + Elastic Email
 
Try it
Unsubscribe Contact with Elastic Email API on New Interaction Events (Instant) from Slack API
Slack (legacy) + Elastic Email
 
Try it
Unsubscribe Contact with Elastic Email API on New Keyword Mention (Instant) from Slack API
Slack (legacy) + Elastic Email
 
Try it
Unsubscribe Contact with Elastic Email API on New Message In Channels (Instant) from Slack API
Slack (legacy) + Elastic Email
 
Try it
Unsubscribe Contact with Elastic Email API on New Reaction Added (Instant) from Slack API
Slack (legacy) + Elastic Email
 
Try it
Unsubscribe Contact with Elastic Email API on New Saved Message (Instant) from Slack API
Slack (legacy) + Elastic Email
 
Try it
Unsubscribe Contact with Elastic Email API on New User Added (Instant) from Slack API
Slack (legacy) + Elastic Email
 
Try it
Unsubscribe Contact with Elastic Email API on New User Mention (Instant) from Slack API
Slack (legacy) + Elastic Email
 
Try it
Send Email with Elastic Email API on New Channel Created (Instant) from Slack API
Slack (legacy) + Elastic Email
 
Try it
Send Email with Elastic Email API on New Direct Message (Instant) from Slack API
Slack (legacy) + Elastic Email
 
Try it
New Message In Channels (Instant) from the Slack (legacy) API

Emit new event when a new message is posted to one or more channels

 
Try it
New Channel Created (Instant) from the Slack (legacy) API

Emit new event when a new channel is created.

 
Try it
New Direct Message (Instant) from the Slack (legacy) API

Emit new event when a message was posted in a direct message channel

 
Try it
New Interaction Events (Instant) from the Slack (legacy) API

Emit new events on new Slack interactivity events sourced from Block Kit interactive elements, Slash commands, or Shortcuts

 
Try it
New Keyword Mention (Instant) from the Slack (legacy) API

Emit new event when a specific keyword is mentioned in a channel

 
Try it
New Reaction Added (Instant) from the Slack (legacy) API

Emit new event when a member has added an emoji reaction to a message

 
Try it
New Saved Message (Instant) from the Slack (legacy) API

Emit new event when a message is saved. Note: The endpoint is marked as deprecated, and Slack might shut this off at some point down the line.

 
Try it
New User Added (Instant) from the Slack (legacy) API

Emit new event when a new member joins a workspace.

 
Try it
New User Mention (Instant) from the Slack (legacy) API

Emit new event when a username or specific keyword is mentioned in a channel

 
Try it
New Contact Added from the Elastic Email API

Emit new event when a new contact is added to a mailing list. See the documentation

 
Try it
New Email Click from the Elastic Email API

Emit new event when a recipient clicks a link in an email. See the documentation

 
Try it
New Email Open from the Elastic Email API

Emit new event when a recipient opens an email. See the documentation

 
Try it
Send Message to Channel with the Slack (legacy) API

Send a message to a public or private channel. See the documentation

 
Try it
Send Message with the Slack (legacy) API

Send a message to a user, group, private channel or public channel. See the documentation

 
Try it
Build and Send a Block Kit Message with the Slack (legacy) API

Configure custom blocks and send to a channel, group, or user. See the documentation

 
Try it
Reply to a Message Thread with the Slack (legacy) API

Send a message as a threaded reply. See postMessage or scheduleMessage docs here

 
Try it
Send Message to User or Group with the Slack (legacy) API

Send a message to a user or group. See the documentation

 
Try it
Add Emoji Reaction with the Slack (legacy) API

Add an emoji reaction to a message. See the documentation

 
Try it
Approve Workflow with the Slack (legacy) API

Suspend the workflow until approved by a Slack message. See the documentation

 
Try it
Archive Channel with the Slack (legacy) API

Archive a channel. See the documentation

 
Try it
Create a Channel with the Slack (legacy) API

Create a new channel. See the documentation

 
Try it
Create Reminder with the Slack (legacy) API

Create a reminder. See the documentation

 
Try it
Delete File with the Slack (legacy) API

Delete a file. See the documentation

 
Try it
Delete Message with the Slack (legacy) API

Delete a message. See the documentation

 
Try it
Find Message with the Slack (legacy) API

Find a Slack message. See the documentation

 
Try it
Find User by Email with the Slack (legacy) API

Find a user by matching against their email. See the documentation

 
Try it
Get Current User with the Slack (legacy) API

Retrieve comprehensive context about the authenticated Slack member, combining auth.test, users.info, users.profile.get, and team.info payloads. Returns the user’s profile (name variants, email, locale, timezone, status, admin flags), raw auth test data, and workspace metadata (domain, enterprise info, icons). Ideal when you need to confirm which user token is active, tailor messages to their locale/timezone, or ground an LLM in the member’s role and workspace before executing other Slack actions. See Slack API docs

 
Try it
Get File with the Slack (legacy) API

Return information about a file. See the documentation

 
Try it
Invite User to Channel with the Slack (legacy) API

Invite a user to an existing channel. See the documentation

 
Try it
Kick User with the Slack (legacy) API

Remove a user from a conversation. See the documentation

 
Try it
List Channels with the Slack (legacy) API

Return a list of all channels in a workspace. See the documentation

 
Try it
List Files with the Slack (legacy) API

Return a list of files within a team. See the documentation

 
Try it
List Group Members with the Slack (legacy) API

List all users in a User Group. See the documentation

 
Try it
List Members in Channel with the Slack (legacy) API

Retrieve members of a channel. See the documentation

 
Try it
List Replies with the Slack (legacy) API

Retrieve a thread of messages posted to a conversation. See the documentation

 
Try it
List Users with the Slack (legacy) API

Return a list of all users in a workspace. See the documentation

 
Try it
Send a Large Message (3000+ characters) with the Slack (legacy) API

Send a large message (more than 3000 characters) to a channel, group or user. See postMessage or scheduleMessage docs here

 
Try it
Send Message (Advanced) with the Slack (legacy) API

Customize advanced setttings and send a message to a channel, group or user. See postMessage or scheduleMessage docs here

 
Try it
Set Channel Description with the Slack (legacy) API

Change the description or purpose of a channel. See the documentation

 
Try it
Set Channel Topic with the Slack (legacy) API

Set the topic on a selected channel. See the documentation

 
Try it
Set Status with the Slack (legacy) API

Set the current status for a user. See the documentation

 
Try it
Update Groups Members with the Slack (legacy) API

Update the list of users for a User Group. See the documentation

 
Try it
Update Message with the Slack (legacy) API

Update a message. See the documentation

 
Try it
Update Profile with the Slack (legacy) API

Update basic profile field such as name or title. See the documentation

 
Try it
Upload File with the Slack (legacy) API

Upload a file. See the documentation

 
Try it
Verify Slack Signature with the Slack (legacy) API

Verifying requests from Slack, slack signs its requests using a secret that's unique to your app. See the documentation

 
Try it
Add Contact to Mailing List with the Elastic Email API

Adds a new contact to a mailing list. See the documentation

 
Try it
Send Email with the Elastic Email API

Sends an email to one or more recipients. See the documentation

 
Try it
Unsubscribe Contact with the Elastic Email API

Unsubscribes a contact from future emails. See the documentation

 
Try it

Explore Other Apps

1
-
24
of
2,900+
apps by most popular

Node
Node
Anything you can do with Node.js, you can do in a Pipedream workflow. This includes using most of npm's 400,000+ packages.
Python
Python
Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.
Notion
Notion
Notion is a new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team.
OpenAI (ChatGPT)
OpenAI (ChatGPT)
OpenAI is an AI research and deployment company with the mission to ensure that artificial general intelligence benefits all of humanity. They are the makers of popular models like ChatGPT, DALL-E, and Whisper.
Anthropic (Claude)
Anthropic (Claude)
AI research and products that put safety at the frontier. Introducing Claude, a next-generation AI assistant for your tasks, no matter the scale.
Google Sheets
Google Sheets
Use Google Sheets to create and edit online spreadsheets. Get insights together with secure sharing in real-time and from any device.
Telegram
Telegram
Telegram, is a cloud-based, cross-platform, encrypted instant messaging (IM) service.
Google Drive
Google Drive
Google Drive is a file storage and synchronization service which allows you to create and share your work online, and access your documents from anywhere.
HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
Google Calendar
Google Calendar
With Google Calendar, you can quickly schedule meetings and events and get reminders about upcoming activities, so you always know what’s next.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.
Pipedream Utils
Pipedream Utils
Utility functions to use within your Pipedream workflows
Shopify
Shopify
Shopify is a complete commerce platform that lets anyone start, manage, and grow a business. You can use Shopify to build an online store, manage sales, market to customers, and accept payments in digital and physical locations.
Supabase
Supabase
Supabase is an open source Firebase alternative.
MySQL
MySQL
MySQL is an open-source relational database management system.
PostgreSQL
PostgreSQL
PostgreSQL is a free and open-source relational database management system emphasizing extensibility and SQL compliance.
Premium
AWS
AWS
Amazon Web Services (AWS) offers reliable, scalable, and inexpensive cloud computing services.
Premium
Twilio SendGrid
Twilio SendGrid
Send marketing and transactional email through the Twilio SendGrid platform with the Email API, proprietary mail transfer agent, and infrastructure for scalable delivery.
Amazon SES
Amazon SES
Amazon SES is a cloud-based email service provider that can integrate into any application for high volume email automation
Premium
Klaviyo
Klaviyo
Email Marketing and SMS Marketing Platform
Premium
Zendesk
Zendesk
Zendesk is award-winning customer service software trusted by 200K+ customers. Make customers happy via text, mobile, phone, email, live chat, social media.
Premium
ServiceNow
ServiceNow
The smarter way to workflow
Slack
Slack
Slack is the AI-powered platform for work bringing all of your conversations, apps, and customers together in one place. Around the world, Slack is helping businesses of all sizes grow and send productivity through the roof.
Microsoft Teams
Microsoft Teams
Microsoft Teams has communities, events, chats, channels, meetings, storage, tasks, and calendars in one place.