Email chatbot - Rasa Open Source - Rasa Community Forum

Email chatbot

post by vishal4000 on Nov 7, 2020

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

post by sugarshock on Nov 9, 2020

“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.

post by Arjaan on Nov 10, 2020

@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.

post by vishal4000 on Nov 13, 2020

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

post by sugarshock on Nov 13, 2020

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 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 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.