Klaviyo
Add a bot to Klaviyo using the official integration.
The official Klaviyo integration allows your bot to interact with your Klaviyo account. You can use it to:
- Create or update user profiles
- Retrieve individual or bulk user profile data
- Subscribe users to SMS/email marketing
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 Klaviyo 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 Klaviyo API key.
Create a Klaviyo private API key
Next, create a private Klaviyo API key:
- Log in to your Klaviyo account.
- Select your organization’s name in the bottom-left corner.
- Select Settings. Then, navigate to API keys.
- Under Private API Keys, select Create Private API Key.
- Enter a name for the API key.
- Check Full Access for the following API scopes:
- Profiles
- Subscriptions
- Select Create in the upper-right corner.
- Copy the API key—it should start with
pk.
Your Klaviyo integration is ready. You can use the integration’s Cards to interact with your Klaviyo account.
Cards
Create Profile
Create a profile in Klaviyo: either email or phone is required
inputobjectoutputobjectGet Profile
Get a profile in Klaviyo
inputobjectoutputobjectGet Profiles
Get profiles using filters in Klaviyo
inputobjectoutputobjectSubscribe Profiles
Subscribe profiles asynchronously to a SMS and/or email marketing in Klaviyo
inputobjectoutputobjectUpdate Profile
Update a profile in Klaviyo
inputobjectoutputobjectTriggers
If you use any of the following Cards in an Autonomous Node, keep in mind that your bot will fill in the Card’s fields based on the user’s responses. This can lead to unexpected behaviour for fields that have strict conventions.
For example, the Update Profile Card lets you update custom properties associated with a profile. If the user isn’t specific about that property’s exact name, the bot may accidentally create a new property instead of updating an existing one.