MongoDB

The global cloud database service for modern applications

Go to site

Integrate the MongoDB API with the Slack API

Setup the MongoDB API trigger to run a workflow which integrates with the Slack API. Pipedream's integration platform allows you to integrate MongoDB and Slack remarkably fast. Free for developers.

Send a Message

Send a message to a channel, group or user

 
Try it
Insert a document into a collection
 
Try it
Add Reaction

Adds a reaction (emoji) to a message.

 
Try it
Add Reminder

Adds a reminder

 
Try it
Find User By Email

Finds a single user by looking them up by their registered email address.

 
Try it

Connect MongoDB

const MongoClient = require('mongodb').MongoClient

const {
  database,
  hostname,
  username,
  password,
} = auths.mongodb

const url = `mongodb+srv://${username}:${password}@${hostname}/test?retryWrites=true&w=majority`
const client = await MongoClient.connect(url, { 
  useNewUrlParser: true, 
  useUnifiedTopology: true 
})

const db = client.db(database)
// Enter your target collection as a parameter to this step
this.res = await db.collection(params.collection).insertOne({ name: "Luke Skywalker" })

await client.close()

Connect Slack

return await require("@pipedreamhq/platform").axios(this, {
  url: `https://slack.com/api/users.profile.get`,
  headers: {
    Authorization: `Bearer ${auths.slack.oauth_access_token}`,
  },
})
Save Zoom Cloud Recordings to Google Drive and Share on Slack
Save Zoom Cloud Recordings to Google Drive and Share on Slack
Save Zoom Cloud Recordings to Google Drive and Share on Slack.
Run a Pipedream workflow on PagerDuty on-call rotations
Run a Pipedream workflow on PagerDuty on-call rotations
Run common workflows, or any Node.js code you'd like, each time a new user rotates onto an on-call schedule.

Community Posts

Airtable Webhooks with Slack + Pipedream
Airtable Webhooks with Slack + Pipedream
We love Airtable here at Pipedream. But Airtable lacks one killer feature — webhooks. We took advantage of Airtable’s Slack notifications and built a way to send webhooks to an HTTP endpoint every time a record is created or updated in a base. It takes 10 minutes to setup and it’s free.