Skip to main content

Create a Simple Greeting Message

Before You Begin

Before creating a greeting message, ensure you have a clear idea of the content and tone you want to convey in your greeting message. You should also have fully understand every components of Greeting Message's Working Area.

There are 2 types of components in Greeting Message's Working Area:

Working Area Components

  1. Condition: This component define the criteria that determine when the greeting message will be sent to patients. It can be used only once in a greeting message. Including:

    • When chat started

    • When chat ends

    • When chat outside business hours

  2. Node: These components represent the actual content of the greeting message that will be sent to patients. It can be used multiple times in a greeting message. Including:

    • Message: A text-based message that can include formatted text, images, and other media.

    • Message & Actions: A message that includes interactive buttons for patients to respond or take specific actions.

    • Attach tags: A component that allows MChat to attach predefined tags to the chat session automatically.

Start with the idea

Let's imagine we want to create a greeting message that will be sent to patients when they start a chat session. The greeting message will:

  • First, send a welcome message "Hello, how can we help you?"
  • And provide 2 actions:
    • Action A: "I have a question about your hospital"
    • Action B: "I need technical support"
  • If patient clicked:
    • Action A → Attach tag "New Patient" → leads to a message "Please provide your appointment ID."
    • Action B → leads to a message "Please describe the technical issue you are facing."

Create the Greeting Message

Step 1: Open Greeting Message Management interface → Click on Create New Message button to open Greeting Message Creator interface.

Step 2: In Greeting Message Creator interface. Named the greeting message as "Simple Messages". Then click Save button to create the greeting message.

Step 3: In Working Area, select When chat started in Condition components. This will trigger the greeting message to be sent when a patient starts a chat session.

Step 3

Step 4: Click Plus(+) icon button to show the list of Node components. Then select Message & Actions component. This will add a Message & Actions node to the Working Area.

Step 4

Step 5: In the newly added Message & Actions node, enter the message content as "Hello, how can we help you?".

Step 5

Step 6: Add first action by clicking on Add button. Then, enter the button label as "I have a question about your hospital".

Step 6

Step 7: Click Plus(+) icon button of the first action to show the list of Node components. Then select Attach tags component. This will add an Attach tags node to the first action.

Step 7

Step 8: In the newly added Attach tags node, select the tag "New Patient" from the tags list (Please take a note that "New Patient" tag must be created in Chat Tag).

Step 8

Step 9: Click Plus(+) icon button of the Attach tags to show the list of Node components. Then select Message component. This will add a Message node to the first action after assigned the tag.

Step 9

Step 10: In the newly added Message node, enter the message content as "Please provide your appointment ID.".

Step 10

Step 11: Now, go back to the Message & Actions node. Add second action by clicking on Add button. Then, enter the button label as "I need technical support".

Step 11

Step 12: Click Plus(+) icon button of the second action to show the list of Node components. Then select Message component. This will add a Message node to the second action.

Step 12

Step 13: In the newly added Message node, enter the message content as "Please describe the technical issue you are facing.".

Step 13

Step 14: Finally, click Save button at the top right corner to save your changes.

Step 14

Step 15: Your newly created greeting message "Simple Messages" will now appear in the Greeting Message Management interface. You can toggle its status to activate it as needed. Please take a note that only 1 greeting message with same condition can be activated at the same time.

Step 15

Congratulations! You have successfully created a simple greeting message using the Greeting Message Creator interface.

Test the result

In the hospital's website or application where the MChat widget is integrated, initiate a chat session as a patient. You should see the greeting message "Hello, how can we help you?" along with the two action buttons.

Test the result

You can try clicking on each action button to see the subsequent messages and tag attachment in action.