# Email chatbot

**URL:** <https://forum.rasa.com/t/email-chatbot/36778>\
**Category:** Rasa Open Source\
**Created:** [November 8, 2020, 3:33am UTC](https://forum.rasa.com/t/email-chatbot/36778 "2020-11-08T03:33:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vishal4000](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/vishal4000/32/11814_2.png) [@vishal4000](https://forum.rasa.com/u/vishal4000)\
**Post date:** [November 8, 2020, 3:33am UTC](https://forum.rasa.com/t/email-chatbot/36778/1 "2020-11-08T03:33:08Z")

</div>

Can anyone provid very simple Rasa chatbot code to send user inputted data through email

---

<div class="post-metadata">

**Author:** ![sugarshock](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/sugarshock/32/9126_2.png) [@sugarshock](https://forum.rasa.com/u/sugarshock)\
**Post date:** [November 9, 2020, 3:29pm UTC](https://forum.rasa.com/t/email-chatbot/36778/2 "2020-11-09T15:29:31Z")

</div>

“Very simple” is relative…you’ll have to setup an Email-Server and an adapter that parses the Email contents into a JSON that is then relayed to the Rasa via the HTTP or WebSocket API.

Maybe somebody has already done something like this, but I don’t think Rasa has an out-of-the-box solution for that.

---

<div class="post-metadata">

**Author:** ![Arjaan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/arjaan/32/5754_2.png) [@Arjaan](https://forum.rasa.com/u/Arjaan)\
**Post date:** [November 10, 2020, 6:14pm UTC](https://forum.rasa.com/t/email-chatbot/36778/3 "2020-11-10T18:14:34Z")

</div>

@vishal4000,

The rasa-demo bot contains an example how you can set it up with MailChimp. The implementation demonstrates how a user can sign up for the Rasa newsletter, and an email will be sent.

- [GitHub - RasaHQ/rasa-demo: Sara - the Rasa Demo Bot: An example of a contextual AI assistant built with the open source Rasa Stack](https://github.com/RasaHQ/rasa-demo)
- [The custom action](https://github.com/RasaHQ/rasa-demo/blob/338aafeb1c54dc6d1b431fcc5022f466941acaee/actions/actions.py#L31)

---

<div class="post-metadata">

**Author:** ![vishal4000](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/vishal4000/32/11814_2.png) [@vishal4000](https://forum.rasa.com/u/vishal4000)\
**Post date:** [November 13, 2020, 12:12pm UTC](https://forum.rasa.com/t/email-chatbot/36778/4 "2020-11-13T12:12:26Z")

</div>

@sugarshock can you please share the code its urgent. thank you

---

<div class="post-metadata">

**Author:** ![sugarshock](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/sugarshock/32/9126_2.png) [@sugarshock](https://forum.rasa.com/u/sugarshock)\
**Post date:** [November 13, 2020, 12:46pm UTC](https://forum.rasa.com/t/email-chatbot/36778/5 "2020-11-13T12:46:40Z")

</div>

I’ve never done it, I don’t have any code and a mail server is usually not something you set up by just copy-pasting some code. You’ll have to to set up a whole other service that receives incoming mails and relays them to the rasa service.

To make things quick and dirty, you could just create a special gmail adress that your customers will text to and then use the [Gmail API](https://developers.google.com/gmail/api) to access them. You will still have to write a lot of code yourself - I can’t do that for you.

@Arjaan I think @vishal4000 wants to use email as a primary communication channel, not just make Rasa _send_ an email. Idk if you can do that with MailChimp
