\\\",\\n \\\"css_content\\\" : \\\".tweet-text{background-color:#fff2ac;background-image:linear-gradient(to right,#ffe359 0,#fff2ac 100%);font-weight:bolder;font-size:32px;font-family:Roboto,sans-serif;padding:4px}\\\",\\n \\\"generate_img_url\\\": true\\n}\",\"__typename\":\"OauthBody\"},\"bodyParams\":[],\"authorization\":{\"type\":null,\"basicUsername\":\"\",\"basicPassword\":\"\",\"bearerToken\":\"\",\"oauthAccessToken\":null,\"oauthRefreshToken\":null,\"oauthSignerUri\":null,\"__typename\":\"Authorization\"},\"extracts\":[],\"metadataExtracts\":[],\"cellParams\":[],\"tab\":\"Body\",\"__typename\":\"OauthReq\"},\"marketplaceContent\":null,\"integrationConnections\":{\"nodes\":[],\"__typename\":\"IntegrationConnection\"}},\"otherApp\":{\"id\":\"app_X2Rhjl\",\"name\":\"Klaviyo\",\"nameSlug\":\"klaviyo\",\"description\":\"Klaviyo unifies your data, channels, and AI agents in one platform—text, WhatsApp, email marketing, and more—driving growth with every interaction.\",\"appPrompts\":[{\"id\":\"10038\",\"label\":\"Churn Prevention\",\"prompt\":\"Build an agent that analyzes Klaviyo customer data to identify users at risk of churning using AI predictive modeling. When a high-value customer shows churn signals (decreased engagement, no recent purchases), automatically generate a personalized win-back email campaign with AI-crafted messaging, special offers, and product recommendations tailored to their preferences. Notify me via Slack when these campaigns are triggered.\",\"__typename\":\"AppPrompt\"},{\"id\":\"10039\",\"label\":\"Content Optimization\",\"prompt\":\"Create an agent that monitors the performance of my Klaviyo email campaigns and uses AI to analyze which subject lines, content types, and send times perform best for different customer segments. The agent should automatically generate A/B test variations with AI-optimized copy and suggest the best performing elements for future campaigns. Send me a monthly report with actionable insights and recommendations.\",\"__typename\":\"AppPrompt\"},{\"id\":\"10040\",\"label\":\"Review Response\",\"prompt\":\"Build an agent that monitors customer reviews and feedback from multiple sources (Google, Yelp, product reviews), then uses AI to analyze sentiment and identify customers who left negative reviews. Automatically create personalized follow-up email campaigns in Klaviyo with AI-generated apology messages, solutions, and incentives to win them back. Alert me via email when negative reviews trigger these campaigns.\",\"__typename\":\"AppPrompt\"},{\"id\":\"10041\",\"label\":\"Behavioral Triggers\",\"prompt\":\"Create an agent that tracks customer behavior on my website and uses AI to predict the optimal moment to send targeted emails through Klaviyo. When AI detects high purchase intent signals (multiple product views, cart additions, price comparisons), automatically trigger personalized emails with AI-generated product recommendations, social proof, and urgency messaging. Send me daily summaries of triggered campaigns and their performance.\",\"__typename\":\"AppPrompt\"},{\"id\":\"10042\",\"label\":\"Dynamic Pricing\",\"prompt\":\"Build an agent that monitors competitor pricing, inventory levels, and customer demand patterns, then uses AI to determine optimal discount strategies for different customer segments in Klaviyo. Automatically create personalized promotional campaigns with AI-calculated discount percentages that maximize revenue while maintaining margins. The agent should A/B test different pricing strategies and report results via Slack.\",\"__typename\":\"AppPrompt\"},{\"id\":\"10043\",\"label\":\"Lifecycle Optimization\",\"prompt\":\"Create an agent that uses AI to analyze the entire customer lifecycle in Klaviyo and identify opportunities to optimize the customer journey. The agent should automatically adjust email frequency, content types, and messaging based on where each customer is in their lifecycle stage. Use AI to predict the best next action for each customer and create personalized email sequences accordingly. Send me weekly insights about lifecycle performance and optimization opportunities.\",\"__typename\":\"AppPrompt\"},{\"id\":\"23133\",\"label\":\"Smart Segmentation\",\"prompt\":\"Create an agent that automatically segments Klaviyo subscribers based on their behavior patterns using AI analysis. The agent should analyze customer data including purchase history, email engagement, website activity, and demographic information to intelligently group customers into dynamic segments. Use machine learning to identify patterns and create personalized segments like 'High-Value Potential', 'At-Risk Customers', or 'Seasonal Shoppers'. The agent should update these segments regularly and trigger targeted email campaigns for each group.\",\"__typename\":\"AppPrompt\"},{\"id\":\"23134\",\"label\":\"Product Recommendations\",\"prompt\":\"Develop an agent that generates AI-powered product recommendations for Klaviyo email campaigns based on customer behavior and preferences. The agent should analyze purchase history, browsing behavior, email clicks, and similar customer patterns to create personalized product suggestions. Automatically populate email templates with these recommendations and trigger targeted campaigns featuring products most likely to convert for each individual customer.\",\"__typename\":\"AppPrompt\"}],\"authType\":\"keys\",\"customFieldsDescriptionMd\":\"\",\"oauthScopes\":[],\"customFields\":[{\"name\":\"api_key\",\"__typename\":\"AppCustomField\"}],\"oauthReqsByType\":{\"requestToken\":{\"httpMethod\":\"POST\",\"url\":\"\",\"urlParams\":[],\"headerParams\":[],\"body\":null,\"bodyParams\":[],\"authorization\":{\"type\":\"OAuth\",\"basicUsername\":\"\",\"basicPassword\":\"\",\"bearerToken\":\"\",\"oauthAccessToken\":null,\"oauthRefreshToken\":null,\"oauthSignerUri\":null,\"__typename\":\"Authorization\"},\"extracts\":[],\"metadataExtracts\":null,\"cellParams\":null,\"tab\":null,\"__typename\":\"OauthReq\"},\"authorization\":{\"httpMethod\":\"GET\",\"url\":\"\",\"urlParams\":[{\"key\":\"client_id\",\"value\":\"{{oauth.client_id}}\",\"__typename\":\"Kv\"},{\"key\":\"redirect_uri\",\"value\":\"{{oauth.redirect_uri}}\",\"__typename\":\"Kv\"},{\"key\":\"state\",\"value\":\"{{oauth.state}}\",\"__typename\":\"Kv\"},{\"key\":\"response_type\",\"value\":\"code\",\"__typename\":\"Kv\"},{\"key\":\"scope\",\"value\":\"{{oauth.space_separated_scopes}}\",\"__typename\":\"Kv\"}],\"headerParams\":[],\"body\":null,\"bodyParams\":[],\"authorization\":{\"type\":null,\"basicUsername\":\"\",\"basicPassword\":\"\",\"bearerToken\":\"\",\"oauthAccessToken\":null,\"oauthRefreshToken\":null,\"oauthSignerUri\":null,\"__typename\":\"Authorization\"},\"extracts\":[],\"metadataExtracts\":null,\"cellParams\":null,\"tab\":null,\"__typename\":\"OauthReq\"},\"accessToken\":{\"httpMethod\":\"POST\",\"url\":\"\",\"urlParams\":[],\"headerParams\":[{\"key\":\"content-type\",\"value\":\"application/x-www-form-urlencoded\",\"__typename\":\"Kv\"},{\"key\":\"accept\",\"value\":\"application/json\",\"__typename\":\"Kv\"}],\"body\":null,\"bodyParams\":[{\"key\":\"client_id\",\"value\":\"{{oauth.client_id}}\",\"__typename\":\"Kv\"},{\"key\":\"client_secret\",\"value\":\"{{oauth.client_secret}}\",\"__typename\":\"Kv\"},{\"key\":\"redirect_uri\",\"value\":\"{{oauth.redirect_uri}}\",\"__typename\":\"Kv\"},{\"key\":\"grant_type\",\"value\":\"authorization_code\",\"__typename\":\"Kv\"},{\"key\":\"code\",\"value\":\"{{oauth.code}}\",\"__typename\":\"Kv\"}],\"authorization\":{\"type\":null,\"basicUsername\":\"\",\"basicPassword\":\"\",\"bearerToken\":\"\",\"oauthAccessToken\":null,\"oauthRefreshToken\":null,\"oauthSignerUri\":null,\"__typename\":\"Authorization\"},\"extracts\":[],\"metadataExtracts\":null,\"cellParams\":null,\"tab\":null,\"__typename\":\"OauthReq\"},\"refreshToken\":{\"httpMethod\":\"POST\",\"url\":\"\",\"urlParams\":[],\"headerParams\":[{\"key\":\"content-type\",\"value\":\"application/x-www-form-urlencoded\",\"__typename\":\"Kv\"},{\"key\":\"accept\",\"value\":\"application/json\",\"__typename\":\"Kv\"}],\"body\":null,\"bodyParams\":[{\"key\":\"client_id\",\"value\":\"{{oauth.client_id}}\",\"__typename\":\"Kv\"},{\"key\":\"client_secret\",\"value\":\"{{oauth.client_secret}}\",\"__typename\":\"Kv\"},{\"key\":\"grant_type\",\"value\":\"refresh_token\",\"__typename\":\"Kv\"},{\"key\":\"refresh_token\",\"value\":\"{{oauth.refresh_token}}\",\"__typename\":\"Kv\"}],\"authorization\":{\"type\":null,\"basicUsername\":\"\",\"basicPassword\":\"\",\"bearerToken\":\"\",\"oauthAccessToken\":null,\"oauthRefreshToken\":null,\"oauthSignerUri\":null,\"__typename\":\"Authorization\"},\"extracts\":[],\"metadataExtracts\":null,\"cellParams\":null,\"tab\":null,\"__typename\":\"OauthReq\"},\"__typename\":\"OauthReqsByType\"},\"__typename\":\"App\",\"registryComponents\":[{\"id\":\"sc_r1ilGbWo\",\"key\":\"klaviyo-add-member-to-list\",\"name\":\"Add Member To List\",\"description\":\"Add member to a specific list. [See the documentation](https://developers.klaviyo.com/en/reference/add_profiles_to_list)\",\"type\":\"ACTION\",\"__typename\":\"SavedComponent\"},{\"id\":\"sc_L4iq0Vo1\",\"key\":\"klaviyo-create-new-list\",\"name\":\"Create New List\",\"description\":\"Creates a new list in an account. [See the documentation](https://developers.klaviyo.com/en/reference/create_list)\",\"type\":\"ACTION\",\"__typename\":\"SavedComponent\"}],\"componentCodeScaffoldRaw\":\"import { axios } from \\\"@pipedream/platform\\\"\\nexport default defineComponent({\\n props: {\\n klaviyo: {\\n type: \\\"app\\\",\\n app: \\\"klaviyo\\\",\\n }\\n },\\n async run({steps, $}) {\\n return await axios(,ドル {\\n url: ` https://a.klaviyo.com/api/accounts/`,\\n headers: {\\n \\\"Authorization\\\": `Klaviyo-API-Key ${this.klaviyo.$auth.api_key}`,\\n \\\"revision\\\": `2023年12月15日`,\\n },\\n })\\n },\\n})\\n\",\"testRequest\":{\"httpMethod\":\"GET\",\"url\":\" https://a.klaviyo.com/api/accounts/\",\"urlParams\":[],\"headerParams\":[{\"key\":\"Authorization\",\"value\":\"Klaviyo-API-Key {{custom_fields.api_key}}\",\"__typename\":\"Kv\"},{\"key\":\"revision\",\"value\":\"2023-12-15\",\"__typename\":\"Kv\"}],\"body\":{\"type\":\"fields\",\"contentType\":\"application/json\",\"fields\":[{\"name\":\"\",\"value\":\"\",\"__typename\":\"Nv\"}],\"mode\":\"fields\",\"raw\":\"\",\"__typename\":\"OauthBody\"},\"bodyParams\":[],\"authorization\":{\"type\":null,\"basicUsername\":\"\",\"basicPassword\":\"\",\"bearerToken\":\"Klaviyo-API-Key {{custom_fields.api_key}}\",\"oauthAccessToken\":null,\"oauthRefreshToken\":null,\"oauthSignerUri\":null,\"__typename\":\"Authorization\"},\"extracts\":[{\"field\":\"uid\",\"path\":\"id\",\"optional\":null,\"__typename\":\"Extract\"},{\"field\":\"info\",\"path\":\"email\",\"optional\":null,\"__typename\":\"Extract\"}],\"metadataExtracts\":[],\"cellParams\":[],\"tab\":\"Headers\",\"__typename\":\"OauthReq\"},\"marketplaceContent\":{\"id\":\"557\",\"markdown\":\"# Overview\\n\\nThe Klaviyo API grants you the power to automate and personalize your email marketing efforts. With it, you can manage lists, profiles, and campaigns, track event-driven communications, and analyze the results. By leveraging this API on Pipedream, you can create intricate, automated workflows that respond in real-time to your users' behavior, sync data across multiple platforms, and tailor your marketing strategies to improve engagement and conversion rates.\\n\\n# Example Use Cases\\n\\n- **Synchronize New Shopify Orders to Klaviyo for Personalized Follow-Ups**: When a new order is placed in Shopify, trigger a workflow in Pipedream that captures order details and customer information. This data is then sent to Klaviyo to create or update a customer profile and trigger a personalized post-purchase email sequence.\\n\\n- **Automate Lead Scoring Based on User Activity**: Use Pipedream to listen for webhooks from Klaviyo that indicate user actions, like email opens, link clicks, or form submissions. Combine this with data from other sources, like CRMs or analytics tools, to calculate a lead score. Update the contact in Klaviyo with this score to segment audiences and target high-scoring leads with specialized campaigns.\\n\\n- **Streamline Event Invitations and Follow-Ups with Zoom Webinar Registrations**: When a user registers for a webinar on Zoom, Pipedream can capture this event and create a corresponding profile in Klaviyo, automatically adding them to an event-specific list. Post-webinar, use Klaviyo to send out tailored content, such as a recording of the event, additional resources, or calls to action, based on their engagement.\\n\\n# Getting Started\\n\\nTo get started using Klaviyo with Pipedream, you’ll need to create a new Klaviyo API key.\\n\\nFirst, log in to your Klaviyo account, then open *Settings* in the bottom left-hand corner:\\n\\n![Open the drawer in the bottom left-hand drawer to open your Klaviyo account settings](https://res.cloudinary.com/pipedreamin/image/upload/v1715178061/marketplace/apps/klayvio/CleanShot_2024年05月08日_at_10.11.15_2x_cusdgp.png)\\n\\nThen, on the next page, click **Create API Key** to begin creating a new private API key.\\n\\n![Create a new Klaviyo API key](https://res.cloudinary.com/pipedreamin/image/upload/v1715178067/marketplace/apps/klayvio/CleanShot_2024年05月08日_at_10.11.29_2x_uenkfm.png)\\n\\nOn this page, you can configure your API key settings, such as its name and permissions. We recommend naming this API key `Pipedream` so you can easily track where it’s used.\\n\\nNext, you'll need to define the permissions for this API key. You can grant specific permissions, read-only access to all resources, or full read/write access. Don’t worry, you can change these settings later.\\n\\n![Choosing between permission levels](https://res.cloudinary.com/pipedreamin/image/upload/v1715178064/marketplace/apps/klayvio/CleanShot_2024年05月08日_at_10.12.15_2x_ebxwdq.png)\\n\\nOnce you have created your Klaviyo private API key, make sure to copy it to your clipboard and save it within Pipedream through either a Klaviyo trigger or action in a workflow, or by opening the dedicated Connected Accounts area in Pipedream.\\n\\n![Save the Klaviyo API key to Pipedream](https://res.cloudinary.com/pipedreamin/image/upload/v1715178053/marketplace/apps/klayvio/CleanShot_2024年05月08日_at_10.19.51_2x_otps4k.png)\\n\\nEnsure you save the API key before closing the Klaviyo window, as this is the only time this private API key will be displayed.\\n\\n# Troubleshooting\\n\\nKlaviyo uses standard HTTP status codes to communicate errors over it’s API.\\n\\n## Status Codes\\n\\n### 200 OK\\n\\nThe request completed successfully.\\n\\n### 201 Created\\n\\nThe request succeeded, and a new resource was created as a result.\\n\\n### 202 Accepted\\n\\nThe request has been received but not yet acted upon. We return this status code for requests that were accepted but are processed asynchronously.\\n\\n### 204 No Content\\n\\nThe request succeeded, but the API doesn’t provide a response body.\\n\\n### 400 Bad Request\\n\\nRequest is missing a required parameter or has an invalid parameter.\\n\\n### 401 Not Authorized\\n\\nRequest is lacking required authentication information.\\n\\nPlease follow the guidance here for more details on authenticating your API requests.\\n\\n### 403 Forbidden\\n\\nThe request contains valid authentication information, but does not have permissions to perform the specified action.\\n\\nSee API key scopes for more information.\\n\\n### 404 Not Found\\n\\nThe requested resource doesn't exist.\\n\\n### 405 Method not Allowed\\n\\nThe requested resource doesn't support the provided HTTP method, e.g., DELETE.\\n\\n### 409 Conflict\\n\\nThe request conflicts with the current state of the server.\\n\\n### 410 Gone\\n\\nThe requested content has been permanently deleted from Klaviyo’s server. This status code will occur for requested endpoints that no longer exist in our API.\\n\\n### 415 Unsupported Media Type\\n\\nThe Content-Type or Content-Encoding header is set incorrectly.\\n\\n### 429 Rate Limit\\n\\nYou hit the rate limit for this endpoint (different endpoints have different rate limits).\\n\\n### 500 Server Error\\n\\nSomething is wrong with the destination server. This may be on Klaviyo's end.\\n\\n### 503 Service Unavailable\\n\\nSomething is wrong on Klaviyo’s end leading to service unavailability.\\n\\nCheck Klaviyo’s Status for updates.\\n\",\"__typename\":\"MarketplaceContent\"}}}","hasNext":false}}

