https://discord.gg/botpress logo
Webhook to send emails
# 🤝help
r
I would like to send confirmation emails to my users once they have registered. I have learned I cannot use my own webhook, so I have tried to install one from My Integrations. Unfortunately, even if I can see it has been installed, My Integrations space is always empty. Neither do I see it in my Botpress studio. Anyone can help? Thank you, Lalo https://cdn.discordapp.com/attachments/1380830285729366037/1380830285934891048/image.png?ex=684be56a&is=684a93ea&hm=cc69496ef5c8f3a2864b021c6773976a2966cb593c0e3b46610516577b1f3271& https://cdn.discordapp.com/attachments/1380830285729366037/1380830286580945017/image.png?ex=684be56a&is=684a93ea&hm=b3fbbccb60d0fbb84c37b374fa956548cde9374adb3e0076b773b867b2f8c080&
I realized I have access to the Webhook through triggers
However I cannot configure the webhook to add my script url
I have also found there is a SendEmail card somewhere. Can someone tell me where I can find it?
Is maybe sendgrid the only way to send emails from Botpress?
p
So the integration page in the dashboard is for integrations you've built, the installed ones will not appear there. Here's the reference for the webhook integration: https://botpress.com/docs/integrations/integration-guides/webhook And send email card can be found within the sendGrid integration. Hope this helps!
r
1. I guess the recommended way to send emails from botpress is by using the sendGrid integration. Am I right? 2. Also, the links you provide https://botpress.com/docs/integrations/guides/webhook. explains how to make your Botpress chatbot listen for messages or updates sent to it from other services or applications in real-time, right? 3. What about sending a message to my own microservice running on my server? Is it possible? I mean, like running a script on my server that receives messages from Botpress (maybe using the "Execute code" card?) I have already tried this approach but failed due to Botpress restrictions. Is there a way to do this for my purpose? I appreciate your responses. Botpress is great, but it takes some time to get used to it. 🙂
p
1. There is also a gmail integration but yes sendGrid does the trick. 2. Correct 3. You can in fact make requests to external services via the execute code card, actions or hooks. Can you elaborate on our failed attempt using the execute code card? Happy to help!
r
3. Now it is clear, thank you!! I was not using the right code in the "execute code" card. I attach the code that is working!! (I created with the embedded AI assistant 😃 )
p
Awesome, Glad you got it working!!
2 Views