To handle your issue with importing multiple attendees from Google Calendar into a Klaviyo list via Make.com, here are some clarifications and solutions:
Why Only One Profile is Added
This could be due to:
- Incorrect API Call Structure: You may only be sending data for a single attendee instead of all 47.
- Missing Loops in Make.com: If you’re not iterating over the list of attendees, the API call will only process the first attendee.
- Rate Limits or Errors: Klaviyo might reject bulk data if improperly formatted.
Correct Approach to Add Multiple Profiles
Step 1: Use Loops in Make.com
Ensure you iterate over the list of attendees and make an API call for each attendee. In Make.com:
- Retrieve Google Calendar event attendees.
- Use a "Iterator" module to split the list of attendees into individual items.
- Pass each item to the API module for creating or updating profiles.
Step 2: Use the Correct Klaviyo API for Profile Creation
To add profiles, use the Profile Import API: Endpoint:
https://a.klaviyo.com/api/profile-import
Method: POST
Payload Example:
json
CopyEdit
{ "profiles": [ { "email": "attendee1@example.com", "first_name": "John", "last_name": "Doe" }, { "email": "attendee2@example.com", "first_name": "Jane", "last_name": "Smith" } ] }
Headers:
plaintext
CopyEdit
Authorization: Klaviyo-API-Key YOUR_API_KEY Content-Type: application/json
This method allows you to send multiple profiles in one API call.
Filtering Logic
- If some attendees are already in Klaviyo, use the Identify API to check if they exist before adding them.
- Alternatively, rely on Klaviyo's deduplication. It automatically updates existing profiles with new data instead of creating duplicates.
Debugging Tips
- Check Make.com logs to ensure all attendees are processed.
- Validate API responses to identify if errors are causing skipped profiles.
- Test the payload using tools like Postman before automating.
Next Steps:
- Implement the loop in Make.com to iterate over the attendees.
- Use the Profile Import API for bulk creation.
- Debug any errors by testing individual API calls.
Let me know if you'd like help setting this up or troubleshooting!