Rocket Chat

The Ultimate Communication Platform

Integrate the Rocket Chat API with the Python API

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

Run Python Code with Python API on New Channel Created from Rocket Chat API
Rocket Chat + Python
 
Try it
Run Python Code with Python API on New Message in Public Channel from Rocket Chat API
Rocket Chat + Python
 
Try it
Run Python Code with Python API on New User Created from Rocket Chat API
Rocket Chat + Python
 
Try it
New Channel Created from the Rocket Chat API

Emit new event when a new channel is created in RocketChat.

 
Try it
New Message in Public Channel from the Rocket Chat API

Emit new event when a new message is posted to a specific public channel.

 
Try it
New User Created from the Rocket Chat API

Emit new event when a new user is created in RocketChat.

 
Try it
Create Channel with the Rocket Chat API

Creates a new channel. See the documentation

 
Try it
Run Python Code with the Python API

Write Python and use any of the 350k+ PyPi packages available. Refer to the Pipedream Python docs to learn more.

 
Try it
Send Direct Message with the Rocket Chat API

Sends a new direct message to a specific user. See the documentation

 
Try it
Set Status with the Rocket Chat API

Updates the user's status. See the documentation

 
Try it

Overview of Rocket Chat

Rocket Chat is a customizable and open-source team chat platform that's a popular alternative for team communication. With its API, you can automate a variety of tasks, such as sending messages, creating channels, managing users, and integrating with various services for a seamless workflow. Leveraging Pipedream's capabilities, you can use Rocket Chat API to create intricate workflows and connect them with other apps to streamline communication, trigger actions based on messages, and synchronize data across platforms.

Connect Rocket Chat

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    rocket_chat: {
      type: "app",
      app: "rocket_chat",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://${this.rocket_chat.$auth.domain}/api/v1/me`,
      headers: {
        "X-Auth-Token": `${this.rocket_chat.$auth["X-Auth-Token"]}`,
        "X-User-Id": `${this.rocket_chat.$auth["X-User-Id"]}`,
      },
      params: {
        userId: `${this.rocket_chat.$auth["X-User-Id"]}`,
      },
    })
  },
})

Overview of Python

Develop, run and deploy your Python code in Pipedream workflows. Integrate seamlessly between no-code steps, with connected accounts, or integrate Data Stores and manipulate files within a workflow.

This includes installing PyPI packages, within your code without having to manage a requirements.txt file or running pip.

Below is an example of using Python to access data from the trigger of the workflow, and sharing it with subsequent workflow steps:

Connect Python

1
2
3
4
5
def handler(pd: "pipedream"):
  # Reference data from previous steps
  print(pd.steps["trigger"]["context"]["id"])
  # Return data for use in future steps
  return {"foo": {"test":True}}