# Bot init conversation

**URL:** <https://forum.rasa.com/t/bot-init-conversation/49567>\
**Category:** Rasa Open Source\
**Created:** [November 27, 2021, 3:47pm UTC](https://forum.rasa.com/t/bot-init-conversation/49567 "2021-11-27T15:47:26Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paulllllaaa](https://avatars.discourse-cdn.com/v4/letter/p/9de0a6/32.png) [@Paulllllaaa](https://forum.rasa.com/u/Paulllllaaa)\
**Post date:** [November 27, 2021, 3:47pm UTC](https://forum.rasa.com/t/bot-init-conversation/49567/1 "2021-11-27T15:47:26Z")

</div>

Hello, I am starting with rasa and I want to make a chatbot that starts talking before the user, I attach an example:

```auto
Bot: Hello, how can I help you?
User: Hello, what time is it?
Bot: It's 5:23 p.m.

```

I know how to make the user write first but I don’t know how to do it the other way around. I have been looking for information and saw this link: [How to let bot start the conversation - #5 by JiteshGaikwad](http://forum.rasa.com/t/how-to-let-bot-start-the-conversation/20866/5) but it is still up to the user to write first

I’ve this: **stories.yml**

```auto
- story: greet
  steps:
  - action: action_utter_supply_greet_user
  - intention: greet
.... (continues)

```

**actions.py**

```auto
class ActionGreetUser(Action):
    def name(self) -> Text:
        return "action_utter_supply_greet_user"
    def run(self, dispatcher: CollectingDispatcher,
            tracker: Tracker,
            domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:
        dispatcher.utter_message("Hello! How can I help you?")
        return[UserUtternanceReverted()]

```

**domain.yml:**

```auto
actions:
  - action_utter_supply_greet_user

```

What’s wrong? How can I do it?

Thanks!

---

<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:** [November 27, 2021, 5:10pm UTC](https://forum.rasa.com/t/bot-init-conversation/49567/2 "2021-11-27T17:10:29Z")

</div>

1. Look at [ActionSessionStart](https://rasa.com/docs/rasa/next/default-actions#action_session_start) and try to implement it.

2. If it doesn’t work, it means you will have to do it from your front-end application. More details here: [How to Add Welcome message in RASA X? - #9 by ChrisRahme](http://forum.rasa.com/t/how-to-add-welcome-message-in-rasa-x/46754/9)

3. 

> [@Paulllllaaa](#):
>
> [How to let bot start the conversation - #5 by JiteshGaikwad](http://forum.rasa.com/t/how-to-let-bot-start-the-conversation/20866/5)

Here, Jitesh is explaining how to make that happen by forcing the bot to execute an action from the front-end. My alternative is sending an intent from the front-end, which will itself execute an action.

---

<div class="post-metadata">

**Author:** ![Paulllllaaa](https://avatars.discourse-cdn.com/v4/letter/p/9de0a6/32.png) [@Paulllllaaa](https://forum.rasa.com/u/Paulllllaaa)\
**Post date:** [November 27, 2021, 5:40pm UTC](https://forum.rasa.com/t/bot-init-conversation/49567/3 "2021-11-27T17:40:32Z")

</div>

Thank you very much I will read what you have sent me and try to apply it.

---

<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:** [November 27, 2021, 5:55pm UTC](https://forum.rasa.com/t/bot-init-conversation/49567/4 "2021-11-27T17:55:57Z")

</div>

Don’t hesitate to get back to me if you have any problems 🙂

---

<div class="post-metadata">

**Author:** ![Paulllllaaa](https://avatars.discourse-cdn.com/v4/letter/p/9de0a6/32.png) [@Paulllllaaa](https://forum.rasa.com/u/Paulllllaaa)\
**Post date:** [November 27, 2021, 6:06pm UTC](https://forum.rasa.com/t/bot-init-conversation/49567/5 "2021-11-27T18:06:10Z")

</div>

I’ve a small doubt to use your method I must have an external interface, I mean, right now I test the chatbot from the python terminal itself, no external page is opened.

---

<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:** [November 27, 2021, 6:07pm UTC](https://forum.rasa.com/t/bot-init-conversation/49567/6 "2021-11-27T18:07:32Z")

</div>

Yes, you need an interface for methods 2 and 3.

But aren’t you planning on having one?

---

<div class="post-metadata">

**Author:** ![Paulllllaaa](https://avatars.discourse-cdn.com/v4/letter/p/9de0a6/32.png) [@Paulllllaaa](https://forum.rasa.com/u/Paulllllaaa)\
**Post date:** [November 27, 2021, 6:11pm UTC](https://forum.rasa.com/t/bot-init-conversation/49567/7 "2021-11-27T18:11:10Z")

</div>

Yes, but it was a future thing, I wasn’t planning to implement it so soon 😅

---

<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:** [November 27, 2021, 6:20pm UTC](https://forum.rasa.com/t/bot-init-conversation/49567/8 "2021-11-27T18:20:18Z")

</div>

@Paulllllaaa you can try any method, as suggested by chris, but for display a bot init conversation you need an interface and If you want to implement the one please see this link : [Rasa chatbot website integration | Quick tutorial - YouTube](https://youtu.be/eJMT2FovZsM) it have everything mentioned. I hope this will solve your issue.

---

<div class="post-metadata">

**Author:** ![Paulllllaaa](https://avatars.discourse-cdn.com/v4/letter/p/9de0a6/32.png) [@Paulllllaaa](https://forum.rasa.com/u/Paulllllaaa)\
**Post date:** [November 27, 2021, 7:06pm UTC](https://forum.rasa.com/t/bot-init-conversation/49567/9 "2021-11-27T19:06:31Z")

</div>

Thank you very much !

---

<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:** [November 27, 2021, 10:31pm UTC](https://forum.rasa.com/t/bot-init-conversation/49567/10 "2021-11-27T22:31:29Z")

</div>

You can try the first method meanwhile if it’s really urgent 🙂

But I couldn’t make it work last time I tried it.

---

<div class="post-metadata">

**Author:** ![Paulllllaaa](https://avatars.discourse-cdn.com/v4/letter/p/9de0a6/32.png) [@Paulllllaaa](https://forum.rasa.com/u/Paulllllaaa)\
**Post date:** [November 29, 2021, 1:09pm UTC](https://forum.rasa.com/t/bot-init-conversation/49567/11 "2021-11-29T13:09:02Z")

</div>

No, it doesn’t work 😪

---

<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:** [November 29, 2021, 1:24pm UTC](https://forum.rasa.com/t/bot-init-conversation/49567/12 "2021-11-29T13:24:14Z")

</div>

Yeah, I couldn’t make it work either haha.

I still suggest doing it from your front-end application, but if you still want to go with the back-end method, show me what you did and we’ll try to fix it.

Or, try out [this other method](https://rasa.com/docs/rasa/2.x/reaching-out-to-user#reaching-out-first), which requires you to build your own [custom channel](https://rasa.com/docs/rasa/2.x/connectors/your-own-website).

---

<div class="post-metadata">

**Author:** ![Paulllllaaa](https://avatars.discourse-cdn.com/v4/letter/p/9de0a6/32.png) [@Paulllllaaa](https://forum.rasa.com/u/Paulllllaaa)\
**Post date:** [November 29, 2021, 1:32pm UTC](https://forum.rasa.com/t/bot-init-conversation/49567/13 "2021-11-29T13:32:48Z")

</div>

I tried to create a web interface but it didn’t work very well ☹I tried to do the same as here but it didn’t work

[![](https://img.youtube.com/vi/XMAw_bKTLbA/maxresdefault.jpg "Connect a Rasa Chatbot to a Django Website | Rasa Tutorial") ](https://www.youtube.com/watch?v=XMAw_bKTLbA)

---

<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:** [November 29, 2021, 1:57pm UTC](https://forum.rasa.com/t/bot-init-conversation/49567/14 "2021-11-29T13:57:16Z")

</div>

There are already multiple frontends you can use:

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

You can use one of them and edit it as you wish, easier than building your own 🙂

I am familiar with #1, #2, and #6 if you need any help.

---

<div class="post-metadata">

**Author:** ![Paulllllaaa](https://avatars.discourse-cdn.com/v4/letter/p/9de0a6/32.png) [@Paulllllaaa](https://forum.rasa.com/u/Paulllllaaa)\
**Post date:** [November 29, 2021, 4:11pm UTC](https://forum.rasa.com/t/bot-init-conversation/49567/15 "2021-11-29T16:11:56Z")

</div>

I just got back, I’m going to try one of those three. Thanks for everything
