DEV Community

alakkadshaw
alakkadshaw

Posted on • Originally published at deadsimplechat.com

Text Message and Email Notifications when a user Joins Chat

In this guide we will go through the process of setting up an email and SMS notification whenever a user joins Dead Simple Chat, Chat Room.

this blog was originally published on the DeadSimpleChat Blog: https://deadsimplechat.com/blog/get-text-message-or-email-notification-when-user-joins-chat/
We will use Zapier and Webhooks feature from Dead Simple Chat to allow this functionality.

New to DeadSimpleChat? It's a turn key chat that you can easily add to your website or App —without any complicated code. For Virtual / Live events, SaaS App, Social Platform, Education, Gaming, Finance Sign Up for Free

Here are the Steps:

  1. Go to https://www.zapier.com and signup for an account
  2. Click on "Create Zap Button"

Image description

  1. Select "Webhook:

Image description

  1. Select the option "Catch a Hook"

Image description

  1. Copy the Webhook URL

Image description

  1. Go to https://deadsimplechat.com/login and login to your dashboard and Turn On Webhooks

Image description

  1. Paste the Webhooks URL and Turn on the "User Joined Chat Room" webhook and press the save button

Image description

  1. Now Join a Chat Room, this will trigger the Webhook and then go back to Zapier and click on the "Test Trigger" button, this should load the Webhook data. Once it is loaded click continue button

Image description

  1. Now Select Email by Zapier

Image description

  1. Select Send and Outbound Mail and click Continue

Image description

  1. Under the "to" field type in the email address where you would like to receive the notification when a new user joins the chat room

Image description

  1. Enter the Subject and Body of the Email. You can also Populate the Subject and Body with the values received from the Webhook. The Webhook data will contain the details about the user who has joined the chat room including the username, profile picture of the user etc. which you can populate in the Subject and Body

Image description

  1. Once Done Click Test and Continue and Publish the Zap. That's it!

Send Text Message Notification

  1. To Send a Text Message Notification as well, instead of Pressing Publish Zap press the "+" button

Image description

  1. Search "SMS" and Select SMS by Zapier
    Image description

  2. Select Choose and Event, "Send SMS"

Image description

  1. Enter your Phone number and Confirm the PIN

Image description

  1. Type in the Message body, you can also populate the field from the Webhook to dynamically specify the username of the user who has joined the chat room

Image description

  1. Click Continue and Test and Continue and Publish the Zap

Image description

That's it! We have now setup a Zap to Automatically Send an Email or SMS notification whenever a user joins the chat room.

Top comments (0)