Send Email

SendEmail – Send chatlogs to any email.

Using this tag one can send chatlogs at any point in the conversation to the email you provided during the bot creation under Customise your Bot further section.

Example:

ID Type Text Goto
5.4 SendEmail Here are the chatlogs of {{vars.username}}

 

SendEmail V2 – Send custom emails to users using SMTP. (We are using nodemailer for sending emails through SMTP)
NoteIn the case of Gmail you have to allow other apps to send emails by going to your Gmail settings here

Example:

Using Gmail:

ID Type Text Goto
SendEmail-Custom {
“info”: {
“to”: “example@gmail.com”,
“subject”: “Hello”,
“text”: “Hello world?”,
“HTML”: “Hello world?
},
“save_to_var”: “response”,
“credentials”: {
“service”: “gmail”,
“auth”:{
“user”: “your_email@gmail.com”,
“pass”: “your_password”
}
}
}

 

Using AWS SMTP:

ID Type Text Goto
SendEmail-Custom {
“info”: {
“to”: “example@gmail.com”,
“subject”: “Hello”,
“text”: “Hello world?”,
“HTML”: “Hello world?
},
“save_to_var”: “response”,
“credentials”: {
“port”: 465,
“host”: “AWS_REGION”,
“secure”: true,
“auth”: {
“user”: “AWS_ACCESS_KEY_ID”,
“pass”: “AWS_SECRET_ACCESS_KEY”,
“debug”: true
}
}

 

Request Demo