AI tools
Botpress email validation integration
An Execute Code card checks the email address your Botpress bot just asked for and writes the verdict to Workflow variables, so the bot can ask again at once when the address cannot receive mail or is a throwaway inbox. When a check cannot be made, the conversation carries on as if the card were not there.
Read the full setup guideGet an API key
- Setup guide
- One file, pasted into an Execute Code card
workflow.emailDecision === 'flagged'
emailDecision flagged, allowed or unchecked
emailStatus valid, invalid, catch_all, unknown, disposable
emailReason our reason, or why it was not checked
emailSuggestion Did you mean …? (when there is one)At a glance.
- Status
- Setup guide. Not listed on a marketplace yet: you set it up yourself in a few steps, below and in the full guide.
- For
- Botpress bots that collect a lead’s or a customer’s email address in a conversation and should ask again, rather than save an address that cannot receive mail or a throwaway inbox.
- You need
- A bot in Botpress Studio where you can add cards and configuration variables, a Capture Information card that asks for the address, and an API key made for it, with a daily credit cap.
- Costs
- 1 credit = 1 validated address, as with any API request. Free: unknown results, API errors, malformed addresses, test addresses on sandbox.email-validation.org, addresses on reserved domains such as example.com and, in a bulk list, repeats of an address (charged once).
- Full guide
- Read the full setup guide
Typical uses.
Ask again for a dead address
An invalid result sends the conversation back to ask for the address, with the corrected address the API suggests when there is one.
Keep throwaway inboxes out
Disposable addresses are flagged by default, so a lead you save is one you can reach later.
Choose what to flag
Flag catch-all or unknown results too, or let throwaway inboxes through: one line at the top of the card.
Set it up. 4 steps.
The short version of the full setup guide, which stays the reference when a step does not match what you see.
Add your key
In Bot Settings, add the configuration variable
EMAIL_VALIDATION_API_KEYwith your API key. Botpress keeps it encrypted.Paste the card
Create the four Workflow variables the card writes, then add an Execute Code card after the Capture Information card and paste check-email.js from the guide.
Branch on the verdict
Add an Expression card with
workflow.emailDecision === 'flagged', connected to a node that asks again.Try it
In the Emulator, give
no_mailbox@sandbox.email-validation.org: the bot asks again, at no cost.
Good to know.
The card sends one request and never resends it; it waits 10 seconds at most by default.
With no answer in time, a wrong key, no credits or any error, the address is unchecked and the conversation carries on. The card never stops a conversation.
An unknown result caused by our side, a timeout or an internal error, is never flagged, whatever you choose to flag. A result marked disposable is flagged while disposable is on the list, whatever its status.
The card sends only the email address, to our US or EU host: not the conversation or the person’s name.
Connect Botpress.
Test it on our sandbox addresses for free, then on your own contacts.
Updated · Maintained by: Email Validation LLC