Setup
You will need:
1
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.
2
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.
3
Configure the integration in Botpress
Now, you can finish setting up the integration in Botpress:
- In the integration’s API Key field, paste your MailerLite developer API key.
- 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
Troubleshooting
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..