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.
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"]}`,
},
})
},
})
Automated Helpdesk Notifications: Listen to new messages in a specific Rocket Chat support channel using Pipedream's event sources. When a message contains certain keywords (like "help" or "issue"), automatically create a ticket in a helpdesk system like Zendesk or Jira. This ensures that support requests are tracked and handled systematically.
Team Activity Digests: Compile daily or weekly summaries of messages and activity from specific Rocket Chat channels. Use a Pipedream scheduled workflow to fetch this data and format it into a digest. Then, send the digest via email using an integration with SendGrid or directly post it in another channel, keeping the team updated on important discussions or announcements.
Real-time CRM Updates: Detect when sales team members mention deals or clients in Rocket Chat and use Pipedream to trigger updates in a CRM like Salesforce or HubSpot. You can configure the workflow to parse messages for deal IDs or client names, then update the corresponding records in the CRM, ensuring that conversation insights are captured and accessible for future reference.
Sends a new direct message to a specific user. See the documentation
Rocket Chat uses API keys for authentication. When you connect your Rocket Chat account, Pipedream securely stores the keys so you can easily authenticate to Rocket Chat APIs in both code and no-code steps.
Create a token in Account > Personal Access Tokens and retrieve your Token and User ID. For domain, use "xyz.rocket.chat" for the cloud version or your own root URL such as "mydomain.com" (do not include https://).