With the Zapier app installed on your workspace by the workspace administrator, you can start using the integration by simply going to the Zapier platform and creating Zaps with the Rocket.Chat
app.
To verify the installation of the app, navigate to Administrator > Apps > Installed
The Rocket.Chat app on the Zapier platform can function both as a trigger and an action in creating your Zap. For a comprehensive list of available actions and triggers, refer to this list Rocket.Chat Zapier actions and triggers.
To illustrate the integration's functionality, we have provided some example Zaps:
Using Rocket.Chat trigger to Rocket.Chat Action
Rocket.Chat trigger to External Action
External trigger to Rocket.Chat Action
Zapier Rocket.Chat trigger to Rocket.Chat action
This example makes use of the Rocket.Chat New channel
trigger and the Send direct message
action.
This sends a direct message to a user when a new channel is created.
Zapier Send a direct message when a new channel is created
Follow these steps to create the zap.
Log in to your Zapier dashboard
Click on + Create to begin creating a new Zap
Search and select the
Rocket.Chat
app as triggerIn the “trigger event field,” select the
New channel
eventIn the Account settings, click Sign in to your Rocket.Chat workspace. A window pops up requesting your workspace URL
Fill in your workspace BaseURL, then click Yes, continue
Authorize with the Rocket.Chat OAuth to link the currently logged-in user
Click Continue after a successful connection then Test step
After Configuring the Zapier trigger, the next step is configuring the action.
Search and select the
Rocket.Chat
app as the Action appIn the “action event” field, select the
Send direct message
event and ContinueSelect the Rocket.Chat workspace linked above or connect another Rocket.Chat workspace
Configure the desired field in the action section to format the message structure using the example data available
Message: The message text to send.
User: Select the user to be DMed.
Alias: The user to send the message as.
Click Continue, then Test step. You receive a test message as configured.
Publish the Zap
After creating the Zap, you can test its functionalities by Creating a new channel and confirm you received a message from the zapier.bot
with the Alias you configured with information about a newly created channel.
Zapier Rocket.Chat trigger to external action
This example makes use of the Rocket.Chat New message posted on public channel
trigger and the Google Sheets Create Spreadsheet Row in Google Sheets
action.
This creates a Google Sheet row to an existing sheet when a message is posted in any public Rocket.Chat channel.
Zapier Create Google Sheet row when a message is posted in a public channel
Follow these steps to create the zap.
Log in to your Zapier dashboard
Click on +Create Zap to begin creating a new Zap
Search and select the
Rocket.Chat
app as TriggerIn the event field, select the
New message posted on public channel
eventIn the Account settings, click Sign in to your Rocket.Chat workspace. A window pops up requesting your workspace URL
Fill in your workspace BaseURL then click Yes, continue
Authorize with the Rocket.Chat OAuth to link the currently logged-in user
Click Continue, select the public channel you want to monitor or enter the room ID of the public channel in your workspace.
Finally, click Test Trigger.
After Configuring the Zapier Trigger, the next step is configuring the Action.
Search and select the
Google Sheets
app as the Action appIn the event field, select the
Create Spreadsheet Row
event and ContinueIn the Account settings, click Sign in to authenticate, connect your Google account, and Continue
Select the desired Drive, Spreadsheet, Worksheet, and Row to write to
Click Continue, then Test step. You will see a new row added in place of the specified row above.
Publish the Zap
After creating the Zap, whenever a message is posted in the specified channel, a Google Sheet row gets created.
Zapier external trigger to Rocket.Chat action
This example makes use of the New Message Posted to Channel
in Slack trigger and the Send private channel message
Rocket.Chat action.
This forwards any message sent in a Slack channel to a private channel in Rocket.Chat.
Zapier forward Slack Messages to Rocket.Chat channel
Follow these steps to create the zap.
Log in to your Zapier dashboard
Click on +Create Zap to begin creating a new Zap
Search and select the
Slack
app as TriggerIn the event field, select the
New Message Posted to Channel
event and ContinueIn the Account settings, click Sign in to authenticate and connect your Slack account
Select the Slack Channel to listen to and Continue
After Configuring the Zapier Trigger, the next step is configuring the Action.
Search and select the
Rocket.Chat
app as the Action appIn the event field, select the
Send private channel message
event and ContinueSelect a linked Rocket.Chat workspace Sign in to a Rocket.Chat workspace to use
Configure the desired field in the action section to format the message structure using the example data available
Message: The message text to send.
Private channel: The private Rocket.Chat group to post the message in.
Alias: The user to send the message as.
Click Continue, then Test step. You receive a test message in the private group as configured above
Publish the Zap
After creating the Zap, whenever a message is posted in the specified Slack channel, it gets forwarded to a Rocket.Chat private channel.