# How to Add Welcome message in RASA X?

**URL:** https://forum.rasa.com/t/how-to-add-welcome-message-in-rasa-x/46754
**Category:** \[Deprecated\] Rasa X Community Edition
**Created:** [August 11, 2021, 7:47am UTC](https://forum.rasa.com/t/how-to-add-welcome-message-in-rasa-x/46754 "2021-08-11T07:47:45Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![ChrisRahme](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisrahme/32/15572_2.png) [@ChrisRahme](https://forum.rasa.com/u/ChrisRahme)
#### Post date: [August 11, 2021, 11:21am UTC](https://forum.rasa.com/t/how-to-add-welcome-message-in-rasa-x/46754/9 "2021-08-11T11:21:31Z")

</div>

Fontend means the interface the user will use to talk the the bot, like a web widget or a mobile application.

You can’t start with a message from the bot in Rasa X; you will have to do that in your application. There are two ways:

1. In that application, you will have a `send()` function for sure, to send the user message to the Rasa server when the user clicks on the “send” button.

2. You will also have a `display_message()` function which you will use to display the message received by the bot.

There are multiple frontends you can use:

- [Chatbot Widget](https://github.com/JiteshGaikwad/Chatbot-Widget) by Jitesh Gaikwad (web)
- [WebApp](https://github.com/ChrisRahme/fyp-webapp) by me (web)
- [Webchat](https://github.com/botfront/rasa-webchat) by Botfront (web)
- [Chatroom](https://github.com/scalableminds/chatroom) by ScalableMinds (web)
- [Rasa Android](https://github.com/Horizon733/Rasa-with-Android-app/tree/part4) by Dishant Ghandi (mobile)
- [MobApp](https://github.com/ChrisRahme/fyp-mobapp) by me (mobile)

All of them have a feature to do what mentioned above, except the Rasa Android app (I think).

* * *

A small JavaScript code example for solution 1:

```javascript
$(document).ready(() => {
  send("Hello")
})

function send(message) {
  $.ajax({
    url: rasa_server_url,
    type: "POST",
    contentType: "application/json",
    data: JSON.stringify({ message, sender: sender_id }),
    success(botResponse, status) {
      setBotResponse(botResponse);
    },
    error(xhr, textStatus) {
      setBotResponse('Error');
    },
  });
}

```

And for solution 2:

```javascript
$(document).ready(() => {
  display_message("Hey there, I am a bot. How can I assist you?")
})

function display_message(message) {
  $(`<p class="botMsg">${message}</p>`).appendTo(".chats").hide().fadeIn(500);
}

```

---

_[View the full topic](https://forum.rasa.com/t/how-to-add-welcome-message-in-rasa-x/46754)._
