MailerLite
Add a bot to MailerLite using the official integration.
The official MailerLite integration allows your bot to create, update, fetch, or delete your MailerLite subscribers.
Setup
You will need:
Install the integration in Botpress
First, install the integration to your bot:
- In Botpress Studio, select Explore Hub in the upper-right corner.
- Search for the MailerLite integration, then select Install Integration.
In the Configuration menu, you should see one field: API Key. Leave it empty for now—you’ll come back to it after creating your MailerLite API key.
Create a MailerLite developer API key
Next, create a MailerLite API key:
- Log in to your MailerLite account.
- Select Integrations from the left navigation bar.
- To the right of API, select Use.
- Select Generate new token. Enter a name, then select Create token.
- Copy the API token.
Your MailerLite integration is ready. You can use the integration’s Cards to interact with your MailerLite subscribers.
Cards
Delete Subscriber
Delete existing subscriber by subscriber id
inputobjectoutputobjectFetch Subscriber
Search subscriber by id or by email
inputobjectoutputobjectUpsert Subscriber
Create or update existing subscriber with given fields, identified by their email or id
inputobjectoutputobjectTriggers
Subscriber Created
A new subscriber has been created in MailerLite
payloadobjectTroubleshooting
If you run into errors when using the integration’s Cards, check out your bot’s Logs and locate the error message:
An unexpected error occurred
An unexpected error occurred
Your developer API token may have been revoked. Create a new one and update your bot’s configuration.
Invalid JSON
Invalid JSON
If you’re passing data into the Upsert Subscriber Card’s
customFields parameter, make sure it’s a valid JSON string of key-value pairs..