What do you want to automate

with HTML to Image and Klaviyo?

Prompt, edit and deploy AI agents that connect to HTML to Image, Klaviyo and 3,000+ other apps in seconds.

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Convert HTML to Image with the HTML to Image API

Create an image from HTML. See the documentation

Try it
Add Member To List with the Klaviyo API

Add member to a specific list. See the documentation

Try it
Convert HTML to PDF with the HTML to Image API

Create a PDF file from HTML. See the documentation

Try it
Create New List with the Klaviyo API

Creates a new list in an account. See the documentation

Try it
Convert URL to Image with the HTML to Image API

Capture a screenshot from a URL. See the documentation

Try it
Integrate the HTML to Image API with the Klaviyo API
Setup the HTML to Image API trigger to run a workflow which integrates with the Klaviyo API. Pipedream's integration platform allows you to integrate HTML to Image and Klaviyo remarkably fast. Free for developers.

Connect HTML to Image#

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { axios } from "@pipedream/platform"
export default defineComponent({
 props: {
 html_to_image: {
 type: "app",
 app: "html_to_image",
 }
 },
 async run({steps, $}) {
 const data = {
 "html_content" : "<div class=\"mt-4 p-4 text-center\"style=width:500px><span class=\"mb-4 tweet-text\">This is Little Bear. He tolerates baths because he knows how phenomenal his floof will appear afterwards. 13/10</span><div class=\"mt-2 p-4\"><img class=\"mt-4 border rounded-circle shadow\"src=https://docs.htmlcsstoimage.com/assets/images/dog.jpg width=100px></div><h4 class=mt-2>WeRateDogs</h4><span class=text-muted>@dog_rates</span></div><link href=https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css rel=stylesheet crossorigin=anonymous integrity=sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk><link href=\"https://fonts.googleapis.com/css2?family=Roboto:wght@700\"rel=stylesheet>",
 "css_content" : ".tweet-text{background-color:#fff2ac;background-image:linear-gradient(to right,#ffe359 0,#fff2ac 100%);font-weight:bolder;font-size:32px;font-family:Roboto,sans-serif;padding:4px}",
 "generate_img_url": true
 }
 return await axios($, {
 method: "post",
 url: `https://api.htmlcsstoimg.com/api/v1/generateImage`,
 headers: {
 "CLIENT-API-KEY": `${this.html_to_image.$auth.api_key}`,
 },
 data,
 })
 },
})

Overview of Klaviyo#

The Klaviyo API grants you the power to automate and personalize your email marketing efforts. With it, you can manage lists, profiles, and campaigns, track event-driven communications, and analyze the results. By leveraging this API on Pipedream, you can create intricate, automated workflows that respond in real-time to your users' behavior, sync data across multiple platforms, and tailor your marketing strategies to improve engagement and conversion rates.

Connect Klaviyo#

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { axios } from "@pipedream/platform"
export default defineComponent({
 props: {
 klaviyo: {
 type: "app",
 app: "klaviyo",
 }
 },
 async run({steps, $}) {
 return await axios($, {
 url: ` https://a.klaviyo.com/api/accounts/`,
 headers: {
 "Authorization": `Klaviyo-API-Key ${this.klaviyo.$auth.api_key}`,
 "revision": `2023年12月15日`,
 },
 })
 },
})

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Pipedream, Inc. — San Francisco, CA
About Twitter Docs Community Terms Privacy Cookie Settings Try String

AltStyle によって変換されたページ (->オリジナル) /