Skip to main content
Open in Hubv3.0.2 The official MailerLite integration allows your bot to create, update, fetch, or delete your MailerLite subscribers.

Setup

You will need:
1

Install the integration in Botpress

First, install the integration to your bot:
  1. In Botpress Studio, select Explore Hub in the upper-right corner.
  2. 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.
2

Create a MailerLite developer API key

Next, create a MailerLite API key:
  1. Log in to your MailerLite account.
  2. Select Integrations from the left navigation bar.
  3. To the right of API, select Use.
  4. Select Generate new token. Enter a name, then select Create token.
  5. Copy the API token.
3

Configure the integration in Botpress

Now, you can finish setting up the integration in Botpress:
  1. In the integration’s API Key field, paste your MailerLite developer API key.
  2. Select Save Configuration.
Your MailerLite integration is ready. You can use the integration’s Cards to interact with your MailerLite subscribers.

Cards

Here’s a reference for all Cards available with the integration:

Delete Subscriber

Input: Output:

Fetch Subscriber

Input: Output:

Upsert Subscriber

Input: Output:

Triggers

Here’s a reference for all Triggers available with the integration:
You can access data returned from any of these Triggers by reading event.payload after the Trigger fires.

Subscriber Created

payload
object

Troubleshooting

If you run into errors when using the integration’s Cards, check out your bot’s Logs and locate the error message:
Your developer API token may have been revoked. Create a new one and update your bot’s configuration.
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..
I