The Polly API allows you to automate and personalize the creation of images for marketing campaigns, emails, and web content. It provides the capability to dynamically generate images with custom text, fonts, and other variables at scale. Specifically in Pipedream, you can harness this API to craft on-the-fly marketing assets that are tailored to individual recipients or audience segments, integrate with email services to deliver personalized images within newsletters, or trigger image creation based on specific events or actions taken by your users.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
polly: {
type: "app",
app: "polly",
}
},
async run({steps, $}) {
return await axios($, {
method: "post",
url: `https://app.polly.ai/api/workflows.trigger`,
params: {
"X-API-TOKEN": `${this.polly.$auth.api_key}`,
},
})
},
})
Personalized Email Campaigns: Integrate Polly with SendGrid on Pipedream to create and send personalized images within email campaigns. When a new subscriber is added to a mailing list, trigger an event that uses Polly to generate a custom welcome image, then send it via SendGrid to the new subscriber's email address.
Event-Driven Social Media Posts: Link Polly with Twitter via Pipedream. Set up a workflow where event registrations from Eventbrite trigger image creations with Polly, including event details and personalized attendee names. Then automatically post these images to a Twitter account to engage attendees and promote the event.
E-commerce Product Personalization: Connect Polly with Shopify on Pipedream to offer personalized product images. When a customer orders a customizable product, use their details to create a unique image preview of the product with their chosen text or design, then email it to the customer for approval before shipment.
Polly uses API keys for authentication. When you connect your Polly account, Pipedream securely stores the keys so you can easily authenticate to Polly APIs in both code and no-code steps.