Nudgify is the Social Proof, FOMO and UX app that adds real-world context to your website in realtime.
Create a HTML or a plain text email template. See the docs
Creates a sign-up nudge for a user in Nudgify. See docs here
Send an email using Amazon SES. Supports simple email messaging. See the docs
The Nudgify API lets you create and manage social proof notifications, aimed at increasing user engagement and conversions on your website. By leveraging this API on Pipedream, you can automate the interaction with Nudgify notifications and integrate them into your site's workflow. This could include creating notifications based on user behavior, updating them in real-time as data changes, or deleting them once they're no longer needed. The Pipedream platform simplifies the process of working with the Nudgify API by handling authentication, providing a code-free interface for setting up workflows, and enabling connections with numerous other apps for extended functionality.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
nudgify: {
type: "app",
app: "nudgify",
}
},
async run({steps, $}) {
const data = {
"site_key": `${this.nudgify.$auth.site_key}`,
"conversions": [{
"date":"2021-04-15 04:29:42",
"email":"john0941034@gmail.com",
"first_name":"John",
"last_name":"Mendes",
"ip":"92.21.8.106",
"city":"Houston",
"state":"Texas",
"country":"US"
}],
}
return await axios($, {
method: "POST",
url: `https://app.nudgify.com/api/conversions`,
headers: {
Authorization: `Bearer ${this.nudgify.$auth.api_key}`,
"content-type": `application/json`,
"accept": `application/json`,
},
data,
})
},
})
Amazon Simple Email Service (SES) is a powerful cloud-based email sending service designed to help digital marketers and application developers send marketing, notification, and transactional emails. With the SES API, you can reliably send emails at scale, manage sender reputations, view email sending statistics, and maintain a high deliverability rate. Leveraging Pipedream's capabilities, you can integrate SES seamlessly into serverless workflows, automate email responses based on triggers from other apps, and analyze the effectiveness of your email campaigns by connecting to data analytics platforms.
module.exports = defineComponent({
props: {
amazon_ses: {
type: "app",
app: "amazon_ses",
}
},
async run({steps, $}) {
const AWS = require("aws-sdk")
const { accessKeyId, secretAccessKey } = this.amazon_ses.$auth
const ses = new AWS.SES({
accessKeyId,
secretAccessKey,
region: 'us-east-1',
})
const sesParams = {
Destination: {
ToAddresses: ["<your email here>"],
},
Message: {
Body: {
Html: {
Charset: "UTF-8",
Data: "<h1>This is a test</h1>",
},
Text: {
Charset: "UTF-8",
Data: "This is a test",
}
},
Subject: {
Charset: "UTF-8",
Data: "Test email",
}
},
Source: "<your from address here",
};
this.resp = await ses.sendEmail(sesParams).promise()
},
})