# Rasa auto greeting

**URL:** <https://forum.rasa.com/t/rasa-auto-greeting/4154>\
**Category:** Rasa Open Source\
**Created:** [January 9, 2019, 7:15am UTC](https://forum.rasa.com/t/rasa-auto-greeting/4154 "2019-01-09T07:15:21Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![vigneshgig](https://avatars.discourse-cdn.com/v4/letter/v/eada6e/32.png) [@vigneshgig](https://forum.rasa.com/u/vigneshgig)\
**Post date:** [January 9, 2019, 7:15am UTC](https://forum.rasa.com/t/rasa-auto-greeting/4154/1 "2019-01-09T07:15:22Z")

</div>

hi , how can i make the bot auto greet for first time when user came.Is there any feature like that in rasa core

---

<div class="post-metadata">

**Author:** ![akelad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akelad/32/69_2.png) [@akelad](https://forum.rasa.com/u/akelad)\
**Post date:** [January 17, 2019, 5:06pm UTC](https://forum.rasa.com/t/rasa-auto-greeting/4154/2 "2019-01-17T17:06:09Z")

</div>

This is done by sending a dummy first message to the user when they first open the bot. This is a functionality available in Telegram, Messenger and probably others too. The webchat ui from mrbot can also do this [GitHub - mrbot-ai/rasa-webchat: A chat widget easy to connect to chatbot platforms such as Rasa Core](https://github.com/mrbot-ai/rasa-webchat)

---

<div class="post-metadata">

**Author:** ![vigneshgig](https://avatars.discourse-cdn.com/v4/letter/v/eada6e/32.png) [@vigneshgig](https://forum.rasa.com/u/vigneshgig)\
**Post date:** [January 19, 2019, 8:06am UTC](https://forum.rasa.com/t/rasa-auto-greeting/4154/3 "2019-01-19T08:06:20Z")

</div>

thanks for the reply

---

<div class="post-metadata">

**Author:** ![vigneshgig](https://avatars.discourse-cdn.com/v4/letter/v/eada6e/32.png) [@vigneshgig](https://forum.rasa.com/u/vigneshgig)\
**Post date:** [January 19, 2019, 8:11am UTC](https://forum.rasa.com/t/rasa-auto-greeting/4154/4 "2019-01-19T08:11:30Z")

</div>

hi is there any documentation for twostagefallbackpolicy

---

<div class="post-metadata">

**Author:** ![akelad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akelad/32/69_2.png) [@akelad](https://forum.rasa.com/u/akelad)\
**Post date:** [January 22, 2019, 5:37pm UTC](https://forum.rasa.com/t/rasa-auto-greeting/4154/5 "2019-01-22T17:37:47Z")

</div>

[https://rasa.com/docs/core/master/policies/#two-stage-fallback-policy](https://rasa.com/docs/core/master/policies/#two-stage-fallback-policy)

---

<div class="post-metadata">

**Author:** ![Neeraj](https://avatars.discourse-cdn.com/v4/letter/n/e47c2d/32.png) [@Neeraj](https://forum.rasa.com/u/Neeraj)\
**Post date:** [June 7, 2019, 9:29am UTC](https://forum.rasa.com/t/rasa-auto-greeting/4154/6 "2019-06-07T09:29:36Z")

</div>

> [@akelad](#):
>

Hi @akelad how i can use auto greeting like good morning , evening based on client location

---

<div class="post-metadata">

**Author:** ![niveK](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nivek/32/13710_2.png) [@niveK](https://forum.rasa.com/u/niveK)\
**Post date:** [June 7, 2019, 4:37pm UTC](https://forum.rasa.com/t/rasa-auto-greeting/4154/7 "2019-06-07T16:37:31Z")

</div>

@Neeraj You can trigger the message from Rasa with the dummy message when the user first starts the chat, which runs a custom action to check the user’s location and send the appropriate message based on the time.

So you’d send something like below from the client when the user joins:

```auto
{
  "sender": "<some_id>"
  "message": "/greet"
}

```

which would trigger this story in Rasa:

```auto
## Greet user by location
* greet
 - location_based_welcome

```

And the `location_based_welcome` would be a custom action that determines the appropriate response. See [these](https://rasa.com/docs/rasa/core/actions/#custom-actions-written-in-python) docs for more info.

---

<div class="post-metadata">

**Author:** ![Neeraj](https://avatars.discourse-cdn.com/v4/letter/n/e47c2d/32.png) [@Neeraj](https://forum.rasa.com/u/Neeraj)\
**Post date:** [June 10, 2019, 5:00am UTC](https://forum.rasa.com/t/rasa-auto-greeting/4154/8 "2019-06-10T05:00:39Z")

</div>

Hi @niveK thanks for reply. I want to get user location based on his/her ip address. Is there is any way to get the ip address of client @akelad @souvikg10

---

<div class="post-metadata">

**Author:** ![niveK](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nivek/32/13710_2.png) [@niveK](https://forum.rasa.com/u/niveK)\
**Post date:** [June 10, 2019, 6:55pm UTC](https://forum.rasa.com/t/rasa-auto-greeting/4154/9 "2019-06-10T18:55:20Z")

</div>

I don’t believe that’s information you have available to use, unless there’s a way to hook into the POST endpoint for messages. Unless you had some slot to pass along from whatever channel you had, I don’t think there’s a way to do that.

---

<div class="post-metadata">

**Author:** ![shivangpatel](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/shivangpatel/32/3951_2.png) [@shivangpatel](https://forum.rasa.com/u/shivangpatel)\
**Post date:** [August 7, 2019, 9:45am UTC](https://forum.rasa.com/t/rasa-auto-greeting/4154/10 "2019-08-07T09:45:33Z")

</div>

Is there any other way ? Like whenever user is connected, some kind of event triggered and we can call custom action.

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [May 3, 2020, 10:41pm UTC](https://forum.rasa.com/t/rasa-auto-greeting/4154/11 "2020-05-03T22:41:10Z")

</div>

Any code or example how to add the welcome message or greet message by bot-like " Hello, I am a bot, how can I help you today?" at the first instant of the chat window open or

the sequence of messages one after another.

Bot: Hello.

Bot: Welcome to the website.

Bot: I am your chatbot assistant!

Then user reply

User: Hey there!!

Please Help,Guys!

---

<div class="post-metadata">

**Author:** ![akelad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akelad/32/69_2.png) [@akelad](https://forum.rasa.com/u/akelad)\
**Post date:** [May 7, 2020, 10:44am UTC](https://forum.rasa.com/t/rasa-auto-greeting/4154/12 "2020-05-07T10:44:01Z")

</div>

Hi @nik202 is using e.g. this [widget](https://github.com/scalableminds/chatroom) an option for you? You can figure that to send the first message. Alternatively, if you’re using your own widget, you can use this [API endpoint](https://rasa.com/docs/rasa/api/http-api/#operation/triggerConversationIntent)
