How to send Automated Emails with Zapier
# 📖tutorials
b
This tutorial shows how to set up Automated Emails with the help of Zapier (low-code method, template shared below). I assume you have already set up the some questions/choices you'd like to send inside of an email. Now: 1- Open Zapier and create a Zap 2- In the first node of the Zap, choose "Webhooks by Zapier" and select "Catch Hook" as event 3- Zapier will then give you an URL, copy it 4- Back to Botpress, add an Execute Code card: workflow.zapierSuccess = false const leadData = { email: workflow.Email, problem: workflow.Problem } //Replace YOUR_URL_HERE with your actual Zap URL try { const response = await axios.post('YOUR_URL_HERE', leadData) console.log(response.data) workflow.zapierSuccess = true } catch (error) { console.error(error) } 5- Make sure you replaced YOUR_URL_HERE with the URL of your zap. If you want different variables, replace "email: workflow.Email" and "problem: workflow.Problem" with your actual variables. Use the same format to make sure it works. 6- Back to Zapier, in the second node select "Gmail" and select "Send Email" as event. Now you can choose your account and customize the fields of your email as you like. You can use the variables you stored as well! 7- Test it, if it works properly just pubblish the Zap and you're done You can choose whatever text you like and even send confirmation emails to the user who opened the ticket. This works for logins and password resets as well (template below).

https://cdn.discordapp.com/attachments/1146127527279079524/1146127527543308379/Screenshot_3.png

https://cdn.discordapp.com/attachments/1146127527279079524/1146127527895650435/Screenshot_2.png

https://cdn.discordapp.com/attachments/1146127527279079524/1146127528159870976/Screenshot_1.png

h
you are amazing thank you !
how cna i open the file of the taplate my friend ?
ive download it but i dont have any application ti open with, im using mac
thanks !
m
@brainy-summer-1041 How do i trigger the bot to start a coversation when i get a new email in my gmail account Basically i want when i get a new mail I want to use zapier webhook to trigger botpress, then when botpress gets that event it sends an email back to the customer's email with a content i'll give it This second step i know how to do But the first step i'm still stuck
r
Thanks man
5 Views