Table of Contents

Send an Email with Brevo

Abby Updated by Abby

Want to capture your leads in real-time? Or want to send a confirmation to your customers? You can do this with Brevo in Landbot

By connecting to Brevo in the webhook block, you will be able to send an email notification to your customers! 🀩

You can also use it to send email notifications to your team to be up to date with the relevant information or events within your bots (lead collected, new payment, etc.) πŸš€

Brevo

As of 31/07/25 Brevo allows up to 300 emails to be sent per day via API on their free plan, however, you can check here to see if this is still the case
Step 1: Sign up for Brevo's free plan

https://onboarding.brevo.com/account/register

Step 2: Create an API key in Brevo

https://app.brevo.com/settings/keys/api

Landbot

Step 3: Collect user's email address in flow

Use the 'Ask for an email' block to collect the user's email address, save it in the variable @email

Step 4: Set up the webhook block

1. Select POST from the URL method:

2. Add the following URL: https://api.brevo.com/v3/smtp/email

3. Toggle on Customize Headers and add the following headers:

accept

application/json

api-key

XXXXXXXXXX (Replace for your API key)

content-type

application/json

4. Toggle on Customize Body

Add the following JSON:

{  
"sender":{
"name":"Landbot Support",
"email":"test@landbot.io"
},
"to":[
{
"email":"@email",
"name":"@name"
}
],
"subject":"Hello world",
"htmlContent":"<html><head></head><body><p>Hello,</p>This is my first email sent from Landbot via Brevo.</p></body></html>"
}

5. Replace the sender name and email

Use the email address you signed up in Brevo with, otherwise nothing will get sent

6. User data

If the user name or email has a different variable name, replace it at @email and @name

Any other variable you want to add should be added like this: @variable

7. Test the request

Add test variables for email and name, the response should be a 201

8. Response routing

Toggle on response routing and direct your flow, if the webhook returns a 400 that means the email address is invalid, if it returns a 201 that means the request was sent correctly

This is what the user will see:

Was this article helpful?

Contact